@beacon-interactive-systems-llc/beacon-platform-ui 17.6.1 → 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.1",
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
  }
@@ -14,13 +14,17 @@ $platform_form_contrasts: (
14
14
  formInputDisabled: $beacon-gray-100,
15
15
  formSelectOpened: $beacon-blue-100,
16
16
  formSelectOptionHover: $beacon-dark-blue-200,
17
- formSelectShadow: 0 0 0 0.25rem $beacon-dark-blue-700
17
+ formSelectShadow: 0 0 0 0.25rem $beacon-dark-blue-700,
18
+ formHighlightOrange: $beacon-orange-100,
19
+ formHighlightOrangeText: $beacon-black,
20
+ quillToolbar: $beacon-dark-blue-50,
21
+ quillButton: $beacon-gray-400
18
22
  ),
19
23
  dark: (
20
24
  formText: $beacon-gray-300,
21
25
  formPlaceholderText: $beacon-gray-400,
22
26
  formInputBackground: $beacon-gray-600,
23
- formInputBackgroundHover: $beacon-dark-blue-500,
27
+ formInputBackgroundHover: $beacon-gray-600,
24
28
  formInputBorder: $beacon-gray-300,
25
29
  formInputBorderActive: $beacon-dark-blue-400,
26
30
  formControlSelected: $beacon-dark-blue-400,
@@ -29,7 +33,11 @@ $platform_form_contrasts: (
29
33
  formInputDisabled: $beacon-gray-500,
30
34
  formSelectOpened: $beacon-blue-100,
31
35
  formSelectOptionHover: $beacon-dark-blue-400,
32
- formSelectShadow: none
36
+ formSelectShadow: none,
37
+ formHighlightOrange: $beacon-orange-400,
38
+ formHighlightOrangeText: $beacon-gray-200,
39
+ quillToolbar: $beacon-dark-blue-600,
40
+ quillButton: $beacon-gray-300
33
41
  ),
34
42
  highcontrast: (
35
43
  formText: $beacon-white,
@@ -44,7 +52,11 @@ $platform_form_contrasts: (
44
52
  formInputDisabled: $beacon-gray-600,
45
53
  formSelectOpened: $highcontrast-bright-blue-100,
46
54
  formSelectOptionHover: $highcontrast-bright-blue-300,
47
- formSelectShadow: none
55
+ formSelectShadow: none,
56
+ formHighlightOrange: $highcontrast-bright-orange-100,
57
+ formHighlightOrangeText: $beacon-black,
58
+ quillToolbar: $beacon-dark-blue-700,
59
+ quillButton: $beacon-white
48
60
  )
49
61
  );
50
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
  }
@@ -61,15 +61,44 @@ $min-dropdown-panel-width: 215px;
61
61
 
62
62
  &.ng-select-multiple .ng-value {
63
63
  @include font-weight--semibold;
64
- @include themify($platform_filter_contrasts) {
65
- background: apply('filterDropdownFocus') !important;
66
- color: apply('filterDropdownText') !important;
64
+ border-radius: 8px !important;
65
+ @include themify($platform_form_contrasts) {
66
+ background: apply('formHighlightOrange') !important;
67
+ color: apply('formHighlightOrangeText') !important;
68
+ }
69
+
70
+ .ng-value-icon {
71
+ z-index: 1001;
72
+ padding-left: 0px !important;
73
+ &:hover {
74
+ @include themify($platform_form_contrasts) {
75
+ background: transparent !important;
76
+ color: apply('formHighlightOrangeText') !important;
77
+ }
78
+ }
79
+
80
+ mat-icon {
81
+ width: 14px;
82
+ height: 14px;
83
+ font-size: 14px;
84
+ position: relative;
85
+ top: 0.2rem;
86
+ }
67
87
  }
68
88
  }
69
89
 
70
90
  // For use with platform-selection-list: makes each select as wide as its placeholder text
71
91
  &.platform-filter-select {
72
92
  border-radius: 4px;
93
+
94
+ &.ng-select-multiple .ng-value {
95
+ @include font-weight--semibold;
96
+ @include themify($platform_filter_contrasts) {
97
+ background: apply('filterDropdownFocus') !important;
98
+ color: apply('filterDropdownText') !important;
99
+ }
100
+ }
101
+
73
102
  .ng-select-container {
74
103
  background: transparent !important;
75
104
  &.ng-has-value {
@@ -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,
@@ -69,20 +69,26 @@ $platform_notification_contrasts: (
69
69
  @include toast-icon;
70
70
  }
71
71
 
72
- &.has-message::before {
73
- top: 12px;
72
+ .toast-close-button {
73
+ @include themify($platform_notification_contrasts) {
74
+ color: apply('notificationClose');
75
+ }
76
+ font-size: 36px;
77
+ font-weight: lighter;
78
+ position: absolute;
79
+ right: 10px;
80
+ top: 0px;
74
81
  }
75
- }
76
82
 
77
- .toast-close-button {
78
- @include themify($platform_notification_contrasts) {
79
- color: apply('notificationClose');
83
+ &.has-message {
84
+ &::before {
85
+ top: 12px;
86
+ }
87
+
88
+ .toast-close-button {
89
+ top: 11px;
90
+ }
80
91
  }
81
- font-size: 36px;
82
- font-weight: lighter;
83
- position: absolute;
84
- right: 10px;
85
- top: 11px;
86
92
  }
87
93
 
88
94
  .toast-success {