@trilogy-ds/react 4.4.0-beta-5 → 4.4.0-beta-6
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.
|
@@ -113,10 +113,10 @@ export default {
|
|
|
113
113
|
"type": "enum",
|
|
114
114
|
"values": [
|
|
115
115
|
"undefined",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
116
|
+
"JUSTIFIED_CENTER",
|
|
117
|
+
"JUSTIFIED_START",
|
|
118
|
+
"JUSTIFIED_END",
|
|
119
|
+
"SPACE_BETWEEN",
|
|
120
120
|
"JUSTIFIED_CENTER",
|
|
121
121
|
"JUSTIFIED_START",
|
|
122
122
|
"JUSTIFIED_END",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Typo align
|
|
3
3
|
*/
|
|
4
4
|
export declare enum Justifiable {
|
|
5
|
-
JUSTIFIED_CENTER = "
|
|
6
|
-
JUSTIFIED_START = "
|
|
7
|
-
JUSTIFIED_END = "
|
|
8
|
-
SPACE_BETWEEN = "
|
|
5
|
+
JUSTIFIED_CENTER = "JUSTIFIED_CENTER",
|
|
6
|
+
JUSTIFIED_START = "JUSTIFIED_START",
|
|
7
|
+
JUSTIFIED_END = "JUSTIFIED_END",
|
|
8
|
+
SPACE_BETWEEN = "SPACE_BETWEEN"
|
|
9
9
|
}
|
|
10
10
|
export type JustifiableValues = keyof typeof Justifiable;
|
|
11
11
|
export interface JustifiableProps {
|
|
@@ -17,5 +17,5 @@ export interface JustifiableProps {
|
|
|
17
17
|
* @returns {string} - Justify value
|
|
18
18
|
*/
|
|
19
19
|
export declare const getJustifyStyle: (justifyContent?: string) => "center" | "flex-start" | "flex-end" | "space-between";
|
|
20
|
-
export declare const getJustifyClassName: (justifyContent?: string) => "
|
|
21
|
-
export declare const getJustifiedClassName: (justifyContent?: string) => "justified-
|
|
20
|
+
export declare const getJustifyClassName: (justifyContent?: string) => "centered" | "justified-start" | "justified-end" | "spaced-between";
|
|
21
|
+
export declare const getJustifiedClassName: (justifyContent?: string) => "justified-start" | "justified-end" | "justified-center";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export var Justifiable;
|
|
5
5
|
(function (Justifiable) {
|
|
6
|
-
Justifiable["JUSTIFIED_CENTER"] = "
|
|
7
|
-
Justifiable["JUSTIFIED_START"] = "
|
|
8
|
-
Justifiable["JUSTIFIED_END"] = "
|
|
9
|
-
Justifiable["SPACE_BETWEEN"] = "
|
|
6
|
+
Justifiable["JUSTIFIED_CENTER"] = "JUSTIFIED_CENTER";
|
|
7
|
+
Justifiable["JUSTIFIED_START"] = "JUSTIFIED_START";
|
|
8
|
+
Justifiable["JUSTIFIED_END"] = "JUSTIFIED_END";
|
|
9
|
+
Justifiable["SPACE_BETWEEN"] = "SPACE_BETWEEN";
|
|
10
10
|
})(Justifiable || (Justifiable = {}));
|
|
11
11
|
/**
|
|
12
12
|
* Returns justifyContent style depending on justify type
|
|
@@ -16,13 +16,13 @@ export var Justifiable;
|
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
17
17
|
export var getJustifyStyle = function (justifyContent) {
|
|
18
18
|
switch (justifyContent) {
|
|
19
|
-
case '
|
|
19
|
+
case 'JUSTIFIED_CENTER':
|
|
20
20
|
return 'center';
|
|
21
|
-
case '
|
|
21
|
+
case 'JUSTIFIED_START':
|
|
22
22
|
return 'flex-start';
|
|
23
|
-
case '
|
|
23
|
+
case 'JUSTIFIED_END':
|
|
24
24
|
return 'flex-end';
|
|
25
|
-
case '
|
|
25
|
+
case 'SPACE_BETWEEN':
|
|
26
26
|
return 'space-between';
|
|
27
27
|
default:
|
|
28
28
|
return 'flex-start';
|
|
@@ -30,13 +30,13 @@ export var getJustifyStyle = function (justifyContent) {
|
|
|
30
30
|
};
|
|
31
31
|
export var getJustifyClassName = function (justifyContent) {
|
|
32
32
|
switch (justifyContent) {
|
|
33
|
-
case '
|
|
33
|
+
case 'JUSTIFIED_CENTER':
|
|
34
34
|
return 'centered';
|
|
35
|
-
case '
|
|
35
|
+
case 'JUSTIFIED_START':
|
|
36
36
|
return 'justified-start';
|
|
37
|
-
case '
|
|
37
|
+
case 'JUSTIFIED_END':
|
|
38
38
|
return 'justified-end';
|
|
39
|
-
case '
|
|
39
|
+
case 'SPACE_BETWEEN':
|
|
40
40
|
return 'spaced-between';
|
|
41
41
|
default:
|
|
42
42
|
return 'justified-start';
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.4.0-beta-
|
|
1
|
+
export declare const version = "4.4.0-beta-6";
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = "4.4.0-beta-
|
|
1
|
+
export var version = "4.4.0-beta-6";
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQU0sT0FBTyxHQUFHLGNBQWMsQ0FBQSJ9
|