@pyck/react 0.0.9 → 0.0.12

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,9 +6,9 @@ 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";
11
10
  import { Show } from "@pyck/react/show";
11
+ import { useForm } from "react-hook-form";
12
12
  import { Portal } from "@ark-ui/react/portal";
13
13
  import { Button, CloseButton } from "@pyck/react/button";
14
14
  import { FeaturedIcon } from "@pyck/react/icon";
@@ -3,8 +3,8 @@ import { ark } from "@ark-ui/react/factory";
3
3
  import { Box, styled } from "@pyck/styled-system/jsx";
4
4
  import { form } from "@pyck/styled-system/recipes";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { FormProvider } from "react-hook-form";
7
6
  import { Show } from "@pyck/react/show";
7
+ import { FormProvider } from "react-hook-form";
8
8
  import { Button } from "@pyck/react/button";
9
9
  import { Form as Form$1 } from "@pyck/react/form";
10
10
  import { Fieldset } from "@pyck/react/fieldset";
@@ -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 as useListCollection$1 } from "@pyck/react/combobox";
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$1(t2);
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;
@@ -7,9 +7,9 @@ import { createStyleContext } from "@pyck/styled-system/jsx";
7
7
  import { select } from "@pyck/styled-system/recipes";
8
8
  import { CheckIcon, ChevronsUpDownIcon } from "lucide-react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { Show } from "@pyck/react/show";
10
11
  import { Field } from "@pyck/react/field";
11
12
  import { Controller, useFormContext } from "react-hook-form";
12
- import { Show } from "@pyck/react/show";
13
13
  import { Select } from "@pyck/react/select";
14
14
  import { Select as Select$1, SelectContext as Context, SelectItemContext as ItemContext, useListCollection, useSelectItemContext } from "@ark-ui/react/select";
15
15
 
@@ -10,8 +10,8 @@ import { Span } from "@pyck/react/span";
10
10
  import { Button } from "@pyck/react/button";
11
11
  import { Icon } from "@pyck/react/icon";
12
12
  import { Combobox } from "@pyck/react/combobox";
13
- import { Text } from "@pyck/react/text";
14
13
  import { ScrollArea } from "@pyck/react/scroll-area";
14
+ import { Text } from "@pyck/react/text";
15
15
  import { Dialog } from "@pyck/react/dialog";
16
16
  import { InputGroup } from "@pyck/react/input-group";
17
17
  import { Kbd } from "@pyck/react/kbd";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pyck/react",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.12",
5
5
  "license": "MIT",
6
6
  "homepage": "https://pyck.ai",
7
7
  "repository": {
@@ -22,7 +22,8 @@
22
22
  "test:ci": "vitest run",
23
23
  "typecheck": "tsc",
24
24
  "prepack": "bunx clean-package",
25
- "postpack": "bunx clean-package restore"
25
+ "postpack": "bunx clean-package restore",
26
+ "publish": "bun publish --access public"
26
27
  },
27
28
  "exports": {
28
29
  "./types": {
@@ -54,7 +55,7 @@
54
55
  "devDependencies": {
55
56
  "@babel/plugin-transform-react-jsx": "7.28.6",
56
57
  "@hookform/resolvers": "5.2.2",
57
- "@pyck/styled-system": "0.0.9",
58
+ "@pyck/styled-system": "0.0.12",
58
59
  "@rollup/plugin-babel": "6.1.0",
59
60
  "@storybook/react": "10.2.10",
60
61
  "@testing-library/dom": "10.4.1",
@@ -78,7 +79,7 @@
78
79
  "zod": "4.3.6"
79
80
  },
80
81
  "peerDependencies": {
81
- "@pyck/styled-system": ">=0.0.9",
82
+ "@pyck/styled-system": ">=0.0.12",
82
83
  "react": ">=18.0.0",
83
84
  "react-dom": ">=18.0.0",
84
85
  "react-hook-form": ">=7.0.0",