ecabs-components 1.1.98 → 1.2.0
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 +4 -0
- package/esm2022/lib/base/consts/badge.consts.mjs +1 -1
- package/esm2022/lib/base/consts/breakpoints.consts.mjs +3 -0
- package/esm2022/lib/base/consts/buttons.consts.mjs +1 -1
- package/esm2022/lib/base/consts/icon.consts.mjs +1 -1
- package/esm2022/lib/ecabs-segment/ecabs-segment.component.mjs +3 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ecabs-components.mjs +6 -3
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/consts/breakpoints.consts.d.ts +1 -0
- package/package.json +4 -1
- package/public-api.d.ts +1 -0
- package/src/assets/styles/material/overrides/_dialog.scss +6 -0
- package/src/assets/styles/scss/modules/_button.scss +16 -2
- package/src/assets/styles/scss/utilities/_breakpoints.scss +47 -0
- package/src/assets/styles/scss/utilities/_mixins.scss +0 -29
- package/src/assets/styles/scss/utilities/_variables.scss +2 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PHONE_MEDIA_QUERY = "(max-width: 767.98px)";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecabs-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.12",
|
|
6
6
|
"@angular/common": "^16.2.12",
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
"./utilities": {
|
|
37
37
|
"sass": "./src/assets/styles/scss/utilities/index.scss"
|
|
38
38
|
},
|
|
39
|
+
"./breakpoints": {
|
|
40
|
+
"sass": "./src/assets/styles/scss/utilities/_breakpoints.scss"
|
|
41
|
+
},
|
|
39
42
|
"./package.json": {
|
|
40
43
|
"default": "./package.json"
|
|
41
44
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export * from './lib/base/consts/badge.consts';
|
|
|
153
153
|
export * from './lib/base/consts/status-badge.consts';
|
|
154
154
|
export * from './lib/base/consts/icon.consts';
|
|
155
155
|
export * from './lib/base/consts/buttons.consts';
|
|
156
|
+
export * from './lib/base/consts/breakpoints.consts';
|
|
156
157
|
export * from './lib/base/adapters/date.adapter';
|
|
157
158
|
export * from './lib/base/consts/waypoint.consts';
|
|
158
159
|
export * from './lib/ecabs-dialog-confirm-deletion/ecabs-dialog-confirm-deletion.module';
|
|
@@ -198,13 +198,27 @@
|
|
|
198
198
|
/* #Group */
|
|
199
199
|
@include e(group) {
|
|
200
200
|
display: flex;
|
|
201
|
+
flex-wrap: wrap;
|
|
201
202
|
width: 100%;
|
|
202
203
|
align-items: center;
|
|
203
204
|
column-gap: 1rem;
|
|
205
|
+
row-gap: 1rem;
|
|
204
206
|
|
|
205
|
-
|
|
207
|
+
// A group inside another group holds buttons that belong together, such as Cancel and Save beside a Delete.
|
|
208
|
+
// Beside other items it sizes to its buttons; alone in its row it fills the row, so its own justify applies.
|
|
209
|
+
& > & {
|
|
210
|
+
width: auto;
|
|
211
|
+
margin-top: 0;
|
|
212
|
+
|
|
213
|
+
&:only-child {
|
|
214
|
+
width: 100%;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include media-q(x-small) {
|
|
206
219
|
display: flex;
|
|
207
220
|
flex-direction: column;
|
|
221
|
+
align-items: stretch;
|
|
208
222
|
gap: 1.2rem;
|
|
209
223
|
}
|
|
210
224
|
|
|
@@ -212,7 +226,7 @@
|
|
|
212
226
|
|
|
213
227
|
// Button group
|
|
214
228
|
@include m(item) {
|
|
215
|
-
@include media-q(small) {
|
|
229
|
+
@include media-q(x-small) {
|
|
216
230
|
width: 100%;
|
|
217
231
|
margin-right: 0;
|
|
218
232
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
// Emits no CSS, so apps can `@use "ecabs-components/breakpoints"` from component styles.
|
|
4
|
+
// PHONE_MEDIA_QUERY in base/consts/breakpoints.consts.ts must match 'md' here.
|
|
5
|
+
|
|
6
|
+
// #Viewport Breakpoints
|
|
7
|
+
$breakpoints: (
|
|
8
|
+
xs: 0,
|
|
9
|
+
sm: 576px,
|
|
10
|
+
md: 768px,
|
|
11
|
+
lg: 992px,
|
|
12
|
+
xl: 1200px,
|
|
13
|
+
xxl: 1400px
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
// ==========================================================================
|
|
17
|
+
// Media Query Functions
|
|
18
|
+
// ==========================================================================
|
|
19
|
+
@mixin media-q($break) {
|
|
20
|
+
@if $break == 'x-small' {
|
|
21
|
+
@media (max-width: map.get($breakpoints, 'sm') - 0.02px) {
|
|
22
|
+
@content;
|
|
23
|
+
}
|
|
24
|
+
} @else if $break == 'small' {
|
|
25
|
+
@media (min-width: map.get($breakpoints, 'xs')) and (max-width: map.get($breakpoints, 'md') - 0.02px) {
|
|
26
|
+
@content;
|
|
27
|
+
}
|
|
28
|
+
} @else if $break == 'medium' {
|
|
29
|
+
@media (min-width: map.get($breakpoints, 'md')) {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
} @else if $break == 'large' {
|
|
33
|
+
@media (min-width: map.get($breakpoints, 'lg')) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
} @else if $break == 'x-large' {
|
|
37
|
+
@media (min-width: map.get($breakpoints, 'xl')) {
|
|
38
|
+
@content;
|
|
39
|
+
}
|
|
40
|
+
} @else if $break == 'xx-large' {
|
|
41
|
+
@media (min-width: map.get($breakpoints, 'xxl')) {
|
|
42
|
+
@content;
|
|
43
|
+
}
|
|
44
|
+
} @else {
|
|
45
|
+
@error '"#{$break}" is not a valid breakpoint. Please enter a supported value (e.g. "x-small", "small", "medium" or "large")';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -35,35 +35,6 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// ==========================================================================
|
|
39
|
-
// Media Query Functions
|
|
40
|
-
// ==========================================================================
|
|
41
|
-
@mixin media-q($break) {
|
|
42
|
-
@if $break == 'small' {
|
|
43
|
-
@media (min-width: map-get($breakpoints, 'xs')) and (max-width: map-get($breakpoints, 'md')) {
|
|
44
|
-
@content;
|
|
45
|
-
}
|
|
46
|
-
} @else if $break == 'medium' {
|
|
47
|
-
@media (min-width: map-get($breakpoints, 'md') + 1) {
|
|
48
|
-
@content;
|
|
49
|
-
}
|
|
50
|
-
} @else if $break == 'large' {
|
|
51
|
-
@media (min-width: map-get($breakpoints, 'lg')) {
|
|
52
|
-
@content;
|
|
53
|
-
}
|
|
54
|
-
} @else if $break == 'x-large' {
|
|
55
|
-
@media (min-width: map-get($breakpoints, 'xl')) {
|
|
56
|
-
@content;
|
|
57
|
-
}
|
|
58
|
-
} @else if $break == 'xx-large' {
|
|
59
|
-
@media (min-width: map-get($breakpoints, 'xxl')) {
|
|
60
|
-
@content;
|
|
61
|
-
}
|
|
62
|
-
} @else {
|
|
63
|
-
@error '"#{$break}" is not a valid breakpoint. Please enter a supported value (e.g. "small", "medium" or "large")';
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
38
|
// ==========================================================================
|
|
68
39
|
// Sized-control button v2 metrics
|
|
69
40
|
// ==========================================================================
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "breakpoints";
|
|
2
|
+
|
|
1
3
|
/* #Box shadows */
|
|
2
4
|
$box-shadow-default: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
3
5
|
$box-shadow-medium: 0px 1px 2px 0px #0000000D;
|
|
@@ -12,16 +14,6 @@ $border-radius-large: 8px;
|
|
|
12
14
|
/* #Transition */
|
|
13
15
|
$trans-duration-style: .24s ease-out;
|
|
14
16
|
|
|
15
|
-
/* #Viewport Breakpoints */
|
|
16
|
-
$breakpoints: (
|
|
17
|
-
xs: 0,
|
|
18
|
-
sm: 576px,
|
|
19
|
-
md: 768px,
|
|
20
|
-
lg: 992px,
|
|
21
|
-
xl: 1200px,
|
|
22
|
-
xxl: 1400px
|
|
23
|
-
);
|
|
24
|
-
|
|
25
17
|
:root {
|
|
26
18
|
--mat-standard-button-toggle-shape: #{calc-rem($border-radius-large)};
|
|
27
19
|
--mat-option-label-text-color: var(--color-gray-900);
|