@kausal/themes 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/props.js +10 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kausal/themes",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Themes for Kausal products",
5
5
  "type": "module",
6
6
  "main": "setup.cjs",
package/props.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
 
3
- const { number, exact, string, oneOfType, bool, array, object, arrayOf } =
3
+ const { number, exact, string, oneOfType, bool, array, object, oneOf, objectOf, arrayOf } =
4
4
  PropTypes;
5
5
 
6
6
  export function makeThemePropType(cssv = null) {
@@ -110,8 +110,8 @@ export function makeThemePropType(cssv = null) {
110
110
  }).isRequired,
111
111
  headingsColor: cssv('color'),
112
112
  headingsFontWeight: cssv('font-weight').isRequired,
113
- iconActionsUrl: string.isRequired,
114
- iconIndicatorsUrl: string.isRequired,
113
+ iconActionsUrl: cssv('path').allowEmpty,
114
+ iconIndicatorsUrl: cssv('path').allowEmpty,
115
115
  imageOverlay: string.isRequired,
116
116
  inputBg: string.isRequired,
117
117
  inputBorderRadius: string.isRequired,
@@ -151,8 +151,8 @@ export function makeThemePropType(cssv = null) {
151
151
  light: string.isRequired,
152
152
  white: string.isRequired,
153
153
  }).isRequired,
154
- themeLogoUrl: string.isRequired,
155
- themeLogoWhiteUrl: string.isRequired,
154
+ themeLogoUrl: cssv('hashedFile').isRequired,
155
+ themeLogoWhiteUrl: cssv('hashedFile').isRequired,
156
156
  phaseTimelineColor: string.isRequired,
157
157
  textColor: exact({
158
158
  primary: cssv('color').isRequired,
@@ -225,13 +225,13 @@ export function makeThemePropType(cssv = null) {
225
225
  showActionDescriptionHeader: bool,
226
226
  showFeedbackLink: bool,
227
227
  }),
228
- icons: object.isRequired,
228
+ icons: objectOf(cssv('hashedFile')).isRequired,
229
229
  favicons: exact({
230
- apple: string,
231
- ico: string,
232
- svg: string,
230
+ apple: cssv('hashedFile').isRequired,
231
+ ico: cssv('hashedFile').isRequired,
232
+ svg: cssv('hashedFile').isRequired,
233
233
  }),
234
- mainCssFile: string.isRequired,
234
+ mainCssFile: cssv('hashedFile').isRequired,
235
235
  };
236
236
  return exact(props);
237
237
  }