@pyck/react 0.0.1 → 0.0.3
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.
|
@@ -7,11 +7,11 @@ import { CheckCircleIcon, FilePenLineIcon, Trash2Icon } from "lucide-react";
|
|
|
7
7
|
import { omit } from "@pyck/react/utils";
|
|
8
8
|
import { useForm } from "react-hook-form";
|
|
9
9
|
import { Show } from "@pyck/react/show";
|
|
10
|
+
import { Dialog, DialogContext as Context, useDialogContext } from "@ark-ui/react/dialog";
|
|
10
11
|
import { Portal } from "@ark-ui/react/portal";
|
|
11
12
|
import { Button, CloseButton } from "@pyck/react/button";
|
|
12
13
|
import { FeaturedIcon } from "@pyck/react/icon";
|
|
13
14
|
import { shallow } from "zustand/shallow";
|
|
14
|
-
import { Dialog, DialogContext as Context, useDialogContext } from "@ark-ui/react/dialog";
|
|
15
15
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
16
16
|
import { Form } from "@pyck/react/form";
|
|
17
17
|
|
|
@@ -10,17 +10,17 @@ import { Portal } from "@ark-ui/react/portal";
|
|
|
10
10
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
11
11
|
import { Form } from "@pyck/react/form";
|
|
12
12
|
import { Fieldset } from "@pyck/react/fieldset";
|
|
13
|
-
import { useListCollection } from "@ark-ui/react";
|
|
14
13
|
import { InputField } from "@pyck/react/input";
|
|
15
14
|
import { NumberInputField } from "@pyck/react/number-input";
|
|
16
|
-
import { Combobox, useFilter, useListCollection
|
|
15
|
+
import { Combobox, useFilter, useListCollection } from "@pyck/react/combobox";
|
|
16
|
+
import { useListCollection as useListCollection$1 } from "@ark-ui/react";
|
|
17
17
|
import { SelectField } from "@pyck/react/select";
|
|
18
18
|
import { TagsInput } from "@pyck/react/tags-input";
|
|
19
19
|
|
|
20
20
|
//#region src/components/json-form-builder/components/combobox-from-items.tsx
|
|
21
21
|
const ComboboxFromItems = ({ name, label, helperText, items, required }) => {
|
|
22
22
|
const { contains } = useFilter({ sensitivity: "base" });
|
|
23
|
-
const { collection, filter } = useListCollection
|
|
23
|
+
const { collection, filter } = useListCollection({
|
|
24
24
|
initialItems: items,
|
|
25
25
|
filter: contains
|
|
26
26
|
});
|
|
@@ -54,7 +54,7 @@ const ComboboxFromItems = ({ name, label, helperText, items, required }) => {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/json-form-builder/components/select-field-from-items.tsx
|
|
56
56
|
const SelectFieldFromItems = ({ name, label, helperText, placeholder, items, required }) => {
|
|
57
|
-
const { collection } = useListCollection({ initialItems: items });
|
|
57
|
+
const { collection } = useListCollection$1({ initialItems: items });
|
|
58
58
|
if (items.length === 0) return null;
|
|
59
59
|
return <SelectField.Root name={name} label={label} helperText={helperText} placeholder={placeholder ?? `Select ${label}`} collection={collection} multiple={false} required={required}>
|
|
60
60
|
{items.map((item) => <SelectField.Item key={item.value} item={item}>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyck/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pyck.ai",
|
|
7
7
|
"repository": {
|
|
@@ -20,70 +20,69 @@
|
|
|
20
20
|
"lint": "biome ci",
|
|
21
21
|
"test": "vitest",
|
|
22
22
|
"test:ci": "vitest run",
|
|
23
|
-
"typecheck": "tsc"
|
|
23
|
+
"typecheck": "tsc",
|
|
24
|
+
"prepack": "bunx clean-package",
|
|
25
|
+
"postpack": "bunx clean-package restore"
|
|
24
26
|
},
|
|
25
27
|
"exports": {
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
"./*": {
|
|
29
|
+
"types": "./dist/components/*/index.d.ts",
|
|
30
|
+
"default": "./dist/components/*/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": "./package.json"
|
|
30
33
|
},
|
|
31
34
|
"publishConfig": {
|
|
32
|
-
"access": "public"
|
|
33
|
-
"exports": {
|
|
34
|
-
"./package.json": "./package.json",
|
|
35
|
-
"./types": {
|
|
36
|
-
"types": "./dist/types/index.d.ts",
|
|
37
|
-
"default": "./dist/types/index.js"
|
|
38
|
-
},
|
|
39
|
-
"./utils": {
|
|
40
|
-
"types": "./dist/utils/index.d.ts",
|
|
41
|
-
"default": "./dist/utils/index.js"
|
|
42
|
-
},
|
|
43
|
-
"./*": {
|
|
44
|
-
"types": "./dist/components/*/index.d.ts",
|
|
45
|
-
"default": "./dist/components/*/index.js"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
35
|
+
"access": "public"
|
|
48
36
|
},
|
|
49
37
|
"dependencies": {
|
|
50
38
|
"@ark-ui/react": "5.31.0",
|
|
51
39
|
"@tanstack/react-virtual": "3.13.18",
|
|
52
40
|
"ahooks": "3.9.6",
|
|
53
41
|
"date-fns": "4.1.0",
|
|
54
|
-
"lucide-react": "
|
|
55
|
-
"ts-pattern": "
|
|
56
|
-
"zustand": "
|
|
42
|
+
"lucide-react": "0.563.0",
|
|
43
|
+
"ts-pattern": "5.9.0",
|
|
44
|
+
"zustand": "5.0.11"
|
|
57
45
|
},
|
|
58
46
|
"devDependencies": {
|
|
59
47
|
"@hookform/resolvers": "5.2.2",
|
|
60
|
-
"@pyck/styled-system": "
|
|
48
|
+
"@pyck/styled-system": "0.0.3",
|
|
61
49
|
"@storybook/react": "10.2.10",
|
|
62
50
|
"@testing-library/dom": "10.4.1",
|
|
63
51
|
"@testing-library/jest-dom": "6.9.1",
|
|
64
52
|
"@testing-library/react": "16.3.2",
|
|
65
53
|
"@testing-library/user-event": "14.6.1",
|
|
66
|
-
"@types/react": "
|
|
67
|
-
"@types/react-dom": "
|
|
54
|
+
"@types/react": "19.2.10",
|
|
55
|
+
"@types/react-dom": "19.2.3",
|
|
68
56
|
"@vitejs/plugin-react-swc": "4.2.3",
|
|
69
57
|
"happy-dom": "20.6.3",
|
|
70
58
|
"lorem-ipsum": "2.0.8",
|
|
71
|
-
"react": "
|
|
72
|
-
"react-dom": "
|
|
59
|
+
"react": "19.2.4",
|
|
60
|
+
"react-dom": "19.2.4",
|
|
73
61
|
"react-hook-form": "7.71.1",
|
|
74
62
|
"tsdown": "0.20.3",
|
|
75
|
-
"typescript": "
|
|
63
|
+
"typescript": "5.9.3",
|
|
76
64
|
"vite": "7.3.1",
|
|
77
65
|
"vite-tsconfig-paths": "6.1.1",
|
|
78
66
|
"vitest": "4.0.18",
|
|
79
|
-
"zod": "
|
|
67
|
+
"zod": "4.3.6"
|
|
80
68
|
},
|
|
81
69
|
"peerDependencies": {
|
|
82
|
-
"@pyck/styled-system": ">=0.0.
|
|
70
|
+
"@pyck/styled-system": ">=0.0.3",
|
|
83
71
|
"react": ">=18.0.0",
|
|
84
72
|
"react-dom": ">=18.0.0",
|
|
85
73
|
"react-hook-form": ">=7.0.0",
|
|
86
74
|
"zod": ">=3.0.0",
|
|
87
75
|
"@hookform/resolvers": ">=5.0.0"
|
|
76
|
+
},
|
|
77
|
+
"clean-package": {
|
|
78
|
+
"replace": {
|
|
79
|
+
"exports": {
|
|
80
|
+
"./*": {
|
|
81
|
+
"types": "./dist/components/*/index.d.ts",
|
|
82
|
+
"default": "./dist/components/*/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./package.json": "./package.json"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
88
87
|
}
|
|
89
88
|
}
|