@design-factory/design-factory 17.0.1 → 17.0.2

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/lib/index.d.ts CHANGED
@@ -55,6 +55,7 @@ export { DfSideNavService } from './angular/sidenav/sidenav.service';
55
55
  export { DfIfMediaDirective } from './angular/mediaqueries/ifMedia.directive';
56
56
  export { DfSideNavModule } from './angular/sidenav/sidenav.module';
57
57
  export { DfSideNavComponent } from './angular/sidenav/sidenav.component';
58
+ export { DfSideNavConfig } from './angular/sidenav/sidenav-config';
58
59
  export { DfNavItemType } from './angular/sidenav/sidenav.service';
59
60
  export { DfSideNavCollapseModule } from './angular/sidenav/dfSideNavCollapse.module';
60
61
  export { DfSideNavCollapseDirective } from './angular/sidenav/dfSideNavCollapse';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@design-factory/design-factory",
3
3
  "description": "Amadeus design system",
4
4
  "license": "BSD-3-Clause",
5
- "version": "17.0.1",
5
+ "version": "17.0.2",
6
6
  "dependencies": {
7
7
  "tslib": "^2.0.0"
8
8
  },
@@ -67,29 +67,3 @@
67
67
  }
68
68
  }
69
69
  }
70
-
71
- @mixin table-variant($state, $background) {
72
- .table-#{$state} {
73
- $text-color: shades-css-var($state, 'bg-color', true);
74
- $hover-bg-color: shades-css-var($state, 'bg-subtle-color');
75
- $text-hover-color: shades-css-var($state, 'bg-subtle-color', true);
76
- $striped-bg-color: shades-css-var($state, 'bg-subtle-hover-color');
77
- $striped-text-color: shades-css-var($state, 'bg-subtle-hover-color', true);
78
- $active-bg: shades-css-var($state, 'bg-subtle-active-color');
79
- $active-text-color: shades-css-var($state, 'bg-subtle-active-color', true);
80
- $border-color: shades-css-var($state, 'border-color');
81
-
82
- --#{$prefix}table-color: #{$text-color};
83
- --#{$prefix}table-bg: #{$background};
84
- --#{$prefix}table-border-color: #{$border-color};
85
- --#{$prefix}table-striped-bg: #{$striped-bg-color};
86
- --#{$prefix}table-striped-color: #{$striped-text-color};
87
- --#{$prefix}table-active-bg: #{$active-bg};
88
- --#{$prefix}table-active-color: #{$active-text-color};
89
- --#{$prefix}table-hover-bg: #{$hover-bg-color};
90
- --#{$prefix}table-hover-color: #{$text-hover-color};
91
-
92
- color: var(--#{$prefix}table-color);
93
- border-color: var(--#{$prefix}table-border-color);
94
- }
95
- }
@@ -695,7 +695,7 @@ $lights-mapping: (
695
695
 
696
696
  $whites-mapping: (
697
697
  'bg-color': var(--#{$prefix}white-50),
698
- 'bg-hover-color': var(--#{$prefix}white-100),
698
+ 'bg-hover-color': var(--#{$prefix}white-200),
699
699
  'bg-active-color': var(--#{$prefix}white-200),
700
700
  'inert-color': var(--#{$prefix}white-50),
701
701
  'bg-subtle-color': var(--#{$prefix}white-50),
@@ -1059,9 +1059,16 @@ $shade-colors: map.merge(
1059
1059
  $map1: $shade-colors,
1060
1060
  $map2: $pacifics
1061
1061
  );
1062
+
1063
+ // Grays map does not include gray prefix in the color name by default
1064
+ $grays-names: ();
1065
+ @each $colorName, $colorValue in $grays {
1066
+ $grays-names: map.set($grays-names, gray-#{$colorName}, $colorValue);
1067
+ }
1068
+
1062
1069
  $shade-colors: map.merge(
1063
1070
  $map1: $shade-colors,
1064
- $map2: $grays
1071
+ $map2: $grays-names
1065
1072
  );
1066
1073
  $shade-colors: map.merge(
1067
1074
  $map1: $shade-colors,
@@ -2166,7 +2173,7 @@ $accordion-icon-active-color: $accordion-icon-color !default;
2166
2173
  // Tooltips
2167
2174
 
2168
2175
  // scss-docs-start tooltip-variables
2169
- $tooltip-font-size: 1em * map.get($df-size-ratios, 'sm') !default; // $font-size-sm !default;
2176
+ // $tooltip-font-size: $font-size-sm !default;
2170
2177
  // $tooltip-max-width: 200px !default;
2171
2178
  // $tooltip-color: var(--#{$prefix}body-bg) !default;
2172
2179
  $tooltip-bg: var(--#{$prefix}gray-600) !default;
@@ -1,8 +1,3 @@
1
- // stylelint-disable scss/dollar-variable-pattern
2
- $shade-colors-rgb: map-loop($shade-colors, to-rgb, "$value") !default;
3
- $shade-colors-text: map-loop($shade-colors, color-contrast, "$value") !default;
4
- $shade-colors-text-rgb: map-loop($shade-colors-text, to-rgb, "$value") !default;
5
-
6
1
  #{$df-css-namespace-selector} {
7
2
  --#{$prefix}dark-primary: #{$dark-primary};
8
3
  --#{$prefix}yellow-rgb: #{to-rgb($yellow)};
@@ -25,4 +20,4 @@ $shade-colors-text-rgb: map-loop($shade-colors-text, to-rgb, "$value") !default;
25
20
  @each $color, $value in $shade-colors-text-rgb {
26
21
  --#{$prefix}#{$color}-color-rgb: #{$value};
27
22
  }
28
- }
23
+ }
@@ -32,7 +32,7 @@ $df-datepicker-day-hover-color: color-contrast($df-datepicker-day-hover-bg-color
32
32
  $df-datepicker-day-hover-text-decoration: underline !default; // why underline here add the reason with UX
33
33
  $df-datepicker-day-focus-outline-width: 0.2rem !default;
34
34
  $df-datepicker-day-focus-border: ($df-datepicker-day-focus-outline-width + 0.05rem) solid
35
- rgba($input-focus-border-color, 0.5) !default;
35
+ rgba(to-rgb($input-focus-border-color), 0.5) !default;
36
36
  $df-datepicker-day-focus-active-z-index: 0 !default;
37
37
  $df-datepicker-day-focus-active-border-color: rgba($white, 0.5) !default;
38
38
  $df-datepicker-day-focus-active-border-z-index: -1 !default;
@@ -1,5 +1,10 @@
1
1
  @use 'sass:map';
2
2
 
3
+ .form-select,
4
+ .ng-select {
5
+ --#{$prefix}form-select-focus-border-color: #{$form-select-focus-border-color};
6
+ }
7
+
3
8
  /* Native select */
4
9
  .form-select {
5
10
  --#{$prefix}box-shadow-color: #{$input-focus-border-color};
@@ -13,14 +18,14 @@
13
18
  --#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
14
19
  } @else {
15
20
  --#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
16
- --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')}
21
+ --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')};
17
22
  }
18
23
  }
19
24
  }
20
25
 
21
26
  &:focus {
22
27
  // override
23
- border-color: $input-focus-border-color;
28
+ border-color: var(--#{$prefix}form-select-focus-border-color);
24
29
  }
25
30
 
26
31
  &:not([disabled]) {
@@ -40,13 +45,13 @@
40
45
  &:not([multiple]):disabled {
41
46
  // override
42
47
  @include ltr {
43
- background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat right $form-select-padding-x
44
- center;
48
+ background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat right
49
+ $form-select-padding-x center;
45
50
  background-size: $form-select-bg-size;
46
51
  }
47
52
  @include rtl {
48
- background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat left $form-select-padding-x
49
- center;
53
+ background: $form-select-disabled-bg var(--#{$prefix}select-indicator-disabled) no-repeat left
54
+ $form-select-padding-x center;
50
55
  background-size: $form-select-bg-size;
51
56
  }
52
57
  }
@@ -172,9 +177,9 @@
172
177
  --#{$prefix}box-shadow-color: #{$input-focus-border-color};
173
178
  } @else {
174
179
  --#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
175
- --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')}
180
+ --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity('primary', 'border-color')};
176
181
  }
177
-
182
+
178
183
  &.form-control {
179
184
  // add
180
185
  padding: 0;
@@ -278,7 +283,7 @@
278
283
  }
279
284
  }
280
285
  }
281
- &.df-ng-select-readonly {
286
+ &.df-ng-select-readonly {
282
287
  // add
283
288
  > .ng-select-container {
284
289
  background-color: var(--#{$prefix}select-readonly-bg);
@@ -303,7 +308,7 @@
303
308
  --#{$prefix}box-shadow-color: #{shades-css-var($colorName, 'border-color')};
304
309
  } @else {
305
310
  --#{$prefix}border-color-opacity: #{$input-btn-focus-color-opacity};
306
- --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')}
311
+ --#{$prefix}box-shadow-color: #{shades-rgba-css-var-with-opacity($colorName, 'border-color')};
307
312
  }
308
313
  $color: map.get($data, color);
309
314
  $box-shadow: $df-select-input-box-shadow;
@@ -564,7 +569,6 @@
564
569
  }
565
570
  }
566
571
 
567
-
568
572
  .ng-spinner-zone {
569
573
  padding-right: 0.3125rem; // todo check when feature is needed
570
574
  padding-top: 0.3125rem; // todo check when feature is needed
@@ -797,4 +801,4 @@
797
801
  }
798
802
  }
799
803
  }
800
- }
804
+ }
@@ -22,12 +22,8 @@
22
22
  --#{$prefix}tabs-secondary-active-border-right: #{$df-tabs-secondary-active-border-right};
23
23
  --#{$prefix}tabs-secondary-active-border-bottom: #{$df-tabs-secondary-active-border-bottom};
24
24
  --#{$prefix}tabs-secondary-active-margin-bottom: #{$df-tabs-secondary-active-margin-bottom};
25
-
26
- --#{$prefix}tabs-content-tab-pane-padding: #{$df-tabs-content-tab-pane-padding};
27
- --#{$prefix}tabs-content-border-style: #{$df-tabs-content-border-style};
28
- --#{$prefix}tabs-content-border-color: #{$df-tabs-content-border-color};
29
- --#{$prefix}tabs-content-border-width: #{$df-tabs-content-border-width};
30
25
  --#{$prefix}tabs-item-active-font-weight: #{$df-tabs-item-active-font-weight};
26
+ --#{$prefix}tabs-cursor-disabled: #{$df-tabs-cursor-disabled};
31
27
 
32
28
  @if variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
33
29
  --#{$prefix}box-shadow-color: var(--#{$prefix}nav-link-color);
@@ -41,7 +37,8 @@
41
37
  padding-top: var(--#{$prefix}tabs-padding-y); // add
42
38
  padding-bottom: var(--#{$prefix}tabs-padding-y); // add
43
39
 
44
- &.active { // add
40
+ &.active {
41
+ // add
45
42
  font-weight: var(--#{$prefix}tabs-item-active-font-weight);
46
43
  }
47
44
 
@@ -80,6 +77,18 @@
80
77
  }
81
78
  }
82
79
 
80
+ .nav-link.disabled,
81
+ .nav-link:disabled {
82
+ pointer-events: auto;
83
+ cursor: var(--#{$prefix}tabs-cursor-disabled);
84
+
85
+ &:focus {
86
+ color: var(--df-nav-link-disabled-color);
87
+ outline: none;
88
+ box-shadow: none;
89
+ }
90
+ }
91
+
83
92
  .nav-item + .nav-item {
84
93
  // add
85
94
  margin-left: var(--#{$prefix}tabs-between-item-margin); // add
@@ -94,6 +103,16 @@
94
103
  }
95
104
  }
96
105
 
106
+ .tab-content {
107
+ --#{$prefix}tabs-content-tab-pane-padding: #{$df-tabs-content-tab-pane-padding};
108
+ --#{$prefix}tabs-content-border-style: #{$df-tabs-content-border-style};
109
+ --#{$prefix}tabs-content-border-color: #{$df-tabs-content-border-color};
110
+ --#{$prefix}tabs-content-border-width: #{$df-tabs-content-border-width};
111
+ > .tab-pane {
112
+ padding: var(--#{$prefix}tabs-content-tab-pane-padding); //add
113
+ }
114
+ }
115
+
97
116
  %secondary {
98
117
  .nav-link {
99
118
  border-bottom: var(--#{$prefix}tabs-secondary-border-bottom); // add
@@ -143,12 +162,6 @@
143
162
  @extend %secondary;
144
163
  }
145
164
 
146
- .tab-content {
147
- > .tab-pane {
148
- padding: var(--#{$prefix}tabs-content-tab-pane-padding); //add
149
- }
150
- }
151
-
152
165
  %secondary-content {
153
166
  border-style: var(--#{$prefix}tabs-content-border-style); //add
154
167
  border-color: var(--#{$prefix}tabs-content-border-color); //add
@@ -161,12 +174,13 @@
161
174
  }
162
175
 
163
176
  .nav {
164
- &.nav-pills[role=tablist] { // role=tablist is to target only tabset as pill and not scrollspy
165
- .nav-link {
166
- &:focus {
167
- outline: 0;
168
- box-shadow: $df-tabs-focus-box-shadow;
177
+ &.nav-pills[role='tablist'] {
178
+ // role=tablist is to target only tabset as pill and not scrollspy
179
+ .nav-link {
180
+ &:focus {
181
+ outline: 0;
182
+ box-shadow: $df-tabs-focus-box-shadow;
183
+ }
169
184
  }
170
185
  }
171
- }
172
186
  }
@@ -7,6 +7,7 @@ $df-tabs-hover-border-bottom: 2px solid transparent !default;
7
7
  $df-tabs-hover-text-decoration: underline !default;
8
8
  $df-tabs-hover-bg-color: $df-hover-bg-color !default;
9
9
  $df-tabs-disabled-text-decoration: none !default;
10
+ $df-tabs-cursor-disabled: var(--#{$prefix}disabled-cursor) !default;
10
11
  // TODO rem instead of px
11
12
  $df-tabs-between-item-margin: 3px !default;
12
13
  $df-tabs-active-border-bottom: 3px solid shades-css-var('primary', 'inert-color') !default;