@pyck/react 0.0.14 → 0.0.15
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.
|
@@ -6,8 +6,8 @@ import { Stack, createStyleContext } from "@pyck/styled-system/jsx";
|
|
|
6
6
|
import { dialog } from "@pyck/styled-system/recipes";
|
|
7
7
|
import { CheckCircleIcon, FilePenLineIcon, Trash2Icon } from "lucide-react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { useForm } from "react-hook-form";
|
|
10
9
|
import { omit } from "@pyck/react/utils";
|
|
10
|
+
import { useForm } from "react-hook-form";
|
|
11
11
|
import { Show } from "@pyck/react/show";
|
|
12
12
|
import { Portal } from "@ark-ui/react/portal";
|
|
13
13
|
import { Button, CloseButton } from "@pyck/react/button";
|
|
@@ -4,18 +4,18 @@ import { c } from "react/compiler-runtime";
|
|
|
4
4
|
import { Fragment } from "react";
|
|
5
5
|
import { Box, HStack, Stack } from "@pyck/styled-system/jsx";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { capitalize } from "@pyck/react/utils";
|
|
7
8
|
import { CheckboxField } from "@pyck/react/checkbox";
|
|
8
9
|
import { Field } from "@pyck/react/field";
|
|
9
10
|
import { Controller, FormProvider, useForm, useFormContext } from "react-hook-form";
|
|
10
|
-
import { capitalize } from "@pyck/react/utils";
|
|
11
11
|
import { Portal } from "@ark-ui/react/portal";
|
|
12
12
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
13
13
|
import { Form } from "@pyck/react/form";
|
|
14
14
|
import { Fieldset } from "@pyck/react/fieldset";
|
|
15
|
-
import { useListCollection } from "@ark-ui/react";
|
|
16
15
|
import { InputField } from "@pyck/react/input";
|
|
17
16
|
import { NumberInputField } from "@pyck/react/number-input";
|
|
18
|
-
import { Combobox, useFilter, useListCollection
|
|
17
|
+
import { Combobox, useFilter, useListCollection } from "@pyck/react/combobox";
|
|
18
|
+
import { useListCollection as useListCollection$1 } from "@ark-ui/react";
|
|
19
19
|
import { SelectField } from "@pyck/react/select";
|
|
20
20
|
import { TagsInput } from "@pyck/react/tags-input";
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ const ComboboxFromItems = (t0) => {
|
|
|
39
39
|
$[2] = items;
|
|
40
40
|
$[3] = t2;
|
|
41
41
|
} else t2 = $[3];
|
|
42
|
-
const { collection, filter } = useListCollection
|
|
42
|
+
const { collection, filter } = useListCollection(t2);
|
|
43
43
|
const { control } = useFormContext();
|
|
44
44
|
let t3;
|
|
45
45
|
if ($[4] !== collection || $[5] !== filter || $[6] !== helperText || $[7] !== label || $[8] !== required) {
|
|
@@ -106,7 +106,7 @@ const SelectFieldFromItems = (t0) => {
|
|
|
106
106
|
$[0] = items;
|
|
107
107
|
$[1] = t1;
|
|
108
108
|
} else t1 = $[1];
|
|
109
|
-
const { collection } = useListCollection(t1);
|
|
109
|
+
const { collection } = useListCollection$1(t1);
|
|
110
110
|
if (items.length === 0) return null;
|
|
111
111
|
const t2 = placeholder ?? `Select ${label}`;
|
|
112
112
|
let t3;
|
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.15",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pyck.ai",
|
|
7
7
|
"repository": {
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"test:ci": "vitest run",
|
|
23
23
|
"typecheck": "tsc",
|
|
24
24
|
"prepack": "bunx clean-package",
|
|
25
|
-
"postpack": "bunx clean-package restore"
|
|
26
|
-
"publish": "bun publish --access public"
|
|
25
|
+
"postpack": "bunx clean-package restore"
|
|
27
26
|
},
|
|
28
27
|
"exports": {
|
|
29
28
|
"./types": {
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@babel/plugin-transform-react-jsx": "7.28.6",
|
|
57
56
|
"@hookform/resolvers": "5.2.2",
|
|
58
|
-
"@pyck/styled-system": "0.0.
|
|
57
|
+
"@pyck/styled-system": "0.0.15",
|
|
59
58
|
"@rollup/plugin-babel": "6.1.0",
|
|
60
59
|
"@storybook/react": "10.2.10",
|
|
61
60
|
"@testing-library/dom": "10.4.1",
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
"zod": "4.3.6"
|
|
80
79
|
},
|
|
81
80
|
"peerDependencies": {
|
|
82
|
-
"@pyck/styled-system": ">=0.0.
|
|
81
|
+
"@pyck/styled-system": ">=0.0.15",
|
|
83
82
|
"react": ">=18.0.0",
|
|
84
83
|
"react-dom": ">=18.0.0",
|
|
85
84
|
"react-hook-form": ">=7.0.0",
|