@v1nt1248/3nclient-lib 0.3.18 → 0.3.20

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.
@@ -0,0 +1,8 @@
1
+ type AnyFunction = (...args: any[]) => any;
2
+ export declare function debounce<T extends AnyFunction>(fn: T, delay: number, options?: {
3
+ immediate?: boolean;
4
+ }): {
5
+ (this: any, ...args: Parameters<T>): void;
6
+ cancel(): void;
7
+ };
8
+ export {};
@@ -11,6 +11,7 @@ export * from './for-web3n';
11
11
  export * from './copy-to-clipboard';
12
12
  export * from './execute-function';
13
13
  export * from './remove-whitespace-in-string';
14
+ export * from './debounce';
14
15
  export * from './ui/selection';
15
16
  export * from './ui/mark-search';
16
17
  export * from './ui/has-slot-content';
@@ -113,6 +113,7 @@
113
113
  --font-12: 12px;
114
114
  --font-13: 13px;
115
115
  --font-14: 14px;
116
+ --font-15: 15px;
116
117
  --font-16: 16px;
117
118
  --font-18: 18px;
118
119
  --font-20: 20px;
@@ -930,7 +931,7 @@
930
931
 
931
932
  html {
932
933
  overflow: hidden;
933
- font-family: system-ui, Manrope, sans-serif;
934
+ font-family: Inter, system-ui, sans-serif;
934
935
  }
935
936
 
936
937
  section,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.3.18",
5
+ "version": "0.3.20",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "@floating-ui/dom": "1.7.6",
55
55
  "@floating-ui/vue": "1.1.11",
56
- "dayjs": "1.11.20",
56
+ "dayjs": "1.11.21",
57
57
  "lodash": "4.18.1",
58
58
  "mitt": "3.0.1",
59
59
  "sanitize-html": "2.17.4",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "peerDependencies": {
63
63
  "pinia": "3.0.4",
64
- "vue": "3.5.34"
64
+ "vue": "3.5.35"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@eslint/eslintrc": "3.3.5",
@@ -69,46 +69,47 @@
69
69
  "@types/lodash": "4.17.24",
70
70
  "@types/node": "24.12.4",
71
71
  "@types/sanitize-html": "2.16.1",
72
- "@typescript-eslint/eslint-plugin": "8.59.0",
73
- "@typescript-eslint/parser": "8.59.0",
74
- "@vitejs/plugin-vue": "6.0.6",
75
- "@vue/compiler-core": "3.5.34",
72
+ "@typescript-eslint/eslint-plugin": "8.60.0",
73
+ "@typescript-eslint/parser": "8.60.0",
74
+ "@vitejs/plugin-vue": "6.0.7",
75
+ "@vue/compiler-core": "3.5.35",
76
76
  "@vue/eslint-config-typescript": "14.7.0",
77
- "@vue/runtime-core": "3.5.34",
77
+ "@vue/runtime-core": "3.5.35",
78
78
  "@vuedx/typescript-plugin-vue": "0.7.6",
79
- "eslint": "10.2.1",
79
+ "eslint": "10.4.0",
80
80
  "eslint-config-prettier": "10.1.8",
81
81
  "eslint-plugin-import": "2.32.0",
82
82
  "eslint-plugin-node": "11.1.0",
83
- "eslint-plugin-prettier": "5.5.5",
84
- "eslint-plugin-promise": "7.2.1",
85
- "eslint-plugin-vue": "10.9.0",
86
- "globals": "17.5.0",
83
+ "eslint-plugin-prettier": "5.5.6",
84
+ "eslint-plugin-promise": "7.3.0",
85
+ "eslint-plugin-vue": "10.9.1",
86
+ "globals": "17.6.0",
87
87
  "jackspeak": "4.2.3",
88
88
  "path": "0.12.7",
89
89
  "pinia": "3.0.4",
90
90
  "postcss-html": "1.8.1",
91
91
  "prettier": "3.8.3",
92
- "sass": "1.99.0",
93
- "shiki": "^4.0.2",
94
- "stylelint": "17.9.0",
92
+ "sass": "1.100.0",
93
+ "shiki": "4.1.0",
94
+ "stylelint": "17.12.0",
95
95
  "stylelint-config-recommended-scss": "17.0.1",
96
96
  "stylelint-config-recommended-vue": "1.6.1",
97
97
  "stylelint-config-standard": "39.0.1",
98
- "stylelint-scss": "7.0.0",
98
+ "stylelint-scss": "7.1.1",
99
99
  "tslib": "2.8.1",
100
100
  "typescript": "5.9.3",
101
- "typescript-eslint": "8.59.0",
102
- "vite": "8.0.10",
101
+ "typescript-eslint": "8.60.0",
102
+ "vite": "8.0.14",
103
103
  "vite-plugin-css-injected-by-js": "4.0.1",
104
104
  "vite-plugin-dts": "4.5.4",
105
+ "vite-plugin-node-polyfills": "^0.28.0",
105
106
  "vite-plugin-vue-devtools": "8.1.2",
106
107
  "vitepress": "1.6.4",
107
- "vue": "3.5.34",
108
- "vue-component-meta": "3.2.7",
108
+ "vue": "3.5.35",
109
+ "vue-component-meta": "3.3.2",
109
110
  "vue-docgen-api": "4.79.2",
110
111
  "vue-eslint-parser": "10.4.0",
111
- "vue-tsc": "3.2.7"
112
+ "vue-tsc": "3.3.2"
112
113
  },
113
114
  "packageManager": "pnpm@10.33.0",
114
115
  "pnpm": {
@@ -259,6 +259,7 @@
259
259
  :class="$style.trigger"
260
260
  >
261
261
  <template v-if="chips">
262
+ <!-- @vue-ignore -->
262
263
  <template
263
264
  v-for="(item, index) in modelValue"
264
265
  :key="item.id"
@@ -0,0 +1,5 @@
1
+ export const iconSizeByButtonSize = {
2
+ small: 12,
3
+ regular: 16,
4
+ large: 24,
5
+ };
@@ -2,9 +2,11 @@ import type { VNode } from 'vue';
2
2
 
3
3
  export interface Ui3nButtonProps {
4
4
  /** Button type */
5
- type?: 'primary' | 'secondary' | 'tertiary' | 'icon' | 'custom';
5
+ type?: 'primary' | 'secondary' | 'tertiary' | 'outline' | 'icon' | 'custom';
6
6
  /** Button size */
7
- size?: 'regular' | 'small';
7
+ size?: 'small' | 'regular' | 'large';
8
+ /** The unrounded button */
9
+ square?: boolean;
8
10
  /** Whether to stretch the button to the full width of the parent block */
9
11
  block?: boolean;
10
12
  /** Button text color */