@bgord/ui 0.8.20 → 0.8.22
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/hooks/use-file.d.ts +4 -4
- package/dist/services/fields.d.ts +12 -12
- package/package.json +17 -17
package/dist/hooks/use-file.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type UseFileNameType = string;
|
|
2
2
|
export type UseFileConfigType = {
|
|
3
|
-
mimeTypes: string
|
|
3
|
+
mimeTypes: ReadonlyArray<string>;
|
|
4
4
|
maxSizeBytes?: number;
|
|
5
5
|
};
|
|
6
6
|
export declare enum UseFileState {
|
|
@@ -34,7 +34,7 @@ type UseFileIdle = {
|
|
|
34
34
|
isIdle: true;
|
|
35
35
|
isSelected: false;
|
|
36
36
|
label: UseFileLabelType;
|
|
37
|
-
matches: (states: UseFileState
|
|
37
|
+
matches: (states: ReadonlyArray<UseFileState>) => boolean;
|
|
38
38
|
state: UseFileState.idle;
|
|
39
39
|
};
|
|
40
40
|
type UseFileSelected = {
|
|
@@ -45,7 +45,7 @@ type UseFileSelected = {
|
|
|
45
45
|
isIdle: false;
|
|
46
46
|
isSelected: true;
|
|
47
47
|
label: UseFileLabelType;
|
|
48
|
-
matches: (states: UseFileState
|
|
48
|
+
matches: (states: ReadonlyArray<UseFileState>) => boolean;
|
|
49
49
|
preview: ReturnType<typeof URL.createObjectURL> | undefined;
|
|
50
50
|
state: UseFileState.selected;
|
|
51
51
|
};
|
|
@@ -57,7 +57,7 @@ type UseFileError = {
|
|
|
57
57
|
isIdle: false;
|
|
58
58
|
isSelected: false;
|
|
59
59
|
label: UseFileLabelType;
|
|
60
|
-
matches: (states: UseFileState
|
|
60
|
+
matches: (states: ReadonlyArray<UseFileState>) => boolean;
|
|
61
61
|
state: UseFileState.error;
|
|
62
62
|
};
|
|
63
63
|
export type UseFileReturnType = UseFileIdle | UseFileSelected | UseFileError;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare class Fields {
|
|
2
|
-
static allUnchanged(fields: {
|
|
2
|
+
static allUnchanged(fields: ReadonlyArray<{
|
|
3
3
|
unchanged: boolean;
|
|
4
|
-
}
|
|
5
|
-
static allEmpty(fields: {
|
|
4
|
+
}>): boolean;
|
|
5
|
+
static allEmpty(fields: ReadonlyArray<{
|
|
6
6
|
empty: boolean;
|
|
7
|
-
}
|
|
8
|
-
static anyEmpty(fields: {
|
|
7
|
+
}>): boolean;
|
|
8
|
+
static anyEmpty(fields: ReadonlyArray<{
|
|
9
9
|
empty: boolean;
|
|
10
|
-
}
|
|
11
|
-
static anyUnchanged(fields: {
|
|
10
|
+
}>): boolean;
|
|
11
|
+
static anyUnchanged(fields: ReadonlyArray<{
|
|
12
12
|
unchanged: boolean;
|
|
13
|
-
}
|
|
14
|
-
static anyChanged(fields: {
|
|
13
|
+
}>): boolean;
|
|
14
|
+
static anyChanged(fields: ReadonlyArray<{
|
|
15
15
|
changed: boolean;
|
|
16
|
-
}
|
|
17
|
-
static clearAll(fields: {
|
|
16
|
+
}>): boolean;
|
|
17
|
+
static clearAll(fields: ReadonlyArray<{
|
|
18
18
|
clear: VoidFunction;
|
|
19
|
-
}
|
|
19
|
+
}>): void;
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgord/ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"react": "19.2.3",
|
|
16
|
-
"react-dom": "19.2.3"
|
|
17
|
-
},
|
|
18
14
|
"scripts": {
|
|
19
15
|
"build": "bash scripts/package-build.sh",
|
|
20
16
|
"preinstall": "bunx only-allow bun"
|
|
@@ -23,23 +19,23 @@
|
|
|
23
19
|
"access": "public"
|
|
24
20
|
},
|
|
25
21
|
"devDependencies": {
|
|
26
|
-
"@biomejs/biome": "2.3.
|
|
27
|
-
"@commitlint/cli": "20.
|
|
28
|
-
"@commitlint/config-conventional": "20.
|
|
29
|
-
"@happy-dom/global-registrator": "20.
|
|
30
|
-
"@stryker-mutator/core": "9.
|
|
22
|
+
"@biomejs/biome": "2.3.14",
|
|
23
|
+
"@commitlint/cli": "20.4.1",
|
|
24
|
+
"@commitlint/config-conventional": "20.4.1",
|
|
25
|
+
"@happy-dom/global-registrator": "20.5.0",
|
|
26
|
+
"@stryker-mutator/core": "9.5.1",
|
|
31
27
|
"@testing-library/dom": "10.4.1",
|
|
32
28
|
"@testing-library/jest-dom": "6.9.1",
|
|
33
|
-
"@testing-library/react": "16.3.
|
|
29
|
+
"@testing-library/react": "16.3.2",
|
|
34
30
|
"@testing-library/user-event": "14.6.1",
|
|
35
|
-
"@types/bun": "1.3.
|
|
31
|
+
"@types/bun": "1.3.8",
|
|
36
32
|
"@types/js-cookie": "3.0.6",
|
|
37
|
-
"@types/react": "19.2.
|
|
33
|
+
"@types/react": "19.2.13",
|
|
38
34
|
"@types/react-dom": "19.2.3",
|
|
39
|
-
"cspell": "9.6.
|
|
40
|
-
"knip": "5.
|
|
41
|
-
"lefthook": "2.0
|
|
42
|
-
"lockfile-lint": "
|
|
35
|
+
"cspell": "9.6.4",
|
|
36
|
+
"knip": "5.83.1",
|
|
37
|
+
"lefthook": "2.1.0",
|
|
38
|
+
"lockfile-lint": "5.0.0",
|
|
43
39
|
"only-allow": "1.2.2",
|
|
44
40
|
"shellcheck": "4.1.0",
|
|
45
41
|
"typescript": "5.9.3"
|
|
@@ -48,5 +44,9 @@
|
|
|
48
44
|
"js-cookie": "3.0.5",
|
|
49
45
|
"polish-plurals": "1.1.0",
|
|
50
46
|
"tinykeys": "3.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": "19.2.4",
|
|
50
|
+
"react-dom": "19.2.4"
|
|
51
51
|
}
|
|
52
52
|
}
|