coer-elements 2.0.17 → 2.0.19
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/extensions/lib/string.extension.d.ts +14 -10
- package/fesm2022/coer-elements-components.mjs +13 -13
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-extensions.mjs +19 -21
- package/fesm2022/coer-elements-extensions.mjs.map +1 -1
- package/fesm2022/coer-elements-guards.mjs +7 -7
- package/fesm2022/coer-elements-guards.mjs.map +1 -1
- package/fesm2022/coer-elements-pages.mjs +4 -4
- package/fesm2022/coer-elements-pages.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +116 -65
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/interfaces/lib/option.interface.d.ts +1 -0
- package/package.json +5 -5
- package/styles/coer-elements.css +3882 -3219
- package/styles/icons.scss +20 -0
- package/styles/index.scss +27 -8
- package/styles/layout-flex-wrap.scss +108 -0
- package/styles/layout-flex.scss +62 -0
- package/styles/layout-grid.scss +11 -0
- package/styles/margin.scss +21 -0
- package/styles/overflow.scss +9 -0
- package/styles/padding.scss +21 -0
- package/styles/position.scss +19 -1
- package/styles/scroll-bar.scss +7 -7
- package/svg/house.svg +3 -0
- package/tools/lib/elements-html.tools.d.ts +16 -0
- package/tools/lib/string.tools.d.ts +18 -0
- package/tools/lib/tools.d.ts +0 -10
- package/tools/public-api.d.ts +14 -13
- package/styles/bootstrap.scss +0 -9
- package/styles/layout.scss +0 -125
- package/styles/space.scss +0 -70
- package/tools/lib/elements-html.class.d.ts +0 -16
- /package/tools/lib/{breadcrumbs.class.d.ts → breadcrumbs.tools.d.ts} +0 -0
- /package/tools/lib/{colors.class.d.ts → colors.tools.d.ts} +0 -0
- /package/tools/lib/{control-value.class.d.ts → control-value.tools.d.ts} +0 -0
- /package/tools/lib/{date-time.class.d.ts → date-time.tools.d.ts} +0 -0
- /package/tools/lib/{files.class.d.ts → files.tools.d.ts} +0 -0
- /package/tools/lib/{filters.class.d.ts → filters.tools.d.ts} +0 -0
- /package/tools/lib/{menu.class.d.ts → menu.tools.d.ts} +0 -0
- /package/tools/lib/{page.class.d.ts → page.tools.d.ts} +0 -0
- /package/tools/lib/{screen.class.d.ts → screen.tools.d.ts} +0 -0
- /package/tools/lib/{section.class.d.ts → section.tools.d.ts} +0 -0
- /package/tools/lib/{service.class.d.ts → service.tools.d.ts} +0 -0
- /package/tools/lib/{source.class.d.ts → source.tools.d.ts} +0 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
@mixin Icon() {
|
2
|
+
min-width: 5px !important;
|
3
|
+
min-height: 5px !important;
|
4
|
+
width: 1em !important;
|
5
|
+
height: 1em !important;
|
6
|
+
mask-size: contain !important;
|
7
|
+
mask-repeat: no-repeat !important;
|
8
|
+
mask-position: center !important;
|
9
|
+
display: inline-block !important;
|
10
|
+
background-color: currentColor !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.coer-icon {
|
14
|
+
@include Icon();
|
15
|
+
}
|
16
|
+
|
17
|
+
.coer-icon-house-fill {
|
18
|
+
@include Icon();
|
19
|
+
mask-image: url('../svg/house.svg');
|
20
|
+
}
|
package/styles/index.scss
CHANGED
@@ -1,14 +1,19 @@
|
|
1
|
-
@use "./
|
2
|
-
@use "./bootstrap.scss";
|
1
|
+
@use "./animations.scss";
|
3
2
|
@use "./colors.scss";
|
3
|
+
@use "./components.scss";
|
4
4
|
@use "./containers.scss";
|
5
5
|
@use "./cursores.scss";
|
6
|
-
@use "./scroll-bar.scss";
|
7
|
-
@use "./layout.scss";
|
8
|
-
@use "./animations.scss";
|
9
|
-
@use "./position.scss";
|
10
6
|
@use "./font.scss";
|
11
|
-
@use "./
|
7
|
+
@use "./icons.scss";
|
8
|
+
@use "./layout-flex-wrap.scss";
|
9
|
+
@use "./layout-flex.scss";
|
10
|
+
@use "./layout-grid.scss";
|
11
|
+
@use "./margin.scss";
|
12
|
+
@use "./overflow.scss";
|
13
|
+
@use "./padding.scss";
|
14
|
+
@use "./position.scss";
|
15
|
+
@use "./scroll-bar.scss";
|
16
|
+
|
12
17
|
|
13
18
|
* {
|
14
19
|
font-family: sans-serif;
|
@@ -31,4 +36,18 @@ input[type="file"] {
|
|
31
36
|
|
32
37
|
.no-selection::selection {
|
33
38
|
background-color: transparent !important;
|
34
|
-
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.fill-space {
|
42
|
+
flex: 1 1 auto;
|
43
|
+
}
|
44
|
+
|
45
|
+
.tooltip-inner {
|
46
|
+
min-width: 125px;
|
47
|
+
max-width: 250px;
|
48
|
+
min-height: 35px;
|
49
|
+
display: flex;
|
50
|
+
align-items: center;
|
51
|
+
justify-content: center;
|
52
|
+
word-break: break-word;
|
53
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
@each $key, $value in (
|
2
|
+
'top': flex-start,
|
3
|
+
'middle': center,
|
4
|
+
'bottom': flex-end
|
5
|
+
) {
|
6
|
+
|
7
|
+
.flex-wrap-#{$key}-left {
|
8
|
+
display: flex !important;
|
9
|
+
align-items: $value !important;
|
10
|
+
justify-content: flex-start !important;
|
11
|
+
flex-wrap: wrap !important;
|
12
|
+
gap: 10px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.flex-wrap-#{$key}-center {
|
16
|
+
display: flex !important;
|
17
|
+
align-items: $value !important;
|
18
|
+
justify-content: center !important;
|
19
|
+
flex-wrap: wrap !important;
|
20
|
+
gap: 10px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.flex-wrap-#{$key}-right {
|
24
|
+
display: flex !important;
|
25
|
+
align-items: $value !important;
|
26
|
+
justify-content: flex-end !important;
|
27
|
+
flex-wrap: wrap !important;
|
28
|
+
gap: 10px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.flex-wrap-#{$key}-between {
|
32
|
+
display: flex !important;
|
33
|
+
align-items: $value !important;
|
34
|
+
justify-content: space-between !important;
|
35
|
+
flex-wrap: wrap !important;
|
36
|
+
gap: 10px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.flex-wrap-#{$key}-around {
|
40
|
+
display: flex !important;
|
41
|
+
align-items: $value !important;
|
42
|
+
justify-content: space-around !important;
|
43
|
+
flex-wrap: wrap !important;
|
44
|
+
gap: 10px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.flex-wrap-#{$key}-evenly {
|
48
|
+
display: flex !important;
|
49
|
+
align-items: $value !important;
|
50
|
+
justify-content: space-evenly !important;
|
51
|
+
flex-wrap: wrap !important;
|
52
|
+
gap: 10px;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
@for $i from 1 through 10 {
|
58
|
+
@if($i == 1) {
|
59
|
+
.flex-item-50px {
|
60
|
+
flex-basis: 50px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.flex-item-grow-50px {
|
64
|
+
flex-grow: 1 !important;
|
65
|
+
flex-basis: 50px;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.flex-item-#{$i * 10} {
|
70
|
+
flex-basis: $i * 10%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.flex-item-#{$i * 100}px {
|
74
|
+
flex-basis: $i * 100px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.flex-item-grow-#{$i * 10} {
|
78
|
+
flex-grow: 1 !important;
|
79
|
+
flex-basis: $i * 10%;
|
80
|
+
}
|
81
|
+
|
82
|
+
.flex-item-grow-#{$i * 100}px {
|
83
|
+
flex-grow: 1 !important;
|
84
|
+
flex-basis: $i * 100px;
|
85
|
+
}
|
86
|
+
|
87
|
+
@if($i * 100 + 50 < 1000) {
|
88
|
+
.flex-item-#{$i * 100 + 50}px {
|
89
|
+
flex-basis: $i * 100px + 50px;
|
90
|
+
}
|
91
|
+
|
92
|
+
.flex-item-grow-#{$i * 100 + 50}px {
|
93
|
+
flex-grow: 1 !important;
|
94
|
+
flex-basis: $i * 100px + 50px;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
@if($i * 10 + 5 < 100) {
|
99
|
+
.flex-item-#{$i * 10 + 5} {
|
100
|
+
flex-basis: $i * 10%;
|
101
|
+
}
|
102
|
+
|
103
|
+
.flex-item-grow-#{$i * 10 + 5} {
|
104
|
+
flex-grow: 1 !important;
|
105
|
+
flex-basis: $i * 10% + 5%;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
@each $key, $value in (
|
2
|
+
'top': flex-start,
|
3
|
+
'middle': center,
|
4
|
+
'bottom': flex-end
|
5
|
+
) {
|
6
|
+
|
7
|
+
.flex-#{$key}-left {
|
8
|
+
display: flex !important;
|
9
|
+
align-items: $value !important;
|
10
|
+
justify-content: flex-start !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.flex-#{$key}-center {
|
14
|
+
display: flex !important;
|
15
|
+
align-items: $value !important;
|
16
|
+
justify-content: center !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
.flex-#{$key}-right {
|
20
|
+
display: flex !important;
|
21
|
+
align-items: $value !important;
|
22
|
+
justify-content: flex-end !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.flex-#{$key}-between {
|
26
|
+
display: flex !important;
|
27
|
+
align-items: $value !important;
|
28
|
+
justify-content: space-between !important;
|
29
|
+
}
|
30
|
+
|
31
|
+
.flex-#{$key}-around {
|
32
|
+
display: flex !important;
|
33
|
+
align-items: $value !important;
|
34
|
+
justify-content: space-around !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
.flex-#{$key}-evenly {
|
38
|
+
display: flex !important;
|
39
|
+
align-items: $value !important;
|
40
|
+
justify-content: space-evenly !important;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
@each $key, $value in (
|
46
|
+
'row': row,
|
47
|
+
'row-reverse': row-reverse,
|
48
|
+
'column': column,
|
49
|
+
'column-reverse': column-reverse
|
50
|
+
) {
|
51
|
+
.flex-#{$key} {
|
52
|
+
display: flex !important;
|
53
|
+
flex-direction: $value !important;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
@for $i from 0 through 30 {
|
59
|
+
.gap-#{$i}px {
|
60
|
+
gap: $i * 1px;
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@for $i from 0 through 30 {
|
2
|
+
.margin-#{$i}px {
|
3
|
+
margin: $i * 1px !important;
|
4
|
+
}
|
5
|
+
|
6
|
+
.margin-top-#{$i}px {
|
7
|
+
margin-top: $i * 1px !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.margin-right-#{$i}px {
|
11
|
+
margin-right: $i * 1px !important;
|
12
|
+
}
|
13
|
+
|
14
|
+
.margin-bottom-#{$i}px {
|
15
|
+
margin-bottom: $i * 1px !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
.margin-left-#{$i}px {
|
19
|
+
margin-left: $i * 1px !important;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@for $i from 0 through 30 {
|
2
|
+
.padding-#{$i}px {
|
3
|
+
padding: $i * 1px !important;
|
4
|
+
}
|
5
|
+
|
6
|
+
.padding-top-#{$i}px {
|
7
|
+
padding-top: $i * 1px !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.padding-right-#{$i}px {
|
11
|
+
padding-right: $i * 1px !important;
|
12
|
+
}
|
13
|
+
|
14
|
+
.padding-bottom-#{$i}px {
|
15
|
+
padding-bottom: $i * 1px !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
.padding-left-#{$i}px {
|
19
|
+
padding-left: $i * 1px !important;
|
20
|
+
}
|
21
|
+
}
|
package/styles/position.scss
CHANGED
@@ -15,4 +15,22 @@ $counter: 10;
|
|
15
15
|
.position-#{$key} {
|
16
16
|
position: $value !important;
|
17
17
|
}
|
18
|
-
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@for $i from 0 through 50 {
|
21
|
+
.top-#{$i}px {
|
22
|
+
top: $i * 1px !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.right-#{$i}px {
|
26
|
+
right: $i * 1px !important;
|
27
|
+
}
|
28
|
+
|
29
|
+
.bottom-#{$i}px {
|
30
|
+
bottom: $i * 1px !important;
|
31
|
+
}
|
32
|
+
|
33
|
+
.left-#{$i}px {
|
34
|
+
left: $i * 1px !important;
|
35
|
+
}
|
36
|
+
}
|
package/styles/scroll-bar.scss
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
@use 'sass:color';
|
2
2
|
|
3
3
|
*::-webkit-scrollbar {
|
4
|
-
background-color: color.adjust(#6c757d, $lightness: 48%);
|
5
|
-
width: 5px;
|
6
|
-
height: 5px;
|
4
|
+
background-color: color.adjust(#6c757d, $lightness: 48%) !important;
|
5
|
+
width: 5px !important;
|
6
|
+
height: 5px !important;
|
7
7
|
}
|
8
8
|
|
9
9
|
*::-webkit-scrollbar-thumb{
|
10
|
-
background-color: color.adjust(#6c757d, $lightness: 35%) ;
|
11
|
-
border-radius: 4px;
|
10
|
+
background-color: color.adjust(#6c757d, $lightness: 35%) !important;
|
11
|
+
border-radius: 4px !important;
|
12
12
|
}
|
13
13
|
|
14
14
|
*::-webkit-scrollbar-thumb:hover {
|
15
|
-
background-color: var(--gray);
|
15
|
+
background-color: var(--gray) !important;
|
16
16
|
}
|
17
17
|
|
18
18
|
*::-webkit-scrollbar-thumb:active {
|
19
|
-
background-color: var(--gray);
|
19
|
+
background-color: var(--gray) !important;
|
20
20
|
}
|
package/svg/house.svg
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
|
2
|
+
<path d="M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare class ElementsHTML {
|
2
|
+
/** */
|
3
|
+
static GetElement: (selector: string) => HTMLElement | null;
|
4
|
+
/** */
|
5
|
+
static GetCssValueBy: (selector: string, style: string) => string;
|
6
|
+
/** */
|
7
|
+
static GetCssValue: (element: Element | null, style: string) => string;
|
8
|
+
/** Get width in px */
|
9
|
+
static GetElementWidth: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
10
|
+
/** Get height in px */
|
11
|
+
static GetElementHeight: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
12
|
+
/** */
|
13
|
+
static IsInvalidElement: (element: any) => boolean;
|
14
|
+
/** Get color in hexadecimal format */
|
15
|
+
static GetElementColor: (element: HTMLElement | null | undefined) => string;
|
16
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare class StringTools {
|
2
|
+
/** Sets the first character to lowercase */
|
3
|
+
static FirstCharToLower(value: string | number | null | undefined): string;
|
4
|
+
/** Sets the first character to uppercase */
|
5
|
+
static FirstCharToUpper(value: string | number | null | undefined): string;
|
6
|
+
/** Clean extra whitespaces */
|
7
|
+
static CleanUpBlanks(value: string | number | null | undefined): string;
|
8
|
+
/** Apply title formatting */
|
9
|
+
static ToTitle(value: string | number | null | undefined): string;
|
10
|
+
/** Removes the last character */
|
11
|
+
static RemoveLastChar(value: string | number | null | undefined): string;
|
12
|
+
/** Removes accents */
|
13
|
+
static RemoveAccents(value: string | number | null | undefined, except?: string[]): string;
|
14
|
+
/** Removes special characters */
|
15
|
+
static OnlyAlphaNumeric(value: string | number | null | undefined): string;
|
16
|
+
/** Validates if both strings are equal */
|
17
|
+
static Equals(value: string | number | null | undefined, value2: string | number | null | undefined, sensitive?: boolean): boolean;
|
18
|
+
}
|
package/tools/lib/tools.d.ts
CHANGED
@@ -11,22 +11,14 @@ export declare const Tools: {
|
|
11
11
|
IsNotOnlyWhiteSpace: (value: any) => boolean;
|
12
12
|
/** Avoid Null value */
|
13
13
|
AvoidNull: <T>(value: T | null | undefined, type?: "string" | "number" | "boolean" | null) => T;
|
14
|
-
/** */
|
15
|
-
RemoveAccents: (value: string | null | undefined) => string;
|
16
14
|
/** Break reference of a object or array */
|
17
15
|
BreakReference: <T>(object: T) => T;
|
18
|
-
/** Clean extra whitespaces */
|
19
|
-
CleanUpBlanks: (text: string | number) => string;
|
20
16
|
/** Get properties of an object */
|
21
17
|
GetPropertyList: <T>(object: T | null | undefined) => string[];
|
22
18
|
/**
|
23
19
|
* Set an index and merge more arrays of the same type
|
24
20
|
* */
|
25
21
|
SetIndex: <T>(array: T[], ...args: T[][]) => T[];
|
26
|
-
/** Set First Char To Lower */
|
27
|
-
FirstCharToLower: (text: string | null | undefined) => string;
|
28
|
-
/** Set First Char To Upper */
|
29
|
-
FirstCharToUpper: (text: string | null | undefined) => string;
|
30
22
|
/** Sort an array in ascending order by property */
|
31
23
|
SortBy: <T>(array: T[], property: string, propertyType?: "string" | "number") => T[];
|
32
24
|
/** Sort an array in descending order by property */
|
@@ -43,6 +35,4 @@ export declare const Tools: {
|
|
43
35
|
IsNumber: (value: any) => boolean;
|
44
36
|
/** */
|
45
37
|
Clipboard: (text: string, message?: string, title?: string) => void;
|
46
|
-
/** */
|
47
|
-
RemoveLastChar: (text: string) => string;
|
48
38
|
};
|
package/tools/public-api.d.ts
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
export * from './lib/coer-alert/coer-alert.component';
|
2
|
-
export * from './lib/breadcrumbs.
|
2
|
+
export * from './lib/breadcrumbs.tools';
|
3
3
|
export * from './lib/coer-grid.templates';
|
4
|
-
export * from './lib/colors.
|
5
|
-
export * from './lib/control-value.
|
6
|
-
export * from './lib/date-time.
|
7
|
-
export * from './lib/elements-html.
|
8
|
-
export * from './lib/files.
|
4
|
+
export * from './lib/colors.tools';
|
5
|
+
export * from './lib/control-value.tools';
|
6
|
+
export * from './lib/date-time.tools';
|
7
|
+
export * from './lib/elements-html.tools';
|
8
|
+
export * from './lib/files.tools';
|
9
9
|
export * from './lib/user.class';
|
10
|
-
export * from './lib/filters.
|
11
|
-
export * from './lib/menu.
|
12
|
-
export * from './lib/page.
|
13
|
-
export * from './lib/screen.
|
14
|
-
export * from './lib/section.
|
15
|
-
export * from './lib/service.
|
16
|
-
export * from './lib/source.
|
10
|
+
export * from './lib/filters.tools';
|
11
|
+
export * from './lib/menu.tools';
|
12
|
+
export * from './lib/page.tools';
|
13
|
+
export * from './lib/screen.tools';
|
14
|
+
export * from './lib/section.tools';
|
15
|
+
export * from './lib/service.tools';
|
16
|
+
export * from './lib/source.tools';
|
17
|
+
export * from './lib/string.tools';
|
17
18
|
export * from './lib/tools';
|
package/styles/bootstrap.scss
DELETED
package/styles/layout.scss
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
@each $key, $value in (
|
2
|
-
'top': flex-start,
|
3
|
-
'middle': center,
|
4
|
-
'bottom': flex-end
|
5
|
-
) {
|
6
|
-
|
7
|
-
.flex-#{$key}-left {
|
8
|
-
display: flex;
|
9
|
-
align-items: $value;
|
10
|
-
justify-content: flex-start;
|
11
|
-
}
|
12
|
-
|
13
|
-
.flex-wrap-#{$key}-left {
|
14
|
-
display: flex;
|
15
|
-
align-items: $value;
|
16
|
-
justify-content: flex-start;
|
17
|
-
flex-wrap: wrap;
|
18
|
-
gap: 10px;
|
19
|
-
}
|
20
|
-
|
21
|
-
.flex-#{$key}-center {
|
22
|
-
display: flex;
|
23
|
-
align-items: $value;
|
24
|
-
justify-content: center;
|
25
|
-
}
|
26
|
-
|
27
|
-
.flex-wrap-#{$key}-center {
|
28
|
-
display: flex;
|
29
|
-
align-items: $value;
|
30
|
-
justify-content: center;
|
31
|
-
flex-wrap: wrap;
|
32
|
-
gap: 10px;
|
33
|
-
}
|
34
|
-
|
35
|
-
.flex-#{$key}-right {
|
36
|
-
display: flex;
|
37
|
-
align-items: $value;
|
38
|
-
justify-content: flex-end;
|
39
|
-
}
|
40
|
-
|
41
|
-
.flex-wrap-#{$key}-right {
|
42
|
-
display: flex;
|
43
|
-
align-items: $value;
|
44
|
-
justify-content: flex-end;
|
45
|
-
flex-wrap: wrap;
|
46
|
-
gap: 10px;
|
47
|
-
}
|
48
|
-
|
49
|
-
.flex-#{$key}-between {
|
50
|
-
display: flex;
|
51
|
-
align-items: $value;
|
52
|
-
justify-content: space-between;
|
53
|
-
}
|
54
|
-
|
55
|
-
.flex-wrap-#{$key}-between {
|
56
|
-
display: flex;
|
57
|
-
align-items: $value;
|
58
|
-
justify-content: space-between;
|
59
|
-
flex-wrap: wrap;
|
60
|
-
gap: 10px;
|
61
|
-
}
|
62
|
-
|
63
|
-
.flex-#{$key}-around {
|
64
|
-
display: flex;
|
65
|
-
align-items: $value;
|
66
|
-
justify-content: space-around;
|
67
|
-
}
|
68
|
-
|
69
|
-
.flex-wrap-#{$key}-around {
|
70
|
-
display: flex;
|
71
|
-
align-items: $value;
|
72
|
-
justify-content: space-around;
|
73
|
-
flex-wrap: wrap;
|
74
|
-
gap: 10px;
|
75
|
-
}
|
76
|
-
|
77
|
-
.flex-#{$key}-evenly {
|
78
|
-
display: flex;
|
79
|
-
align-items: $value;
|
80
|
-
justify-content: space-evenly;
|
81
|
-
}
|
82
|
-
|
83
|
-
.flex-wrap-#{$key}-evenly {
|
84
|
-
display: flex;
|
85
|
-
align-items: $value;
|
86
|
-
justify-content: space-evenly;
|
87
|
-
flex-wrap: wrap;
|
88
|
-
gap: 10px;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
@for $i from 1 through 10 {
|
94
|
-
@if($i == 1) {
|
95
|
-
.flex-wrap-item-50 {
|
96
|
-
flex-grow: 1;
|
97
|
-
flex-basis: 50px ;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
.flex-wrap-item-#{$i * 100} {
|
102
|
-
flex-grow: 1;
|
103
|
-
flex-basis: $i * 100px;
|
104
|
-
}
|
105
|
-
|
106
|
-
@if($i * 100px + 50px < 1000px) {
|
107
|
-
.flex-wrap-item-#{$i * 100 + 50} {
|
108
|
-
flex-grow: 1;
|
109
|
-
flex-basis: $i * 100px + 50px;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
|
115
|
-
@each $key, $value in (
|
116
|
-
'row': row,
|
117
|
-
'row-reverse': row-reverse,
|
118
|
-
'column': column,
|
119
|
-
'column-reverse': column-reverse
|
120
|
-
) {
|
121
|
-
.flex-#{$key} {
|
122
|
-
display: flex;
|
123
|
-
flex-direction: $value;
|
124
|
-
}
|
125
|
-
}
|
package/styles/space.scss
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
@for $i from 0 through 30 {
|
2
|
-
//padding
|
3
|
-
.padding-#{$i} {
|
4
|
-
padding: $i * 1px;
|
5
|
-
}
|
6
|
-
|
7
|
-
.padding-top-#{$i} {
|
8
|
-
padding-top: $i * 1px;
|
9
|
-
}
|
10
|
-
|
11
|
-
.padding-right-#{$i} {
|
12
|
-
padding-right: $i * 1px;
|
13
|
-
}
|
14
|
-
|
15
|
-
.padding-bottom-#{$i} {
|
16
|
-
padding-bottom: $i * 1px;
|
17
|
-
}
|
18
|
-
|
19
|
-
.padding-left-#{$i} {
|
20
|
-
padding-left: $i * 1px;
|
21
|
-
}
|
22
|
-
|
23
|
-
//margin
|
24
|
-
.margin-#{$i} {
|
25
|
-
margin: $i * 1px;
|
26
|
-
}
|
27
|
-
|
28
|
-
.margin-top-#{$i} {
|
29
|
-
margin-top: $i * 1px;
|
30
|
-
}
|
31
|
-
|
32
|
-
.margin-right-#{$i} {
|
33
|
-
margin-right: $i * 1px;
|
34
|
-
}
|
35
|
-
|
36
|
-
.margin-bottom-#{$i} {
|
37
|
-
margin-bottom: $i * 1px;
|
38
|
-
}
|
39
|
-
|
40
|
-
.margin-left-#{$i} {
|
41
|
-
margin-left: $i * 1px;
|
42
|
-
}
|
43
|
-
|
44
|
-
//position
|
45
|
-
.top-#{$i} {
|
46
|
-
top: $i * 1px;
|
47
|
-
}
|
48
|
-
|
49
|
-
.right-#{$i} {
|
50
|
-
right: $i * 1px;
|
51
|
-
}
|
52
|
-
|
53
|
-
.bottom-#{$i} {
|
54
|
-
bottom: $i * 1px;
|
55
|
-
}
|
56
|
-
|
57
|
-
.left-#{$i} {
|
58
|
-
left: $i * 1px;
|
59
|
-
}
|
60
|
-
|
61
|
-
//gap
|
62
|
-
.gap-#{$i} {
|
63
|
-
gap: $i * 1px;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
|
68
|
-
.fill-space {
|
69
|
-
flex: 1 1 auto;
|
70
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare const ElementsHTML: {
|
2
|
-
/** */
|
3
|
-
GetElement: (selector: string) => HTMLElement | null;
|
4
|
-
/** */
|
5
|
-
GetCssValueBy: (selector: string, style: string) => string;
|
6
|
-
/** */
|
7
|
-
GetCssValue: (element: Element | null, style: string) => string;
|
8
|
-
/** Get width in px */
|
9
|
-
GetElementWidth: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
10
|
-
/** Get height in px */
|
11
|
-
GetElementHeight: (element: HTMLElement | null | undefined, ...args: (number | HTMLElement | null | undefined)[]) => string;
|
12
|
-
/** */
|
13
|
-
IsInvalidElement: (element: any) => boolean;
|
14
|
-
/** Get color in hexadecimal format */
|
15
|
-
GetElementColor: (element: HTMLElement | null | undefined) => string;
|
16
|
-
};
|
File without changes
|
File without changes
|