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.
- package/README.md +24 -0
- package/esm2020/ecabs-components.mjs +5 -0
- package/esm2020/lib/base/directives/digits-only.directive.mjs +130 -0
- package/esm2020/lib/base/element-base.mjs +100 -0
- package/esm2020/lib/base/element-wrapper/element-wrapper.component.mjs +53 -0
- package/esm2020/lib/base/element-wrapper/element-wrapper.module.mjs +52 -0
- package/esm2020/lib/base/hint/hint.component.mjs +21 -0
- package/esm2020/lib/base/hint/hint.module.mjs +20 -0
- package/esm2020/lib/base/validation/validation.component.mjs +158 -0
- package/esm2020/lib/base/validation/validation.module.mjs +20 -0
- package/esm2020/lib/ecabs-buttons/ecabs-buttons.component.mjs +65 -0
- package/esm2020/lib/ecabs-buttons/ecabs-buttons.module.mjs +21 -0
- package/esm2020/lib/ecabs-input/ecabs-input.component.mjs +81 -0
- package/esm2020/lib/ecabs-input/ecabs-input.module.mjs +22 -0
- package/esm2020/lib/ecabs-loading/ecabs-loading.component.mjs +24 -0
- package/esm2020/lib/ecabs-loading/ecabs-loading.module.mjs +19 -0
- package/esm2020/lib/ecabs-loading/spinner/spinner.component.mjs +16 -0
- package/esm2020/public-api.mjs +8 -0
- package/fesm2015/ecabs-components.mjs +744 -0
- package/fesm2015/ecabs-components.mjs.map +1 -0
- package/fesm2020/ecabs-components.mjs +742 -0
- package/fesm2020/ecabs-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/base/directives/digits-only.directive.d.ts +26 -0
- package/lib/base/directives/digits-only.directive.ts +129 -0
- package/lib/base/element-base.d.ts +28 -0
- package/lib/base/element-base.ts +72 -0
- package/lib/base/element-wrapper/element-wrapper.component.d.ts +19 -0
- package/lib/base/element-wrapper/element-wrapper.component.html +30 -0
- package/lib/base/element-wrapper/element-wrapper.component.ts +33 -0
- package/lib/base/element-wrapper/element-wrapper.module.d.ts +16 -0
- package/lib/base/element-wrapper/element-wrapper.module.ts +30 -0
- package/lib/base/hint/hint.component.d.ts +8 -0
- package/lib/base/hint/hint.component.html +1 -0
- package/lib/base/hint/hint.component.scss +0 -0
- package/lib/base/hint/hint.component.ts +12 -0
- package/lib/base/hint/hint.module.d.ts +10 -0
- package/lib/base/hint/hint.module.ts +13 -0
- package/lib/base/validation/validation.component.d.ts +22 -0
- package/lib/base/validation/validation.component.html +8 -0
- package/lib/base/validation/validation.component.scss +0 -0
- package/lib/base/validation/validation.component.ts +171 -0
- package/lib/base/validation/validation.module.d.ts +10 -0
- package/lib/base/validation/validation.module.ts +12 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.d.ts +21 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.html +18 -0
- package/lib/ecabs-buttons/ecabs-buttons.component.ts +54 -0
- package/lib/ecabs-buttons/ecabs-buttons.module.d.ts +11 -0
- package/lib/ecabs-buttons/ecabs-buttons.module.ts +13 -0
- package/lib/ecabs-input/ecabs-input.component.d.ts +27 -0
- package/lib/ecabs-input/ecabs-input.component.html +26 -0
- package/lib/ecabs-input/ecabs-input.component.ts +83 -0
- package/lib/ecabs-input/ecabs-input.module.d.ts +12 -0
- package/lib/ecabs-input/ecabs-input.module.ts +14 -0
- package/lib/ecabs-loading/ecabs-loading.component.d.ts +8 -0
- package/lib/ecabs-loading/ecabs-loading.component.html +7 -0
- package/lib/ecabs-loading/ecabs-loading.component.spec.ts +24 -0
- package/lib/ecabs-loading/ecabs-loading.component.ts +11 -0
- package/lib/ecabs-loading/ecabs-loading.module.d.ts +9 -0
- package/lib/ecabs-loading/ecabs-loading.module.ts +11 -0
- package/lib/ecabs-loading/spinner/spinner.component.d.ts +6 -0
- package/lib/ecabs-loading/spinner/spinner.component.html +5 -0
- package/lib/ecabs-loading/spinner/spinner.component.scss +61 -0
- package/lib/ecabs-loading/spinner/spinner.component.spec.ts +24 -0
- package/lib/ecabs-loading/spinner/spinner.component.ts +11 -0
- package/package.json +33 -0
- package/public-api.d.ts +7 -0
- package/public-api.ts +7 -0
- package/styles/material/_theme.scss +99 -0
- package/styles/material/overrides/_autocomplete.scss +11 -0
- package/styles/material/overrides/_button.scss +81 -0
- package/styles/material/overrides/_card.scss +17 -0
- package/styles/material/overrides/_chip.scss +108 -0
- package/styles/material/overrides/_datepicker.scss +145 -0
- package/styles/material/overrides/_dialog.scss +8 -0
- package/styles/material/overrides/_divider.scss +3 -0
- package/styles/material/overrides/_expansion.scss +31 -0
- package/styles/material/overrides/_form.scss +47 -0
- package/styles/material/overrides/_icon.scss +3 -0
- package/styles/material/overrides/_menu.scss +3 -0
- package/styles/material/overrides/_paginator.scss +0 -0
- package/styles/material/overrides/_phone.scss +24 -0
- package/styles/material/overrides/_select.scss +36 -0
- package/styles/material/overrides/_tab.scss +23 -0
- package/styles/material/overrides/_table.scss +12 -0
- package/styles/material/overrides/_toaster.scss +38 -0
- package/styles/material/overrides/_toggle.scss +10 -0
- package/styles/material/overrides/_tooltip.scss +3 -0
- package/styles/material/overrides/index.scss +19 -0
- package/styles/scss/base/_heading.scss +17 -0
- package/styles/scss/base/_normalize.scss +78 -0
- package/styles/scss/base/index.scss +2 -0
- package/styles/scss/modules/_autocomplete.scss +29 -0
- package/styles/scss/modules/_button.scss +221 -0
- package/styles/scss/modules/_card.scss +23 -0
- package/styles/scss/modules/_chip.scss +56 -0
- package/styles/scss/modules/_datepicker.scss +422 -0
- package/styles/scss/modules/_dialog.scss +14 -0
- package/styles/scss/modules/_divider.scss +3 -0
- package/styles/scss/modules/_form.scss +221 -0
- package/styles/scss/modules/_icon.scss +30 -0
- package/styles/scss/modules/_img.scss +32 -0
- package/styles/scss/modules/_legend.scss +64 -0
- package/styles/scss/modules/_list.scss +17 -0
- package/styles/scss/modules/_map.scss +112 -0
- package/styles/scss/modules/_percentage.scss +33 -0
- package/styles/scss/modules/_phone.scss +21 -0
- package/styles/scss/modules/_select.scss +21 -0
- package/styles/scss/modules/_statuses.scss +31 -0
- package/styles/scss/modules/_tab.scss +16 -0
- package/styles/scss/modules/_table.scss +107 -0
- package/styles/scss/modules/_timepicker.scss +96 -0
- package/styles/scss/modules/_toaster.scss +53 -0
- package/styles/scss/modules/_tooltip.scss +7 -0
- package/styles/scss/modules/drag-drop.scss +31 -0
- package/styles/scss/modules/index.scss +23 -0
- package/styles/scss/utilities/_colors.scss +52 -0
- package/styles/scss/utilities/_fonts.scss +26 -0
- package/styles/scss/utilities/_functions.scss +27 -0
- package/styles/scss/utilities/_helpers.scss +5 -0
- package/styles/scss/utilities/_mixins.scss +65 -0
- package/styles/scss/utilities/_variables.scss +19 -0
- package/styles/scss/utilities/index.scss +6 -0
- package/styles/styles.scss +5 -0
- package/test.ts +27 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.mat-tab-group {
|
|
2
|
+
@extend .tab-group;
|
|
3
|
+
|
|
4
|
+
.mat-tab-labels {
|
|
5
|
+
@extend .tab-labels;
|
|
6
|
+
|
|
7
|
+
.mat-tab-label {
|
|
8
|
+
@extend .tab-label;
|
|
9
|
+
|
|
10
|
+
&.mat-tab-label-active {
|
|
11
|
+
@extend .tab-label-active;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.mat-primary .mat-ink-bar, .mat-tab-nav-bar.mat-primary .mat-ink-bar {
|
|
17
|
+
background-color: var(--color-brand-light) !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mat-tab-body {
|
|
21
|
+
margin-top: 1.2rem;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @import 'ngx-toastr/toastr';
|
|
2
|
+
|
|
3
|
+
// .toast-container {
|
|
4
|
+
// .ngx-toastr {
|
|
5
|
+
// @extend .toaster__body;
|
|
6
|
+
// box-shadow: unset;
|
|
7
|
+
|
|
8
|
+
// &.toast-success {
|
|
9
|
+
// @extend .success;
|
|
10
|
+
// }
|
|
11
|
+
|
|
12
|
+
// &.toast-error {
|
|
13
|
+
// @extend .error;
|
|
14
|
+
// }
|
|
15
|
+
|
|
16
|
+
// &.toast-warning {
|
|
17
|
+
// @extend .warning;
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
// &.toast-info {
|
|
21
|
+
// @extend .info;
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
// &:hover {
|
|
25
|
+
// box-shadow: unset;
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
// .toast-close-button {
|
|
29
|
+
// @extend .close-button;
|
|
30
|
+
|
|
31
|
+
// span {
|
|
32
|
+
// display: none;
|
|
33
|
+
// }
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
// background-image: unset;
|
|
37
|
+
// }
|
|
38
|
+
// }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import "./autocomplete";
|
|
2
|
+
@import "./menu";
|
|
3
|
+
@import './button';
|
|
4
|
+
@import './card';
|
|
5
|
+
@import './chip';
|
|
6
|
+
@import './datepicker';
|
|
7
|
+
@import './dialog';
|
|
8
|
+
@import './divider';
|
|
9
|
+
@import './expansion';
|
|
10
|
+
@import './form';
|
|
11
|
+
@import './icon';
|
|
12
|
+
@import './paginator';
|
|
13
|
+
@import './phone';
|
|
14
|
+
@import './select';
|
|
15
|
+
@import './tab';
|
|
16
|
+
@import './table';
|
|
17
|
+
@import './toaster';
|
|
18
|
+
@import './toggle';
|
|
19
|
+
@import './tooltip';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.heading {
|
|
2
|
+
@include m(xs) {
|
|
3
|
+
@include fontSize($font-heading-xs);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@include m(sm) {
|
|
7
|
+
@include fontSize($font-heading-sm);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include m(base) {
|
|
11
|
+
@include fontSize($font-heading-base);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include m(lg) {
|
|
15
|
+
@include fontSize($font-heading-lg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
font-family: $font-family-fallback;
|
|
7
|
+
|
|
8
|
+
&.wf-active {
|
|
9
|
+
font-family: $font-family-primary;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html,
|
|
14
|
+
body {
|
|
15
|
+
height: 100%;
|
|
16
|
+
color: var(--color-black);
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
color: var(--color-brand-light);
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
color: var(--color-brand-dark);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
ul, ol {
|
|
30
|
+
list-style-type: none;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::-webkit-scrollbar {
|
|
36
|
+
width: 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
::-webkit-scrollbar-track {
|
|
40
|
+
background: transparent;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
::-webkit-scrollbar-thumb {
|
|
44
|
+
background: var(--color-gray-300);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
::-webkit-scrollbar-thumb:hover {
|
|
48
|
+
background: var(--color-gray-400);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:focus-visible {
|
|
52
|
+
outline-color: inherit;
|
|
53
|
+
outline-width: inherit;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
input::placeholder {
|
|
57
|
+
overflow: visible;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h1 {
|
|
61
|
+
@include fontSize($font-heading-lg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h2 {
|
|
65
|
+
@include fontSize($font-heading-base);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h3 {
|
|
69
|
+
@include fontSize($font-heading-md);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h4 {
|
|
73
|
+
@include fontSize($font-heading-sm);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h5 {
|
|
77
|
+
@include fontSize($font-heading-xs);
|
|
78
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.autocomplete-ui {
|
|
2
|
+
box-shadow: $box-shadow-default;
|
|
3
|
+
border-radius: $border-radius-base;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
@include m(item) {
|
|
8
|
+
@include fontSize(16px);
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: calc-rem(16);
|
|
11
|
+
color: var(--color-black);
|
|
12
|
+
|
|
13
|
+
&::after {
|
|
14
|
+
@extend %pseudos;
|
|
15
|
+
|
|
16
|
+
bottom: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
height: 1px;
|
|
20
|
+
background-color: var(--color-gray-100);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:last-of-type {
|
|
24
|
+
&:after {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
.btn {
|
|
2
|
+
@include fontSize($font-size-lg);
|
|
3
|
+
|
|
4
|
+
border: 0;
|
|
5
|
+
min-width: calc-rem(111);
|
|
6
|
+
width: fit-content;
|
|
7
|
+
padding: calc-rem(8 24);
|
|
8
|
+
font-weight: $font-weight-regular;
|
|
9
|
+
line-height: $base-line-height;
|
|
10
|
+
|
|
11
|
+
&:after {
|
|
12
|
+
@extend %pseudos;
|
|
13
|
+
|
|
14
|
+
border: 1px solid transparent;
|
|
15
|
+
top: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
border-radius: $border-radius-base;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// #Primary
|
|
23
|
+
@include e(primary) {
|
|
24
|
+
background-color: var(--color-brand-dark);
|
|
25
|
+
color: var(--color-white);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: rgba(var(--color-brand-dark-rgb), .88);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include m(outline) {
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
border-color: var(--color-brand-dark);
|
|
34
|
+
color: var(--color-brand-dark);
|
|
35
|
+
|
|
36
|
+
&:after {
|
|
37
|
+
border-color: var(--color-brand-dark);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: var(--color-gray-200);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include m(link) {
|
|
46
|
+
@extend .btn__primary--outline;
|
|
47
|
+
|
|
48
|
+
&:after {
|
|
49
|
+
border-color: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: var(--color-gray-200);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* #Secondary */
|
|
59
|
+
@include e(secondary) {
|
|
60
|
+
background-color: var(--color-brand-light);
|
|
61
|
+
color: var(--color-white);
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: rgba(var(--color-brand-light-rgb), .88);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include m(outline) {
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
border-color: var(--color-brand-light);
|
|
70
|
+
color: var(--color-brand-light);
|
|
71
|
+
|
|
72
|
+
&:after {
|
|
73
|
+
border-color: var(--color-brand-light);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: var(--color-gray-200);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include m(link) {
|
|
82
|
+
@extend .btn__secondary--outline;
|
|
83
|
+
|
|
84
|
+
&:after {
|
|
85
|
+
border-color: transparent;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* #Warn */
|
|
91
|
+
@include e(warn) {
|
|
92
|
+
background-color: var(--color-error);
|
|
93
|
+
color: var(--color-white);
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
background-color: rgba(var(--color-error-rgb), .88);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@include m(outline) {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
border-color: var(--color-error);
|
|
102
|
+
color: var(--color-error);
|
|
103
|
+
|
|
104
|
+
&:after {
|
|
105
|
+
border-color: var(--color-error);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: var(--color-gray-200);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include m(link) {
|
|
114
|
+
@extend .btn__warn--outline;
|
|
115
|
+
|
|
116
|
+
&:after {
|
|
117
|
+
border-color: transparent;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* #Success */
|
|
123
|
+
@include e(success) {
|
|
124
|
+
background-color: var(--color-success);
|
|
125
|
+
color: var(--color-white);
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
128
|
+
background-color: rgba(var(--color-success-rgb), .88);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@include m(outline) {
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
border-color: var(--color-success);
|
|
134
|
+
color: var(--color-success);
|
|
135
|
+
|
|
136
|
+
&:after {
|
|
137
|
+
border-color: var(--color-success);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
background-color: var(--color-gray-200);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include m(link) {
|
|
146
|
+
@extend .btn__warn--outline;
|
|
147
|
+
|
|
148
|
+
&:after {
|
|
149
|
+
border-color: transparent;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* #Group */
|
|
155
|
+
@include e(group) {
|
|
156
|
+
display: flex;
|
|
157
|
+
width: 100%;
|
|
158
|
+
align-items: center;
|
|
159
|
+
column-gap: 1rem;
|
|
160
|
+
|
|
161
|
+
@include media-q(small) {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
gap: 1.2rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
margin-top: 1.2rem;
|
|
168
|
+
|
|
169
|
+
// Button group
|
|
170
|
+
@include m(item) {
|
|
171
|
+
@include media-q(small) {
|
|
172
|
+
width: 100%;
|
|
173
|
+
margin-right: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
min-width: calc-rem(100);
|
|
177
|
+
|
|
178
|
+
&:last-of-type {
|
|
179
|
+
margin-right: 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* #Disabled */
|
|
185
|
+
@include e(disabled) {
|
|
186
|
+
background-color: var(--color-gray-300);
|
|
187
|
+
color: var(--color-gray-400);
|
|
188
|
+
cursor: not-allowed;
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
user-select: none;
|
|
191
|
+
|
|
192
|
+
@include m(outline) {
|
|
193
|
+
@extend .btn__disabled;
|
|
194
|
+
|
|
195
|
+
background-color: transparent;
|
|
196
|
+
|
|
197
|
+
&:after {
|
|
198
|
+
border-color: var(--color-gray-300);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* #Icon */
|
|
204
|
+
@include e(with-icon) {
|
|
205
|
+
@include m(wrapper) {
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
|
|
210
|
+
i, .mat-icon {
|
|
211
|
+
display: inline-block;
|
|
212
|
+
margin-right: .6rem;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* #Large */
|
|
218
|
+
@include m(lg) {
|
|
219
|
+
padding: calc-rem(16 24);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
box-shadow: $box-shadow-default;
|
|
3
|
+
|
|
4
|
+
@include m(subtitle) {
|
|
5
|
+
@include fontSize($font-size-sm);
|
|
6
|
+
|
|
7
|
+
color: var(--color-gray-500);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include m(title) {
|
|
11
|
+
@include fontSize($font-heading-xs);
|
|
12
|
+
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding-top: 2rem;
|
|
15
|
+
padding-left: 1.5rem;
|
|
16
|
+
color: var(--color-brand-dark);
|
|
17
|
+
font-weight: $font-weight-semibold;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include e(content) {
|
|
21
|
+
padding: calc-rem(32 24);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.chip {
|
|
2
|
+
@include fontSize($font-size-base);
|
|
3
|
+
|
|
4
|
+
border-radius: $border-radius-base;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
padding: calc-rem(6px 8px);
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
background-color: var(--color-gray-200);
|
|
11
|
+
color: var(--color-gray-500);
|
|
12
|
+
font-weight: $font-weight-regular;
|
|
13
|
+
|
|
14
|
+
// #Info
|
|
15
|
+
@include m(info) {
|
|
16
|
+
background-color: rgba(var(--color-info-rgb), .06);
|
|
17
|
+
color: var(--color-info);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// #Warn
|
|
21
|
+
@include m(warn) {
|
|
22
|
+
background-color: rgba(var(--color-warn-rgb), .06);
|
|
23
|
+
color: var(--color-warn);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// #Danger
|
|
27
|
+
@include m(danger) {
|
|
28
|
+
background-color: rgba(var(--color-error-rgb), .06);
|
|
29
|
+
color: var(--color-error);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// #Success
|
|
33
|
+
@include m(success) {
|
|
34
|
+
background-color: rgba(var(--color-success-rgb), .06);
|
|
35
|
+
color: var(--color-success);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// #Success
|
|
39
|
+
@include m(selected) {
|
|
40
|
+
&, * {
|
|
41
|
+
color: var(--color-white);
|
|
42
|
+
border-color: var(--color-brand-light);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
background-color: var(--color-brand-light);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include m(not-selected) {
|
|
49
|
+
&, * {
|
|
50
|
+
color: var(--color-black);
|
|
51
|
+
border: 1px solid var(--color-gray-300);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
}
|
|
56
|
+
}
|