@kitconcept/volto-light-theme 6.0.0-alpha.24 → 6.0.0-alpha.25

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.draft CHANGED
@@ -1,9 +1,13 @@
1
- ## 6.0.0-alpha.24 (2025-05-06)
1
+ ## 6.0.0-alpha.25 (2025-05-14)
2
2
 
3
3
  ### Feature
4
4
 
5
- - Added `sticky_menu` slot. @sneridagh [#523](https://github.com/kitconcept/volto-light-theme/pull/523)
6
- - Better naming for the specific kitconcept's behaviors for distributions. @sneridagh [#530](https://github.com/kitconcept/volto-light-theme/pull/530)
7
- - Use `--image-aspect-ratio` for all images. @danalvrz [#533](https://github.com/kitconcept/volto-light-theme/pull/533)
5
+ - Add --image-aspect-ratio docs & make Slider use the CSS prop. @danalvrz [#535](https://github.com/kitconcept/volto-light-theme/pull/535)
6
+ - Integration with the intranet control panel settings for the intranet header. @sneridagh [#542](https://github.com/kitconcept/volto-light-theme/pull/542)
7
+
8
+ ### Bugfix
9
+
10
+ - Fixed props for Summary component in Teaser view. @sneridagh [#536](https://github.com/kitconcept/volto-light-theme/pull/536)
11
+ - Color fixes for Footer & metadata block. @danalvrz [#544](https://github.com/kitconcept/volto-light-theme/pull/544)
8
12
 
9
13
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 6.0.0-alpha.25 (2025-05-14)
12
+
13
+ ### Feature
14
+
15
+ - Add --image-aspect-ratio docs & make Slider use the CSS prop. @danalvrz [#535](https://github.com/kitconcept/volto-light-theme/pull/535)
16
+ - Integration with the intranet control panel settings for the intranet header. @sneridagh [#542](https://github.com/kitconcept/volto-light-theme/pull/542)
17
+
18
+ ### Bugfix
19
+
20
+ - Fixed props for Summary component in Teaser view. @sneridagh [#536](https://github.com/kitconcept/volto-light-theme/pull/536)
21
+ - Color fixes for Footer & metadata block. @danalvrz [#544](https://github.com/kitconcept/volto-light-theme/pull/544)
22
+
11
23
  ## 6.0.0-alpha.24 (2025-05-06)
12
24
 
13
25
  ### Feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "6.0.0-alpha.24",
3
+ "version": "6.0.0-alpha.25",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -33,7 +33,7 @@
33
33
  "@types/react": "^18.3.12",
34
34
  "@types/react-dom": "^18.3.1",
35
35
  "release-it": "^17.7.0",
36
- "@plone/types": "1.4.3"
36
+ "@plone/types": "1.4.4"
37
37
  },
38
38
  "dependencies": {
39
39
  "@dnd-kit/core": "6.0.8",
@@ -21,7 +21,7 @@ const messages = defineMessages({
21
21
  const TeaserDefaultTemplate = (props) => {
22
22
  const { className, data, isEditMode, style } = props;
23
23
  const intl = useIntl();
24
- const href = data.href?.[0];
24
+ const href = data.href?.[0] || {};
25
25
  const image = data.preview_image?.[0];
26
26
  const url = data.preview_image?.[0]?.['@id'];
27
27
 
@@ -29,7 +29,7 @@ const TeaserDefaultTemplate = (props) => {
29
29
  const Summary =
30
30
  config.getComponent({
31
31
  name: 'Summary',
32
- dependencies: [data['@type']],
32
+ dependencies: [href['@type']],
33
33
  }).component || DefaultSummary;
34
34
  const { openExternalLinkInNewTab } = config.settings;
35
35
 
@@ -75,7 +75,7 @@ const TeaserDefaultTemplate = (props) => {
75
75
  )
76
76
  )}
77
77
  <div className="content">
78
- <Summary item={data} HeadingTag="h2" />
78
+ <Summary item={{ ...href, ...data }} HeadingTag="h2" />
79
79
  </div>
80
80
  </div>
81
81
  </MaybeWrap>
@@ -9,6 +9,7 @@ import { Form, Input } from 'semantic-ui-react';
9
9
  import { compose } from 'redux';
10
10
  import { PropTypes } from 'prop-types';
11
11
  import { defineMessages, injectIntl } from 'react-intl';
12
+ import { connect } from 'react-redux';
12
13
 
13
14
  import Icon from '@plone/volto/components/theme/Icon/Icon';
14
15
  import zoomSVG from '@plone/volto/icons/zoom.svg';
@@ -78,13 +79,24 @@ class IntranetSearchWidget extends Component {
78
79
  * @returns {undefined}
79
80
  */
80
81
  onSubmit(event) {
82
+ const searchURL =
83
+ this.props.site['kitconcept.intranet.external_search_url'];
81
84
  const path =
82
85
  this.props.pathname?.length > 0
83
86
  ? `&path=${encodeURIComponent(this.props.pathname)}`
84
87
  : '';
85
- this.props.history.push(
86
- `/search?SearchableText=${encodeURIComponent(this.state.text)}${path}`,
87
- );
88
+
89
+ if (searchURL) {
90
+ window.open(
91
+ `${searchURL}?SearchableText=${encodeURIComponent(this.state.text)}${path}`,
92
+ '_blank',
93
+ 'noopener,noreferrer',
94
+ );
95
+ } else {
96
+ this.props.history.push(
97
+ `/search?SearchableText=${encodeURIComponent(this.state.text)}${path}`,
98
+ );
99
+ }
88
100
  // reset input value
89
101
  this.setState({
90
102
  text: '',
@@ -99,6 +111,8 @@ class IntranetSearchWidget extends Component {
99
111
  */
100
112
  render() {
101
113
  const { intl } = this.props;
114
+ const searchFieldPlaceholder =
115
+ this.props.site['kitconcept.intranet.search_field_placeholder'];
102
116
  return (
103
117
  <Form action="/search" onSubmit={this.onSubmit}>
104
118
  <Form.Field className="searchbox">
@@ -109,7 +123,14 @@ class IntranetSearchWidget extends Component {
109
123
  value={this.state.text}
110
124
  transparent
111
125
  autoComplete="off"
112
- placeholder={intl.formatMessage(messages.placeholder)}
126
+ placeholder={
127
+ searchFieldPlaceholder
128
+ ? intl.formatMessage({
129
+ id: searchFieldPlaceholder,
130
+ defaultMessage: searchFieldPlaceholder,
131
+ })
132
+ : intl.formatMessage(messages.placeholder)
133
+ }
113
134
  title={intl.formatMessage(messages.search)}
114
135
  />
115
136
  <button aria-label={intl.formatMessage(messages.search)}>
@@ -121,4 +142,10 @@ class IntranetSearchWidget extends Component {
121
142
  }
122
143
  }
123
144
 
124
- export default compose(withRouter, injectIntl)(IntranetSearchWidget);
145
+ export default compose(
146
+ withRouter,
147
+ injectIntl,
148
+ connect((state, props) => ({
149
+ site: state.site.data,
150
+ })),
151
+ )(IntranetSearchWidget);
@@ -82,6 +82,9 @@
82
82
 
83
83
  // Color map
84
84
  @mixin use-theme-colors() {
85
+ #page-document {
86
+ background: var(--primary-color);
87
+ }
85
88
  // Page title
86
89
  h1.documentFirstHeading {
87
90
  color: var(--theme-foreground-color);
@@ -96,6 +99,11 @@
96
99
  h2 {
97
100
  color: var(--theme-foreground-color);
98
101
  }
102
+ .ui.bulleted.list li {
103
+ &::before {
104
+ color: var(--link-foreground-color) !important;
105
+ }
106
+ }
99
107
  }
100
108
 
101
109
  // Blocks
@@ -727,6 +735,12 @@
727
735
  }
728
736
  }
729
737
 
738
+ &.eventMetadata {
739
+ .details-container {
740
+ color: var(--theme-foreground-color);
741
+ }
742
+ }
743
+
730
744
  .cookie-consent-buttons {
731
745
  button.button {
732
746
  color: black;
@@ -838,8 +852,11 @@
838
852
  }
839
853
 
840
854
  [class^='block-editor-'] {
841
- a.slate-editor-link {
842
- color: var(--theme-foreground-color);
855
+ a.slate-editor-link span[data-slate-string='true'] {
856
+ color: var(
857
+ --link-foreground-color,
858
+ --theme-foreground-color
859
+ ) !important;
843
860
  }
844
861
 
845
862
  .block {
@@ -907,6 +924,14 @@
907
924
  }
908
925
  }
909
926
  }
927
+
928
+ .eventMetadata {
929
+ color: var(--theme-foreground-color);
930
+
931
+ a {
932
+ color: var(--link-foreground-color, --theme-foreground-color);
933
+ }
934
+ }
910
935
  }
911
936
  }
912
937
  }
@@ -1133,6 +1158,26 @@
1133
1158
  & > span,
1134
1159
  & > div {
1135
1160
  color: var(--primary-foreground-color);
1161
+
1162
+ .ui.pagination.menu {
1163
+ background: var(--primary-color);
1164
+
1165
+ a.item {
1166
+ color: var(--primary-foreground-color);
1167
+
1168
+ &:not([aria-current='true']) {
1169
+ color: var(--link-foreground-color);
1170
+ }
1171
+
1172
+ &.disabled {
1173
+ color: var(--primary-foreground-color) !important;
1174
+ opacity: 0.8;
1175
+ }
1176
+ }
1177
+ a.item:not([aria-current='true']) {
1178
+ color: var(--link-foreground-color);
1179
+ }
1180
+ }
1136
1181
  }
1137
1182
 
1138
1183
  #content-core {
@@ -4,6 +4,7 @@
4
4
  // the required vertical spacing
5
5
  padding: 0;
6
6
  margin-top: 0;
7
+ margin-bottom: 0;
7
8
  }
8
9
 
9
10
  .contenttype-news-item {
@@ -18,6 +19,7 @@
18
19
  @include adjustMarginsToContainer($default-container-width);
19
20
  margin-top: $spacing-medium;
20
21
  margin-bottom: $spacing-medium;
22
+ color: var(--primary-foreground-color);
21
23
  .day {
22
24
  @include body-text-bold();
23
25
  letter-spacing: 1px;
@@ -79,6 +81,7 @@
79
81
  .dates {
80
82
  margin-top: $spacing-medium;
81
83
  margin-bottom: $spacing-medium;
84
+ color: var(--primary-foreground-color);
82
85
  @container (max-width: #{$largest-mobile-screen} ) {
83
86
  margin-bottom: $spacing-small;
84
87
  }
@@ -1,5 +1,6 @@
1
1
  #footer {
2
- margin-top: $footer-vertical-spacing-top;
2
+ padding-top: $footer-vertical-spacing-top;
3
+ background: var(--footer-background);
3
4
  text-align: center;
4
5
 
5
6
  .container {
@@ -2,6 +2,7 @@
2
2
  .details-container {
3
3
  padding-top: $spacing-xlarge;
4
4
  padding-bottom: $spacing-xlarge;
5
+ border-color: var(--theme-foreground-color);
5
6
  border-top: 1px solid $black;
6
7
  border-bottom: 1px solid $black;
7
8
  margin-top: 0px;
@@ -44,6 +45,7 @@
44
45
  .separator {
45
46
  width: 170px;
46
47
  height: 30px;
48
+ border-color: var(--theme-foreground-color);
47
49
  border-right: none;
48
50
  border-bottom: 1px solid #000;
49
51
  }
@@ -62,14 +64,15 @@
62
64
  .event-btn {
63
65
  padding: 8px 20px;
64
66
  border: 1px solid #000;
67
+ border-color: var(--theme-foreground-color);
65
68
  border-radius: 5px;
66
69
  background-color: transparent;
67
- color: #000;
70
+ color: var(--theme-foreground-color, #000);
68
71
  font-size: 16px;
69
72
  font-weight: $bolder;
70
73
  line-height: 20px;
71
74
  a {
72
- color: #000;
75
+ color: var(--theme-foreground-color, #000);
73
76
  font-size: 16px;
74
77
  font-weight: $bolder;
75
78
  line-height: 20px;
@@ -20,7 +20,10 @@ $sliderImagesAspectRatio: var(--slider-images-aspect-ratio, 16/9);
20
20
 
21
21
  img {
22
22
  // Override Volto's Image Component inline style aspect ratio.
23
- aspect-ratio: $sliderImagesAspectRatio !important;
23
+ aspect-ratio: var(
24
+ --image-aspect-ratio,
25
+ $sliderImagesAspectRatio
26
+ ) !important;
24
27
  }
25
28
  }
26
29