@pyck/react 0.0.6 → 0.0.8

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.
Files changed (82) hide show
  1. package/dist/{checkmark-fJPHeX8N.js → checkmark-rF75Pk98.js} +16 -3
  2. package/dist/{close-button-r3blTfSH.js → close-button-DAgpEZYq.js} +38 -7
  3. package/dist/components/avatar/index.js +27 -14
  4. package/dist/components/button/index.js +1 -1
  5. package/dist/components/carousel/index.js +22 -7
  6. package/dist/components/checkbox/index.d.ts +1 -1
  7. package/dist/components/checkbox/index.js +59 -23
  8. package/dist/components/checkmark/index.js +1 -1
  9. package/dist/components/clipboard/index.js +3 -2
  10. package/dist/components/combobox/index.js +20 -7
  11. package/dist/components/data-list/index.d.ts +3 -2
  12. package/dist/components/data-list/index.js +8 -4
  13. package/dist/components/date-picker/index.js +17 -10
  14. package/dist/components/dialog/index.d.ts +1 -1
  15. package/dist/components/dialog/index.js +118 -88
  16. package/dist/components/display-date-value/index.d.ts +1 -1
  17. package/dist/components/display-date-value/index.js +2 -2
  18. package/dist/components/display-value/index.js +1 -1
  19. package/dist/components/drawer/index.d.ts +1 -1
  20. package/dist/components/drawer/index.js +6 -1
  21. package/dist/components/drilldown-menu/index.js +70 -20
  22. package/dist/components/field/index.js +30 -20
  23. package/dist/components/floating-panel/index.d.ts +1 -1
  24. package/dist/components/floating-panel/index.js +46 -9
  25. package/dist/components/form/index.d.ts +1 -1
  26. package/dist/components/form/index.js +40 -13
  27. package/dist/components/highlight/index.d.ts +1 -1
  28. package/dist/components/highlight/index.js +13 -2
  29. package/dist/components/icon/index.d.ts +1 -1
  30. package/dist/components/icon/index.js +1 -1
  31. package/dist/components/image/index.js +7 -1
  32. package/dist/components/input/index.d.ts +1 -1
  33. package/dist/components/input/index.js +22 -2
  34. package/dist/components/input-group/index.js +28 -5
  35. package/dist/components/json-form-builder/index.d.ts +1 -1
  36. package/dist/components/json-form-builder/index.js +166 -40
  37. package/dist/components/loader/index.js +35 -15
  38. package/dist/components/logo/index.js +58 -7
  39. package/dist/components/menu/index.d.ts +1 -1
  40. package/dist/components/menu/index.js +18 -6
  41. package/dist/components/number-input/index.d.ts +1 -1
  42. package/dist/components/number-input/index.js +27 -11
  43. package/dist/components/page-header/index.js +28 -6
  44. package/dist/components/pagination/index.d.ts +1 -1
  45. package/dist/components/pagination/index.js +20 -3
  46. package/dist/components/picker/index.js +56 -28
  47. package/dist/components/popover/index.d.ts +1 -1
  48. package/dist/components/popover/index.js +2 -1
  49. package/dist/components/progress/index.js +14 -19
  50. package/dist/components/progress-circle/index.js +23 -20
  51. package/dist/components/radio-group/index.js +17 -17
  52. package/dist/components/scroll-area/index.js +22 -16
  53. package/dist/components/segment-group/index.d.ts +1 -1
  54. package/dist/components/segment-group/index.js +7 -1
  55. package/dist/components/select/index.d.ts +1 -1
  56. package/dist/components/select/index.js +43 -10
  57. package/dist/components/show/index.js +1 -1
  58. package/dist/components/skeleton/index.js +13 -2
  59. package/dist/components/slider/index.d.ts +1 -0
  60. package/dist/components/slider/index.js +55 -33
  61. package/dist/components/spotlight/index.js +208 -31
  62. package/dist/components/steps/index.js +15 -7
  63. package/dist/components/switch/index.d.ts +1 -1
  64. package/dist/components/switch/index.js +65 -29
  65. package/dist/components/table/index.d.ts +1 -1
  66. package/dist/components/table/index.js +79 -15
  67. package/dist/components/tags-input/index.d.ts +1 -1
  68. package/dist/components/tags-input/index.js +9 -3
  69. package/dist/components/textarea/index.d.ts +1 -1
  70. package/dist/components/textarea/index.js +21 -2
  71. package/dist/components/toast/index.d.ts +1 -1
  72. package/dist/components/toast/index.js +32 -4
  73. package/dist/components/tooltip/index.d.ts +1 -1
  74. package/dist/components/tooltip/index.js +21 -16
  75. package/dist/components/tree-view/index.d.ts +1 -1
  76. package/dist/components/tree-view/index.js +25 -6
  77. package/dist/{display-date-value-BAU46P8s.js → display-date-value-Ca7v5jK7.js} +7 -2
  78. package/dist/{display-date-value-CdfgVuB7.d.ts → display-date-value-RbzRgYHt.d.ts} +1 -1
  79. package/dist/{display-value-Bz71ZqgM.js → display-value-DDIH9kvx.js} +29 -5
  80. package/dist/{featured-icon-CKDv0xfF.js → featured-icon-DBnAKGXC.js} +6 -2
  81. package/dist/{show-DAysVQAC.js → show-B7zG1Vci.js} +2 -1
  82. package/package.json +4 -3
@@ -1,22 +1,13 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
1
  import { c } from "react/compiler-runtime";
3
2
  import { forwardRef } from "react";
4
3
  import { VisuallyHidden, createStyleContext } from "@pyck/styled-system/jsx";
5
4
  import { field } from "@pyck/styled-system/recipes";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Show } from "@pyck/react/show";
7
7
  import { Wrap } from "@pyck/react/wrap";
8
- import { Field as Field$1, FieldContext as Context } from "@ark-ui/react/field";
8
+ import { Field as Field$1 } from "@ark-ui/react/field";
9
9
 
10
10
  //#region src/components/field/field.tsx
11
- var field_exports = /* @__PURE__ */ __exportAll({
12
- Context: () => Context,
13
- ErrorText: () => ErrorText,
14
- HelperText: () => HelperText,
15
- Label: () => Label,
16
- RequiredIndicator: () => RequiredIndicator,
17
- Root: () => Root,
18
- RootProvider: () => RootProvider
19
- });
20
11
  const { withProvider, withContext } = createStyleContext(field);
21
12
  const Root = withProvider(Field$1.Root, "root");
22
13
  const RootProvider = withProvider(Field$1.RootProvider, "root");
@@ -57,53 +48,72 @@ const Field = forwardRef(function Field(props, ref) {
57
48
  }
58
49
  let t0;
59
50
  if ($[8] !== optionalText) {
60
- t0 = <field_exports.RequiredIndicator fallback={optionalText} />;
51
+ t0 = /* @__PURE__ */ jsx(RequiredIndicator, { fallback: optionalText });
61
52
  $[8] = optionalText;
62
53
  $[9] = t0;
63
54
  } else t0 = $[9];
64
55
  let t1;
65
56
  if ($[10] !== label || $[11] !== t0) {
66
- t1 = <field_exports.Label>{label}{t0}</field_exports.Label>;
57
+ t1 = /* @__PURE__ */ jsxs(Label, { children: [label, t0] });
67
58
  $[10] = label;
68
59
  $[11] = t0;
69
60
  $[12] = t1;
70
61
  } else t1 = $[12];
71
62
  let t2;
72
63
  if ($[13] !== hideLabel || $[14] !== t1) {
73
- t2 = <Wrap when={hideLabel} with={_temp}>{t1}</Wrap>;
64
+ t2 = /* @__PURE__ */ jsx(Wrap, {
65
+ when: hideLabel,
66
+ with: _temp,
67
+ children: t1
68
+ });
74
69
  $[13] = hideLabel;
75
70
  $[14] = t1;
76
71
  $[15] = t2;
77
72
  } else t2 = $[15];
78
73
  let t3;
79
74
  if ($[16] !== label || $[17] !== t2) {
80
- t3 = <Show when={label}>{t2}</Show>;
75
+ t3 = /* @__PURE__ */ jsx(Show, {
76
+ when: label,
77
+ children: t2
78
+ });
81
79
  $[16] = label;
82
80
  $[17] = t2;
83
81
  $[18] = t3;
84
82
  } else t3 = $[18];
85
83
  let t4;
86
84
  if ($[19] !== helperText) {
87
- t4 = <field_exports.HelperText>{helperText}</field_exports.HelperText>;
85
+ t4 = /* @__PURE__ */ jsx(HelperText, { children: helperText });
88
86
  $[19] = helperText;
89
87
  $[20] = t4;
90
88
  } else t4 = $[20];
91
89
  let t5;
92
90
  if ($[21] !== helperText || $[22] !== t4) {
93
- t5 = <Show when={helperText}>{t4}</Show>;
91
+ t5 = /* @__PURE__ */ jsx(Show, {
92
+ when: helperText,
93
+ children: t4
94
+ });
94
95
  $[21] = helperText;
95
96
  $[22] = t4;
96
97
  $[23] = t5;
97
98
  } else t5 = $[23];
98
99
  let t6;
99
100
  if ($[24] !== errorText) {
100
- t6 = <field_exports.ErrorText>{errorText}</field_exports.ErrorText>;
101
+ t6 = /* @__PURE__ */ jsx(ErrorText, { children: errorText });
101
102
  $[24] = errorText;
102
103
  $[25] = t6;
103
104
  } else t6 = $[25];
104
105
  let t7;
105
106
  if ($[26] !== children || $[27] !== ref || $[28] !== rest || $[29] !== t3 || $[30] !== t5 || $[31] !== t6) {
106
- t7 = <field_exports.Root ref={ref} {...rest}>{t3}{children}{t5}{t6}</field_exports.Root>;
107
+ t7 = /* @__PURE__ */ jsxs(Root, {
108
+ ref,
109
+ ...rest,
110
+ children: [
111
+ t3,
112
+ children,
113
+ t5,
114
+ t6
115
+ ]
116
+ });
107
117
  $[26] = children;
108
118
  $[27] = ref;
109
119
  $[28] = rest;
@@ -115,7 +125,7 @@ const Field = forwardRef(function Field(props, ref) {
115
125
  return t7;
116
126
  });
117
127
  function _temp(children_0) {
118
- return <VisuallyHidden>{children_0}</VisuallyHidden>;
128
+ return /* @__PURE__ */ jsx(VisuallyHidden, { children: children_0 });
119
129
  }
120
130
 
121
131
  //#endregion
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps, PropsWithChildren } from "react";
3
3
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
4
4
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
5
- import { FloatingPanel } from "@ark-ui/react/floating-panel";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { FloatingPanel } from "@ark-ui/react/floating-panel";
7
7
 
8
8
  //#region src/components/floating-panel/floating-panel.d.ts
9
9
  declare namespace floating_panel_d_exports {
@@ -3,6 +3,7 @@ import { c } from "react/compiler-runtime";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { floatingPanel } from "@pyck/styled-system/recipes";
5
5
  import { ArrowDownLeft, GripVertical, Maximize, Minus, XIcon } from "lucide-react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
7
  import { ButtonGroup, IconButton } from "@pyck/react/button";
7
8
  import { FloatingPanel } from "@ark-ui/react/floating-panel";
8
9
 
@@ -37,23 +38,23 @@ const Header = (props) => {
37
38
  const { children } = props;
38
39
  let t0;
39
40
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
40
- t0 = <GripVertical />;
41
+ t0 = /* @__PURE__ */ jsx(GripVertical, {});
41
42
  $[0] = t0;
42
43
  } else t0 = $[0];
43
44
  let t1;
44
45
  if ($[1] !== children) {
45
- t1 = <Title>{t0}{children}</Title>;
46
+ t1 = /* @__PURE__ */ jsxs(Title, { children: [t0, children] });
46
47
  $[1] = children;
47
48
  $[2] = t1;
48
49
  } else t1 = $[2];
49
50
  let t2;
50
51
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
51
- t2 = <Controls />;
52
+ t2 = /* @__PURE__ */ jsx(Controls, {});
52
53
  $[3] = t2;
53
54
  } else t2 = $[3];
54
55
  let t3;
55
56
  if ($[4] !== t1) {
56
- t3 = <DragTrigger><StyledHeader>{t1}{t2}</StyledHeader></DragTrigger>;
57
+ t3 = /* @__PURE__ */ jsx(DragTrigger, { children: /* @__PURE__ */ jsxs(StyledHeader, { children: [t1, t2] }) });
57
58
  $[4] = t1;
58
59
  $[5] = t3;
59
60
  } else t3 = $[5];
@@ -63,22 +64,49 @@ const Controls = () => {
63
64
  const $ = c(4);
64
65
  let t0;
65
66
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
66
- t0 = <StageTrigger stage="minimized" asChild={true}><IconButton><Minus /></IconButton></StageTrigger>;
67
+ t0 = /* @__PURE__ */ jsx(StageTrigger, {
68
+ stage: "minimized",
69
+ asChild: true,
70
+ children: /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(Minus, {}) })
71
+ });
67
72
  $[0] = t0;
68
73
  } else t0 = $[0];
69
74
  let t1;
70
75
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
71
- t1 = <StageTrigger stage="maximized" asChild={true}><IconButton><Maximize /></IconButton></StageTrigger>;
76
+ t1 = /* @__PURE__ */ jsx(StageTrigger, {
77
+ stage: "maximized",
78
+ asChild: true,
79
+ children: /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(Maximize, {}) })
80
+ });
72
81
  $[1] = t1;
73
82
  } else t1 = $[1];
74
83
  let t2;
75
84
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
76
- t2 = <StageTrigger stage="default" asChild={true}><IconButton><ArrowDownLeft /></IconButton></StageTrigger>;
85
+ t2 = /* @__PURE__ */ jsx(StageTrigger, {
86
+ stage: "default",
87
+ asChild: true,
88
+ children: /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(ArrowDownLeft, {}) })
89
+ });
77
90
  $[2] = t2;
78
91
  } else t2 = $[2];
79
92
  let t3;
80
93
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
81
- t3 = <Control asChild={true}><ButtonGroup variant="plain" size="2xs">{t0}{t1}{t2}<CloseTrigger asChild={true}><IconButton><XIcon /></IconButton></CloseTrigger></ButtonGroup></Control>;
94
+ t3 = /* @__PURE__ */ jsx(Control, {
95
+ asChild: true,
96
+ children: /* @__PURE__ */ jsxs(ButtonGroup, {
97
+ variant: "plain",
98
+ size: "2xs",
99
+ children: [
100
+ t0,
101
+ t1,
102
+ t2,
103
+ /* @__PURE__ */ jsx(CloseTrigger, {
104
+ asChild: true,
105
+ children: /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(XIcon, {}) })
106
+ })
107
+ ]
108
+ })
109
+ });
82
110
  $[3] = t3;
83
111
  } else t3 = $[3];
84
112
  return t3;
@@ -87,7 +115,16 @@ const ResizeTriggers = () => {
87
115
  const $ = c(1);
88
116
  let t0;
89
117
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
90
- t0 = <><ResizeTrigger axis="n" /><ResizeTrigger axis="e" /><ResizeTrigger axis="w" /><ResizeTrigger axis="s" /><ResizeTrigger axis="ne" /><ResizeTrigger axis="se" /><ResizeTrigger axis="sw" /><ResizeTrigger axis="nw" /></>;
118
+ t0 = /* @__PURE__ */ jsxs(Fragment, { children: [
119
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "n" }),
120
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "e" }),
121
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "w" }),
122
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "s" }),
123
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "ne" }),
124
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "se" }),
125
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "sw" }),
126
+ /* @__PURE__ */ jsx(ResizeTrigger, { axis: "nw" })
127
+ ] });
91
128
  $[0] = t0;
92
129
  } else t0 = $[0];
93
130
  return t0;
@@ -1,10 +1,10 @@
1
1
  import * as react from "react";
2
2
  import { ComponentProps, ReactNode } from "react";
3
3
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
5
  import { FieldValues, UseFormReturn } from "react-hook-form";
5
6
  import * as _ark_ui_react0 from "@ark-ui/react";
6
7
  import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
7
- import * as react_jsx_runtime0 from "react/jsx-runtime";
8
8
 
9
9
  //#region src/components/form/form.d.ts
10
10
  type StyledFormProps = ComponentProps<typeof StyledForm>;
@@ -2,6 +2,7 @@ import { c } from "react/compiler-runtime";
2
2
  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
+ import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { FormProvider } from "react-hook-form";
6
7
  import { Show } from "@pyck/react/show";
7
8
  import { Button } from "@pyck/react/button";
@@ -25,13 +26,16 @@ const Form = (props) => {
25
26
  }
26
27
  let t0;
27
28
  if ($[3] !== formProps) {
28
- t0 = <StyledForm {...formProps} />;
29
+ t0 = /* @__PURE__ */ jsx(StyledForm, { ...formProps });
29
30
  $[3] = formProps;
30
31
  $[4] = t0;
31
32
  } else t0 = $[4];
32
33
  let t1;
33
34
  if ($[5] !== t0 || $[6] !== value) {
34
- t1 = <FormProvider {...value}>{t0}</FormProvider>;
35
+ t1 = /* @__PURE__ */ jsx(FormProvider, {
36
+ ...value,
37
+ children: t0
38
+ });
35
39
  $[5] = t0;
36
40
  $[6] = value;
37
41
  $[7] = t1;
@@ -54,59 +58,75 @@ const FormSection = (t0) => {
54
58
  const t2 = !!error;
55
59
  let t3;
56
60
  if ($[3] !== legend) {
57
- t3 = <Fieldset.Legend>{legend}</Fieldset.Legend>;
61
+ t3 = /* @__PURE__ */ jsx(Fieldset.Legend, { children: legend });
58
62
  $[3] = legend;
59
63
  $[4] = t3;
60
64
  } else t3 = $[4];
61
65
  let t4;
62
66
  if ($[5] !== description) {
63
- t4 = <Fieldset.Description>{description}</Fieldset.Description>;
67
+ t4 = /* @__PURE__ */ jsx(Fieldset.Description, { children: description });
64
68
  $[5] = description;
65
69
  $[6] = t4;
66
70
  } else t4 = $[6];
67
71
  let t5;
68
72
  if ($[7] !== description || $[8] !== t4) {
69
- t5 = <Show when={description}>{t4}</Show>;
73
+ t5 = /* @__PURE__ */ jsx(Show, {
74
+ when: description,
75
+ children: t4
76
+ });
70
77
  $[7] = description;
71
78
  $[8] = t4;
72
79
  $[9] = t5;
73
80
  } else t5 = $[9];
74
81
  let t6;
75
82
  if ($[10] !== t3 || $[11] !== t5) {
76
- t6 = <Fieldset.Header>{t3}{t5}</Fieldset.Header>;
83
+ t6 = /* @__PURE__ */ jsxs(Fieldset.Header, { children: [t3, t5] });
77
84
  $[10] = t3;
78
85
  $[11] = t5;
79
86
  $[12] = t6;
80
87
  } else t6 = $[12];
81
88
  let t7;
82
89
  if ($[13] !== children) {
83
- t7 = <Fieldset.Body>{children}</Fieldset.Body>;
90
+ t7 = /* @__PURE__ */ jsx(Fieldset.Body, { children });
84
91
  $[13] = children;
85
92
  $[14] = t7;
86
93
  } else t7 = $[14];
87
94
  let t8;
88
95
  if ($[15] !== error) {
89
- t8 = error && <Fieldset.ErrorText>{error}</Fieldset.ErrorText>;
96
+ t8 = error && /* @__PURE__ */ jsx(Fieldset.ErrorText, { children: error });
90
97
  $[15] = error;
91
98
  $[16] = t8;
92
99
  } else t8 = $[16];
93
100
  let t9;
94
101
  if ($[17] !== busy || $[18] !== loading) {
95
- t9 = <Button type="submit" loading={loading} disabled={busy} size="sm">Save</Button>;
102
+ t9 = /* @__PURE__ */ jsx(Button, {
103
+ type: "submit",
104
+ loading,
105
+ disabled: busy,
106
+ size: "sm",
107
+ children: "Save"
108
+ });
96
109
  $[17] = busy;
97
110
  $[18] = loading;
98
111
  $[19] = t9;
99
112
  } else t9 = $[19];
100
113
  let t10;
101
114
  if ($[20] !== t8 || $[21] !== t9) {
102
- t10 = <Fieldset.Footer>{t8}{t9}</Fieldset.Footer>;
115
+ t10 = /* @__PURE__ */ jsxs(Fieldset.Footer, { children: [t8, t9] });
103
116
  $[20] = t8;
104
117
  $[21] = t9;
105
118
  $[22] = t10;
106
119
  } else t10 = $[22];
107
120
  let t11;
108
121
  if ($[23] !== t10 || $[24] !== t2 || $[25] !== t6 || $[26] !== t7) {
109
- t11 = <Fieldset.Root invalid={t2}>{t6}{t7}{t10}</Fieldset.Root>;
122
+ t11 = /* @__PURE__ */ jsxs(Fieldset.Root, {
123
+ invalid: t2,
124
+ children: [
125
+ t6,
126
+ t7,
127
+ t10
128
+ ]
129
+ });
110
130
  $[23] = t10;
111
131
  $[24] = t2;
112
132
  $[25] = t6;
@@ -115,7 +135,11 @@ const FormSection = (t0) => {
115
135
  } else t11 = $[27];
116
136
  let t12;
117
137
  if ($[28] !== t1 || $[29] !== t11 || $[30] !== value) {
118
- t12 = <Form$1 value={value} onSubmit={t1}>{t11}</Form$1>;
138
+ t12 = /* @__PURE__ */ jsx(Form$1, {
139
+ value,
140
+ onSubmit: t1,
141
+ children: t11
142
+ });
119
143
  $[28] = t1;
120
144
  $[29] = t11;
121
145
  $[30] = value;
@@ -123,7 +147,10 @@ const FormSection = (t0) => {
123
147
  } else t12 = $[31];
124
148
  let t13;
125
149
  if ($[32] !== id || $[33] !== t12) {
126
- t13 = <Box id={id}>{t12}</Box>;
150
+ t13 = /* @__PURE__ */ jsx(Box, {
151
+ id,
152
+ children: t12
153
+ });
127
154
  $[32] = id;
128
155
  $[33] = t12;
129
156
  $[34] = t13;
@@ -1,5 +1,5 @@
1
- import { MarkProps } from "@pyck/react/mark";
2
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { MarkProps } from "@pyck/react/mark";
3
3
 
4
4
  //#region src/components/highlight/highlight.d.ts
5
5
  interface HighlightProps extends MarkProps {
@@ -1,5 +1,6 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { Fragment } from "react";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { Show } from "@pyck/react/show";
4
5
  import { useHighlight } from "@ark-ui/react/highlight";
5
6
  import { For } from "@pyck/react/for";
@@ -47,13 +48,23 @@ const Highlight = (props) => {
47
48
  const chunks = useHighlight(t1);
48
49
  let t2;
49
50
  if ($[11] !== markProps) {
50
- t2 = (chunk, index) => <Show key={index} when={chunk.match} fallback={<Fragment key={index}>{chunk.text}</Fragment>}><Mark key={index} {...markProps}>{chunk.text}</Mark></Show>;
51
+ t2 = (chunk, index) => /* @__PURE__ */ jsx(Show, {
52
+ when: chunk.match,
53
+ fallback: /* @__PURE__ */ jsx(Fragment, { children: chunk.text }, index),
54
+ children: /* @__PURE__ */ jsx(Mark, {
55
+ ...markProps,
56
+ children: chunk.text
57
+ }, index)
58
+ }, index);
51
59
  $[11] = markProps;
52
60
  $[12] = t2;
53
61
  } else t2 = $[12];
54
62
  let t3;
55
63
  if ($[13] !== chunks || $[14] !== t2) {
56
- t3 = <For each={chunks}>{t2}</For>;
64
+ t3 = /* @__PURE__ */ jsx(For, {
65
+ each: chunks,
66
+ children: t2
67
+ });
57
68
  $[13] = chunks;
58
69
  $[14] = t2;
59
70
  $[15] = t3;
@@ -1,9 +1,9 @@
1
1
  import * as react from "react";
2
2
  import { ComponentProps } from "react";
3
3
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
5
  import * as _ark_ui_react0 from "@ark-ui/react";
5
6
  import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/icon/featured-icon.d.ts
9
9
  type FeaturedIconProps = ComponentProps<typeof IconWrapper>;
@@ -1,3 +1,3 @@
1
- import { n as Icon, t as FeaturedIcon } from "../../featured-icon-CKDv0xfF.js";
1
+ import { n as Icon, t as FeaturedIcon } from "../../featured-icon-DBnAKGXC.js";
2
2
 
3
3
  export { FeaturedIcon, Icon };
@@ -1,6 +1,7 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { styled } from "@pyck/styled-system/jsx";
4
+ import { jsx } from "react/jsx-runtime";
4
5
 
5
6
  //#region src/components/image/image.tsx
6
7
  const StyledImage = styled("img");
@@ -23,7 +24,12 @@ const Image = forwardRef(function Image(props, ref) {
23
24
  const fit = t0 === void 0 ? "cover" : t0;
24
25
  let t1;
25
26
  if ($[4] !== align || $[5] !== fit || $[6] !== ref || $[7] !== rest) {
26
- t1 = <StyledImage ref={ref} objectFit={fit} objectPosition={align} {...rest} />;
27
+ t1 = /* @__PURE__ */ jsx(StyledImage, {
28
+ ref,
29
+ objectFit: fit,
30
+ objectPosition: align,
31
+ ...rest
32
+ });
27
33
  $[4] = align;
28
34
  $[5] = fit;
29
35
  $[6] = ref;
@@ -1,11 +1,11 @@
1
1
  import * as react from "react";
2
2
  import { ComponentProps } from "react";
3
3
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
5
  import { FieldProps } from "@pyck/react/field";
5
6
  import { FieldPath, FieldValues } from "react-hook-form";
6
7
  import { Field as Field$1 } from "@ark-ui/react/field";
7
8
  import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
8
- import * as react_jsx_runtime0 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/input/input.d.ts
11
11
  type InputProps = ComponentProps<typeof Input>;
@@ -1,6 +1,7 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { styled } from "@pyck/styled-system/jsx";
3
3
  import { input } from "@pyck/styled-system/recipes";
4
+ import { jsx } from "react/jsx-runtime";
4
5
  import { Field } from "@pyck/react/field";
5
6
  import { Controller, useFormContext } from "react-hook-form";
6
7
  import { Field as Field$1 } from "@ark-ui/react/field";
@@ -40,7 +41,22 @@ const InputField = (props) => {
40
41
  if ($[7] !== disabled || $[8] !== helperText || $[9] !== hideLabel || $[10] !== inputProps || $[11] !== label) {
41
42
  t0 = (t1) => {
42
43
  const { field, fieldState } = t1;
43
- return <Field label={label} helperText={helperText} hideLabel={hideLabel} disabled={field.disabled || disabled} required={inputProps.required} invalid={!!fieldState.error} errorText={fieldState.error?.message}><Input {...inputProps} name={field.name} value={field.value} onChange={field.onChange} onBlur={field.onBlur} /></Field>;
44
+ return /* @__PURE__ */ jsx(Field, {
45
+ label,
46
+ helperText,
47
+ hideLabel,
48
+ disabled: field.disabled || disabled,
49
+ required: inputProps.required,
50
+ invalid: !!fieldState.error,
51
+ errorText: fieldState.error?.message,
52
+ children: /* @__PURE__ */ jsx(Input, {
53
+ ...inputProps,
54
+ name: field.name,
55
+ value: field.value,
56
+ onChange: field.onChange,
57
+ onBlur: field.onBlur
58
+ })
59
+ });
44
60
  };
45
61
  $[7] = disabled;
46
62
  $[8] = helperText;
@@ -51,7 +67,11 @@ const InputField = (props) => {
51
67
  } else t0 = $[12];
52
68
  let t1;
53
69
  if ($[13] !== control || $[14] !== name || $[15] !== t0) {
54
- t1 = <Controller name={name} control={control} render={t0} />;
70
+ t1 = /* @__PURE__ */ jsx(Controller, {
71
+ name,
72
+ control,
73
+ render: t0
74
+ });
55
75
  $[13] = control;
56
76
  $[14] = name;
57
77
  $[15] = t0;
@@ -3,6 +3,7 @@ import { forwardRef } from "react";
3
3
  import { ark } from "@ark-ui/react/factory";
4
4
  import { createStyleContext } from "@pyck/styled-system/jsx";
5
5
  import { inputGroup } from "@pyck/styled-system/recipes";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { Show } from "@pyck/react/show";
7
8
 
8
9
  //#region src/components/input-group/input-group.tsx
@@ -30,33 +31,55 @@ const InputGroup = forwardRef(function InputGroup(props, ref) {
30
31
  }
31
32
  let t0;
32
33
  if ($[5] !== startElement) {
33
- t0 = <Element insetInlineStart="0" top="0">{startElement}</Element>;
34
+ t0 = /* @__PURE__ */ jsx(Element, {
35
+ insetInlineStart: "0",
36
+ top: "0",
37
+ children: startElement
38
+ });
34
39
  $[5] = startElement;
35
40
  $[6] = t0;
36
41
  } else t0 = $[6];
37
42
  let t1;
38
43
  if ($[7] !== startElement || $[8] !== t0) {
39
- t1 = <Show when={startElement}>{t0}</Show>;
44
+ t1 = /* @__PURE__ */ jsx(Show, {
45
+ when: startElement,
46
+ children: t0
47
+ });
40
48
  $[7] = startElement;
41
49
  $[8] = t0;
42
50
  $[9] = t1;
43
51
  } else t1 = $[9];
44
52
  let t2;
45
53
  if ($[10] !== endElement) {
46
- t2 = <Element insetInlineEnd="0" top="0">{endElement}</Element>;
54
+ t2 = /* @__PURE__ */ jsx(Element, {
55
+ insetInlineEnd: "0",
56
+ top: "0",
57
+ children: endElement
58
+ });
47
59
  $[10] = endElement;
48
60
  $[11] = t2;
49
61
  } else t2 = $[11];
50
62
  let t3;
51
63
  if ($[12] !== endElement || $[13] !== t2) {
52
- t3 = <Show when={endElement}>{t2}</Show>;
64
+ t3 = /* @__PURE__ */ jsx(Show, {
65
+ when: endElement,
66
+ children: t2
67
+ });
53
68
  $[12] = endElement;
54
69
  $[13] = t2;
55
70
  $[14] = t3;
56
71
  } else t3 = $[14];
57
72
  let t4;
58
73
  if ($[15] !== children || $[16] !== ref || $[17] !== rest || $[18] !== t1 || $[19] !== t3) {
59
- t4 = <Root ref={ref} {...rest}>{t1}{children}{t3}</Root>;
74
+ t4 = /* @__PURE__ */ jsxs(Root, {
75
+ ref,
76
+ ...rest,
77
+ children: [
78
+ t1,
79
+ children,
80
+ t3
81
+ ]
82
+ });
60
83
  $[15] = children;
61
84
  $[16] = ref;
62
85
  $[17] = rest;
@@ -1,8 +1,8 @@
1
1
  import { ZodTypeAny, z } from "zod";
2
2
  import { ReactNode } from "react";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
4
  import { FieldValues, UseFormReturn } from "react-hook-form";
4
5
  import { CollectionItem } from "@ark-ui/react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/json-form-builder/types.d.ts
8
8
  interface LayoutNode {