@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
@@ -5,6 +5,7 @@ import { useCallback, useEffect, useState } from "react";
5
5
  import { ark } from "@ark-ui/react/factory";
6
6
  import { Box, HStack, createStyleContext } from "@pyck/styled-system/jsx";
7
7
  import { table } from "@pyck/styled-system/recipes";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
8
9
  import { Show } from "@pyck/react/show";
9
10
  import { Wrap } from "@pyck/react/wrap";
10
11
  import { Icon } from "@pyck/react/icon";
@@ -13,7 +14,7 @@ import { Tooltip } from "@pyck/react/tooltip";
13
14
  import { DisplayDateValue } from "@pyck/react/display-date-value";
14
15
 
15
16
  //#region src/components/table/cells/table-cell-content.tsx
16
- const renderIcon = (icon, iconProps) => match(icon).when((x) => typeof x === "function", (Icon) => <Icon {...iconProps} />).otherwise((node) => node ?? null);
17
+ const renderIcon = (icon, iconProps) => match(icon).when((x) => typeof x === "function", (Icon) => /* @__PURE__ */ jsx(Icon, { ...iconProps })).otherwise((node) => node ?? null);
17
18
  const TableCellContent = (props) => {
18
19
  const $ = c(27);
19
20
  let children;
@@ -50,20 +51,32 @@ const TableCellContent = (props) => {
50
51
  } else t2 = $[9];
51
52
  let t3;
52
53
  if ($[10] !== t1 || $[11] !== t2) {
53
- t3 = <Wrap when={t1} with={_temp}>{t2}</Wrap>;
54
+ t3 = /* @__PURE__ */ jsx(Wrap, {
55
+ when: t1,
56
+ with: _temp,
57
+ children: t2
58
+ });
54
59
  $[10] = t1;
55
60
  $[11] = t2;
56
61
  $[12] = t3;
57
62
  } else t3 = $[12];
58
63
  let t4;
59
64
  if ($[13] !== children) {
60
- t4 = <Box overflow="hidden" textOverflow="ellipsis">{children}</Box>;
65
+ t4 = /* @__PURE__ */ jsx(Box, {
66
+ overflow: "hidden",
67
+ textOverflow: "ellipsis",
68
+ children
69
+ });
61
70
  $[13] = children;
62
71
  $[14] = t4;
63
72
  } else t4 = $[14];
64
73
  let t5;
65
74
  if ($[15] !== justifyContent || $[16] !== rest || $[17] !== t3 || $[18] !== t4) {
66
- t5 = <HStack justifyContent={justifyContent} {...rest}>{t3}{t4}</HStack>;
75
+ t5 = /* @__PURE__ */ jsxs(HStack, {
76
+ justifyContent,
77
+ ...rest,
78
+ children: [t3, t4]
79
+ });
67
80
  $[15] = justifyContent;
68
81
  $[16] = rest;
69
82
  $[17] = t3;
@@ -74,14 +87,22 @@ const TableCellContent = (props) => {
74
87
  const t6 = !!tooltip;
75
88
  let t7;
76
89
  if ($[20] !== content || $[21] !== tooltip) {
77
- t7 = <Tooltip content={tooltip} openDelay={100}>{content}</Tooltip>;
90
+ t7 = /* @__PURE__ */ jsx(Tooltip, {
91
+ content: tooltip,
92
+ openDelay: 100,
93
+ children: content
94
+ });
78
95
  $[20] = content;
79
96
  $[21] = tooltip;
80
97
  $[22] = t7;
81
98
  } else t7 = $[22];
82
99
  let t8;
83
100
  if ($[23] !== content || $[24] !== t6 || $[25] !== t7) {
84
- t8 = <Show when={t6} fallback={content}>{t7}</Show>;
101
+ t8 = /* @__PURE__ */ jsx(Show, {
102
+ when: t6,
103
+ fallback: content,
104
+ children: t7
105
+ });
85
106
  $[23] = content;
86
107
  $[24] = t6;
87
108
  $[25] = t7;
@@ -90,7 +111,10 @@ const TableCellContent = (props) => {
90
111
  return t8;
91
112
  };
92
113
  function _temp(children_0) {
93
- return <Icon boxSize="4">{children_0}</Icon>;
114
+ return /* @__PURE__ */ jsx(Icon, {
115
+ boxSize: "4",
116
+ children: children_0
117
+ });
94
118
  }
95
119
 
96
120
  //#endregion
@@ -126,14 +150,22 @@ const BooleanCell = (props) => {
126
150
  const value = booleanValue ? t0 === void 0 ? "Yes" : t0 : t1 === void 0 ? "No" : t1;
127
151
  let t2;
128
152
  if ($[8] !== copyable || $[9] !== value) {
129
- t2 = <DisplayValue value={value} copyable={copyable} />;
153
+ t2 = /* @__PURE__ */ jsx(DisplayValue, {
154
+ value,
155
+ copyable
156
+ });
130
157
  $[8] = copyable;
131
158
  $[9] = value;
132
159
  $[10] = t2;
133
160
  } else t2 = $[10];
134
161
  let t3;
135
162
  if ($[11] !== icon || $[12] !== rest || $[13] !== t2 || $[14] !== tooltip) {
136
- t3 = <TableCellContent tooltip={tooltip} icon={icon} {...rest}>{t2}</TableCellContent>;
163
+ t3 = /* @__PURE__ */ jsx(TableCellContent, {
164
+ tooltip,
165
+ icon,
166
+ ...rest,
167
+ children: t2
168
+ });
137
169
  $[11] = icon;
138
170
  $[12] = rest;
139
171
  $[13] = t2;
@@ -182,7 +214,13 @@ const DateCell = (props) => {
182
214
  const type = t0 === void 0 ? "date" : t0;
183
215
  let t1;
184
216
  if ($[10] !== copyable || $[11] !== format || $[12] !== locale || $[13] !== type || $[14] !== value) {
185
- t1 = <DisplayDateValue value={value} type={type} format={format} locale={locale} copyable={copyable} />;
217
+ t1 = /* @__PURE__ */ jsx(DisplayDateValue, {
218
+ value,
219
+ type,
220
+ format,
221
+ locale,
222
+ copyable
223
+ });
186
224
  $[10] = copyable;
187
225
  $[11] = format;
188
226
  $[12] = locale;
@@ -192,7 +230,13 @@ const DateCell = (props) => {
192
230
  } else t1 = $[15];
193
231
  let t2;
194
232
  if ($[16] !== icon || $[17] !== justifyContent || $[18] !== rest || $[19] !== t1 || $[20] !== tooltip) {
195
- t2 = <TableCellContent icon={icon} tooltip={tooltip} justifyContent={justifyContent} {...rest}>{t1}</TableCellContent>;
233
+ t2 = /* @__PURE__ */ jsx(TableCellContent, {
234
+ icon,
235
+ tooltip,
236
+ justifyContent,
237
+ ...rest,
238
+ children: t1
239
+ });
196
240
  $[16] = icon;
197
241
  $[17] = justifyContent;
198
242
  $[18] = rest;
@@ -263,7 +307,11 @@ const NumberCell = (props) => {
263
307
  const formatValue = t1;
264
308
  let t2;
265
309
  if ($[16] !== copyable || $[17] !== formatValue || $[18] !== value) {
266
- t2 = <DisplayValue value={value} formatValue={formatValue} copyable={copyable} />;
310
+ t2 = /* @__PURE__ */ jsx(DisplayValue, {
311
+ value,
312
+ formatValue,
313
+ copyable
314
+ });
267
315
  $[16] = copyable;
268
316
  $[17] = formatValue;
269
317
  $[18] = value;
@@ -271,7 +319,13 @@ const NumberCell = (props) => {
271
319
  } else t2 = $[19];
272
320
  let t3;
273
321
  if ($[20] !== icon || $[21] !== justifyContent || $[22] !== rest || $[23] !== t2 || $[24] !== tooltip) {
274
- t3 = <TableCellContent icon={icon} tooltip={tooltip} justifyContent={justifyContent} {...rest}>{t2}</TableCellContent>;
322
+ t3 = /* @__PURE__ */ jsx(TableCellContent, {
323
+ icon,
324
+ tooltip,
325
+ justifyContent,
326
+ ...rest,
327
+ children: t2
328
+ });
275
329
  $[20] = icon;
276
330
  $[21] = justifyContent;
277
331
  $[22] = rest;
@@ -315,7 +369,11 @@ const TextCell = (props) => {
315
369
  const justifyContent = t0 === void 0 ? "flex-start" : t0;
316
370
  let t1;
317
371
  if ($[8] !== copyable || $[9] !== formatValue || $[10] !== value) {
318
- t1 = <DisplayValue value={value} formatValue={formatValue} copyable={copyable} />;
372
+ t1 = /* @__PURE__ */ jsx(DisplayValue, {
373
+ value,
374
+ formatValue,
375
+ copyable
376
+ });
319
377
  $[8] = copyable;
320
378
  $[9] = formatValue;
321
379
  $[10] = value;
@@ -323,7 +381,13 @@ const TextCell = (props) => {
323
381
  } else t1 = $[11];
324
382
  let t2;
325
383
  if ($[12] !== icon || $[13] !== justifyContent || $[14] !== rest || $[15] !== t1 || $[16] !== tooltip) {
326
- t2 = <TableCellContent icon={icon} tooltip={tooltip} justifyContent={justifyContent} {...rest}>{t1}</TableCellContent>;
384
+ t2 = /* @__PURE__ */ jsx(TableCellContent, {
385
+ icon,
386
+ tooltip,
387
+ justifyContent,
388
+ ...rest,
389
+ children: t1
390
+ });
327
391
  $[12] = icon;
328
392
  $[13] = justifyContent;
329
393
  $[14] = rest;
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps } 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 { TagsInput, TagsInputContext as Context } from "@ark-ui/react/tags-input";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { TagsInput, TagsInputContext as Context } from "@ark-ui/react/tags-input";
7
7
 
8
8
  //#region src/components/tags-input/tags-input.d.ts
9
9
  declare namespace tags_input_d_exports {
@@ -3,6 +3,7 @@ import { c } from "react/compiler-runtime";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { tagsInput } from "@pyck/styled-system/recipes";
5
5
  import { XIcon } from "lucide-react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { TagsInput, TagsInputContext as Context, useTagsInputContext } from "@ark-ui/react/tags-input";
7
8
 
8
9
  //#region src/components/tags-input/tags-input.tsx
@@ -25,12 +26,12 @@ var tags_input_exports = /* @__PURE__ */ __exportAll({
25
26
  const { withProvider, withContext } = createStyleContext(tagsInput);
26
27
  const Root = withProvider(TagsInput.Root, "root");
27
28
  const RootProvider = withProvider(TagsInput.RootProvider, "root");
28
- const ClearTrigger = withContext(TagsInput.ClearTrigger, "clearTrigger", { defaultProps: { children: <XIcon /> } });
29
+ const ClearTrigger = withContext(TagsInput.ClearTrigger, "clearTrigger", { defaultProps: { children: /* @__PURE__ */ jsx(XIcon, {}) } });
29
30
  const Control = withContext(TagsInput.Control, "control");
30
31
  const HiddenInput = TagsInput.HiddenInput;
31
32
  const Input = withContext(TagsInput.Input, "input");
32
33
  const Item = withContext(TagsInput.Item, "item");
33
- const ItemDeleteTrigger = withContext(TagsInput.ItemDeleteTrigger, "itemDeleteTrigger", { defaultProps: { children: <XIcon /> } });
34
+ const ItemDeleteTrigger = withContext(TagsInput.ItemDeleteTrigger, "itemDeleteTrigger", { defaultProps: { children: /* @__PURE__ */ jsx(XIcon, {}) } });
34
35
  const ItemInput = withContext(TagsInput.ItemInput, "itemInput");
35
36
  const ItemPreview = withContext(TagsInput.ItemPreview, "itemPreview");
36
37
  const ItemText = withContext(TagsInput.ItemText, "itemText");
@@ -42,7 +43,12 @@ const Items = (props) => {
42
43
  if ($[0] !== context.value || $[1] !== props) {
43
44
  let t1;
44
45
  if ($[3] !== props) {
45
- t1 = (item, index) => <Item key={item} index={index} value={item} {...props}><ItemPreview><ItemText>{item}</ItemText><ItemDeleteTrigger /></ItemPreview><ItemInput /></Item>;
46
+ t1 = (item, index) => /* @__PURE__ */ jsxs(Item, {
47
+ index,
48
+ value: item,
49
+ ...props,
50
+ children: [/* @__PURE__ */ jsxs(ItemPreview, { children: [/* @__PURE__ */ jsx(ItemText, { children: item }), /* @__PURE__ */ jsx(ItemDeleteTrigger, {})] }), /* @__PURE__ */ jsx(ItemInput, {})]
51
+ }, item);
46
52
  $[3] = props;
47
53
  $[4] = t1;
48
54
  } else t1 = $[4];
@@ -1,12 +1,12 @@
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 { TextareaProps as TextareaProps$1 } from "@pyck/react/textarea";
8
9
  import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/components/textarea/textarea.d.ts
12
12
  type TextareaProps = ComponentProps<typeof Textarea>;
@@ -1,6 +1,7 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { styled } from "@pyck/styled-system/jsx";
3
3
  import { textarea } 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";
@@ -41,7 +42,21 @@ const TextareaField = (props) => {
41
42
  if ($[7] !== disabled || $[8] !== helperText || $[9] !== hideLabel || $[10] !== label || $[11] !== textareaProps) {
42
43
  t0 = (t1) => {
43
44
  const { field, fieldState } = t1;
44
- return <Field label={label} helperText={helperText} hideLabel={hideLabel} disabled={field.disabled || disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message}><Textarea$1 {...textareaProps} name={field.name} value={field.value} onChange={field.onChange} onBlur={field.onBlur} /></Field>;
45
+ return /* @__PURE__ */ jsx(Field, {
46
+ label,
47
+ helperText,
48
+ hideLabel,
49
+ disabled: field.disabled || disabled,
50
+ invalid: !!fieldState.error,
51
+ errorText: fieldState.error?.message,
52
+ children: /* @__PURE__ */ jsx(Textarea$1, {
53
+ ...textareaProps,
54
+ name: field.name,
55
+ value: field.value,
56
+ onChange: field.onChange,
57
+ onBlur: field.onBlur
58
+ })
59
+ });
45
60
  };
46
61
  $[7] = disabled;
47
62
  $[8] = helperText;
@@ -52,7 +67,11 @@ const TextareaField = (props) => {
52
67
  } else t0 = $[12];
53
68
  let t1;
54
69
  if ($[13] !== control || $[14] !== name || $[15] !== t0) {
55
- t1 = <Controller name={name} control={control} render={t0} />;
70
+ t1 = /* @__PURE__ */ jsx(Controller, {
71
+ name,
72
+ control,
73
+ render: t0
74
+ });
56
75
  $[13] = control;
57
76
  $[14] = name;
58
77
  $[15] = t0;
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps, HTMLAttributes } 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 { CreateToasterReturn, Toast, ToastContext as Context } from "@ark-ui/react/toast";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { CreateToasterReturn, Toast, ToastContext as Context } from "@ark-ui/react/toast";
7
7
 
8
8
  //#region src/components/toast/toast.d.ts
9
9
  declare namespace toast_d_exports {
@@ -4,6 +4,7 @@ import { forwardRef } from "react";
4
4
  import { Stack, createStyleContext, styled } from "@pyck/styled-system/jsx";
5
5
  import { toast } from "@pyck/styled-system/recipes";
6
6
  import { CheckCircleIcon, CircleAlertIcon, CircleXIcon } from "lucide-react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
7
8
  import { Show } from "@pyck/react/show";
8
9
  import { Portal } from "@ark-ui/react/portal";
9
10
  import { CloseButton } from "@pyck/react/button";
@@ -39,13 +40,18 @@ const Indicator = forwardRef((props, ref) => {
39
40
  if (!StatusIcon) return null;
40
41
  let t0;
41
42
  if ($[0] !== StatusIcon) {
42
- t0 = <StatusIcon />;
43
+ t0 = /* @__PURE__ */ jsx(StatusIcon, {});
43
44
  $[0] = StatusIcon;
44
45
  $[1] = t0;
45
46
  } else t0 = $[1];
46
47
  let t1;
47
48
  if ($[2] !== props || $[3] !== ref || $[4] !== t0 || $[5] !== toast.type) {
48
- t1 = <Icon ref={ref} data-type={toast.type} {...props}>{t0}</Icon>;
49
+ t1 = /* @__PURE__ */ jsx(Icon, {
50
+ ref,
51
+ "data-type": toast.type,
52
+ ...props,
53
+ children: t0
54
+ });
49
55
  $[2] = props;
50
56
  $[3] = ref;
51
57
  $[4] = t0;
@@ -69,13 +75,35 @@ const Toaster = () => {
69
75
  const $ = c(1);
70
76
  let t0;
71
77
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
72
- t0 = <Portal><StyledToaster toaster={toaster} insetInline={{ mdDown: "4" }}>{_temp}</StyledToaster></Portal>;
78
+ t0 = /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(StyledToaster, {
79
+ toaster,
80
+ insetInline: { mdDown: "4" },
81
+ children: _temp
82
+ }) });
73
83
  $[0] = t0;
74
84
  } else t0 = $[0];
75
85
  return t0;
76
86
  };
77
87
  function _temp(toast) {
78
- return <toast_exports.Root><Show when={toast.type === "loading"} fallback={<toast_exports.Indicator />}><Spinner /></Show><Stack gap="3" alignItems="start"><Stack gap="1">{toast.title && <toast_exports.Title>{toast.title}</toast_exports.Title>}{toast.description && <toast_exports.Description>{toast.description}</toast_exports.Description>}</Stack>{toast.action && <toast_exports.ActionTrigger>{toast.action.label}</toast_exports.ActionTrigger>}</Stack>{toast.closable && <toast_exports.CloseTrigger asChild={true}><CloseButton size="sm" /></toast_exports.CloseTrigger>}</toast_exports.Root>;
88
+ return /* @__PURE__ */ jsxs(Root, { children: [
89
+ /* @__PURE__ */ jsx(Show, {
90
+ when: toast.type === "loading",
91
+ fallback: /* @__PURE__ */ jsx(Indicator, {}),
92
+ children: /* @__PURE__ */ jsx(Spinner, {})
93
+ }),
94
+ /* @__PURE__ */ jsxs(Stack, {
95
+ gap: "3",
96
+ alignItems: "start",
97
+ children: [/* @__PURE__ */ jsxs(Stack, {
98
+ gap: "1",
99
+ children: [toast.title && /* @__PURE__ */ jsx(Title, { children: toast.title }), toast.description && /* @__PURE__ */ jsx(Description, { children: toast.description })]
100
+ }), toast.action && /* @__PURE__ */ jsx(ActionTrigger, { children: toast.action.label })]
101
+ }),
102
+ toast.closable && /* @__PURE__ */ jsx(CloseTrigger, {
103
+ asChild: true,
104
+ children: /* @__PURE__ */ jsx(CloseButton, { size: "sm" })
105
+ })
106
+ ] });
79
107
  }
80
108
 
81
109
  //#endregion
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps, ReactNode, RefObject } 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 { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
7
7
 
8
8
  //#region src/components/tooltip/tooltip.d.ts
9
9
  type RootProps = ComponentProps<typeof Root>;
@@ -1,21 +1,12 @@
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 { createStyleContext } from "@pyck/styled-system/jsx";
5
4
  import { tooltip } from "@pyck/styled-system/recipes";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Portal } from "@ark-ui/react/portal";
7
- import { Tooltip as Tooltip$1, TooltipContext as Context } from "@ark-ui/react/tooltip";
7
+ import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
8
8
 
9
9
  //#region src/components/tooltip/tooltip.tsx
10
- var tooltip_exports = /* @__PURE__ */ __exportAll({
11
- Arrow: () => Arrow,
12
- ArrowTip: () => ArrowTip,
13
- Content: () => Content,
14
- Context: () => Context,
15
- Positioner: () => Positioner,
16
- Root: () => Root,
17
- Trigger: () => Trigger
18
- });
19
10
  const { withRootProvider, withContext } = createStyleContext(tooltip);
20
11
  const Root = withRootProvider(Tooltip$1.Root, { defaultProps: {
21
12
  unmountOnExit: true,
@@ -64,20 +55,27 @@ const Tooltip = forwardRef(function Tooltip(props, ref) {
64
55
  if (disabled) return children;
65
56
  let t1;
66
57
  if ($[9] !== children) {
67
- t1 = <tooltip_exports.Trigger asChild={true}>{children}</tooltip_exports.Trigger>;
58
+ t1 = /* @__PURE__ */ jsx(Trigger, {
59
+ asChild: true,
60
+ children
61
+ });
68
62
  $[9] = children;
69
63
  $[10] = t1;
70
64
  } else t1 = $[10];
71
65
  const t2 = !portalled;
72
66
  let t3;
73
67
  if ($[11] !== showArrow) {
74
- t3 = showArrow && <tooltip_exports.Arrow><tooltip_exports.ArrowTip /></tooltip_exports.Arrow>;
68
+ t3 = showArrow && /* @__PURE__ */ jsx(Arrow, { children: /* @__PURE__ */ jsx(ArrowTip, {}) });
75
69
  $[11] = showArrow;
76
70
  $[12] = t3;
77
71
  } else t3 = $[12];
78
72
  let t4;
79
73
  if ($[13] !== content || $[14] !== contentProps || $[15] !== ref || $[16] !== t3) {
80
- t4 = <tooltip_exports.Positioner><tooltip_exports.Content ref={ref} {...contentProps}>{t3}{content}</tooltip_exports.Content></tooltip_exports.Positioner>;
74
+ t4 = /* @__PURE__ */ jsx(Positioner, { children: /* @__PURE__ */ jsxs(Content, {
75
+ ref,
76
+ ...contentProps,
77
+ children: [t3, content]
78
+ }) });
81
79
  $[13] = content;
82
80
  $[14] = contentProps;
83
81
  $[15] = ref;
@@ -86,7 +84,11 @@ const Tooltip = forwardRef(function Tooltip(props, ref) {
86
84
  } else t4 = $[17];
87
85
  let t5;
88
86
  if ($[18] !== portalRef || $[19] !== t2 || $[20] !== t4) {
89
- t5 = <Portal disabled={t2} container={portalRef}>{t4}</Portal>;
87
+ t5 = /* @__PURE__ */ jsx(Portal, {
88
+ disabled: t2,
89
+ container: portalRef,
90
+ children: t4
91
+ });
90
92
  $[18] = portalRef;
91
93
  $[19] = t2;
92
94
  $[20] = t4;
@@ -94,7 +96,10 @@ const Tooltip = forwardRef(function Tooltip(props, ref) {
94
96
  } else t5 = $[21];
95
97
  let t6;
96
98
  if ($[22] !== rootProps || $[23] !== t1 || $[24] !== t5) {
97
- t6 = <tooltip_exports.Root {...rootProps}>{t1}{t5}</tooltip_exports.Root>;
99
+ t6 = /* @__PURE__ */ jsxs(Root, {
100
+ ...rootProps,
101
+ children: [t1, t5]
102
+ });
98
103
  $[22] = rootProps;
99
104
  $[23] = t1;
100
105
  $[24] = t5;
@@ -3,9 +3,9 @@ import * as react from "react";
3
3
  import { ComponentProps, RefAttributes } from "react";
4
4
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
5
5
  import { TreeViewVariantProps } from "@pyck/styled-system/recipes";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
7
  import { TreeView, TreeViewContext as Context, TreeViewNodeProvider as NodeProvider, TreeViewNodeProviderProps as NodeProviderProps, TreeViewRootProps, createTreeCollection } from "@ark-ui/react/tree-view";
7
8
  import { Assign, HTMLStyledProps as HTMLStyledProps$1 } from "@pyck/styled-system/types";
8
- import * as react_jsx_runtime0 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/tree-view/tree-view.d.ts
11
11
  declare namespace tree_view_d_exports {
@@ -4,6 +4,7 @@ import { forwardRef } from "react";
4
4
  import { createStyleContext } from "@pyck/styled-system/jsx";
5
5
  import { treeView } from "@pyck/styled-system/recipes";
6
6
  import { ChevronRightIcon } from "lucide-react";
7
+ import { jsx } from "react/jsx-runtime";
7
8
  import { Show } from "@pyck/react/show";
8
9
  import { TreeView, TreeViewContext as Context, TreeViewNodeProvider as NodeProvider, createTreeCollection, useTreeViewNodeContext } from "@ark-ui/react/tree-view";
9
10
  import { Checkmark } from "@pyck/react/checkmark";
@@ -50,24 +51,35 @@ const BranchIndicator = forwardRef(function BranchIndicator(props, ref) {
50
51
  const node = useTreeViewNodeContext();
51
52
  let t0;
52
53
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
53
- t0 = <svg aria-hidden="true" focusable="false" />;
54
+ t0 = /* @__PURE__ */ jsx("svg", {
55
+ "aria-hidden": "true",
56
+ focusable: "false"
57
+ });
54
58
  $[0] = t0;
55
59
  } else t0 = $[0];
56
60
  let t1;
57
61
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
58
- t1 = <ChevronRightIcon />;
62
+ t1 = /* @__PURE__ */ jsx(ChevronRightIcon, {});
59
63
  $[1] = t1;
60
64
  } else t1 = $[1];
61
65
  let t2;
62
66
  if ($[2] !== props || $[3] !== ref) {
63
- t2 = <StyledBranchIndicator ref={ref} {...props}>{t1}</StyledBranchIndicator>;
67
+ t2 = /* @__PURE__ */ jsx(StyledBranchIndicator, {
68
+ ref,
69
+ ...props,
70
+ children: t1
71
+ });
64
72
  $[2] = props;
65
73
  $[3] = ref;
66
74
  $[4] = t2;
67
75
  } else t2 = $[4];
68
76
  let t3;
69
77
  if ($[5] !== node.isBranch || $[6] !== t2) {
70
- t3 = <Show when={node.isBranch} fallback={t0}>{t2}</Show>;
78
+ t3 = /* @__PURE__ */ jsx(Show, {
79
+ when: node.isBranch,
80
+ fallback: t0,
81
+ children: t2
82
+ });
71
83
  $[5] = node.isBranch;
72
84
  $[6] = t2;
73
85
  $[7] = t3;
@@ -81,14 +93,21 @@ const Checkbox = (props) => {
81
93
  const t1 = node.checked === "indeterminate";
82
94
  let t2;
83
95
  if ($[0] !== t0 || $[1] !== t1) {
84
- t2 = <Checkmark size="sm" checked={t0} indeterminate={t1} />;
96
+ t2 = /* @__PURE__ */ jsx(Checkmark, {
97
+ size: "sm",
98
+ checked: t0,
99
+ indeterminate: t1
100
+ });
85
101
  $[0] = t0;
86
102
  $[1] = t1;
87
103
  $[2] = t2;
88
104
  } else t2 = $[2];
89
105
  let t3;
90
106
  if ($[3] !== props || $[4] !== t2) {
91
- t3 = <NodeCheckbox {...props}>{t2}</NodeCheckbox>;
107
+ t3 = /* @__PURE__ */ jsx(NodeCheckbox, {
108
+ ...props,
109
+ children: t2
110
+ });
92
111
  $[3] = props;
93
112
  $[4] = t2;
94
113
  $[5] = t3;
@@ -1,5 +1,6 @@
1
- import { t as DisplayValue } from "./display-value-Bz71ZqgM.js";
1
+ import { t as DisplayValue } from "./display-value-DDIH9kvx.js";
2
2
  import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { formatDate, formatDateTime, getDateFormats, isString } from "@pyck/react/utils";
4
5
 
5
6
  //#region src/components/display-date-value/display-date-value.tsx
@@ -23,7 +24,11 @@ const DisplayDateValue = (props) => {
23
24
  const formatValue = t1;
24
25
  let t2;
25
26
  if ($[4] !== copyable || $[5] !== formatValue || $[6] !== value) {
26
- t2 = <DisplayValue value={value} formatValue={formatValue} copyable={copyable} />;
27
+ t2 = /* @__PURE__ */ jsx(DisplayValue, {
28
+ value,
29
+ formatValue,
30
+ copyable
31
+ });
27
32
  $[4] = copyable;
28
33
  $[5] = formatValue;
29
34
  $[6] = value;
@@ -1,5 +1,5 @@
1
- import { DateInput, Locale, getDateFormats } from "@pyck/react/utils";
2
1
  import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { DateInput, Locale, getDateFormats } from "@pyck/react/utils";
3
3
 
4
4
  //#region src/components/display-date-value/display-date-value.d.ts
5
5
  type DateFormatType = keyof ReturnType<typeof getDateFormats> | (string & {});
@@ -1,7 +1,8 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { HStack, VisuallyHidden } from "@pyck/styled-system/jsx";
3
- import { isString } from "@pyck/react/utils";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Show } from "@pyck/react/show";
5
+ import { isString } from "@pyck/react/utils";
5
6
  import { Clipboard } from "@pyck/react/clipboard";
6
7
  import { Span } from "@pyck/react/span";
7
8
  import { Wrap } from "@pyck/react/wrap";
@@ -21,18 +22,37 @@ const DisplayValue = (props) => {
21
22
  const t1 = formattedValue != null;
22
23
  let t2;
23
24
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
24
- t2 = <><Span color="fg.subtle" aria-hidden={true}>—</Span><VisuallyHidden>No value</VisuallyHidden></>;
25
+ t2 = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Span, {
26
+ color: "fg.subtle",
27
+ "aria-hidden": true,
28
+ children: "—"
29
+ }), /* @__PURE__ */ jsx(VisuallyHidden, { children: "No value" })] });
25
30
  $[3] = t2;
26
31
  } else t2 = $[3];
27
32
  let t3;
28
33
  if ($[4] !== formattedValue) {
29
- t3 = (children) => <Clipboard.Root value={formattedValue} timeout={400}><Clipboard.Trigger _hover={{ "& [data-part=\"indicator\"]": { opacity: 1 } }} _active={{ "& [data-part=\"indicator\"]": { opacity: 1 } }}><HStack><Clipboard.Indicator color="fg.subtle" opacity="0" /><Span>{children}</Span></HStack></Clipboard.Trigger></Clipboard.Root>;
34
+ t3 = (children) => /* @__PURE__ */ jsx(Clipboard.Root, {
35
+ value: formattedValue,
36
+ timeout: 400,
37
+ children: /* @__PURE__ */ jsx(Clipboard.Trigger, {
38
+ _hover: { "& [data-part=\"indicator\"]": { opacity: 1 } },
39
+ _active: { "& [data-part=\"indicator\"]": { opacity: 1 } },
40
+ children: /* @__PURE__ */ jsxs(HStack, { children: [/* @__PURE__ */ jsx(Clipboard.Indicator, {
41
+ color: "fg.subtle",
42
+ opacity: "0"
43
+ }), /* @__PURE__ */ jsx(Span, { children })] })
44
+ })
45
+ });
30
46
  $[4] = formattedValue;
31
47
  $[5] = t3;
32
48
  } else t3 = $[5];
33
49
  let t4;
34
50
  if ($[6] !== copyable || $[7] !== formattedValue || $[8] !== t3) {
35
- t4 = <Wrap when={copyable} with={t3}>{formattedValue}</Wrap>;
51
+ t4 = /* @__PURE__ */ jsx(Wrap, {
52
+ when: copyable,
53
+ with: t3,
54
+ children: formattedValue
55
+ });
36
56
  $[6] = copyable;
37
57
  $[7] = formattedValue;
38
58
  $[8] = t3;
@@ -40,7 +60,11 @@ const DisplayValue = (props) => {
40
60
  } else t4 = $[9];
41
61
  let t5;
42
62
  if ($[10] !== t1 || $[11] !== t4) {
43
- t5 = <Show when={t1} fallback={t2}>{t4}</Show>;
63
+ t5 = /* @__PURE__ */ jsx(Show, {
64
+ when: t1,
65
+ fallback: t2,
66
+ children: t4
67
+ });
44
68
  $[10] = t1;
45
69
  $[11] = t4;
46
70
  $[12] = t5;