@kms-ngx-ui/presentational 20.4.4 → 20.8.0

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.
@@ -0,0 +1,51 @@
1
+ @mixin button-toggle-group-theme() {
2
+ .kms-button-toggle-group {
3
+ display: inline-flex;
4
+ gap: 0;
5
+ padding: 3px;
6
+ background: var(--kms-tertiary-800, #f4f3f2);
7
+ border: 1px solid var(--kms-tertiary-600, #e3e1df);
8
+ border-radius: 6px;
9
+
10
+ &--rounded {
11
+ border-radius: 24px;
12
+ }
13
+
14
+ &--disabled {
15
+ opacity: 0.5;
16
+ pointer-events: none;
17
+ }
18
+
19
+ // Inactive: light gray text + icon, transparent bg
20
+ &__item {
21
+ --kms-tertiary: var(--kms-tertiary-400, #97938f);
22
+
23
+ .kms-button {
24
+ border-radius: 4px !important;
25
+ min-width: unset;
26
+ padding: 0 14px;
27
+ font-size: 12px;
28
+ font-weight: 600;
29
+ line-height: 30px;
30
+ box-shadow: none !important;
31
+ background-color: transparent !important;
32
+ --mat-button-text-label-text-color: var(--kms-tertiary-400, #97938f) !important;
33
+ }
34
+ }
35
+
36
+ // Active: white bg, dark text, secondary (blue) icon
37
+ &__item--active {
38
+ --kms-tertiary: var(--kms-secondary, #48acd1);
39
+
40
+ .kms-button {
41
+ background-color: #fff !important;
42
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
43
+ --mat-button-text-label-text-color: var(--kms-tertiary-100, #43403e) !important;
44
+ }
45
+ }
46
+
47
+ &--rounded &__item .kms-button {
48
+ border-radius: 20px !important;
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,41 @@
1
+ @mixin tab-group-theme() {
2
+ kms-tab-group {
3
+ display: block;
4
+
5
+ .mat-mdc-tab {
6
+ flex-grow: 0 !important;
7
+ --mat-tab-header-label-text-tracking: normal;
8
+ }
9
+
10
+ .mat-mdc-tab-body .mat-mdc-tab-body-content {
11
+ overflow-y: hidden;
12
+ }
13
+
14
+ .mat-mdc-tab-body-wrapper {
15
+ margin-top: $base-spacing * 2;
16
+ }
17
+
18
+ .mat-mdc-tab.mdc-tab--active .mdc-tab__text-label,
19
+ .mdc-tab-indicator--active {
20
+ color: var(--kms-tab-active-color, var(--kms-accent));
21
+ --mat-tab-header-active-hover-indicator-color: var(
22
+ --kms-tab-active-color,
23
+ var(--kms-accent)
24
+ );
25
+ --mdc-tab-indicator-active-indicator-color: var(
26
+ --kms-tab-active-color,
27
+ var(--kms-accent)
28
+ );
29
+ }
30
+
31
+ &__count {
32
+ font-size: 0.85em;
33
+ font-weight: 400;
34
+ margin-left: 2px;
35
+
36
+ .mdc-tab--active & {
37
+ color: var(--kms-tab-active-color, var(--kms-accent));
38
+ }
39
+ }
40
+ }
41
+ }
@@ -23,6 +23,7 @@
23
23
  @import '../lib/ui/atoms/slider/slider.component';
24
24
  // Molecules
25
25
  @import '../lib/ui/molecules/button/button.component';
26
+ @import '../lib/ui/molecules/button-toggle-group/button-toggle-group.component';
26
27
  @import '../lib/ui/molecules/color-input/color-input.component';
27
28
  @import '../lib/ui/molecules/confirmation-dialog/confirmation-dialog.component';
28
29
  @import '../lib/ui/molecules/file-input/file-input.component';
@@ -38,10 +39,12 @@
38
39
  @import '../lib/ui/molecules/text-input/text-input.component';
39
40
  @import '../lib/ui/molecules/date-input/date-input.component';
40
41
  @import '../lib/ui/molecules/flyout/flyout.component';
42
+ @import '../lib/ui/molecules/tab-group/tab-group.component';
41
43
 
42
44
  // Organisms
43
45
 
44
46
  @include button-theme();
47
+ @include button-toggle-group-theme();
45
48
  @include back-to-top-theme();
46
49
  @include checkbox-theme();
47
50
  @include color-input-theme();
@@ -66,3 +69,4 @@
66
69
  @include text-input-theme();
67
70
  @include date-input-theme();
68
71
  @include flyout-theme();
72
+ @include tab-group-theme();