@fvc/utils 1.1.1 → 1.1.2
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/dist/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=function(t){return"number"==typeof t
|
|
1
|
+
var t=function(t){return/^[0-9]+$/.test(t)},n=function(n){return"number"==typeof n||t(n)?"".concat(n,"px"):n};export{n as cssVarResolver,t as isNumeric};
|
|
@@ -120,6 +120,7 @@ input[type='text'],
|
|
|
120
120
|
input[type='password'],
|
|
121
121
|
input[type='number'],
|
|
122
122
|
textarea {
|
|
123
|
+
appearance: none;
|
|
123
124
|
-webkit-appearance: none;
|
|
124
125
|
}
|
|
125
126
|
|
|
@@ -273,6 +274,7 @@ button,
|
|
|
273
274
|
html [type='button'],
|
|
274
275
|
[type='reset'],
|
|
275
276
|
[type='submit'] {
|
|
277
|
+
appearance: button;
|
|
276
278
|
-webkit-appearance: button;
|
|
277
279
|
}
|
|
278
280
|
|
|
@@ -295,6 +297,7 @@ input[type='time'],
|
|
|
295
297
|
input[type='datetime-local'],
|
|
296
298
|
input[type='month'] {
|
|
297
299
|
-webkit-appearance: listbox;
|
|
300
|
+
appearance: listbox;
|
|
298
301
|
}
|
|
299
302
|
|
|
300
303
|
textarea {
|
|
@@ -333,16 +336,19 @@ progress {
|
|
|
333
336
|
[type='search'] {
|
|
334
337
|
outline-offset: -2px;
|
|
335
338
|
-webkit-appearance: none;
|
|
339
|
+
appearance: none;
|
|
336
340
|
}
|
|
337
341
|
|
|
338
342
|
[type='search']::-webkit-search-cancel-button,
|
|
339
343
|
[type='search']::-webkit-search-decoration {
|
|
340
344
|
-webkit-appearance: none;
|
|
345
|
+
appearance: none;
|
|
341
346
|
}
|
|
342
347
|
|
|
343
348
|
::-webkit-file-upload-button {
|
|
344
349
|
font: inherit;
|
|
345
350
|
-webkit-appearance: button;
|
|
351
|
+
appearance: button;
|
|
346
352
|
}
|
|
347
353
|
|
|
348
354
|
output {
|
|
@@ -1,123 +1,144 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* Blue */
|
|
3
|
-
--blue-20: #
|
|
4
|
-
--blue-50: #
|
|
5
|
-
--blue-100: #
|
|
6
|
-
--blue-150: #
|
|
7
|
-
--blue-200: #
|
|
8
|
-
--blue-250: #
|
|
9
|
-
--blue-300: #
|
|
10
|
-
--blue-400: #
|
|
11
|
-
--blue-500: #
|
|
12
|
-
--blue-600: #
|
|
13
|
-
--blue-700: #
|
|
3
|
+
--blue-20: #EEEFF6;
|
|
4
|
+
--blue-50: #EBEDF6;
|
|
5
|
+
--blue-100: #E4E6F4;
|
|
6
|
+
--blue-150: #E5E9FC;
|
|
7
|
+
--blue-200: #DADDEC;
|
|
8
|
+
--blue-250: #D9DEEF;
|
|
9
|
+
--blue-300: #CDD1E4;
|
|
10
|
+
--blue-400: #4271A5;
|
|
11
|
+
--blue-500: #395CA6;
|
|
12
|
+
--blue-600: #4054B2;
|
|
13
|
+
--blue-700: #303F9F;
|
|
14
14
|
|
|
15
15
|
/* Gray */
|
|
16
|
-
--gray-50: #
|
|
17
|
-
--gray-100: #
|
|
18
|
-
--gray-150: #
|
|
19
|
-
--gray-200: #
|
|
20
|
-
--gray-250: #
|
|
21
|
-
--gray-300: #
|
|
22
|
-
--gray-400: #
|
|
16
|
+
--gray-50: #F2F2F2;
|
|
17
|
+
--gray-100: #FAFAFA;
|
|
18
|
+
--gray-150: #ECECEC;
|
|
19
|
+
--gray-200: #DFDFDF;
|
|
20
|
+
--gray-250: #EBEBEB;
|
|
21
|
+
--gray-300: #DADADA;
|
|
22
|
+
--gray-400: #BBBBBB;
|
|
23
23
|
--gray-500: #787878;
|
|
24
24
|
--gray-600: #949494;
|
|
25
|
-
--gray-700: #
|
|
26
|
-
--gray-800: #
|
|
27
|
-
--gray-900: #
|
|
25
|
+
--gray-700: #7B7B7B;
|
|
26
|
+
--gray-800: #6D6D6D;
|
|
27
|
+
--gray-900: #4A4A4A;
|
|
28
28
|
|
|
29
29
|
/* Blue-gray */
|
|
30
|
-
--blue-gray-200: #
|
|
31
|
-
--blue-gray-250: #
|
|
32
|
-
--blue-gray-300: #
|
|
33
|
-
--blue-gray-400: #
|
|
34
|
-
--blue-gray-500: #
|
|
35
|
-
--blue-gray-600: #
|
|
36
|
-
--blue-gray-700: #
|
|
37
|
-
--blue-gray-800: #
|
|
38
|
-
--blue-gray-900: #
|
|
30
|
+
--blue-gray-200: #D9DEEF;
|
|
31
|
+
--blue-gray-250: #DDDAEC;
|
|
32
|
+
--blue-gray-300: #CDD1E4;
|
|
33
|
+
--blue-gray-400: #75849A;
|
|
34
|
+
--blue-gray-500: #69778C;
|
|
35
|
+
--blue-gray-600: #696878;
|
|
36
|
+
--blue-gray-700: #4D5868;
|
|
37
|
+
--blue-gray-800: #3D4655;
|
|
38
|
+
--blue-gray-900: #2E3848;
|
|
39
39
|
|
|
40
40
|
/* Green */
|
|
41
|
-
--green-100: #
|
|
42
|
-
--green-
|
|
43
|
-
--green-
|
|
44
|
-
--green-300: #
|
|
45
|
-
--green-400: #
|
|
41
|
+
--green-100: #D8FCD2;
|
|
42
|
+
--green-200: #DEEDEX;
|
|
43
|
+
--green-250: #C9E1D7;
|
|
44
|
+
--green-300: #93C3B0;
|
|
45
|
+
--green-400: #40DFA2;
|
|
46
46
|
--green-600: #268661;
|
|
47
|
-
--green-700: #
|
|
48
|
-
--green-800: #
|
|
47
|
+
--green-700: #176647;
|
|
48
|
+
--green-800: #396F65;
|
|
49
49
|
|
|
50
50
|
/* Yellow-green */
|
|
51
|
-
--yellow-green-400: #
|
|
52
|
-
--yellow-green-500: #
|
|
51
|
+
--yellow-green-400: #CDDC39;
|
|
52
|
+
--yellow-green-500: #AFB42B;
|
|
53
53
|
|
|
54
54
|
/* Red */
|
|
55
|
-
--red-100: #
|
|
56
|
-
--red-
|
|
57
|
-
--red-
|
|
58
|
-
--red-300: #
|
|
59
|
-
--red-400: #
|
|
60
|
-
--red-600: #
|
|
61
|
-
--red-800: #
|
|
55
|
+
--red-100: #F5ECE6;
|
|
56
|
+
--red-200: #FDEAED;
|
|
57
|
+
--red-250: #FBE0E3;
|
|
58
|
+
--red-300: #F9CBD1;
|
|
59
|
+
--red-400: #FF9DA9;
|
|
60
|
+
--red-600: #FF1F48;
|
|
61
|
+
--red-800: #B00020;
|
|
62
62
|
|
|
63
63
|
/* Orange */
|
|
64
|
-
--orange-100: #
|
|
65
|
-
--orange-200: #
|
|
66
|
-
--orange-600: #
|
|
64
|
+
--orange-100: #F5ECE6;
|
|
65
|
+
--orange-200: #FFF59B;
|
|
66
|
+
--orange-600: #DD9323;
|
|
67
67
|
|
|
68
68
|
/* Neutrals */
|
|
69
|
-
--neutral-0: #
|
|
69
|
+
--neutral-0: #FFFFFF;
|
|
70
|
+
--neutral-0-20: #FFFFFF33;
|
|
71
|
+
--neutral-0-40: #FFFFFF66;
|
|
70
72
|
--neutral-1000: #000000;
|
|
71
|
-
|
|
73
|
+
|
|
72
74
|
/* Black */
|
|
73
|
-
--black-1000: #
|
|
75
|
+
--black-1000: #2A2D37;
|
|
74
76
|
|
|
75
77
|
/* Text */
|
|
76
|
-
--body-text-color-1000: #
|
|
77
|
-
--secondary-text-color-600: #696878;
|
|
78
|
-
--support-text-color-300: #
|
|
79
|
-
--white-text-color-0: #
|
|
80
|
-
--link-on-dark-bg-color-400: #
|
|
81
|
-
--link-on-light-bg-color-500: #
|
|
82
|
-
--menu-2nd-level-color-200:
|
|
83
|
-
--warning-text-color-800: #
|
|
84
|
-
--warning-text-on-dark-bg-color-400: #
|
|
85
|
-
--button-text-color-
|
|
78
|
+
--body-text-color-1000: #2A2D37; /* Used for body text and headlines on a light background */
|
|
79
|
+
--secondary-text-color-600: #696878; /* Used in labels and headings in tables */
|
|
80
|
+
--support-text-color-300: #CDD1E4; /* Used as a label color on a dark background and into Default UI elements */
|
|
81
|
+
--white-text-color-0: #FFFFFF; /* Used for body texts and headlines on a light background on a dark background */
|
|
82
|
+
--link-on-dark-bg-color-400: #40DFA2; /* Used on a dark background */
|
|
83
|
+
--link-on-light-bg-color-500: #395CA6; /* Used on a light background */
|
|
84
|
+
--menu-2nd-level-color-200: #DADDEC; /* Used in a default secondary menu */
|
|
85
|
+
--warning-text-color-800: #B00020; /* Used to draw attention to the text most often in a negative aspect (on a white bg) */
|
|
86
|
+
--warning-text-on-dark-bg-color-400: #FF9DA9; /* Used to draw attention to the text most often in a negative aspect (on a dark bg) */
|
|
87
|
+
--button-text-color-600: #268661; /* Used for the text in the secondary button */
|
|
86
88
|
|
|
87
89
|
/* Background */
|
|
88
|
-
--card-bg-color-20: #
|
|
89
|
-
--main-content-bg-color-0: #
|
|
90
|
-
--header-bg-color-700: #405868;
|
|
91
|
-
--task-overview-bg-color-800: #
|
|
92
|
-
--primary-bg-color-900: #
|
|
90
|
+
--card-bg-color-20: #EEEFF6; /* The primary color is text, which is used in many situations */
|
|
91
|
+
--main-content-bg-color-0: #FFFFFF; /* Used in labels and headings in tables on dark background */
|
|
92
|
+
--header-bg-color-700: #405868; /* More often used as a label color on a dark background and into Default UI elements */
|
|
93
|
+
--task-overview-bg-color-800: #3D4655; /* Used on a dark background */
|
|
94
|
+
--primary-bg-color-900: #2E3848; /* Used on a dark background */
|
|
95
|
+
--alert-bg-color-50: #F2F2F2; /* Alert message default background. */
|
|
93
96
|
|
|
94
97
|
/* Overlay */
|
|
95
|
-
--tooltip-bg-color-900: #
|
|
96
|
-
--popup-bg-color-20: #
|
|
98
|
+
--tooltip-bg-color-900: #4A4A4A; /* The primary color is text, which is used in many situations. */
|
|
99
|
+
--popup-bg-color-20: #EEEFF6;
|
|
97
100
|
|
|
98
101
|
/* Border-line */
|
|
99
|
-
--element-b-line-color-400: #
|
|
100
|
-
--element-selected-b-line-color-400: #
|
|
101
|
-
--frame-b-line-color-250: #
|
|
102
|
-
--warning-b-line-on-light-bg-color-800: #
|
|
103
|
-
--warning-b-line-on-dark-bg-color-400: #
|
|
102
|
+
--element-b-line-color-400: #2A2D37; /* Border-line for default state of Text field. */
|
|
103
|
+
--element-selected-b-line-color-400: #4271A5; /* Border-line for selected state of Text field, Text area, Dropdown, Datetimepicker, Field range */
|
|
104
|
+
--frame-b-line-color-250: #D9DEEF; /* Border-line for Cards, Tables and Sections */
|
|
105
|
+
--warning-b-line-on-light-bg-color-800: #800020; /* Warning border-line for all elements on light background */
|
|
106
|
+
--warning-b-line-on-dark-bg-color-400: #FF9DA9; /* Warning border line for all elements on dark background */
|
|
104
107
|
|
|
105
108
|
/* Icon */
|
|
106
|
-
--white-icon-color-0: #
|
|
107
|
-
--warning-icon-color-800: #
|
|
108
|
-
--warning-icon-on-dark-bg-color-400: #
|
|
109
|
-
--primary-icon-color-1000: #
|
|
110
|
-
--link-icon-color-500: #
|
|
111
|
-
--secondary-icon-on-dark-bg-color-
|
|
112
|
-
--secondary-icon-on-light-bg-color-500: #787878;
|
|
109
|
+
--white-icon-color-0: #FFFFFF; /* The primary color is text, which is used in many situations. */
|
|
110
|
+
--warning-icon-color-800: #800020; /* Most often used in labels and headings in tables */
|
|
111
|
+
--warning-icon-on-dark-bg-color-400: #FF9DA9; /* More often used as a label color on a dark background and into Default UI elements */
|
|
112
|
+
--primary-icon-color-1000: #2A2D37; /* Used on a dark background */
|
|
113
|
+
--link-icon-color-500: #395CA6; /* Used on a dark background */
|
|
114
|
+
--secondary-icon-on-dark-bg-color-600: #696878; /* Used for text and icon on dark backgrounds */
|
|
115
|
+
--secondary-icon-on-light-bg-color-500: #787878; /* Used for text and icon on light backgrounds */
|
|
113
116
|
|
|
114
117
|
/* Badge (for Task overview, Cards & Table) */
|
|
115
|
-
--badge-
|
|
116
|
-
--badge-
|
|
117
|
-
--badge-
|
|
118
|
-
--badge-
|
|
119
|
-
--badge-
|
|
120
|
-
--badge-
|
|
121
|
-
--badge-
|
|
122
|
-
|
|
118
|
+
--badge-success-color-600: #268661; /* The primary color is text, which is used in many situations */
|
|
119
|
+
--badge-active-color-100: #2A2D37; /* Used in labels and headings in tables. */
|
|
120
|
+
--badge-cancel-color-900: #4A4A4A; /* Used as a label color on a stark background and into Default UI elements */
|
|
121
|
+
--badge-in-progress-color-600: #949494; /* Used for states with "in progress" state. */
|
|
122
|
+
--badge-warning-color-800: #800020; /* used for warned states */
|
|
123
|
+
--badge-basic-color-400: #4271A5; /* Used for regular states */
|
|
124
|
+
--badge-paused-color-100: #FFF59B; /* Used for suspended or paused states */
|
|
125
|
+
|
|
126
|
+
/* Button Background */
|
|
127
|
+
--button-disabled-secondary-color-300: #93C3B04D; /* Used as a stroke color for Secondary button. */
|
|
128
|
+
--button-hover-secondary-color-300: #93C3B080; /* Used as a background color for Secondary button. */
|
|
129
|
+
--button-pressed-secondary-color-300: #93C3B0; /* Used as a background color for Secondary button */
|
|
130
|
+
--button-enable-color-600: #268661; /* Used as a background color for Primary button */
|
|
131
|
+
--button-hover-color-700: #176647; /* Used as a background color for Primary button */
|
|
132
|
+
--button-disabled-color-800: #396F65; /* Used as a background color for Primary button */
|
|
133
|
+
--button-enable-second-on-dark-bg-color-0: #FFFFFF; /* Used as a stroke color for Secondary button. (on Dark bg) */
|
|
134
|
+
--button-hover-second-on-dark-bg-color-20: #FFFFFF33; /* Used as a background color for Secondary button. (on Dark bg) */
|
|
135
|
+
--button-pressed-second-on-dark-bg-color-40: #FFFFFF66; /* Used as a background color for Secondary button. (on Dark bg) */
|
|
136
|
+
--button-disabled-second-on-dark-bg-color-50: #F2F2F2; /* Used as a stroke color for Secondary button. (on Dark bg) */
|
|
137
|
+
--button-enable-second-error-color-800: #800020; /* Used as a stroke color for Secondary button */
|
|
138
|
+
--button-hover-second-error-color-300: #F9C801; /* Used as a background color for Secondary button */
|
|
139
|
+
--button-pressed-second-error-color-400: #FF9DA9; /* Used as a background color for Secondary button */
|
|
140
|
+
--button-disabled-second-error-color-400: #FF9D49; /* Used as a stroke color for Secondary button. */
|
|
141
|
+
--button-hover-second-error-on-dark-bg-color-300-40: #F9C80166; /* Used as a background color for Secondary button, (on Dark bg) */
|
|
142
|
+
--button-pressed-second-error-on-dark-bg-color-300-60: #F9CBD199; /* Used as a background color for Secondary button, (on Dark bg) */
|
|
143
|
+
--button-disabled-second-error-on-dark-bg-color-300: #F9C801; /* Used as a stroke color for Secondary button. (on Dark bg) */
|
|
123
144
|
}
|
package/package.json
CHANGED