kwant-ui 3.33.13-alpha.0 → 3.34.1-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.33.13-alpha.0",
3
+ "version": "3.34.1-alpha.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +1 @@
1
1
  export declare const formatDate: (date: string, format: string) => string;
2
- export declare const checkFormatedDate: (date: string, dateFormat: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.33.13-alpha.0",
3
+ "version": "3.34.1-alpha.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -3,14 +3,3 @@ import dayjs from 'dayjs';
3
3
  export const formatDate = (date: string, format: string) => {
4
4
  return dayjs(date).format(format);
5
5
  };
6
-
7
- export const checkFormatedDate = (date: string, dateFormat: string) => {
8
- if (date && dateFormat === 'MM/DD/YYYY' && !dateFormat.includes('-')) {
9
- const splittedDate = date.split('/');
10
- return `${splittedDate[2]}-${splittedDate[0]}-${splittedDate[1]}`;
11
- } else if (date && dateFormat === 'DD/MM/YYYY' && !dateFormat.includes('-')) {
12
- const splittedDate = date.split('/');
13
- return `${splittedDate[2]}-${splittedDate[1]}-${splittedDate[0]}`;
14
- }
15
- return date;
16
- };