@fvc/utils 1.1.3 → 1.2.1

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
- const e=e=>/^[0-9]+$/.test(e),r=r=>"number"==typeof r||e(r)?`${r}px`:r,t="az",a={i:"İ","ı":"I","ç":"Ç","ş":"Ş","ü":"Ü","ö":"Ö","ğ":"Ğ","ə":"Ə"},p={"İ":"i",I:"ı","Ç":"ç","Ş":"ş","Ü":"ü","Ö":"ö","Ğ":"ğ","Ə":"ə"},s=/\p{L}/gu,n=(e,r,t)=>e.replace(s,(e=>{var a;return null!==(a=r[e])&&void 0!==a?a:t(e)})),o=(e,r=t)=>r!==t?e.toLowerCase():n(e,p,(e=>e.toLowerCase())),c=(e,r=t)=>r!==t?e.toUpperCase():n(e,a,(e=>e.toUpperCase())),u=(e,r,a=t)=>{switch(r){case"lowercase":return o(e,a);case"uppercase":return c(e,a);case"capitalize":return((e,r=t)=>e.split(" ").map((e=>{const[t="",...a]=e;return c(t,r)+o(a.join(""),r)})).join(" "))(e,a);case"integer":return e.replace(/\D/g,"");default:return e}};export{r as cssVarResolver,e as isNumeric,u as transformText};
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};
@@ -32,7 +32,7 @@
32
32
  --blue-gray-300: #cdd1e4;
33
33
  --blue-gray-400: #75849a;
34
34
  --blue-gray-500: #69778c;
35
- --blue-gray-600: #696b78;
35
+ --blue-gray-600: #696878;
36
36
  --blue-gray-700: #4d5868;
37
37
  --blue-gray-800: #3d4655;
38
38
  --blue-gray-900: #2e3848;
@@ -76,7 +76,7 @@
76
76
 
77
77
  /* Text */
78
78
  --body-text-color-1000: #2a2d37; /* Used for body text and headlines on a light background */
79
- --secondary-text-color-600: #696b78; /* Used in labels and headings in tables */
79
+ --secondary-text-color-600: #696878; /* Used in labels and headings in tables */
80
80
  --support-text-color-300: #cdd1e4; /* Used as a label color on a dark background and into Default UI elements */
81
81
  --white-text-color-0: #ffffff; /* Used for body texts and headlines on a light background on a dark background */
82
82
  --link-on-dark-bg-color-400: #40dfa2; /* Used on a dark background */
@@ -111,7 +111,7 @@
111
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
112
  --primary-icon-color-1000: #2a2d37; /* Used on a dark background */
113
113
  --link-icon-color-500: #395ca6; /* Used on a dark background */
114
- --secondary-icon-on-dark-bg-color-600: #696b78; /* Used for text and icon on dark backgrounds */
114
+ --secondary-icon-on-dark-bg-color-600: #696878; /* Used for text and icon on dark backgrounds */
115
115
  --secondary-icon-on-light-bg-color-500: #787878; /* Used for text and icon on light backgrounds */
116
116
 
117
117
  /* Badge (for Task overview, Cards & Table) */
@@ -122,23 +122,4 @@
122
122
  --badge-warning-color-800: #800020; /* used for warned states */
123
123
  --badge-basic-color-400: #4271a5; /* Used for regular states */
124
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) */
144
125
  }
@@ -1,4 +1,4 @@
1
1
  @import './font.css';
2
- @import './variables.css';
2
+ @import './colors.css';
3
3
  @import './spacing.scss';
4
4
  @import './global.css';
@@ -1,3 +1,2 @@
1
1
  export { cssVarResolver } from './cssVarResolver';
2
2
  export { isNumeric } from './isNumeric';
3
- export { transformText } from './transformText';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/utils",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
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
+ }
@@ -1,2 +0,0 @@
1
- export type TextTransform = 'lowercase' | 'uppercase' | 'capitalize' | 'integer';
2
- export declare const transformText: (text: string, transformType: TextTransform, locale?: string) => string;