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,64 @@
1
+ .legend {
2
+ @include fontSize($font-size-sm);
3
+ position: relative;
4
+ display: inline-block;
5
+ margin-left: calc-rem(12);
6
+ padding-left: calc-rem(24);
7
+ vertical-align: top;
8
+
9
+ &:first-of-type {
10
+ margin-left: 0;
11
+ }
12
+
13
+ &:before {
14
+ @extend %pseudos;
15
+
16
+ border-radius: $border-radius-base;
17
+ width: calc-rem(16);
18
+ height: calc-rem(16);
19
+ top: calc-rem(3);
20
+ left: 0;
21
+ }
22
+
23
+ @include m(asap) {
24
+ &:before {
25
+ background-color: #eded0d;
26
+ }
27
+ }
28
+
29
+ @include m(mobile) {
30
+ &:before {
31
+ background-color: #feb6e2;
32
+ }
33
+ }
34
+
35
+ @include m(delivery) {
36
+ &:before {
37
+ background-color: #dd9750;
38
+ }
39
+ }
40
+
41
+ @include m(walkin) {
42
+ &:before {
43
+ background-color: #87b5ca;
44
+ }
45
+ }
46
+
47
+ @include m(concierge) {
48
+ &:before {
49
+ background-color: #2be879;
50
+ }
51
+ }
52
+
53
+ @include m(in-fifteen) {
54
+ &:before {
55
+ background-color: #e64c4a;
56
+ }
57
+ }
58
+
59
+ @include m(standard) {
60
+ &:before {
61
+ background-color: #d7d8d3;
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,17 @@
1
+ .list {
2
+ list-style-type: none;
3
+
4
+ @include m(bordered) {
5
+ .list__item {
6
+ border-bottom: 1px solid var(--color-gray-200);
7
+ }
8
+ }
9
+
10
+ @include e(item) {
11
+ @include m(count) {
12
+ margin-right: 2.4rem;
13
+ }
14
+
15
+ padding: calc-rem(20 0);
16
+ }
17
+ }
@@ -0,0 +1,112 @@
1
+ div {
2
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
3
+ background-image: url('/assets/images/map-polygon-icon.svg');
4
+ background-position: center center;
5
+ }
6
+
7
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit {
8
+ background-image: url('/assets/images/map-edit-icon.svg');
9
+ background-position: center center;
10
+ }
11
+
12
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove {
13
+ background-image: url('/assets/images/map-delete-icon.svg');
14
+ background-position: center center;
15
+ }
16
+
17
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker {
18
+ background-image: url('/assets/images/map-marker-icon.svg');
19
+ background-position: center center;
20
+ }
21
+
22
+ .leaflet-touch .leaflet-control-zoom.leaflet-bar .leaflet-control-zoom-fullscreen {
23
+ background-image: url('/assets/images/map-fullscreen-icon.svg');
24
+ background-position: center center;
25
+ background-size: 16px;
26
+
27
+ &.leaflet-fullscreen-on {
28
+ background-image: url('/assets/images/map-fullscreen-exit-icon.svg');
29
+ }
30
+ }
31
+
32
+ .leaflet-control-zoom.leaflet-bar.leaflet-control {
33
+ display: flex;
34
+ flex-direction: column;
35
+
36
+ .leaflet-control-zoom-fullscreen {
37
+ order: -1;
38
+ }
39
+ }
40
+
41
+ .leaflet-touch .leaflet-control-layers,
42
+ .leaflet-touch .leaflet-bar {
43
+ border: 0;
44
+ }
45
+
46
+ .leaflet-touch .leaflet-bar a {
47
+ border: 0;
48
+ width: 40px;
49
+ height: 40px;
50
+ color: var(--color-brand-dark);
51
+ line-height: 40px;
52
+
53
+ &.leaflet-control-zoom-in {
54
+ line-height: 38px;
55
+ }
56
+
57
+ &.leaflet-control-zoom-in,
58
+ &.leaflet-control-zoom-out {
59
+ @include fontSize(28px);
60
+
61
+ font-weight: $font-weight-thin;
62
+ }
63
+ }
64
+
65
+ .leaflet-draw-toolbar a {
66
+ background-size: unset;
67
+ }
68
+
69
+ .leaflet-touch .leaflet-bar {
70
+ &.leaflet-draw-toolbar,
71
+ &.leaflet-control-zoom {
72
+ a {
73
+ border-radius: 8px;
74
+ margin-top: 10px;
75
+ }
76
+ }
77
+ }
78
+
79
+ .leaflet-top {
80
+ bottom: 0;
81
+ top: unset;
82
+ }
83
+
84
+ .leaflet-top .leaflet-control {
85
+ margin-top: 0;
86
+ margin-bottom: 1.2rem;
87
+ margin-left: 1.2rem;
88
+ }
89
+
90
+ .leaflet-bottom .leaflet-right {
91
+ .leaflet-control-attribution .leaflet-control {
92
+ display: none;
93
+ }
94
+ }
95
+
96
+ .leaflet-bar a.leaflet-disabled {
97
+ background-color: var(--color-gray-300);
98
+ }
99
+
100
+ .leaflet-draw-actions a {
101
+ background-color: var(--color-brand-dark);
102
+ border-left-color: var(--color-white);
103
+
104
+ &:hover {
105
+ background-color: rgba(var(--color-brand-dark-rgb), 0.88);
106
+ }
107
+ }
108
+
109
+ .leaflet-tooltip {
110
+ z-index: 999;
111
+ }
112
+ }
@@ -0,0 +1,33 @@
1
+ .percentage {
2
+ &__over-87 {
3
+ background-color: #25BD3D;
4
+ }
5
+
6
+ &__over-75 {
7
+ background-color: #87C337;
8
+ }
9
+
10
+ &__over-62 {
11
+ background-color: #BAC61C;
12
+ }
13
+
14
+ &__over-50 {
15
+ background-color: #ECC902;
16
+ }
17
+
18
+ &__over-37 {
19
+ background-color: #EBA70D;
20
+ }
21
+
22
+ &__over-25 {
23
+ background-color: #E7831B;
24
+ }
25
+
26
+ &__over-12 {
27
+ background-color: #E35E2A;
28
+ }
29
+
30
+ &__default {
31
+ background-color: #DF3838;
32
+ }
33
+ }
@@ -0,0 +1,21 @@
1
+ .phone-input {
2
+ .ngx-mat-tel-input-container {
3
+ position: relative;
4
+ border-radius: $border-radius-base;
5
+ border: 1px solid var(--color-gray-500);
6
+ .ngx-mat-tel-input-input {
7
+ padding: calc-rem(8) 6px calc-rem(8) 105px !important;
8
+ }
9
+ .country-selector {
10
+ opacity: 1 !important;
11
+ }
12
+ }
13
+ .error {
14
+ .ngx-mat-tel-input-container {
15
+ border: 1px solid var(--color-error);
16
+ }
17
+ }
18
+ .disabled-field {
19
+ background-color: var(--color-white-opacity-05) !important;
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ $border-radius: 0.25rem;
2
+
3
+ .select {
4
+ border-radius: $border-radius;
5
+ border: 1px solid var(--color-gray-500);
6
+ padding: calc-rem(8) calc-rem(16);
7
+ color: var(--color-black);
8
+ line-height: $base-line-height;
9
+
10
+ &:focus {
11
+ border-color: var(--color-brand-dark);
12
+ }
13
+ }
14
+
15
+ .mat-select-disabled {
16
+ background-color: var(--color-white-opacity-05);
17
+
18
+ mat-select-trigger {
19
+ color: var(--color-black);
20
+ }
21
+ }
@@ -0,0 +1,31 @@
1
+ .pending {
2
+ background-color: var(--color-gray-300);
3
+ color: var(--color-gray-400);
4
+ }
5
+
6
+ .reserved, {
7
+ background-color: rgba(var(--color-warn-rgb), .05);
8
+ color: var(--color-warn);
9
+ }
10
+
11
+ .scheduled, .ended {
12
+ background-color: var(--color-gray-200);
13
+ color: var(--color-gray-500);
14
+ }
15
+
16
+ .dispatched, .cab_arrived_at_pickup, .trip_started, .dropped_off, .started,
17
+ .cab_arrived_at_intermediary_waypoint, .trip_ongoing {
18
+ background-color: rgba(var(--color-info-rgb), .05);
19
+ color: var(--color-info);
20
+ }
21
+
22
+ .cab_arrived_at_dropoff, .trip_ended, .completed, .accepted, .cashed_in {
23
+ background-color: rgba(var(--color-success-rgb), .05);
24
+ color: var(--color-success);
25
+ }
26
+
27
+ .cancelled, .rejected, .suspended,
28
+ .cancelled, .sick, .no_show, .unable_to_complete, .unavailable, {
29
+ background-color: rgba(var(--color-error-rgb), .05);
30
+ color: var(--color-error);
31
+ }
@@ -0,0 +1,16 @@
1
+ .tab-group {
2
+ .tab-labels {
3
+ .tab-label {
4
+ color: var(--color-brand-dark);
5
+ font-size: 1rem;
6
+ border-bottom-width: 2px;
7
+ opacity: 1;
8
+ font-weight: $font-weight-regular;
9
+
10
+ &.tab-label-active {
11
+ color: var(--color-brand-light);
12
+ border-color: var(--color-brand-light);
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,107 @@
1
+ .table-ui {
2
+ text-align: left;
3
+
4
+ /* #Wrapper */
5
+ @include m(wrapper) {
6
+ position: relative;
7
+ box-shadow: $box-shadow-default;
8
+ border-radius: $border-radius-base * 2;
9
+ width: 100%;
10
+ padding: calc-rem(24);
11
+ background-color: var(--color-white);
12
+
13
+ &.loading:after {
14
+ @extend %pseudos;
15
+
16
+ top: 0;
17
+ left: 0;
18
+ width: 100%;
19
+ height: 100%;
20
+
21
+ background-color: var(--color-gray-200);
22
+ opacity: 0.5;
23
+ z-index: 999;
24
+ }
25
+ }
26
+
27
+ table {
28
+ width: 100%;
29
+ }
30
+
31
+ thead {
32
+ @include fontSize($font-size-xs);
33
+
34
+ color: var(--color-gray-500);
35
+ }
36
+
37
+ thead th,
38
+ th {
39
+ border-bottom: 1px solid var(--color-gray-400);
40
+ color: var(--color-gray-500);
41
+ padding: calc-rem(14) calc-rem(14) calc-rem(14) 0;
42
+ font-weight: $font-weight-regular;
43
+
44
+ &:first-of-type {
45
+ padding-left: calc-rem(14);
46
+ }
47
+
48
+ &:last-of-type {
49
+ padding-right: calc-rem(14);
50
+ }
51
+ }
52
+
53
+ td {
54
+ padding: calc-rem(14);
55
+ }
56
+
57
+ a {
58
+ color: var(--color-brand-light);
59
+ line-height: 1;
60
+
61
+ &:hover {
62
+ color: var(--color-brand-dark);
63
+ }
64
+ }
65
+
66
+ /* #Bordered */
67
+ @include e(bordered) {
68
+ td,
69
+ th {
70
+ border-bottom: 1px solid var(--color-gray-200);
71
+ }
72
+ }
73
+
74
+ /* #Paginator */
75
+ @include e(paginator) {
76
+ margin-top: 1.2rem;
77
+
78
+ @include m(wrapper) {
79
+ .table-ui__bordered & {
80
+ border-bottom: 0;
81
+ padding-bottom: 0;
82
+ }
83
+
84
+ > * {
85
+ display: inline-block;
86
+ }
87
+ }
88
+
89
+ @include m(sizer) {
90
+ float: right;
91
+ }
92
+ }
93
+
94
+ /* #Header */
95
+ @include e(header) {
96
+ margin-bottom: 1.2rem;
97
+ }
98
+
99
+ /* #Progress */
100
+ @include e(progress) {
101
+ border-radius: $border-radius-base;
102
+ position: absolute;
103
+ top: 0;
104
+ left: 0.12rem;
105
+ right: 0.12rem;
106
+ }
107
+ }
@@ -0,0 +1,96 @@
1
+ app-form-timepicker {
2
+ .timeInputWrapper {
3
+ position: relative;
4
+ display: inline-block;
5
+ z-index: 1;
6
+ width: 100%;
7
+ .timeInputFieldWrapper {
8
+ position: relative;
9
+ z-index: 1;
10
+ }
11
+ input {
12
+ min-height: 42px;
13
+ width: 100%;
14
+ display: block;
15
+ box-sizing: border-box;
16
+ font-size: 0.875rem;
17
+ padding: calc-rem(8) calc-rem(16);
18
+ border-radius: $border-radius-base;
19
+ border: 1px solid var(--color-gray-500);
20
+ color: var(--color-black);
21
+ outline: none;
22
+ transition: all 300ms ease-in-out;
23
+ &::placeholder {
24
+ color: rgba(22, 42, 76, 0.5);
25
+ }
26
+
27
+ &:disabled {
28
+ border-bottom-width: 1px;
29
+ background-color: var(--color-white-opacity-05);
30
+ }
31
+ }
32
+
33
+ input[type='number']::-webkit-inner-spin-button,
34
+ input[type='number']::-webkit-outer-spin-button {
35
+ -webkit-appearance: none;
36
+ margin: 0;
37
+ }
38
+
39
+ &.disabled {
40
+ .descriptions {
41
+ background: transparent;
42
+ }
43
+ }
44
+ }
45
+ }
46
+ .form-time-list {
47
+ z-index: 98;
48
+ display: inline-block;
49
+ position: absolute;
50
+ .list {
51
+ background-color: white;
52
+ position: absolute;
53
+ width: 100%;
54
+ box-sizing: border-box;
55
+ box-shadow: 0px 4px 6px rgba(22, 42, 76, 0.08), 0px 2px 16px rgba(22, 42, 76, 0.06),
56
+ 0px 8px 12px rgba(22, 42, 76, 0.04);
57
+ border-radius: 0px 0px 4px 4px;
58
+ height: 224px;
59
+ overflow: hidden;
60
+
61
+ .inner-scroll {
62
+ width: 100%;
63
+ height: 100%;
64
+ overflow: auto;
65
+
66
+ .inner {
67
+ ul {
68
+ list-style: none;
69
+ padding: 0px;
70
+ margin: 0px;
71
+ display: block;
72
+
73
+ li {
74
+ display: block;
75
+ padding: 8px 12px;
76
+ font-size: 13px;
77
+ line-height: 20px;
78
+ font-weight: normal;
79
+ color: rgba(22, 42, 76, 0.9);
80
+ cursor: pointer;
81
+ &:last-child {
82
+ border-color: transparent;
83
+ }
84
+
85
+ &.active {
86
+ color: #376bfb;
87
+ }
88
+ &.hovered {
89
+ background: rgba(22, 42, 76, 0.075);
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,53 @@
1
+ .toaster__body {
2
+ padding: 1.5rem 4rem 1.5rem 1.5rem;
3
+ border-radius: 4px;
4
+
5
+ &.success {
6
+ background-color: var(--color-success--opacity);
7
+ color: var(--color-success);
8
+
9
+ .close-button {
10
+ color: var(--color-success);
11
+ }
12
+ }
13
+
14
+ &.error {
15
+ background-color: var(--color-error-opacity);
16
+ color: var(--color-error);
17
+
18
+ .close-button {
19
+ color: var(--color-error);
20
+ }
21
+ }
22
+
23
+ &.warning {
24
+ background-color: var(--color-warning-opacity);
25
+ color: var(--color-warning);
26
+
27
+ .close-button {
28
+ color: var(--color-warning);
29
+ }
30
+ }
31
+
32
+ &.info {
33
+ background-color: rgba(var(--color-info-rgb), .05);
34
+ color: var(--color-info);
35
+
36
+ .close-button {
37
+ color: var(--color-info);
38
+ }
39
+ }
40
+
41
+ .close-button {
42
+ position: absolute;
43
+ right: 1.75rem;
44
+ top: calc(50% - 1rem);
45
+ font-family: 'Material Icons';
46
+ font-weight: 200;
47
+ font-size: 21px;
48
+
49
+ &::before {
50
+ content: 'close';
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,7 @@
1
+ .tooltip {
2
+ @include fontSize($font-size-xs);
3
+
4
+ padding: calc-rem(3 8);
5
+ background-color: var(--color-gray-500);
6
+ color: var(--color-white);
7
+ }
@@ -0,0 +1,31 @@
1
+ .drag-drop {
2
+ @include m(container) {
3
+ background-color: var(--color-white);
4
+
5
+ &.cdk-drop-list-dragging .drag-drop--item:not(.cdk-drag-placeholder) {
6
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
7
+ }
8
+ .cdk-drag-animating {
9
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
10
+ }
11
+ }
12
+
13
+ @include m(item) {
14
+ background-color: var(--color-white);
15
+ cursor: move;
16
+
17
+ &.cdk-drag-preview {
18
+ border-radius: $border-radius-base;
19
+ box-shadow: $box-shadow-default;
20
+ padding-left: calc-rem(32);
21
+ padding-right: calc-rem(32);
22
+ }
23
+ }
24
+
25
+ @include m(placeholder) {
26
+ background: var(--color-gray-200);
27
+ border: dashed 2px var(--color-gray-400) !important;
28
+ min-height: calc-rem(120);
29
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ @import 'button';
2
+ @import 'card';
3
+ @import 'chip';
4
+ @import 'datepicker';
5
+ @import 'dialog';
6
+ @import 'divider';
7
+ @import 'drag-drop';
8
+ @import 'form';
9
+ @import 'icon';
10
+ @import 'img';
11
+ @import 'legend';
12
+ @import 'list';
13
+ @import 'map';
14
+ @import 'phone';
15
+ @import 'select';
16
+ @import 'statuses';
17
+ @import 'tab';
18
+ @import 'table';
19
+ @import 'timepicker';
20
+ @import 'toaster';
21
+ @import 'tooltip';
22
+ @import 'percentage';
23
+ @import 'autocomplete';
@@ -0,0 +1,52 @@
1
+ :root {
2
+ --color-black: #07080d;
3
+ --color-white: #ffffff;
4
+ --color-white-opacity-05: rgba(0, 0, 0, 0.05);
5
+
6
+ /* #Grays */
7
+ --color-gray-100: #f5f6f9;
8
+ --color-gray-200: #f8f9f9;
9
+ --color-gray-300: #d9d9d9;
10
+ --color-gray-400: #a6a6a6;
11
+ --color-gray-500: #6b6d73;
12
+
13
+ /* #Brand */
14
+ --color-brand-dark: #193273;
15
+ --color-brand-dark-rgb: 25, 50, 115;
16
+
17
+ --color-brand-light: #325FDA;
18
+ --color-brand-light2: #e7efff;
19
+ --color-brand-light-rgb: 50, 95, 218;
20
+
21
+ --color-brand-300: #e7efff;
22
+ --color-brand-300-rgb: 231, 239, 255;
23
+
24
+ /* #Accent */
25
+ --color-error: #df3838;
26
+ --color-error-opacity: #fbe4e4;
27
+ --color-error-rgb: 223, 56, 56;
28
+
29
+ --color-notification: #f4d04f;
30
+ --color-notification-rgb: 244, 208, 79;
31
+
32
+ --color-warn: #f2994a;
33
+ --color-warn-rgb: 242, 153, 74;
34
+
35
+ --color-info: #325fda;
36
+ --color-info-rgb: 50, 95, 218;
37
+
38
+ --color-warning: #f2994a;
39
+ --color-warning-opacity: #fdf0e4;
40
+
41
+ --color-success: #25bd3d;
42
+ --color-success--opacity: #e8f8e5;
43
+ --color-success-rgb: 37, 189, 61;
44
+
45
+ --color-allocation-started: #E8F8E5;
46
+ --color-allocation-scheduled: #FDF0E4;
47
+ --color-allocation-ended: #FBE4E4;
48
+ --color-allocation-sick: #E7EFFF;
49
+ --color-allocation-no-show: #EAE5FF;
50
+ --color-allocation-unavailable: #F2F2F2;
51
+ --cropper-outline-color : rgba(0, 0, 0, 0.5);
52
+ }