@product7/product7-js 0.7.2 → 0.7.3
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/package.json
CHANGED
|
@@ -869,89 +869,22 @@
|
|
|
869
869
|
.liveChat-feedback-body {
|
|
870
870
|
display: flex;
|
|
871
871
|
flex-direction: column;
|
|
872
|
-
gap: var(--spacing-
|
|
872
|
+
gap: var(--spacing-3);
|
|
873
873
|
padding: var(--spacing-5) var(--spacing-4);
|
|
874
874
|
flex: 1;
|
|
875
875
|
overflow-y: auto;
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
+
.liveChat-feedback-body .sdk-form-group {
|
|
879
|
+
margin-bottom: 0;
|
|
880
|
+
}
|
|
881
|
+
|
|
878
882
|
.liveChat-feedback-prompt {
|
|
879
883
|
margin: 0;
|
|
880
884
|
font-size: var(--font-size-sm);
|
|
881
885
|
color: var(--text-secondary);
|
|
882
886
|
}
|
|
883
887
|
|
|
884
|
-
|
|
885
|
-
.liveChat-feedback-input {
|
|
886
|
-
width: 100%;
|
|
887
|
-
border: 1px solid var(--border-color);
|
|
888
|
-
border-radius: var(--radius-md);
|
|
889
|
-
padding: var(--spacing-3);
|
|
890
|
-
font-size: var(--font-size-sm);
|
|
891
|
-
font-family: inherit;
|
|
892
|
-
color: var(--text-primary);
|
|
893
|
-
background: var(--msg-bg);
|
|
894
|
-
box-sizing: border-box;
|
|
895
|
-
transition: border-color var(--transition-fast);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
.liveChat-feedback-input::placeholder {
|
|
899
|
-
color: var(--msg-text-secondary);
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
.liveChat-feedback-input:focus {
|
|
903
|
-
outline: none;
|
|
904
|
-
border-color: var(--color-primary);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
.liveChat-feedback-textarea {
|
|
908
|
-
width: 100%;
|
|
909
|
-
resize: none;
|
|
910
|
-
border: 1px solid var(--border-color);
|
|
911
|
-
border-radius: var(--radius-md);
|
|
912
|
-
padding: var(--spacing-3);
|
|
913
|
-
font-size: var(--font-size-sm);
|
|
914
|
-
font-family: inherit;
|
|
915
|
-
color: var(--text-primary);
|
|
916
|
-
background: var(--msg-bg);
|
|
917
|
-
box-sizing: border-box;
|
|
918
|
-
transition: border-color var(--transition-fast);
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
.liveChat-feedback-textarea::placeholder {
|
|
922
|
-
color: var(--msg-text-secondary);
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.liveChat-feedback-textarea:focus {
|
|
926
|
-
outline: none;
|
|
927
|
-
border-color: var(--color-primary);
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
.liveChat-feedback-submit {
|
|
931
|
-
display: flex;
|
|
932
|
-
align-items: center;
|
|
933
|
-
justify-content: center;
|
|
934
|
-
padding: var(--spacing-3);
|
|
935
|
-
border-radius: var(--radius-md);
|
|
936
|
-
font-size: var(--font-size-sm);
|
|
937
|
-
font-weight: var(--font-weight-medium);
|
|
938
|
-
font-family: inherit;
|
|
939
|
-
cursor: pointer;
|
|
940
|
-
border: none;
|
|
941
|
-
background: var(--color-primary);
|
|
942
|
-
color: #ffffff;
|
|
943
|
-
transition: all var(--transition-fast);
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
.liveChat-feedback-submit:hover:not(:disabled) {
|
|
947
|
-
background: var(--color-primary-hover);
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
.liveChat-feedback-submit:disabled {
|
|
951
|
-
opacity: 0.5;
|
|
952
|
-
cursor: not-allowed;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
888
|
.liveChat-feedback-error {
|
|
956
889
|
font-size: var(--font-size-xs);
|
|
957
890
|
color: #ef4444;
|
|
@@ -23,18 +23,23 @@ export class FeedbackFormView {
|
|
|
23
23
|
</div>
|
|
24
24
|
<div class="liveChat-feedback-body">
|
|
25
25
|
<p class="liveChat-feedback-prompt">Share your thoughts with us. We read every message.</p>
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
<div class="sdk-form-group">
|
|
27
|
+
<label class="sdk-label">Title <span class="sdk-required">*</span></label>
|
|
28
|
+
<input
|
|
29
|
+
type="text"
|
|
30
|
+
class="sdk-input liveChat-feedback-input"
|
|
31
|
+
placeholder="Brief description of your feedback"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="sdk-form-group">
|
|
35
|
+
<label class="sdk-label">Message <span class="sdk-required">*</span></label>
|
|
36
|
+
<textarea
|
|
37
|
+
class="sdk-textarea liveChat-feedback-textarea"
|
|
38
|
+
placeholder="Tell us what you think..."
|
|
39
|
+
></textarea>
|
|
40
|
+
</div>
|
|
36
41
|
<span class="liveChat-feedback-error" style="display:none;"></span>
|
|
37
|
-
<button class="liveChat-feedback-submit">Send feedback</button>
|
|
42
|
+
<button class="sdk-btn-primary sdk-btn-block liveChat-feedback-submit">Send feedback</button>
|
|
38
43
|
</div>
|
|
39
44
|
`;
|
|
40
45
|
this._attachEvents();
|