cleek 2.11.34 → 2.11.35

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.
@@ -8,7 +8,7 @@ export type Layout = 'base' | 'rounded' | 'squared';
8
8
  export type ButtonType = 'filled' | 'outlined' | 'flat';
9
9
  export type ChipType = 'outlined' | 'filled' | 'shadow';
10
10
  export type WidthBreaks = [number, string][];
11
- export type InputType = 'text' | 'number' | 'date' | 'time' | 'password';
11
+ export type InputType = 'text' | 'number' | 'date' | 'time' | 'password' | 'email';
12
12
  export type Size = 'xs' | 's' | 'm' | 'l' | 'xl';
13
13
  export type SizeInCSS = string;
14
14
  export type TableVersion = 'default' | 'colored';
@@ -3,6 +3,7 @@ type Value = string | number;
3
3
  type __VLS_Props = {
4
4
  type?: InputType;
5
5
  preventAutocomplete?: boolean;
6
+ autocomplete?: string;
6
7
  readonly?: boolean;
7
8
  disabled?: boolean;
8
9
  placeholder?: string;
@@ -28,7 +28,7 @@ type __VLS_Props = {
28
28
  version?: TableVersion;
29
29
  headerTextColor?: Color;
30
30
  headerBackgroundColor?: Color;
31
- mobileMaxWidth?: Number;
31
+ mobileMaxWidth?: number;
32
32
  };
33
33
  type __VLS_PublicProps = {
34
34
  'selectedRows'?: SelectedRows;
@@ -0,0 +1,6 @@
1
+ type DateFormat = 'dd/mm' | 'dd/mm/yy' | 'dd/mm/yyyy';
2
+ export declare function hourToMin(time?: string | null): number | "";
3
+ export declare function minToHour(minutes: number): string;
4
+ export declare function presentDate(date?: string | null, format?: DateFormat): string;
5
+ export declare function presentTime(datetime?: string | null): string;
6
+ export {};
@@ -1 +1,4 @@
1
1
  export declare function normalizeText(text: string): string;
2
+ export declare function capitalize(str: string): string;
3
+ export declare function padZeros(num: number, size?: number): string;
4
+ export declare function checkContainsStr(str: string, subStr: string): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cleek",
3
3
  "description": "Complete UX Vue library",
4
- "version": "2.11.34",
4
+ "version": "2.11.35",
5
5
  "author": "Quantic Onion",
6
6
  "license": "MIT",
7
7
  "repository": "github:quantic-core/cleek",
@@ -22,15 +22,12 @@
22
22
  },
23
23
  "types": "./dist/types/main.d.ts",
24
24
  "scripts": {
25
- "dev": "vitepress dev docs",
26
25
  "typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
27
26
  "build": "vite build",
28
27
  "build:full": "vite build && vue-tsc --declaration --emitDeclarationOnly",
29
- "build:docs": "vitepress build docs",
30
- "serve": "vitepress serve docs",
31
28
  "analyze": "vite build --config analyze.config.js",
32
29
  "patch-publish": "npm run build && npm version patch && npm publish",
33
- "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
30
+ "lint": "eslint --fix src",
34
31
  "stylelint": "stylelint . --fix --ignore-path .stylelintignore",
35
32
  "format": "prettier . --write",
36
33
  "deploy": "node deploy.js"
@@ -43,11 +40,10 @@
43
40
  "@fortawesome/vue-fontawesome": "^3.0.0-5",
44
41
  "@vuepic/vue-datepicker": "^3.5.3",
45
42
  "click-outside-vue3": "^4.0.1",
43
+ "date-fns": "^2.30.0",
46
44
  "floating-vue": "^5.2.2",
47
45
  "mitt": "^3.0.0",
48
46
  "pinia": "^3.0.2",
49
- "pinia-plugin-persistedstate": "^3.2.1",
50
- "quantic-methods": "^1.6.87",
51
47
  "tabbable": "^5.2.0",
52
48
  "tippy.js": "^6.3.1",
53
49
  "vue": "^3.5.12",
@@ -55,32 +51,29 @@
55
51
  "vue3-datepicker": "^0.4.0"
56
52
  },
57
53
  "devDependencies": {
58
- "@prettier/plugin-pug": "^2.5.1",
54
+ "@eslint/js": "^9.39.0",
55
+ "@prettier/plugin-pug": "^3.4.2",
59
56
  "@types/node": "^20.14.9",
60
57
  "@vitejs/plugin-vue": "^5.2.4",
61
58
  "@vue/compiler-sfc": "^3.1.5",
62
- "@vue/eslint-config-prettier": "^7.1.0",
63
- "@vue/eslint-config-typescript": "^11.0.3",
59
+ "@vue/eslint-config-typescript": "^14.9.0",
64
60
  "@vue/language-plugin-pug": "^1.8.15",
65
61
  "@vue/tsconfig": "^0.1.3",
66
- "ajv": "^8",
67
- "eslint": "^7.31.0",
68
- "eslint-config-prettier": "^8.3.0",
69
- "eslint-plugin-vue": "^7.14.0",
70
- "prettier": "^2.3.2",
62
+ "eslint": "^9.39.0",
63
+ "eslint-config-prettier": "^10.1.8",
64
+ "eslint-plugin-vue": "^10.10.0",
65
+ "prettier": "^3.6.2",
71
66
  "prettier-plugin-stylus": "^0.1.0",
72
67
  "pug": "^3.0.2",
73
68
  "pug-plain-loader": "^1.1.0",
74
69
  "rollup-plugin-visualizer": "^6.0.5",
75
70
  "stylelint": "^15.9.0",
76
- "stylelint-config-prettier": "^9.0.5",
77
71
  "stylelint-config-recommended": "^12.0.0",
78
72
  "stylelint-stylus": "^0.18.0",
79
73
  "stylus": "^0.59.0",
80
74
  "typescript": "^5.5.3",
81
75
  "vite": "^6.3.5",
82
76
  "vite-plugin-dts": "^4.5.4",
83
- "vitepress": "^0.21.4",
84
77
  "vue-tsc": "^2"
85
78
  }
86
79
  }