@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||n(t)?"".concat(t,"px"):t},n=function(t){return/^[0-9]+$/.test(t)};export{t as cssVarResolver,n as isNumeric};
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: #eeeff6;
4
- --blue-50: #e8edf6;
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;
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: #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;
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: #7b7b7b;
26
- --gray-800: #6d6d6d;
27
- --gray-900: #4a4a4a;
25
+ --gray-700: #7B7B7B;
26
+ --gray-800: #6D6D6D;
27
+ --gray-900: #4A4A4A;
28
28
 
29
29
  /* Blue-gray */
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: #696b78;
36
- --blue-gray-700: #4d5868;
37
- --blue-gray-800: #3d4655;
38
- --blue-gray-900: #2e3848;
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: #d8fcd2;
42
- --green-300-30: #93c3b0;
43
- --green-300-50: #93c3b0;
44
- --green-300: #93c3b0;
45
- --green-400: #40dfa2;
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: #268661;
48
- --green-800: #396f65;
47
+ --green-700: #176647;
48
+ --green-800: #396F65;
49
49
 
50
50
  /* Yellow-green */
51
- --yellow-green-400: #cddc39;
52
- --yellow-green-500: #afb42b;
51
+ --yellow-green-400: #CDDC39;
52
+ --yellow-green-500: #AFB42B;
53
53
 
54
54
  /* Red */
55
- --red-100: #f5ece6;
56
- --red-300-40: #f9cbd1;
57
- --red-300-60: #f9cbd1;
58
- --red-300: #f9cbd1;
59
- --red-400: #ff9da9;
60
- --red-600: #ff1f48;
61
- --red-800: #b00020;
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: #f5ece6;
65
- --orange-200: #fff59b;
66
- --orange-600: #dd9323;
64
+ --orange-100: #F5ECE6;
65
+ --orange-200: #FFF59B;
66
+ --orange-600: #DD9323;
67
67
 
68
68
  /* Neutrals */
69
- --neutral-0: #ffffff;
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: #2a2d37;
75
+ --black-1000: #2A2D37;
74
76
 
75
77
  /* Text */
76
- --body-text-color-1000: #2a2d37;
77
- --secondary-text-color-600: #696878;
78
- --support-text-color-300: #cdd1e4;
79
- --white-text-color-0: #ffffff;
80
- --link-on-dark-bg-color-400: #40dfa2;
81
- --link-on-light-bg-color-500: #395ca6;
82
- --menu-2nd-level-color-200: hsl(230, 32%, 89%);
83
- --warning-text-color-800: #b00020;
84
- --warning-text-on-dark-bg-color-400: #ff9da9;
85
- --button-text-color-500: #268661;
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: #eeeff6;
89
- --main-content-bg-color-0: #ffffff;
90
- --header-bg-color-700: #405868;
91
- --task-overview-bg-color-800: #3d4655;
92
- --primary-bg-color-900: #2e3848;
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: #4a4a4a;
96
- --popup-bg-color-20: #eeeff6;
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: #2a2d37;
100
- --element-selected-b-line-color-400: #4271a5;
101
- --frame-b-line-color-250: #d0deef;
102
- --warning-b-line-on-light-bg-color-800: #b00020;
103
- --warning-b-line-on-dark-bg-color-400: #ff9da9;
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: #ffffff;
107
- --warning-icon-color-800: #b00020;
108
- --warning-icon-on-dark-bg-color-400: #ff9da9;
109
- --primary-icon-color-1000: #2a2d37;
110
- --link-icon-color-500: #395ca6;
111
- --secondary-icon-on-dark-bg-color-500: #696878;
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-card-table-0: #2a2d37;
116
- --badge-success-color-600: #268661;
117
- --badge-active-color-100: #2a2d37;
118
- --badge-cancel-color-900: #4a4a4a;
119
- --badge-in-progress-color-500: #949494;
120
- --badge-warning-color-800: #b00020;
121
- --badge-basic-color-400: #4271a5;
122
- --badge-paused-color-100: #fff598;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/utils",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "./dist/lib/index.js",
5
5
  "types": "./dist/lib/utils/src/index.d.ts",
6
6
  "exports": {
@@ -21,4 +21,4 @@
21
21
  "dependencies": {
22
22
  "react": "^18.0.0"
23
23
  }
24
- }
24
+ }