@sprucelabs/spruce-heartwood-utils 29.13.25 → 29.13.27

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.
@@ -55,12 +55,19 @@ export class ThemeManagerImpl {
55
55
  (_b = this.themeChangeHandler) === null || _b === void 0 ? void 0 : _b.call(this, theme);
56
56
  this.themeCount++;
57
57
  this.currentTheme = theme;
58
- const _f = theme.props, { calendarEvents, borderRadius, cardStyles } = _f, rest = __rest(_f, ["calendarEvents", "borderRadius", "cardStyles"]);
58
+ const _f = theme.props, { calendarEvents, borderRadius, cardStyles, controlBar } = _f, rest = __rest(_f, ["calendarEvents", "borderRadius", "cardStyles", "controlBar"]);
59
59
  this.applyBorderRadius(borderRadius);
60
60
  yield this.setProps(Object.entries(rest), shouldAnimate);
61
61
  if (calendarEvents) {
62
62
  yield this.setProps(Object.entries(calendarEvents), shouldAnimate);
63
63
  }
64
+ if (controlBar) {
65
+ const { foregroundColor, backgroundColor } = controlBar;
66
+ foregroundColor &&
67
+ this.setProp('controlBarForegroundColor', foregroundColor);
68
+ backgroundColor &&
69
+ this.setProp('controlBarBackgroundColor', backgroundColor);
70
+ }
64
71
  if (cardStyles) {
65
72
  const styles = [
66
73
  'visual',
@@ -35,12 +35,19 @@ class ThemeManagerImpl {
35
35
  this.themeChangeHandler?.(theme);
36
36
  this.themeCount++;
37
37
  this.currentTheme = theme;
38
- const { calendarEvents, borderRadius, cardStyles, ...rest } = theme.props;
38
+ const { calendarEvents, borderRadius, cardStyles, controlBar, ...rest } = theme.props;
39
39
  this.applyBorderRadius(borderRadius);
40
40
  await this.setProps(Object.entries(rest), shouldAnimate);
41
41
  if (calendarEvents) {
42
42
  await this.setProps(Object.entries(calendarEvents), shouldAnimate);
43
43
  }
44
+ if (controlBar) {
45
+ const { foregroundColor, backgroundColor } = controlBar;
46
+ foregroundColor &&
47
+ this.setProp('controlBarForegroundColor', foregroundColor);
48
+ backgroundColor &&
49
+ this.setProp('controlBarBackgroundColor', backgroundColor);
50
+ }
44
51
  if (cardStyles) {
45
52
  const styles = [
46
53
  'visual',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "29.13.25",
4
+ "version": "29.13.27",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },