@kms-ngx-ui/presentational 20.5.0 → 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
+ }
@@ -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';
@@ -43,6 +44,7 @@
43
44
  // Organisms
44
45
 
45
46
  @include button-theme();
47
+ @include button-toggle-group-theme();
46
48
  @include back-to-top-theme();
47
49
  @include checkbox-theme();
48
50
  @include color-input-theme();