@pyck/react 0.0.1 → 0.0.2
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.
|
@@ -4,8 +4,8 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
4
4
|
import { Stack, createStyleContext } from "@pyck/styled-system/jsx";
|
|
5
5
|
import { dialog } from "@pyck/styled-system/recipes";
|
|
6
6
|
import { CheckCircleIcon, FilePenLineIcon, Trash2Icon } from "lucide-react";
|
|
7
|
-
import { omit } from "@pyck/react/utils";
|
|
8
7
|
import { useForm } from "react-hook-form";
|
|
8
|
+
import { omit } from "@pyck/react/utils";
|
|
9
9
|
import { Show } from "@pyck/react/show";
|
|
10
10
|
import { Portal } from "@ark-ui/react/portal";
|
|
11
11
|
import { Button, CloseButton } from "@pyck/react/button";
|
|
@@ -2,25 +2,25 @@ import { P, match } from "ts-pattern";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
4
|
import { Box, HStack, Stack } from "@pyck/styled-system/jsx";
|
|
5
|
-
import { capitalize } from "@pyck/react/utils";
|
|
6
5
|
import { CheckboxField } from "@pyck/react/checkbox";
|
|
7
6
|
import { Field } from "@pyck/react/field";
|
|
8
7
|
import { Controller, FormProvider, useForm, useFormContext } from "react-hook-form";
|
|
8
|
+
import { capitalize } from "@pyck/react/utils";
|
|
9
9
|
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.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pyck.ai",
|
|
7
7
|
"repository": {
|
|
@@ -51,32 +51,32 @@
|
|
|
51
51
|
"@tanstack/react-virtual": "3.13.18",
|
|
52
52
|
"ahooks": "3.9.6",
|
|
53
53
|
"date-fns": "4.1.0",
|
|
54
|
-
"lucide-react": "
|
|
55
|
-
"ts-pattern": "
|
|
56
|
-
"zustand": "
|
|
54
|
+
"lucide-react": "0.563.0",
|
|
55
|
+
"ts-pattern": "5.9.0",
|
|
56
|
+
"zustand": "5.0.11"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@hookform/resolvers": "5.2.2",
|
|
60
|
-
"@pyck/styled-system": "
|
|
60
|
+
"@pyck/styled-system": "0.0.2",
|
|
61
61
|
"@storybook/react": "10.2.10",
|
|
62
62
|
"@testing-library/dom": "10.4.1",
|
|
63
63
|
"@testing-library/jest-dom": "6.9.1",
|
|
64
64
|
"@testing-library/react": "16.3.2",
|
|
65
65
|
"@testing-library/user-event": "14.6.1",
|
|
66
|
-
"@types/react": "
|
|
67
|
-
"@types/react-dom": "
|
|
66
|
+
"@types/react": "19.2.10",
|
|
67
|
+
"@types/react-dom": "19.2.3",
|
|
68
68
|
"@vitejs/plugin-react-swc": "4.2.3",
|
|
69
69
|
"happy-dom": "20.6.3",
|
|
70
70
|
"lorem-ipsum": "2.0.8",
|
|
71
|
-
"react": "
|
|
72
|
-
"react-dom": "
|
|
71
|
+
"react": "19.2.4",
|
|
72
|
+
"react-dom": "19.2.4",
|
|
73
73
|
"react-hook-form": "7.71.1",
|
|
74
74
|
"tsdown": "0.20.3",
|
|
75
|
-
"typescript": "
|
|
75
|
+
"typescript": "5.9.3",
|
|
76
76
|
"vite": "7.3.1",
|
|
77
77
|
"vite-tsconfig-paths": "6.1.1",
|
|
78
78
|
"vitest": "4.0.18",
|
|
79
|
-
"zod": "
|
|
79
|
+
"zod": "4.3.6"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@pyck/styled-system": ">=0.0.0",
|