ecabs-components 0.0.30 → 0.0.31

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 (58) hide show
  1. package/package.json +4 -5
  2. package/styles/material/_theme.scss +0 -99
  3. package/styles/material/overrides/_autocomplete.scss +0 -11
  4. package/styles/material/overrides/_button.scss +0 -81
  5. package/styles/material/overrides/_card.scss +0 -17
  6. package/styles/material/overrides/_chip.scss +0 -108
  7. package/styles/material/overrides/_datepicker.scss +0 -169
  8. package/styles/material/overrides/_dialog.scss +0 -8
  9. package/styles/material/overrides/_divider.scss +0 -3
  10. package/styles/material/overrides/_expansion.scss +0 -31
  11. package/styles/material/overrides/_form.scss +0 -47
  12. package/styles/material/overrides/_icon.scss +0 -3
  13. package/styles/material/overrides/_menu.scss +0 -3
  14. package/styles/material/overrides/_paginator.scss +0 -0
  15. package/styles/material/overrides/_phone.scss +0 -24
  16. package/styles/material/overrides/_select.scss +0 -48
  17. package/styles/material/overrides/_tab.scss +0 -23
  18. package/styles/material/overrides/_table.scss +0 -12
  19. package/styles/material/overrides/_toaster.scss +0 -38
  20. package/styles/material/overrides/_toggle.scss +0 -10
  21. package/styles/material/overrides/_tooltip.scss +0 -3
  22. package/styles/material/overrides/index.scss +0 -19
  23. package/styles/scss/base/_heading.scss +0 -17
  24. package/styles/scss/base/_normalize.scss +0 -78
  25. package/styles/scss/base/index.scss +0 -5
  26. package/styles/scss/modules/_autocomplete.scss +0 -29
  27. package/styles/scss/modules/_button.scss +0 -281
  28. package/styles/scss/modules/_card.scss +0 -23
  29. package/styles/scss/modules/_chip.scss +0 -56
  30. package/styles/scss/modules/_datepicker.scss +0 -422
  31. package/styles/scss/modules/_dialog.scss +0 -14
  32. package/styles/scss/modules/_divider.scss +0 -3
  33. package/styles/scss/modules/_form.scss +0 -221
  34. package/styles/scss/modules/_icon.scss +0 -30
  35. package/styles/scss/modules/_img.scss +0 -32
  36. package/styles/scss/modules/_legend.scss +0 -64
  37. package/styles/scss/modules/_list.scss +0 -17
  38. package/styles/scss/modules/_map.scss +0 -112
  39. package/styles/scss/modules/_percentage.scss +0 -33
  40. package/styles/scss/modules/_phone.scss +0 -23
  41. package/styles/scss/modules/_select.scss +0 -37
  42. package/styles/scss/modules/_statuses.scss +0 -31
  43. package/styles/scss/modules/_tab.scss +0 -16
  44. package/styles/scss/modules/_table.scss +0 -107
  45. package/styles/scss/modules/_timepicker.scss +0 -96
  46. package/styles/scss/modules/_toaster.scss +0 -53
  47. package/styles/scss/modules/_tooltip.scss +0 -7
  48. package/styles/scss/modules/drag-drop.scss +0 -31
  49. package/styles/scss/modules/index.scss +0 -23
  50. package/styles/scss/utilities/_colors.scss +0 -52
  51. package/styles/scss/utilities/_fonts.scss +0 -26
  52. package/styles/scss/utilities/_functions.scss +0 -27
  53. package/styles/scss/utilities/_helpers.scss +0 -5
  54. package/styles/scss/utilities/_mixins.scss +0 -65
  55. package/styles/scss/utilities/_variables.scss +0 -19
  56. package/styles/scss/utilities/index.scss +0 -6
  57. package/styles/styles.scss +0 -6
  58. package/styles/tailwind/index.scss +0 -756
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
@@ -8,14 +8,13 @@
8
8
  "@angular/material": "~13.0.0-next.7+89.sha-a662737",
9
9
  "flag-icons": "^6.7.0",
10
10
  "ngx-mat-intl-tel-input": "^5.0.0",
11
- "ngx-mat-select-search": "^4.2.1"
11
+ "ngx-mat-select-search": "^4.2.1",
12
+ "rxjs": "~7.5.0",
13
+ "vanilla-text-mask": "^5.1.1"
12
14
  },
13
15
  "dependencies": {
14
16
  "tslib": "^2.3.0"
15
17
  },
16
- "allowedNonPeerDependencies": {
17
- "vanilla-text-mask": "^5.1.1"
18
- },
19
18
  "module": "fesm2015/ecabs-components.mjs",
20
19
  "es2020": "fesm2020/ecabs-components.mjs",
21
20
  "esm2020": "esm2020/ecabs-components.mjs",
@@ -1,99 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,81 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,108 +0,0 @@
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
- }
@@ -1,169 +0,0 @@
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
- .text-xl {
23
- font-size: 1.25rem;
24
- line-height: 1.75rem;
25
- }
26
-
27
- .font-semibold {
28
- font-weight: 600;
29
- }
30
-
31
- .grid-picker-actions {
32
- display: grid;
33
- grid-template-columns: repeat(2, minmax(0, 1fr));
34
- gap: 1rem;
35
- margin-right: 0.5rem;
36
- }
37
-
38
- .ml-0 {
39
- margin-left: 0rem;
40
- }
41
-
42
- .w-full {
43
- width: 100% !important;
44
- }
45
-
46
- .mat-calendar-table {
47
- .mat-calendar-body {
48
- tr:first-child[aria-hidden='true'] {
49
- display: none;
50
- }
51
- }
52
- }
53
-
54
- .mat-datepicker-toggle {
55
- padding-top: 0.75rem;
56
- margin-left: -2.25rem;
57
- }
58
-
59
- .mat-calendar-body-label {
60
- visibility: hidden;
61
- }
62
-
63
- .mat-calendar-body-cell-content {
64
- border-radius: 0.25rem !important;
65
- }
66
-
67
- .mat-calendar-body-active {
68
- .mat-calendar-body-today {
69
- color: var(--color-brand-light) !important;
70
- background-color: var(--color-brand-light2) !important;
71
- }
72
- }
73
-
74
- .mat-calendar {
75
- .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover {
76
- > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
77
- background-color: var(--color-brand-light2);
78
- color: var(--color-black);
79
- }
80
- }
81
-
82
- .mat-calendar-body-cell.mat-calendar-body-active {
83
- &, &:hover {
84
- .mat-calendar-body-cell-content.mat-calendar-body-selected {
85
- background-color: var(--color-brand-light) !important;
86
- color: var(--color-white) !important;
87
- }
88
- }
89
- }
90
-
91
- .mat-calendar-body-selected {
92
- background-color: var(--color-brand-light);
93
- color: var(--color-white) !important;
94
-
95
- .mat-calendar-body-today {
96
- color: var(--color-white) !important;
97
- }
98
- }
99
-
100
- .mat-calendar-table-header,
101
- .mat-calendar-body-label {
102
- color: var(--color-gray-500);
103
- }
104
-
105
- .mat-calendar-body-cell > .mat-calendar-body-today {
106
- opacity: 1;
107
- }
108
-
109
- .mat-calendar-body-cell-container:hover .mat-calendar-body-cell.mat-calendar-body-disabled {
110
- .mat-calendar-body-cell-content {
111
- background-color: transparent !important;
112
- }
113
- }
114
-
115
- .mat-calendar-body-cell-content,
116
- .mat-date-range-input-separator {
117
- color: var(--color-black);
118
- }
119
-
120
- .mat-calendar-content {
121
- padding: 0 1.6rem;
122
- }
123
-
124
- .mat-calendar-table-header th {
125
- @include fontSize(16px);
126
- }
127
-
128
- .mat-calendar-table-header-divider::after {
129
- display: none;
130
- }
131
-
132
- .mat-calendar-body {
133
- @include fontSize(16px);
134
- }
135
-
136
- .mat-calendar-body-in-range {
137
- &::before {
138
- background-color: var(--color-brand-light2);
139
- }
140
-
141
- .mat-calendar-body-cell-content {
142
- color: var(--color-black) !important;
143
- }
144
- }
145
-
146
- .mat-calendar-body-range-start, .mat-calendar-body-range-end {
147
- .mat-calendar-body-cell-content {
148
- color: var(--color-white) !important;
149
- }
150
- }
151
- }
152
-
153
- .mat-datepicker-popup {
154
- .mat-datepicker-content {
155
- color: var(--color-black);
156
- box-shadow: $box-shadow-large;
157
- }
158
-
159
- .mat-datepicker-actions {
160
- margin-top: 1rem;
161
- padding: 0 1.6rem 1.6rem 1.6rem;
162
- }
163
-
164
- .mat-calendar-body-disabled {
165
- > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
166
- color: var(--color-gray-300);
167
- }
168
- }
169
- }
@@ -1,8 +0,0 @@
1
-
2
- .mat-dialog-title {
3
- @extend .dialog__title;
4
- }
5
-
6
- .dialog--maps .mat-dialog-container {
7
- @extend .dialog--maps;
8
- }
@@ -1,3 +0,0 @@
1
- .mat-divider {
2
- @extend .divider;
3
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- mat-icon {
2
- @extend .icon;
3
- }
@@ -1,3 +0,0 @@
1
- .mat-menu-panel.mat-elevation-z4 {
2
- box-shadow: $box-shadow-default;
3
- }
File without changes
@@ -1,24 +0,0 @@
1
- ecabs-phone {
2
- @extend .ecabs-phone;
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
- }
@@ -1,48 +0,0 @@
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
- }
37
-
38
- .wide-select {
39
- min-width: calc-rem(240px);
40
-
41
- .mat-list-item {
42
- @include fontSize(12px);
43
- }
44
- }
45
-
46
- .no-title {
47
- transform: translateX(calc-rem(-196px)) !important;
48
- }