ecabs-components 0.0.1

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.
Files changed (125) hide show
  1. package/README.md +24 -0
  2. package/esm2020/ecabs-components.mjs +5 -0
  3. package/esm2020/lib/base/directives/digits-only.directive.mjs +130 -0
  4. package/esm2020/lib/base/element-base.mjs +100 -0
  5. package/esm2020/lib/base/element-wrapper/element-wrapper.component.mjs +53 -0
  6. package/esm2020/lib/base/element-wrapper/element-wrapper.module.mjs +52 -0
  7. package/esm2020/lib/base/hint/hint.component.mjs +21 -0
  8. package/esm2020/lib/base/hint/hint.module.mjs +20 -0
  9. package/esm2020/lib/base/validation/validation.component.mjs +158 -0
  10. package/esm2020/lib/base/validation/validation.module.mjs +20 -0
  11. package/esm2020/lib/ecabs-buttons/ecabs-buttons.component.mjs +65 -0
  12. package/esm2020/lib/ecabs-buttons/ecabs-buttons.module.mjs +21 -0
  13. package/esm2020/lib/ecabs-input/ecabs-input.component.mjs +81 -0
  14. package/esm2020/lib/ecabs-input/ecabs-input.module.mjs +22 -0
  15. package/esm2020/lib/ecabs-loading/ecabs-loading.component.mjs +24 -0
  16. package/esm2020/lib/ecabs-loading/ecabs-loading.module.mjs +19 -0
  17. package/esm2020/lib/ecabs-loading/spinner/spinner.component.mjs +16 -0
  18. package/esm2020/public-api.mjs +8 -0
  19. package/fesm2015/ecabs-components.mjs +744 -0
  20. package/fesm2015/ecabs-components.mjs.map +1 -0
  21. package/fesm2020/ecabs-components.mjs +742 -0
  22. package/fesm2020/ecabs-components.mjs.map +1 -0
  23. package/index.d.ts +5 -0
  24. package/lib/base/directives/digits-only.directive.d.ts +26 -0
  25. package/lib/base/directives/digits-only.directive.ts +129 -0
  26. package/lib/base/element-base.d.ts +28 -0
  27. package/lib/base/element-base.ts +72 -0
  28. package/lib/base/element-wrapper/element-wrapper.component.d.ts +19 -0
  29. package/lib/base/element-wrapper/element-wrapper.component.html +30 -0
  30. package/lib/base/element-wrapper/element-wrapper.component.ts +33 -0
  31. package/lib/base/element-wrapper/element-wrapper.module.d.ts +16 -0
  32. package/lib/base/element-wrapper/element-wrapper.module.ts +30 -0
  33. package/lib/base/hint/hint.component.d.ts +8 -0
  34. package/lib/base/hint/hint.component.html +1 -0
  35. package/lib/base/hint/hint.component.scss +0 -0
  36. package/lib/base/hint/hint.component.ts +12 -0
  37. package/lib/base/hint/hint.module.d.ts +10 -0
  38. package/lib/base/hint/hint.module.ts +13 -0
  39. package/lib/base/validation/validation.component.d.ts +22 -0
  40. package/lib/base/validation/validation.component.html +8 -0
  41. package/lib/base/validation/validation.component.scss +0 -0
  42. package/lib/base/validation/validation.component.ts +171 -0
  43. package/lib/base/validation/validation.module.d.ts +10 -0
  44. package/lib/base/validation/validation.module.ts +12 -0
  45. package/lib/ecabs-buttons/ecabs-buttons.component.d.ts +21 -0
  46. package/lib/ecabs-buttons/ecabs-buttons.component.html +18 -0
  47. package/lib/ecabs-buttons/ecabs-buttons.component.ts +54 -0
  48. package/lib/ecabs-buttons/ecabs-buttons.module.d.ts +11 -0
  49. package/lib/ecabs-buttons/ecabs-buttons.module.ts +13 -0
  50. package/lib/ecabs-input/ecabs-input.component.d.ts +27 -0
  51. package/lib/ecabs-input/ecabs-input.component.html +26 -0
  52. package/lib/ecabs-input/ecabs-input.component.ts +83 -0
  53. package/lib/ecabs-input/ecabs-input.module.d.ts +12 -0
  54. package/lib/ecabs-input/ecabs-input.module.ts +14 -0
  55. package/lib/ecabs-loading/ecabs-loading.component.d.ts +8 -0
  56. package/lib/ecabs-loading/ecabs-loading.component.html +7 -0
  57. package/lib/ecabs-loading/ecabs-loading.component.spec.ts +24 -0
  58. package/lib/ecabs-loading/ecabs-loading.component.ts +11 -0
  59. package/lib/ecabs-loading/ecabs-loading.module.d.ts +9 -0
  60. package/lib/ecabs-loading/ecabs-loading.module.ts +11 -0
  61. package/lib/ecabs-loading/spinner/spinner.component.d.ts +6 -0
  62. package/lib/ecabs-loading/spinner/spinner.component.html +5 -0
  63. package/lib/ecabs-loading/spinner/spinner.component.scss +61 -0
  64. package/lib/ecabs-loading/spinner/spinner.component.spec.ts +24 -0
  65. package/lib/ecabs-loading/spinner/spinner.component.ts +11 -0
  66. package/package.json +33 -0
  67. package/public-api.d.ts +7 -0
  68. package/public-api.ts +7 -0
  69. package/styles/material/_theme.scss +99 -0
  70. package/styles/material/overrides/_autocomplete.scss +11 -0
  71. package/styles/material/overrides/_button.scss +81 -0
  72. package/styles/material/overrides/_card.scss +17 -0
  73. package/styles/material/overrides/_chip.scss +108 -0
  74. package/styles/material/overrides/_datepicker.scss +145 -0
  75. package/styles/material/overrides/_dialog.scss +8 -0
  76. package/styles/material/overrides/_divider.scss +3 -0
  77. package/styles/material/overrides/_expansion.scss +31 -0
  78. package/styles/material/overrides/_form.scss +47 -0
  79. package/styles/material/overrides/_icon.scss +3 -0
  80. package/styles/material/overrides/_menu.scss +3 -0
  81. package/styles/material/overrides/_paginator.scss +0 -0
  82. package/styles/material/overrides/_phone.scss +24 -0
  83. package/styles/material/overrides/_select.scss +36 -0
  84. package/styles/material/overrides/_tab.scss +23 -0
  85. package/styles/material/overrides/_table.scss +12 -0
  86. package/styles/material/overrides/_toaster.scss +38 -0
  87. package/styles/material/overrides/_toggle.scss +10 -0
  88. package/styles/material/overrides/_tooltip.scss +3 -0
  89. package/styles/material/overrides/index.scss +19 -0
  90. package/styles/scss/base/_heading.scss +17 -0
  91. package/styles/scss/base/_normalize.scss +78 -0
  92. package/styles/scss/base/index.scss +2 -0
  93. package/styles/scss/modules/_autocomplete.scss +29 -0
  94. package/styles/scss/modules/_button.scss +221 -0
  95. package/styles/scss/modules/_card.scss +23 -0
  96. package/styles/scss/modules/_chip.scss +56 -0
  97. package/styles/scss/modules/_datepicker.scss +422 -0
  98. package/styles/scss/modules/_dialog.scss +14 -0
  99. package/styles/scss/modules/_divider.scss +3 -0
  100. package/styles/scss/modules/_form.scss +221 -0
  101. package/styles/scss/modules/_icon.scss +30 -0
  102. package/styles/scss/modules/_img.scss +32 -0
  103. package/styles/scss/modules/_legend.scss +64 -0
  104. package/styles/scss/modules/_list.scss +17 -0
  105. package/styles/scss/modules/_map.scss +112 -0
  106. package/styles/scss/modules/_percentage.scss +33 -0
  107. package/styles/scss/modules/_phone.scss +21 -0
  108. package/styles/scss/modules/_select.scss +21 -0
  109. package/styles/scss/modules/_statuses.scss +31 -0
  110. package/styles/scss/modules/_tab.scss +16 -0
  111. package/styles/scss/modules/_table.scss +107 -0
  112. package/styles/scss/modules/_timepicker.scss +96 -0
  113. package/styles/scss/modules/_toaster.scss +53 -0
  114. package/styles/scss/modules/_tooltip.scss +7 -0
  115. package/styles/scss/modules/drag-drop.scss +31 -0
  116. package/styles/scss/modules/index.scss +23 -0
  117. package/styles/scss/utilities/_colors.scss +52 -0
  118. package/styles/scss/utilities/_fonts.scss +26 -0
  119. package/styles/scss/utilities/_functions.scss +27 -0
  120. package/styles/scss/utilities/_helpers.scss +5 -0
  121. package/styles/scss/utilities/_mixins.scss +65 -0
  122. package/styles/scss/utilities/_variables.scss +19 -0
  123. package/styles/scss/utilities/index.scss +6 -0
  124. package/styles/styles.scss +5 -0
  125. package/test.ts +27 -0
@@ -0,0 +1,11 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'ecabs-loading-spinner',
5
+ templateUrl: './spinner.component.html',
6
+ styleUrls: ['./spinner.component.scss'],
7
+ changeDetection: ChangeDetectionStrategy.OnPush,
8
+ })
9
+ export class EcabsSpinnerComponent {
10
+ @Input() size: 'large' | 'medium' | 'tiny' = 'medium';
11
+ }
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "ecabs-components",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^14.2.0",
6
+ "@angular/core": "^14.2.0",
7
+ "@angular/cdk": "~13.0.0-next.7+89.sha-a662737",
8
+ "@angular/material": "~13.0.0-next.7+89.sha-a662737"
9
+ },
10
+ "dependencies": {
11
+ "tslib": "^2.3.0"
12
+ },
13
+ "module": "fesm2015/ecabs-components.mjs",
14
+ "es2020": "fesm2020/ecabs-components.mjs",
15
+ "esm2020": "esm2020/ecabs-components.mjs",
16
+ "fesm2020": "fesm2020/ecabs-components.mjs",
17
+ "fesm2015": "fesm2015/ecabs-components.mjs",
18
+ "typings": "index.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "esm2020": "./esm2020/ecabs-components.mjs",
26
+ "es2020": "./fesm2020/ecabs-components.mjs",
27
+ "es2015": "./fesm2015/ecabs-components.mjs",
28
+ "node": "./fesm2015/ecabs-components.mjs",
29
+ "default": "./fesm2020/ecabs-components.mjs"
30
+ }
31
+ },
32
+ "sideEffects": false
33
+ }
@@ -0,0 +1,7 @@
1
+ export * from './lib/ecabs-buttons/ecabs-buttons.module';
2
+ export * from './lib/ecabs-buttons/ecabs-buttons.component';
3
+ export * from './lib/ecabs-loading/ecabs-loading.module';
4
+ export * from './lib/ecabs-loading/ecabs-loading.component';
5
+ export * from './lib/ecabs-loading/spinner/spinner.component';
6
+ export * from './lib/ecabs-input/ecabs-input.component';
7
+ export * from './lib/ecabs-input/ecabs-input.module';
package/public-api.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './lib/ecabs-buttons/ecabs-buttons.module';
2
+ export * from './lib/ecabs-buttons/ecabs-buttons.component';
3
+ export * from './lib/ecabs-loading/ecabs-loading.module';
4
+ export * from './lib/ecabs-loading/ecabs-loading.component';
5
+ export * from './lib/ecabs-loading/spinner/spinner.component';
6
+ export * from './lib/ecabs-input/ecabs-input.component';
7
+ export * from './lib/ecabs-input/ecabs-input.module';
@@ -0,0 +1,99 @@
1
+ // Custom Theming for Angular Material
2
+ // For more information: https://material.angular.io/guide/theming
3
+ @import '@angular/material/theming';
4
+
5
+ // Plus imports for other components in your app.
6
+ @import '../scss/utilities/index';
7
+ @import './overrides/index';
8
+
9
+ // Include the common styles for Angular Material. We include this here so that you only
10
+ // have to load a single css file for Angular Material in your app.
11
+ // Be sure that you only ever include this mixin once!
12
+ @include mat-core();
13
+
14
+ $mat-primary: (
15
+ 100: var(--color-brand-dark),
16
+ 700: var(--color-brand-dark),
17
+ A700: var(--color-brand-dark),
18
+ contrast: (
19
+ A700: $light-primary-text,
20
+ ),
21
+ );
22
+
23
+ $mat-accent: (
24
+ A700: var(--color-brand-light),
25
+ contrast: (
26
+ A700: $light-primary-text,
27
+ ),
28
+ );
29
+
30
+ $mat-secondary: (
31
+ 100: var(--color-brand-dark),
32
+ 700: var(--color-brand-dark),
33
+ A700: var(--color-brand-dark),
34
+ contrast: (
35
+ A700: $light-primary-text,
36
+ ),
37
+ );
38
+
39
+ $mat-warning: (
40
+ 100: var(--color-error),
41
+ 500: var(--color-error),
42
+ 700: var(--color-error),
43
+ A700: var(--color-error),
44
+ contrast: (
45
+ A700: $light-primary-text,
46
+ ),
47
+ );
48
+
49
+ // Define the palettes for your theme using the Material Design palettes available in palette.scss
50
+ // (imported above). For each palette, you can optionally specify a default, lighter, and darker
51
+ // hue. Available color palettes: https://material.io/design/color/
52
+ $cuorium-primary: mat-palette($mat-primary, A700);
53
+ $cuorium-accent: mat-palette($mat-secondary, A700);
54
+
55
+ // The warn palette is optional (defaults to red).
56
+ $cuorium-warn: mat-palette($mat-warning);
57
+
58
+ // Create the theme object. A theme consists of configurations for individual
59
+ // theming systems such as "color" or "typography".
60
+ $cuorium-theme: mat-light-theme(
61
+ (
62
+ color: (
63
+ primary: $cuorium-primary,
64
+ accent: $cuorium-accent,
65
+ warn: $cuorium-warn,
66
+ ),
67
+ )
68
+ );
69
+
70
+ // Include theme styles for core and each component used in your app.
71
+ // Alternatively, you can import and @include the theme mixins for each component
72
+ // that you are using.
73
+ @include angular-material-theme($cuorium-theme);
74
+
75
+ // Define a custom typography config that overrides the font-family as well as the
76
+ // `headlines` and `body-1` levels.
77
+ $custom-typography: mat-typography-config(
78
+ $font-family: $font-family-primary,
79
+ $body-1: mat-typography-level($font-size-base, $base-line-height, $font-weight-regular),
80
+ $input: mat-typography-level($font-size-base, $base-line-height, $font-weight-regular),
81
+ $headline: mat-typography-level($font-heading-lg, $base-line-height, $font-weight-medium),
82
+ $title: mat-typography-level($font-heading-base, $base-line-height, $font-weight-medium),
83
+ $subheading-2: mat-typography-level($font-heading-md, $base-line-height, $font-weight-medium),
84
+ $subheading-1: mat-typography-level($font-heading-sm, $base-line-height, $font-weight-medium),
85
+ );
86
+
87
+ @include angular-material-typography($custom-typography);
88
+
89
+ .mat-body p,
90
+ .mat-body-1 p,
91
+ .mat-typography p {
92
+ margin: inherit;
93
+ }
94
+
95
+ mat-progress-bar {
96
+ .mat-progress-bar-buffer {
97
+ background-color: var(--color-brand-300) !important;
98
+ }
99
+ }
@@ -0,0 +1,11 @@
1
+ .mat-autocomplete-panel {
2
+ margin-top: 0.2rem;
3
+
4
+ &, &.mat-autocomplete-panel:not([class*=mat-elevation-z]) {
5
+ @extend .autocomplete-ui;
6
+ }
7
+
8
+ .mat-option {
9
+ @extend .autocomplete-ui--item;
10
+ }
11
+ }
@@ -0,0 +1,81 @@
1
+ button,
2
+ a {
3
+ &.mat-button,
4
+ &.mat-stroked-button,
5
+ &.mat-raised-button,
6
+ &.mat-flat-button {
7
+ @extend .btn;
8
+
9
+ &.btn__group--item,
10
+ &.btn {
11
+ @extend .btn__group--item;
12
+ }
13
+
14
+ .mat-icon {
15
+ color: inherit;
16
+ }
17
+ }
18
+
19
+ &.mat-button.mat-primary,
20
+ &.mat-flat-button.mat-primary {
21
+ @extend .btn__primary;
22
+ }
23
+
24
+ &.mat-stroked-button.mat-primary {
25
+ @extend .btn__primary--outline;
26
+
27
+ border: 0;
28
+ }
29
+
30
+ &.mat-button.mat-accent,
31
+ &.mat-flat-button.mat-accent {
32
+ @extend .btn__secondary;
33
+ }
34
+
35
+ &.mat-stroked-button.mat-accent {
36
+ @extend .btn__secondary--outline;
37
+
38
+ border: 0;
39
+ }
40
+
41
+ &.mat-button.mat-warn {
42
+ @extend .btn__warn;
43
+ }
44
+
45
+ &.mat-button.mat-success {
46
+ @extend .btn__success;
47
+ }
48
+
49
+ &.mat-stroked-button.mat-warn {
50
+ @extend .btn__warn--outline;
51
+
52
+ border: 0;
53
+ }
54
+
55
+ &.mat-stroked-button.mat-success {
56
+ @extend .btn__success--outline;
57
+
58
+ border: 0;
59
+ }
60
+
61
+ &.mat-button.mat-button-disabled {
62
+ @extend .btn__disabled;
63
+ }
64
+
65
+ &.mat-stroked-button.mat-button-disabled {
66
+ @extend .btn__disabled--outline;
67
+ }
68
+
69
+ .mat-button-wrapper {
70
+ @extend .btn__with-icon--wrapper;
71
+ }
72
+
73
+ &.mat-icon-button .mat-button-wrapper .mat-icon {
74
+ margin-right: 0;
75
+ }
76
+
77
+ &.mat-button.mat-icon-button {
78
+ min-width: auto;
79
+ padding: calc-rem(8);
80
+ }
81
+ }
@@ -0,0 +1,17 @@
1
+ .mat-card {
2
+ &.mat-card:not([class*=mat-elevation-z]) {
3
+ @extend .card;
4
+ }
5
+
6
+ .mat-card-subtitle {
7
+ @extend .card--subtitle;
8
+ }
9
+
10
+ .mat-card-title {
11
+ @extend .card--title;
12
+ }
13
+
14
+ .mat-card-content {
15
+ @extend .card__content;
16
+ }
17
+ }
@@ -0,0 +1,108 @@
1
+ .mat-chip {
2
+ &,
3
+ &.mat-standard-chip {
4
+ @extend .chip;
5
+
6
+ &.chip--info {
7
+ @extend .chip--info;
8
+ }
9
+
10
+ &.chip--success {
11
+ @extend .chip--success;
12
+ }
13
+
14
+ &.chip--warn {
15
+ @extend .chip--warn;
16
+ }
17
+
18
+ &.chip--danger {
19
+ @extend .chip--danger;
20
+ }
21
+
22
+ &.chip--selected {
23
+ @extend .chip--selected;
24
+ }
25
+
26
+ &.chip--not-selected {
27
+ @extend .chip--not-selected;
28
+ }
29
+
30
+ &.accepted {
31
+ @extend .accepted;
32
+ }
33
+
34
+ &.cab_arrived_at_dropoff, &.cashed_in {
35
+ @extend .cab_arrived_at_dropoff;
36
+ }
37
+
38
+ &.cab_arrived_at_intermediary_waypoint {
39
+ @extend .cab_arrived_at_intermediary_waypoint;
40
+ }
41
+
42
+ &.cab_arrived_at_pickup {
43
+ @extend .cab_arrived_at_pickup;
44
+ }
45
+
46
+ &.cancelled {
47
+ @extend .cancelled;
48
+ }
49
+
50
+ &.completed {
51
+ @extend .completed;
52
+ }
53
+
54
+ &.dispatched {
55
+ @extend .dispatched;
56
+ }
57
+
58
+ &.dropped_off {
59
+ @extend .dropped_off;
60
+ }
61
+
62
+ &.no_show {
63
+ @extend .no_show;
64
+ }
65
+
66
+ &.pending {
67
+ @extend .pending;
68
+ }
69
+
70
+ &.rejected, &.suspended,
71
+ &.cancelled, &.sick, &.no_show, &.unable_to_complete, &.unavailable, {
72
+ @extend .rejected;
73
+ }
74
+
75
+ &.reserved, &.scheduled, &.ended {
76
+ @extend .reserved;
77
+ }
78
+
79
+ &.trip_ended {
80
+ @extend .trip_ended;
81
+ }
82
+
83
+ &.trip_ongoing {
84
+ @extend .trip_ongoing;
85
+ }
86
+
87
+ &.trip_started, &.started {
88
+ @extend .trip_started;
89
+ }
90
+
91
+ &[ng-reflect-disable-ripple] {
92
+ &::after {
93
+ background: transparent;
94
+ }
95
+ }
96
+ }
97
+
98
+ .mat-icon {
99
+ &,
100
+ &:hover {
101
+ color: inherit;
102
+ }
103
+ }
104
+ }
105
+
106
+ .mat-chip.mat-standard-chip[ng-reflect-disable-ripple]:not(.mat-chip-disabled):active {
107
+ box-shadow: none;
108
+ }
@@ -0,0 +1,145 @@
1
+ @import "../../scss/utilities/index.scss";
2
+
3
+ .header {
4
+ display: flex;
5
+ align-items: center;
6
+ padding: 0.5em;
7
+ }
8
+
9
+ .header-label {
10
+ flex: 1;
11
+ height: 1em;
12
+ font-weight: 500;
13
+ text-align: center;
14
+ }
15
+
16
+ .select-date-label {
17
+ color: var(--color-brand-dark);
18
+ padding-top: 1.6rem;
19
+ padding-left: 1.6rem;
20
+ }
21
+
22
+ .mat-calendar-table {
23
+ .mat-calendar-body {
24
+ tr:first-child[aria-hidden='true'] {
25
+ display: none;
26
+ }
27
+ }
28
+ }
29
+
30
+ .mat-datepicker-toggle {
31
+ padding-top: 0.75rem;
32
+ margin-left: -2.25rem;
33
+ }
34
+
35
+ .mat-calendar-body-label {
36
+ visibility: hidden;
37
+ }
38
+
39
+ .mat-calendar-body-cell-content {
40
+ border-radius: 0.25rem !important;
41
+ }
42
+
43
+ .mat-calendar-body-active {
44
+ .mat-calendar-body-today {
45
+ color: var(--color-brand-light) !important;
46
+ background-color: var(--color-brand-light2) !important;
47
+ }
48
+ }
49
+
50
+ .mat-calendar {
51
+ .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover {
52
+ > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
53
+ background-color: var(--color-brand-light2);
54
+ color: var(--color-black);
55
+ }
56
+ }
57
+
58
+ .mat-calendar-body-cell.mat-calendar-body-active {
59
+ &, &:hover {
60
+ .mat-calendar-body-cell-content.mat-calendar-body-selected {
61
+ background-color: var(--color-brand-light) !important;
62
+ color: var(--color-white) !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ .mat-calendar-body-selected {
68
+ background-color: var(--color-brand-light);
69
+ color: var(--color-white) !important;
70
+
71
+ .mat-calendar-body-today {
72
+ color: var(--color-white) !important;
73
+ }
74
+ }
75
+
76
+ .mat-calendar-table-header,
77
+ .mat-calendar-body-label {
78
+ color: var(--color-gray-500);
79
+ }
80
+
81
+ .mat-calendar-body-cell > .mat-calendar-body-today {
82
+ opacity: 1;
83
+ }
84
+
85
+ .mat-calendar-body-cell-container:hover .mat-calendar-body-cell.mat-calendar-body-disabled {
86
+ .mat-calendar-body-cell-content {
87
+ background-color: transparent !important;
88
+ }
89
+ }
90
+
91
+ .mat-calendar-body-cell-content,
92
+ .mat-date-range-input-separator {
93
+ color: var(--color-black);
94
+ }
95
+
96
+ .mat-calendar-content {
97
+ padding: 0 1.6rem;
98
+ }
99
+
100
+ .mat-calendar-table-header th {
101
+ @include fontSize(14px);
102
+ }
103
+
104
+ .mat-calendar-table-header-divider::after {
105
+ display: none;
106
+ }
107
+
108
+ .mat-calendar-body {
109
+ @include fontSize(16px);
110
+ }
111
+
112
+ .mat-calendar-body-in-range {
113
+ &::before {
114
+ background-color: var(--color-brand-light2);
115
+ }
116
+
117
+ .mat-calendar-body-cell-content {
118
+ color: var(--color-black) !important;
119
+ }
120
+ }
121
+
122
+ .mat-calendar-body-range-start, .mat-calendar-body-range-end {
123
+ .mat-calendar-body-cell-content {
124
+ color: var(--color-white) !important;
125
+ }
126
+ }
127
+ }
128
+
129
+ .mat-datepicker-popup {
130
+ .mat-datepicker-content {
131
+ color: var(--color-black);
132
+ box-shadow: $box-shadow-large;
133
+ }
134
+
135
+ .mat-datepicker-actions {
136
+ margin-top: 1rem;
137
+ padding: 0 1.6rem 1.6rem 1.6rem;
138
+ }
139
+
140
+ .mat-calendar-body-disabled {
141
+ > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
142
+ color: var(--color-gray-300);
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,8 @@
1
+
2
+ .mat-dialog-title {
3
+ @extend .dialog__title;
4
+ }
5
+
6
+ .dialog--maps .mat-dialog-container {
7
+ @extend .dialog--maps;
8
+ }
@@ -0,0 +1,3 @@
1
+ .mat-divider {
2
+ @extend .divider;
3
+ }
@@ -0,0 +1,31 @@
1
+ .example-headers-align .mat-expansion-panel-header-title {
2
+ @include fontSize($font-heading-xs);
3
+
4
+ color: var(--color-brand-dark);
5
+ font-weight: $font-weight-semibold;
6
+ line-height: 32px;
7
+ white-space: nowrap;
8
+ }
9
+
10
+ .mat-accordion {
11
+ .mat-expansion-panel {
12
+ padding: calc-rem(24 24 0 24);
13
+
14
+ .mat-expansion-panel-header {
15
+ padding: calc-rem(0 0 24 0);
16
+
17
+ &:hover {
18
+ background: unset !important;
19
+ }
20
+ }
21
+
22
+ .mat-expansion-panel-body {
23
+ padding: calc-rem(0 0 16 0);
24
+ }
25
+ }
26
+
27
+ .mat-expansion-panel:not([class*=mat-elevation-z]) {
28
+ box-shadow: $box-shadow-default;
29
+ }
30
+
31
+ }
@@ -0,0 +1,47 @@
1
+ .mat-form-field {
2
+ display: block !important;
3
+ .mat-form-field-wrapper {
4
+ padding: 0;
5
+ .mat-form-field-flex {
6
+ padding: 0;
7
+ }
8
+ .mat-form-field-infix {
9
+ padding: 0;
10
+ border: 0;
11
+ }
12
+ }
13
+ &-underline {
14
+ display: none;
15
+ }
16
+
17
+ &-disabled {
18
+ .mat-input-element {
19
+ @extend .form-field__input--disabled;
20
+ }
21
+ }
22
+
23
+ &-label {
24
+ @extend .form-field__label;
25
+ }
26
+
27
+ &-invalid {
28
+ .mat-input-element,
29
+ mat-error,
30
+ mat-date-range-input {
31
+ @extend .form-field__input--invalid;
32
+ }
33
+ }
34
+
35
+ &-suffix,
36
+ [matsuffix] {
37
+ @extend .form-field__input--suffix;
38
+ }
39
+
40
+ .mat-input-element {
41
+ @extend .form-field__input;
42
+ }
43
+
44
+ .mat-form-field-subscript-wrapper {
45
+ margin-top: 0;
46
+ }
47
+ }
@@ -0,0 +1,3 @@
1
+ mat-icon {
2
+ @extend .icon;
3
+ }
@@ -0,0 +1,3 @@
1
+ .mat-menu-panel.mat-elevation-z4 {
2
+ box-shadow: $box-shadow-default;
3
+ }
File without changes
@@ -0,0 +1,24 @@
1
+ app-phone-input {
2
+ @extend .phone-input;
3
+ .ngx-mat-tel-input-container {
4
+ .mat-input-element {
5
+ @extend .ngx-mat-tel-input-input;
6
+ }
7
+ .country-selector {
8
+ @extend .country-selector;
9
+ }
10
+ }
11
+ .form-field.error {
12
+ .ngx-mat-tel-input-container {
13
+ @extend .error;
14
+ }
15
+ }
16
+ .disabled {
17
+ input {
18
+ @extend .disabled-field;
19
+ }
20
+ button {
21
+ background-color: unset !important;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,36 @@
1
+ .mat-select {
2
+ @extend .select;
3
+
4
+ .mat-select-arrow-wrapper {
5
+ display: unset;
6
+ vertical-align: auto;
7
+ transform: none;
8
+ padding-top: 0.375rem;
9
+ }
10
+
11
+ &-panel-wrap {
12
+ .mat-select-panel,
13
+ .mat-select-panel:not([class*='mat-elevation-z']) {
14
+ box-shadow: 0 0 15px rgba(#6b6d73, 0.24);
15
+
16
+ min-width: calc(100% + 32px) !important;
17
+
18
+ &[aria-multiselectable='true'] {
19
+ transform: translate(1.5rem, 0rem) !important;
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
+ .mat-form-field-underline {
26
+ display: none;
27
+ }
28
+ .form-field.error {
29
+ .mat-select {
30
+ border-color: var(--color-error);
31
+ }
32
+ }
33
+
34
+ .cdk-overlay-backdrop.cdk-overlay-backdrop-showing.cdk-overlay-transparent-backdrop {
35
+ opacity: 1;
36
+ }