@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
@@ -3,14 +3,15 @@ import { c } from "react/compiler-runtime";
3
3
  import { useEffect, useMemo, useState } from "react";
4
4
  import { Box, Center, Grid, HStack } from "@pyck/styled-system/jsx";
5
5
  import { ArrowDownIcon, ArrowUpIcon, ChevronRightIcon, CommandIcon, CornerDownLeftIcon, SearchIcon, UserIcon } from "lucide-react";
6
- import { useDebounce, useHotkey } from "@pyck/react/utils";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Show } from "@pyck/react/show";
8
+ import { useDebounce, useHotkey } from "@pyck/react/utils";
8
9
  import { Span } from "@pyck/react/span";
9
10
  import { Button } from "@pyck/react/button";
10
11
  import { Icon } from "@pyck/react/icon";
11
12
  import { Combobox } from "@pyck/react/combobox";
12
- import { Text } from "@pyck/react/text";
13
13
  import { ScrollArea } from "@pyck/react/scroll-area";
14
+ import { Text } from "@pyck/react/text";
14
15
  import { Dialog } from "@pyck/react/dialog";
15
16
  import { InputGroup } from "@pyck/react/input-group";
16
17
  import { Kbd } from "@pyck/react/kbd";
@@ -23,22 +24,46 @@ const KeyboardHints = () => {
23
24
  const $ = c(4);
24
25
  let t0;
25
26
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
26
- t0 = <KeyboardKey><ArrowUpIcon /></KeyboardKey>;
27
+ t0 = /* @__PURE__ */ jsx(KeyboardKey, { children: /* @__PURE__ */ jsx(ArrowUpIcon, {}) });
27
28
  $[0] = t0;
28
29
  } else t0 = $[0];
29
30
  let t1;
30
31
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
31
- t1 = <Shortcut label="to navigate"><HStack gap="1.5">{t0}<KeyboardKey><ArrowDownIcon /></KeyboardKey></HStack></Shortcut>;
32
+ t1 = /* @__PURE__ */ jsx(Shortcut, {
33
+ label: "to navigate",
34
+ children: /* @__PURE__ */ jsxs(HStack, {
35
+ gap: "1.5",
36
+ children: [t0, /* @__PURE__ */ jsx(KeyboardKey, { children: /* @__PURE__ */ jsx(ArrowDownIcon, {}) })]
37
+ })
38
+ });
32
39
  $[1] = t1;
33
40
  } else t1 = $[1];
34
41
  let t2;
35
42
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
36
- t2 = <Shortcut label="to select"><KeyboardKey><CornerDownLeftIcon /></KeyboardKey></Shortcut>;
43
+ t2 = /* @__PURE__ */ jsx(Shortcut, {
44
+ label: "to select",
45
+ children: /* @__PURE__ */ jsx(KeyboardKey, { children: /* @__PURE__ */ jsx(CornerDownLeftIcon, {}) })
46
+ });
37
47
  $[2] = t2;
38
48
  } else t2 = $[2];
39
49
  let t3;
40
50
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
41
- t3 = <HStack gap="4">{t1}{t2}<Shortcut label="to close"><Kbd variant="surface" size="2xl" color="fg.muted">Esc</Kbd></Shortcut></HStack>;
51
+ t3 = /* @__PURE__ */ jsxs(HStack, {
52
+ gap: "4",
53
+ children: [
54
+ t1,
55
+ t2,
56
+ /* @__PURE__ */ jsx(Shortcut, {
57
+ label: "to close",
58
+ children: /* @__PURE__ */ jsx(Kbd, {
59
+ variant: "surface",
60
+ size: "2xl",
61
+ color: "fg.muted",
62
+ children: "Esc"
63
+ })
64
+ })
65
+ ]
66
+ });
42
67
  $[3] = t3;
43
68
  } else t3 = $[3];
44
69
  return t3;
@@ -48,13 +73,18 @@ const Shortcut = (t0) => {
48
73
  const { children, label } = t0;
49
74
  let t1;
50
75
  if ($[0] !== label) {
51
- t1 = <Text color="fg.muted" textStyle="sm" fontWeight="medium">{label}</Text>;
76
+ t1 = /* @__PURE__ */ jsx(Text, {
77
+ color: "fg.muted",
78
+ textStyle: "sm",
79
+ fontWeight: "medium",
80
+ children: label
81
+ });
52
82
  $[0] = label;
53
83
  $[1] = t1;
54
84
  } else t1 = $[1];
55
85
  let t2;
56
86
  if ($[2] !== children || $[3] !== t1) {
57
- t2 = <HStack>{children}{t1}</HStack>;
87
+ t2 = /* @__PURE__ */ jsxs(HStack, { children: [children, t1] });
58
88
  $[2] = children;
59
89
  $[3] = t1;
60
90
  $[4] = t2;
@@ -65,7 +95,11 @@ const KeyboardKey = (props) => {
65
95
  const $ = c(2);
66
96
  let t0;
67
97
  if ($[0] !== props) {
68
- t0 = <Kbd variant="surface" size="2xl"><Icon {...props} /></Kbd>;
98
+ t0 = /* @__PURE__ */ jsx(Kbd, {
99
+ variant: "surface",
100
+ size: "2xl",
101
+ children: /* @__PURE__ */ jsx(Icon, { ...props })
102
+ });
69
103
  $[0] = props;
70
104
  $[1] = t0;
71
105
  } else t0 = $[1];
@@ -84,46 +118,81 @@ const SearchResultItem = (props) => {
84
118
  } else t0 = $[0];
85
119
  let t1;
86
120
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
87
- t1 = <Center borderWidth="1px" borderRadius="l2" boxSize="10"><Icon><UserIcon /></Icon></Center>;
121
+ t1 = /* @__PURE__ */ jsx(Center, {
122
+ borderWidth: "1px",
123
+ borderRadius: "l2",
124
+ boxSize: "10",
125
+ children: /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(UserIcon, {}) })
126
+ });
88
127
  $[1] = t1;
89
128
  } else t1 = $[1];
90
129
  let t2;
91
130
  if ($[2] !== item.label) {
92
- t2 = <Text fontWeight="medium">{item.label}</Text>;
131
+ t2 = /* @__PURE__ */ jsx(Text, {
132
+ fontWeight: "medium",
133
+ children: item.label
134
+ });
93
135
  $[2] = item.label;
94
136
  $[3] = t2;
95
137
  } else t2 = $[3];
96
138
  const t3 = item.matchReason?.property;
97
139
  let t4;
98
140
  if ($[4] !== t3) {
99
- t4 = <Breadcrumb.Item>{t3}</Breadcrumb.Item>;
141
+ t4 = /* @__PURE__ */ jsx(Breadcrumb.Item, { children: t3 });
100
142
  $[4] = t3;
101
143
  $[5] = t4;
102
144
  } else t4 = $[5];
103
145
  let t5;
104
146
  if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
105
- t5 = <Breadcrumb.Separator><ChevronRightIcon /></Breadcrumb.Separator>;
147
+ t5 = /* @__PURE__ */ jsx(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx(ChevronRightIcon, {}) });
106
148
  $[6] = t5;
107
149
  } else t5 = $[6];
108
150
  const t6 = filterText ?? "";
109
151
  const t7 = item.matchReason?.value ?? "";
110
152
  let t8;
111
153
  if ($[7] !== t6 || $[8] !== t7) {
112
- t8 = <Breadcrumb.Item color="fg.muted"><Text><Highlight query={t6} variant="subtle" colorPalette="teal">{t7}</Highlight></Text></Breadcrumb.Item>;
154
+ t8 = /* @__PURE__ */ jsx(Breadcrumb.Item, {
155
+ color: "fg.muted",
156
+ children: /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsx(Highlight, {
157
+ query: t6,
158
+ variant: "subtle",
159
+ colorPalette: "teal",
160
+ children: t7
161
+ }) })
162
+ });
113
163
  $[7] = t6;
114
164
  $[8] = t7;
115
165
  $[9] = t8;
116
166
  } else t8 = $[9];
117
167
  let t9;
118
168
  if ($[10] !== t4 || $[11] !== t8) {
119
- t9 = <Breadcrumb.Root size="sm"><Breadcrumb.List gap="0.5">{t4}{t5}{t8}</Breadcrumb.List></Breadcrumb.Root>;
169
+ t9 = /* @__PURE__ */ jsx(Breadcrumb.Root, {
170
+ size: "sm",
171
+ children: /* @__PURE__ */ jsxs(Breadcrumb.List, {
172
+ gap: "0.5",
173
+ children: [
174
+ t4,
175
+ t5,
176
+ t8
177
+ ]
178
+ })
179
+ });
120
180
  $[10] = t4;
121
181
  $[11] = t8;
122
182
  $[12] = t9;
123
183
  } else t9 = $[12];
124
184
  let t10;
125
185
  if ($[13] !== t2 || $[14] !== t9) {
126
- t10 = <HStack py="2.5" px="3.5" borderRadius="l3" _hover={t0}>{t1}<Box textStyle="sm">{t2}{t9}</Box></HStack>;
186
+ t10 = /* @__PURE__ */ jsxs(HStack, {
187
+ py: "2.5",
188
+ px: "3.5",
189
+ borderRadius: "l3",
190
+ _hover: t0,
191
+ children: [t1, /* @__PURE__ */ jsxs(Box, {
192
+ textStyle: "sm",
193
+ children: [t2, t9]
194
+ })]
195
+ });
127
196
  $[13] = t2;
128
197
  $[14] = t9;
129
198
  $[15] = t10;
@@ -184,8 +253,18 @@ const Spotlight = (props) => {
184
253
  let t5;
185
254
  let t6;
186
255
  if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
187
- t5 = <Icon color="fg.muted" size="sm"><SearchIcon /></Icon>;
188
- t6 = <Span fontWeight="normal" flex="1" minW="0" textAlign="start">Find...</Span>;
256
+ t5 = /* @__PURE__ */ jsx(Icon, {
257
+ color: "fg.muted",
258
+ size: "sm",
259
+ children: /* @__PURE__ */ jsx(SearchIcon, {})
260
+ });
261
+ t6 = /* @__PURE__ */ jsx(Span, {
262
+ fontWeight: "normal",
263
+ flex: "1",
264
+ minW: "0",
265
+ textAlign: "start",
266
+ children: "Find..."
267
+ });
189
268
  $[10] = t5;
190
269
  $[11] = t6;
191
270
  } else {
@@ -194,12 +273,32 @@ const Spotlight = (props) => {
194
273
  }
195
274
  let t7;
196
275
  if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
197
- t7 = <Dialog.Trigger asChild={true}><Button variant="outline" size="sm" minW="56">{t5}{t6}<Kbd variant="surface" size="sm" gap="0.5"><Icon boxSize="3"><CommandIcon /></Icon>K</Kbd></Button></Dialog.Trigger>;
276
+ t7 = /* @__PURE__ */ jsx(Dialog.Trigger, {
277
+ asChild: true,
278
+ children: /* @__PURE__ */ jsxs(Button, {
279
+ variant: "outline",
280
+ size: "sm",
281
+ minW: "56",
282
+ children: [
283
+ t5,
284
+ t6,
285
+ /* @__PURE__ */ jsxs(Kbd, {
286
+ variant: "surface",
287
+ size: "sm",
288
+ gap: "0.5",
289
+ children: [/* @__PURE__ */ jsx(Icon, {
290
+ boxSize: "3",
291
+ children: /* @__PURE__ */ jsx(CommandIcon, {})
292
+ }), "K"]
293
+ })
294
+ ]
295
+ })
296
+ });
198
297
  $[12] = t7;
199
298
  } else t7 = $[12];
200
299
  let t8;
201
300
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
202
- t8 = <Dialog.Backdrop />;
301
+ t8 = /* @__PURE__ */ jsx(Dialog.Backdrop, {});
203
302
  $[13] = t8;
204
303
  } else t8 = $[13];
205
304
  let t9;
@@ -223,7 +322,14 @@ const Spotlight = (props) => {
223
322
  } else t11 = $[17];
224
323
  let t12;
225
324
  if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
226
- t12 = <Dialog.Header px="1" p="2"><InputGroup startElement={<SearchIcon />}><Combobox.Input /></InputGroup></Dialog.Header>;
325
+ t12 = /* @__PURE__ */ jsx(Dialog.Header, {
326
+ px: "1",
327
+ p: "2",
328
+ children: /* @__PURE__ */ jsx(InputGroup, {
329
+ startElement: /* @__PURE__ */ jsx(SearchIcon, {}),
330
+ children: /* @__PURE__ */ jsx(Combobox.Input, {})
331
+ })
332
+ });
227
333
  $[18] = t12;
228
334
  } else t12 = $[18];
229
335
  let t13;
@@ -233,14 +339,22 @@ const Spotlight = (props) => {
233
339
  } else t13 = $[19];
234
340
  let t14;
235
341
  if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
236
- t14 = <Combobox.Empty>No results found.</Combobox.Empty>;
342
+ t14 = /* @__PURE__ */ jsx(Combobox.Empty, { children: "No results found." });
237
343
  $[20] = t14;
238
344
  } else t14 = $[20];
239
345
  let t15;
240
346
  if ($[21] !== collection.items || $[22] !== debouncedValue) {
241
347
  let t16;
242
348
  if ($[24] !== debouncedValue) {
243
- t16 = (item) => <Combobox.Item key={item.value} item={item} persistFocus={true} p="0"><SearchResultItem item={item} filterText={debouncedValue} /></Combobox.Item>;
349
+ t16 = (item) => /* @__PURE__ */ jsx(Combobox.Item, {
350
+ item,
351
+ persistFocus: true,
352
+ p: "0",
353
+ children: /* @__PURE__ */ jsx(SearchResultItem, {
354
+ item,
355
+ filterText: debouncedValue
356
+ })
357
+ }, item.value);
244
358
  $[24] = debouncedValue;
245
359
  $[25] = t16;
246
360
  } else t16 = $[25];
@@ -251,44 +365,101 @@ const Spotlight = (props) => {
251
365
  } else t15 = $[23];
252
366
  let t16;
253
367
  if ($[26] !== t15) {
254
- t16 = <ScrollArea size="sm" ids={t13}><Combobox.List gap="1" p="2">{t14}{t15}</Combobox.List></ScrollArea>;
368
+ t16 = /* @__PURE__ */ jsx(ScrollArea, {
369
+ size: "sm",
370
+ ids: t13,
371
+ children: /* @__PURE__ */ jsxs(Combobox.List, {
372
+ gap: "1",
373
+ p: "2",
374
+ children: [t14, t15]
375
+ })
376
+ });
255
377
  $[26] = t15;
256
378
  $[27] = t16;
257
379
  } else t16 = $[27];
258
380
  const t17 = children !== null;
259
381
  let t18;
260
382
  if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
261
- t18 = <Center>Placeholder to explain how search works</Center>;
383
+ t18 = /* @__PURE__ */ jsx(Center, { children: "Placeholder to explain how search works" });
262
384
  $[28] = t18;
263
385
  } else t18 = $[28];
264
386
  let t19;
265
387
  if ($[29] !== children || $[30] !== t17) {
266
- t19 = <ScrollArea size="sm" h="full"><Box py="4" ps="4" pe="8"><Show when={t17} fallback={t18}>{children}</Show></Box></ScrollArea>;
388
+ t19 = /* @__PURE__ */ jsx(ScrollArea, {
389
+ size: "sm",
390
+ h: "full",
391
+ children: /* @__PURE__ */ jsx(Box, {
392
+ py: "4",
393
+ ps: "4",
394
+ pe: "8",
395
+ children: /* @__PURE__ */ jsx(Show, {
396
+ when: t17,
397
+ fallback: t18,
398
+ children
399
+ })
400
+ })
401
+ });
267
402
  $[29] = children;
268
403
  $[30] = t17;
269
404
  $[31] = t19;
270
405
  } else t19 = $[31];
271
406
  let t20;
272
407
  if ($[32] !== t16 || $[33] !== t19) {
273
- t20 = <Dialog.Body px="0"><Grid columns={2} gridTemplateColumns="2fr 3fr" width="full" h="xl" divideX="1px">{t16}{t19}</Grid></Dialog.Body>;
408
+ t20 = /* @__PURE__ */ jsx(Dialog.Body, {
409
+ px: "0",
410
+ children: /* @__PURE__ */ jsxs(Grid, {
411
+ columns: 2,
412
+ gridTemplateColumns: "2fr 3fr",
413
+ width: "full",
414
+ h: "xl",
415
+ divideX: "1px",
416
+ children: [t16, t19]
417
+ })
418
+ });
274
419
  $[32] = t16;
275
420
  $[33] = t19;
276
421
  $[34] = t20;
277
422
  } else t20 = $[34];
278
423
  let t21;
279
424
  if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
280
- t21 = <Dialog.Footer py="3.5" px="4" justifyContent="start"><KeyboardHints /></Dialog.Footer>;
425
+ t21 = /* @__PURE__ */ jsx(Dialog.Footer, {
426
+ py: "3.5",
427
+ px: "4",
428
+ justifyContent: "start",
429
+ children: /* @__PURE__ */ jsx(KeyboardHints, {})
430
+ });
281
431
  $[35] = t21;
282
432
  } else t21 = $[35];
283
433
  let t22;
284
434
  if ($[36] !== t20) {
285
- t22 = <Dialog.Content maxW="4xl" divideY="1px">{t12}{t20}{t21}</Dialog.Content>;
435
+ t22 = /* @__PURE__ */ jsxs(Dialog.Content, {
436
+ maxW: "4xl",
437
+ divideY: "1px",
438
+ children: [
439
+ t12,
440
+ t20,
441
+ t21
442
+ ]
443
+ });
286
444
  $[36] = t20;
287
445
  $[37] = t22;
288
446
  } else t22 = $[37];
289
447
  let t23;
290
448
  if ($[38] !== collection || $[39] !== t10 || $[40] !== t22) {
291
- t23 = <Portal>{t8}<Dialog.Positioner><Combobox.Root open={true} disableLayer={true} inputBehavior="autohighlight" placeholder="Search..." selectionBehavior="preserve" collection={collection} loopFocus={false} onInputValueChange={t9} onHighlightChange={t10} variant="plain" ids={t11}>{t22}</Combobox.Root></Dialog.Positioner></Portal>;
449
+ t23 = /* @__PURE__ */ jsxs(Portal, { children: [t8, /* @__PURE__ */ jsx(Dialog.Positioner, { children: /* @__PURE__ */ jsx(Combobox.Root, {
450
+ open: true,
451
+ disableLayer: true,
452
+ inputBehavior: "autohighlight",
453
+ placeholder: "Search...",
454
+ selectionBehavior: "preserve",
455
+ collection,
456
+ loopFocus: false,
457
+ onInputValueChange: t9,
458
+ onHighlightChange: t10,
459
+ variant: "plain",
460
+ ids: t11,
461
+ children: t22
462
+ }) })] });
292
463
  $[38] = collection;
293
464
  $[39] = t10;
294
465
  $[40] = t22;
@@ -296,7 +467,13 @@ const Spotlight = (props) => {
296
467
  } else t23 = $[41];
297
468
  let t24;
298
469
  if ($[42] !== open || $[43] !== t23 || $[44] !== t4) {
299
- t24 = <Dialog.Root open={open} onOpenChange={t4} motionPreset="slide-in-bottom" scrollBehavior="inside">{t7}{t23}</Dialog.Root>;
470
+ t24 = /* @__PURE__ */ jsxs(Dialog.Root, {
471
+ open,
472
+ onOpenChange: t4,
473
+ motionPreset: "slide-in-bottom",
474
+ scrollBehavior: "inside",
475
+ children: [t7, t23]
476
+ });
300
477
  $[42] = open;
301
478
  $[43] = t23;
302
479
  $[44] = t4;
@@ -5,6 +5,7 @@ import { ark } from "@ark-ui/react/factory";
5
5
  import { Box, createStyleContext } from "@pyck/styled-system/jsx";
6
6
  import { steps } from "@pyck/styled-system/recipes";
7
7
  import { CheckIcon } from "lucide-react";
8
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
8
9
  import { Steps } from "@ark-ui/react/steps";
9
10
 
10
11
  //#region src/components/steps/steps.tsx
@@ -44,11 +45,11 @@ const Status = (props) => {
44
45
  const $ = c(4);
45
46
  let t0;
46
47
  if ($[0] !== props.complete || $[1] !== props.current || $[2] !== props.incomplete) {
47
- t0 = <Steps.ItemContext>{(api) => {
48
- if (api.current) return <>{props.current ?? props.incomplete}</>;
49
- if (api.completed) return <>{props.complete}</>;
50
- return <>{props.incomplete ?? props.current}</>;
51
- }}</Steps.ItemContext>;
48
+ t0 = /* @__PURE__ */ jsx(Steps.ItemContext, { children: (api) => {
49
+ if (api.current) return /* @__PURE__ */ jsx(Fragment$1, { children: props.current ?? props.incomplete });
50
+ if (api.completed) return /* @__PURE__ */ jsx(Fragment$1, { children: props.complete });
51
+ return /* @__PURE__ */ jsx(Fragment$1, { children: props.incomplete ?? props.current });
52
+ } });
52
53
  $[0] = props.complete;
53
54
  $[1] = props.current;
54
55
  $[2] = props.incomplete;
@@ -60,14 +61,21 @@ const StepNumber = forwardRef(function StepNumber(props, ref) {
60
61
  const $ = c(3);
61
62
  let t0;
62
63
  if ($[0] !== props || $[1] !== ref) {
63
- t0 = <Steps.ItemContext>{(api) => <Box ref={ref} {...props}>{api.index + 1}</Box>}</Steps.ItemContext>;
64
+ t0 = /* @__PURE__ */ jsx(Steps.ItemContext, { children: (api) => /* @__PURE__ */ jsx(Box, {
65
+ ref,
66
+ ...props,
67
+ children: api.index + 1
68
+ }) });
64
69
  $[0] = props;
65
70
  $[1] = ref;
66
71
  $[2] = t0;
67
72
  } else t0 = $[2];
68
73
  return t0;
69
74
  });
70
- const Indicator = withContext(Steps.Indicator, "indicator", { defaultProps: { children: <Status complete={<CheckIcon />} incomplete={<StepNumber />} /> } });
75
+ const Indicator = withContext(Steps.Indicator, "indicator", { defaultProps: { children: /* @__PURE__ */ jsx(Status, {
76
+ complete: /* @__PURE__ */ jsx(CheckIcon, {}),
77
+ incomplete: /* @__PURE__ */ jsx(StepNumber, {})
78
+ }) } });
71
79
  const Context = Steps.Context;
72
80
  const ItemContext = Steps.ItemContext;
73
81
 
@@ -2,12 +2,12 @@ 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 * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import { FieldProps } from "@pyck/react/field";
6
7
  import { FieldPath, FieldValues } from "react-hook-form";
7
8
  import "@ark-ui/react";
8
9
  import { Switch as Switch$1 } from "@ark-ui/react/switch";
9
10
  import "@pyck/styled-system/types";
10
- import * as react_jsx_runtime0 from "react/jsx-runtime";
11
11
 
12
12
  //#region src/components/switch/switch.d.ts
13
13
  type RootProps = ComponentProps<typeof Root>;
@@ -1,32 +1,21 @@
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, styled } from "@pyck/styled-system/jsx";
5
4
  import { switchRecipe } from "@pyck/styled-system/recipes";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Field } from "@pyck/react/field";
7
7
  import { Controller, useFormContext } from "react-hook-form";
8
8
  import { ark } from "@ark-ui/react";
9
- import { Switch as Switch$1, SwitchContext as Context, useSwitchContext } from "@ark-ui/react/switch";
9
+ import { Switch as Switch$1, useSwitchContext } from "@ark-ui/react/switch";
10
10
 
11
11
  //#region src/components/switch/switch.tsx
12
- var switch_exports = /* @__PURE__ */ __exportAll({
13
- Context: () => Context,
14
- Control: () => Control,
15
- HiddenInput: () => HiddenInput,
16
- Indicator: () => Indicator,
17
- Label: () => Label,
18
- Root: () => Root,
19
- RootProvider: () => RootProvider,
20
- Thumb: () => Thumb,
21
- ThumbIndicator: () => ThumbIndicator
22
- });
23
12
  const { withProvider, withContext } = createStyleContext(switchRecipe);
24
13
  const Root = withProvider(Switch$1.Root, "root");
25
14
  const RootProvider = withProvider(Switch$1.RootProvider, "root");
26
15
  const Label = withContext(Switch$1.Label, "label");
27
16
  const Thumb = withContext(Switch$1.Thumb, "thumb");
28
17
  const HiddenInput = Switch$1.HiddenInput;
29
- const Control = withContext(Switch$1.Control, "control", { defaultProps: { children: <Thumb /> } });
18
+ const Control = withContext(Switch$1.Control, "control", { defaultProps: { children: /* @__PURE__ */ jsx(Thumb, {}) } });
30
19
  const StyledIndicator = withContext(ark.span, "indicator");
31
20
  const Indicator = forwardRef(function Indicator(props, ref) {
32
21
  const $ = c(9);
@@ -49,7 +38,12 @@ const Indicator = forwardRef(function Indicator(props, ref) {
49
38
  const t1 = api.checked ? children : fallback;
50
39
  let t2;
51
40
  if ($[4] !== ref || $[5] !== rest || $[6] !== t0 || $[7] !== t1) {
52
- t2 = <StyledIndicator ref={ref} data-checked={t0} {...rest}>{t1}</StyledIndicator>;
41
+ t2 = /* @__PURE__ */ jsx(StyledIndicator, {
42
+ ref,
43
+ "data-checked": t0,
44
+ ...rest,
45
+ children: t1
46
+ });
53
47
  $[4] = ref;
54
48
  $[5] = rest;
55
49
  $[6] = t0;
@@ -80,7 +74,12 @@ const ThumbIndicator = forwardRef(function SwitchThumbIndicator(props, ref) {
80
74
  const t1 = api.checked ? children : fallback;
81
75
  let t2;
82
76
  if ($[4] !== ref || $[5] !== rest || $[6] !== t0 || $[7] !== t1) {
83
- t2 = <StyledThumbIndicator ref={ref} data-checked={t0} {...rest}>{t1}</StyledThumbIndicator>;
77
+ t2 = /* @__PURE__ */ jsx(StyledThumbIndicator, {
78
+ ref,
79
+ "data-checked": t0,
80
+ ...rest,
81
+ children: t1
82
+ });
84
83
  $[4] = ref;
85
84
  $[5] = rest;
86
85
  $[6] = t0;
@@ -120,51 +119,72 @@ const Switch = forwardRef(function Switch(props, ref) {
120
119
  const rootRef = t0 === void 0 ? null : t0;
121
120
  let t1;
122
121
  if ($[7] !== inputProps || $[8] !== ref) {
123
- t1 = <switch_exports.HiddenInput ref={ref} {...inputProps} />;
122
+ t1 = /* @__PURE__ */ jsx(HiddenInput, {
123
+ ref,
124
+ ...inputProps
125
+ });
124
126
  $[7] = inputProps;
125
127
  $[8] = ref;
126
128
  $[9] = t1;
127
129
  } else t1 = $[9];
128
130
  let t2;
129
131
  if ($[10] !== thumbLabel) {
130
- t2 = thumbLabel && <switch_exports.ThumbIndicator fallback={thumbLabel?.off}>{thumbLabel?.on}</switch_exports.ThumbIndicator>;
132
+ t2 = thumbLabel && /* @__PURE__ */ jsx(ThumbIndicator, {
133
+ fallback: thumbLabel?.off,
134
+ children: thumbLabel?.on
135
+ });
131
136
  $[10] = thumbLabel;
132
137
  $[11] = t2;
133
138
  } else t2 = $[11];
134
139
  let t3;
135
140
  if ($[12] !== t2) {
136
- t3 = <switch_exports.Thumb>{t2}</switch_exports.Thumb>;
141
+ t3 = /* @__PURE__ */ jsx(Thumb, { children: t2 });
137
142
  $[12] = t2;
138
143
  $[13] = t3;
139
144
  } else t3 = $[13];
140
145
  let t4;
141
146
  if ($[14] !== trackLabel) {
142
- t4 = trackLabel && <switch_exports.Indicator fallback={trackLabel.off}>{trackLabel.on}</switch_exports.Indicator>;
147
+ t4 = trackLabel && /* @__PURE__ */ jsx(Indicator, {
148
+ fallback: trackLabel.off,
149
+ children: trackLabel.on
150
+ });
143
151
  $[14] = trackLabel;
144
152
  $[15] = t4;
145
153
  } else t4 = $[15];
146
154
  let t5;
147
155
  if ($[16] !== t3 || $[17] !== t4) {
148
- t5 = <switch_exports.Control>{t3}{t4}</switch_exports.Control>;
156
+ t5 = /* @__PURE__ */ jsxs(Control, { children: [t3, t4] });
149
157
  $[16] = t3;
150
158
  $[17] = t4;
151
159
  $[18] = t5;
152
160
  } else t5 = $[18];
153
161
  let t6;
154
162
  if ($[19] !== children) {
155
- t6 = children && <switch_exports.Label>{children}</switch_exports.Label>;
163
+ t6 = children && /* @__PURE__ */ jsx(Label, { children });
156
164
  $[19] = children;
157
165
  $[20] = t6;
158
166
  } else t6 = $[20];
159
167
  let t7;
160
168
  if ($[21] !== props) {
161
- t7 = props["aria-label"] && <switch_exports.Label asChild={true}><VisuallyHidden>{props["aria-label"]}</VisuallyHidden></switch_exports.Label>;
169
+ t7 = props["aria-label"] && /* @__PURE__ */ jsx(Label, {
170
+ asChild: true,
171
+ children: /* @__PURE__ */ jsx(VisuallyHidden, { children: props["aria-label"] })
172
+ });
162
173
  $[21] = props;
163
174
  $[22] = t7;
164
175
  } else t7 = $[22];
165
176
  let t8;
166
177
  if ($[23] !== rest || $[24] !== rootRef || $[25] !== t1 || $[26] !== t5 || $[27] !== t6 || $[28] !== t7) {
167
- t8 = <switch_exports.Root ref={rootRef} {...rest}>{t1}{t5}{t6}{t7}</switch_exports.Root>;
178
+ t8 = /* @__PURE__ */ jsxs(Root, {
179
+ ref: rootRef,
180
+ ...rest,
181
+ children: [
182
+ t1,
183
+ t5,
184
+ t6,
185
+ t7
186
+ ]
187
+ });
168
188
  $[23] = rest;
169
189
  $[24] = rootRef;
170
190
  $[25] = t1;
@@ -186,10 +206,22 @@ const SwitchField = (props) => {
186
206
  if ($[0] !== disabled || $[1] !== helperText || $[2] !== label) {
187
207
  t0 = (t1) => {
188
208
  const { field, fieldState } = t1;
189
- return <Field helperText={helperText} disabled={field.disabled || disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message}><Switch name={field.name} checked={field.value} onCheckedChange={(t2) => {
190
- const { checked } = t2;
191
- return field.onChange(checked);
192
- }} inputProps={{ onBlur: field.onBlur }}>{label}</Switch></Field>;
209
+ return /* @__PURE__ */ jsx(Field, {
210
+ helperText,
211
+ disabled: field.disabled || disabled,
212
+ invalid: !!fieldState.error,
213
+ errorText: fieldState.error?.message,
214
+ children: /* @__PURE__ */ jsx(Switch, {
215
+ name: field.name,
216
+ checked: field.value,
217
+ onCheckedChange: (t2) => {
218
+ const { checked } = t2;
219
+ return field.onChange(checked);
220
+ },
221
+ inputProps: { onBlur: field.onBlur },
222
+ children: label
223
+ })
224
+ });
193
225
  };
194
226
  $[0] = disabled;
195
227
  $[1] = helperText;
@@ -198,7 +230,11 @@ const SwitchField = (props) => {
198
230
  } else t0 = $[3];
199
231
  let t1;
200
232
  if ($[4] !== control || $[5] !== name || $[6] !== t0) {
201
- t1 = <Controller name={name} control={control} render={t0} />;
233
+ t1 = /* @__PURE__ */ jsx(Controller, {
234
+ name,
235
+ control,
236
+ render: t0
237
+ });
202
238
  $[4] = control;
203
239
  $[5] = name;
204
240
  $[6] = t0;
@@ -2,11 +2,11 @@ import * as react from "react";
2
2
  import { ComponentProps, ComponentType, ReactNode } 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 * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import { DateInput, Locale } from "@pyck/react/utils";
6
7
  import * as _ark_ui_react0 from "@ark-ui/react";
7
8
  import { DisplayValueProps } from "@pyck/react/display-value";
8
9
  import { DateFormatType } from "@pyck/react/display-date-value";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/components/table/cells/table-cell-content.d.ts
12
12
  interface TableCellContentProps<IconProps extends object = object> {