@beacon-interactive-systems-llc/beacon-platform-ui 17.6.2 → 17.6.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beacon-interactive-systems-llc/beacon-platform-ui",
3
- "version": "17.6.2",
3
+ "version": "17.6.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
@@ -1,12 +1,30 @@
1
+ $platform_checkbox_contrasts: (
2
+ light: (
3
+ checkboxList: $beacon-dark-blue-500,
4
+ checkboxStandalone: $beacon-dark-blue-400,
5
+ checkboxStandaloneCheck: $beacon-white,
6
+ ),
7
+ dark: (
8
+ checkboxList: $beacon-dark-blue-300,
9
+ checkboxStandalone: $beacon-gray-400,
10
+ checkboxStandaloneCheck: $beacon-black,
11
+ ),
12
+ highcontrast: (
13
+ checkboxList: $highcontrast-bright-blue-300,
14
+ checkboxStandalone: $beacon-white,
15
+ checkboxStandaloneCheck: $beacon-black,
16
+ )
17
+ );
18
+
1
19
  .mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
2
20
  .mat-mdc-list-option .mdc-checkbox:active:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,
3
21
  .mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background {
4
- @include themify($platform_contrasts) {
5
- border-color: apply('checkboxColor');
6
- background: apply('checkboxColor');
22
+ @include themify($platform_checkbox_contrasts) {
23
+ border-color: apply('checkboxList');
24
+ background: apply('checkboxList');
7
25
 
8
26
  .mat-ripple-element {
9
- background: apply('checkboxColor');
27
+ background: apply('checkboxList');
10
28
  }
11
29
  }
12
30
  }
@@ -14,15 +32,15 @@
14
32
  .mat-mdc-list-option
15
33
  .mdc-checkbox
16
34
  .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background {
17
- @include themify($platform_contrasts) {
18
- border-color: apply('checkboxColor');
35
+ @include themify($platform_checkbox_contrasts) {
36
+ border-color: apply('checkboxList');
19
37
  }
20
38
  }
21
39
 
22
40
  .platform-checkbox {
23
41
  .mat-ripple-element {
24
- @include themify($platform_contrasts) {
25
- background: apply('checkboxColor') !important;
42
+ @include themify($platform_checkbox_contrasts) {
43
+ background: apply('checkboxList') !important;
26
44
  }
27
45
  }
28
46
  }
@@ -35,9 +53,9 @@
35
53
  height: 40px !important;
36
54
 
37
55
  .mdc-checkbox__native-control:checked~.mdc-checkbox__background {
38
- @include themify($platform_contrasts) {
39
- border-color: apply('checkboxColor') !important;
40
- background-color: apply('checkboxColor') !important;
56
+ @include themify($platform_checkbox_contrasts) {
57
+ border-color: apply('checkboxList') !important;
58
+ background-color: apply('checkboxList') !important;
41
59
  }
42
60
  }
43
61
  }
@@ -46,8 +64,58 @@
46
64
  // Checkbox within an ng-select
47
65
  .ng-select {
48
66
  input[type="checkbox"] {
49
- @include themify($platform_contrasts) {
50
- accent-color: apply('checkboxColor');
67
+ @include themify($platform_checkbox_contrasts) {
68
+ accent-color: apply('checkboxList');
69
+ }
70
+ }
71
+ }
72
+
73
+
74
+ .platform-checkbox {
75
+ display: block;
76
+ position: relative;
77
+ cursor: pointer;
78
+ font-size: 12px;
79
+
80
+ input[type=checkbox] {
81
+ visibility: hidden;
82
+
83
+ &:checked~.checkbox-container {
84
+ @include themify($platform_checkbox_contrasts) {
85
+ background-color: apply('checkboxStandalone');
86
+ }
87
+
88
+ &:after {
89
+ display: block;
90
+ }
91
+ }
92
+ }
93
+
94
+ .checkbox-container {
95
+ position: absolute;
96
+ top: 0;
97
+ left: 0;
98
+ height: 14px;
99
+ width: 14px;
100
+ border-radius: 3px;
101
+ background-color: transparent;
102
+ @include themify($platform_checkbox_contrasts) {
103
+ border: 2px solid apply('checkboxStandalone');
104
+ }
105
+
106
+ &:after {
107
+ content: 'check';
108
+ font-family: 'Material Icons';
109
+ font-weight: 700;
110
+ position: absolute;
111
+ display: none;
112
+ left: -1px;
113
+ top: -3px;
114
+ width: 6px;
115
+ height: 10px;
116
+ @include themify($platform_checkbox_contrasts) {
117
+ color: apply('checkboxStandaloneCheck');
118
+ }
51
119
  }
52
120
  }
53
121
  }
@@ -17,12 +17,14 @@ $platform_form_contrasts: (
17
17
  formSelectShadow: 0 0 0 0.25rem $beacon-dark-blue-700,
18
18
  formHighlightOrange: $beacon-orange-100,
19
19
  formHighlightOrangeText: $beacon-black,
20
+ quillToolbar: $beacon-dark-blue-50,
21
+ quillButton: $beacon-gray-400
20
22
  ),
21
23
  dark: (
22
24
  formText: $beacon-gray-300,
23
25
  formPlaceholderText: $beacon-gray-400,
24
26
  formInputBackground: $beacon-gray-600,
25
- formInputBackgroundHover: $beacon-dark-blue-500,
27
+ formInputBackgroundHover: $beacon-gray-600,
26
28
  formInputBorder: $beacon-gray-300,
27
29
  formInputBorderActive: $beacon-dark-blue-400,
28
30
  formControlSelected: $beacon-dark-blue-400,
@@ -34,6 +36,8 @@ $platform_form_contrasts: (
34
36
  formSelectShadow: none,
35
37
  formHighlightOrange: $beacon-orange-400,
36
38
  formHighlightOrangeText: $beacon-gray-200,
39
+ quillToolbar: $beacon-dark-blue-600,
40
+ quillButton: $beacon-gray-300
37
41
  ),
38
42
  highcontrast: (
39
43
  formText: $beacon-white,
@@ -51,6 +55,8 @@ $platform_form_contrasts: (
51
55
  formSelectShadow: none,
52
56
  formHighlightOrange: $highcontrast-bright-orange-100,
53
57
  formHighlightOrangeText: $beacon-black,
58
+ quillToolbar: $beacon-dark-blue-700,
59
+ quillButton: $beacon-white
54
60
  )
55
61
  );
56
62
 
@@ -35,6 +35,10 @@ $platform_drawer_contrasts: (
35
35
  width: 1180px !important;
36
36
  }
37
37
 
38
+ &--width-full {
39
+ width: calc(100% - 40px) !important;
40
+ }
41
+
38
42
  &__body {
39
43
  padding: 32px;
40
44
  }
@@ -1,17 +1,66 @@
1
1
  quill-editor {
2
2
  &.form-editor {
3
+ width: 100%;
4
+
3
5
  .ql-toolbar {
6
+ border-top-left-radius: 3px;
7
+ border-top-right-radius: 3px;
4
8
  @include themify($platform_form_contrasts) {
5
- background: apply('formInputBackground') !important;
9
+ background: apply('quillToolbar') !important;
6
10
  border-color: apply('formInputBorder') !important;
11
+ border-bottom: none;
12
+
13
+ .ql-picker, .ql-picker:hover {
14
+ .ql-picker-label::before {
15
+ color: apply('formText') !important;
16
+ }
17
+ }
18
+
19
+ .ql-picker-options {
20
+ background: apply('formInputBackground') !important;
21
+ border-color: apply('formInputBorder') !important;
22
+ box-shadow: none;
23
+
24
+ .ql-picker-item, .ql-picker-item:hover {
25
+ color: apply('formText') !important;
26
+ }
27
+ }
28
+
29
+ button .ql-stroke:not(.ql-color-label),
30
+ button:hover .ql-stroke:not(.ql-color-label),
31
+ .ql-picker-label .ql-stroke:not(.ql-color-label),
32
+ .ql-picker-label:hover .ql-stroke:not(.ql-color-label) {
33
+ fill: none;
34
+ stroke: apply('quillButton') !important;
35
+ }
36
+
37
+ button .ql-fill,
38
+ button:hover .ql-fill,
39
+ .ql-picker-label .ql-fill
40
+ .ql-picker-label:hover .ql-fill {
41
+ fill: apply('quillButton') !important;
42
+ stroke: none;
43
+ }
44
+ }
45
+ }
46
+
47
+ &:has(.ql-editor:focus) {
48
+ .ql-toolbar {
49
+ @include themify($platform_form_contrasts) {
50
+ border-top: 1px solid apply('formInputBorderActive') !important;
51
+ border-left: 1px solid apply('formInputBorderActive') !important;
52
+ border-right: 1px solid apply('formInputBorderActive') !important;
53
+ }
7
54
  }
8
- border-top-left-radius: 3px;
9
- border-top-right-radius: 3px;
10
55
  }
11
56
 
12
57
  .ql-container {
13
58
  @include themify($platform_form_contrasts) {
14
59
  border-color: apply('formInputBorder') !important;
60
+
61
+ &:has(.ql-editor:focus) {
62
+ border-color: apply('formInputBorderActive') !important;
63
+ }
15
64
  }
16
65
  border-bottom-left-radius: 3px;
17
66
  border-bottom-right-radius: 3px;
@@ -19,7 +68,15 @@ quill-editor {
19
68
  .ql-editor {
20
69
  @include themify($platform_form_contrasts) {
21
70
  background: apply('formInputBackground') !important;
22
- border-color: 2px solid apply('formInputBorder') !important;
71
+ color: apply('formText') !important;
72
+
73
+ &:hover {
74
+ background: apply('formInputBackgroundHover') !important;
75
+ }
76
+
77
+ &:disabled {
78
+ background: apply('formInputDisabled') !important;
79
+ }
23
80
  }
24
81
  min-height: 100px;
25
82
  }
@@ -6,7 +6,6 @@ $platform_contrasts: (
6
6
  cyanBackground: $beacon-cyan-500,
7
7
  blueBackground: $beacon-dark-blue-300,
8
8
  blueDarkBackground: $beacon-dark-blue-700,
9
- checkboxColor: $beacon-dark-blue-500,
10
9
  nmc: $beacon-orange-600,
11
10
  nmcText: $beacon-white,
12
11
  pmc: $beacon-yellow-500,
@@ -21,7 +20,6 @@ $platform_contrasts: (
21
20
  cyanBackground: $beacon-cyan-600,
22
21
  blueBackground: $beacon-dark-blue-400,
23
22
  blueDarkBackground: $beacon-dark-blue-500,
24
- checkboxColor: $beacon-dark-blue-300,
25
23
  nmc: $beacon-orange-700,
26
24
  nmcText: $beacon-gray-300,
27
25
  pmc: $beacon-yellow-600,
@@ -36,7 +34,6 @@ $platform_contrasts: (
36
34
  cyanBackground: $highcontrast-bright-blue-100,
37
35
  blueBackground: $highcontrast-bright-blue-200,
38
36
  blueDarkBackground: $highcontrast-bright-blue-300,
39
- checkboxColor: $highcontrast-bright-blue-300,
40
37
  nmc: $highcontrast-bright-orange-300,
41
38
  nmcText: $beacon-white,
42
39
  pmc: $highcontrast-bright-yellow-200,