@fluid-topics/ft-reader-feedback 1.1.19 → 1.1.20

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.
@@ -7,5 +7,6 @@ export declare const FtReaderFeedbackCssVariables: {
7
7
  emptyRatingColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
8
8
  mainTitleFontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
9
9
  sectionTitleFontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
10
+ starsBackgroundColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
10
11
  };
11
12
  export declare const styles: import("lit").CSSResult;
@@ -12,6 +12,7 @@ export const FtReaderFeedbackCssVariables = {
12
12
  emptyRatingColor: FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color", "", designSystemVariables.colorOnSurfaceMedium),
13
13
  mainTitleFontSize: FtCssVariableFactory.external(FtTypographyTitleCssVariables.fontSize, "Typography"),
14
14
  sectionTitleFontSize: FtCssVariableFactory.external(FtTypographyTitleDenseCssVariables.fontSize, "Typography"),
15
+ starsBackgroundColor: FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color", "", "COLOR", designSystemVariables.colorSurface),
15
16
  };
16
17
  // language=CSS
17
18
  export const styles = css `
@@ -27,6 +28,7 @@ export const styles = css `
27
28
  flex-direction: row;
28
29
  align-items: center;
29
30
  margin-left: -6px;
31
+ ${setVariable(FtButtonCssVariables.backgroundColor, FtReaderFeedbackCssVariables.starsBackgroundColor)}
30
32
  }
31
33
 
32
34
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -64,6 +66,5 @@ export const styles = css `
64
66
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
65
67
  align-self: flex-end;
66
68
  ${setVariable(FtButtonCssVariables.color, FtReaderFeedbackCssVariables.sendFeedbackColor)};
67
- ${setVariable(FtButtonCssVariables.backgroundColor, FtReaderFeedbackCssVariables.sendFeedbackBackgroundColor)};
68
69
  }
69
70
  `;
@@ -468,7 +468,7 @@
468
468
  ${e.setVariable($t.size,It.iconSize)};
469
469
  ${e.setVariable($t.color,"var(--ft-button-internal-color)")};
470
470
  }
471
- `,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography")},zt=o.css`
471
+ `,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},zt=o.css`
472
472
  .ft-reader-feedback {
473
473
  box-sizing: border-box;
474
474
  display: flex;
@@ -481,6 +481,7 @@
481
481
  flex-direction: row;
482
482
  align-items: center;
483
483
  margin-left: -6px;
484
+ ${e.setVariable(It.backgroundColor,At.starsBackgroundColor)}
484
485
  }
485
486
 
486
487
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -518,7 +519,6 @@
518
519
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
519
520
  align-self: flex-end;
520
521
  ${e.setVariable(It.color,At.sendFeedbackColor)};
521
- ${e.setVariable(It.backgroundColor,At.sendFeedbackBackgroundColor)};
522
522
  }
523
523
  `
524
524
  /**
@@ -598,7 +598,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
598
598
  ${Ie(dn.size,bn.iconSize)};
599
599
  ${Ie(dn.color,"var(--ft-button-internal-color)")};
600
600
  }
601
- `,Ge],Nn={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",Jr.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Cn={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(vr.fontSize,"Typography"),sectionTitleFontSize:Re.external(mr.fontSize,"Typography")},En=Rt`
601
+ `,Ge],Nn={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",Jr.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Cn={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(vr.fontSize,"Typography"),sectionTitleFontSize:Re.external(mr.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",Te.colorSurface)},En=Rt`
602
602
  .ft-reader-feedback {
603
603
  box-sizing: border-box;
604
604
  display: flex;
@@ -611,6 +611,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
611
611
  flex-direction: row;
612
612
  align-items: center;
613
613
  margin-left: -6px;
614
+ ${Ie(bn.backgroundColor,Cn.starsBackgroundColor)}
614
615
  }
615
616
 
616
617
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -648,7 +649,6 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
648
649
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
649
650
  align-self: flex-end;
650
651
  ${Ie(bn.color,Cn.sendFeedbackColor)};
651
- ${Ie(bn.backgroundColor,Cn.sendFeedbackBackgroundColor)};
652
652
  }
653
653
  `
654
654
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-feedback",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "Feedback forms for a map and its topics in an integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.1.19",
23
- "@fluid-topics/ft-reader-context": "1.1.19",
24
- "@fluid-topics/ft-wc-utils": "1.1.19",
22
+ "@fluid-topics/ft-app-context": "1.1.20",
23
+ "@fluid-topics/ft-reader-context": "1.1.20",
24
+ "@fluid-topics/ft-wc-utils": "1.1.20",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluid-topics/public-api": "1.0.55"
29
29
  },
30
- "gitHead": "b272462216d04e50b2a31bfdb5e1b6f3a241ce9d"
30
+ "gitHead": "a2cc440052a86a43c1dcd0826c2cfffa642cdfe7"
31
31
  }