@pyck/react 0.0.5 → 0.0.7

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 (88) hide show
  1. package/dist/checkmark-rF75Pk98.js +75 -0
  2. package/dist/close-button-DAgpEZYq.js +172 -0
  3. package/dist/components/avatar/index.js +118 -20
  4. package/dist/components/button/index.js +1 -1
  5. package/dist/components/carousel/index.js +52 -12
  6. package/dist/components/checkbox/index.d.ts +1 -1
  7. package/dist/components/checkbox/index.js +151 -34
  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 +46 -9
  11. package/dist/components/data-list/index.d.ts +3 -2
  12. package/dist/components/data-list/index.js +23 -8
  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 +156 -95
  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 +22 -1
  21. package/dist/components/drilldown-menu/index.js +268 -87
  22. package/dist/components/field/index.js +110 -27
  23. package/dist/components/floating-panel/index.d.ts +1 -1
  24. package/dist/components/floating-panel/index.js +91 -43
  25. package/dist/components/form/index.d.ts +1 -1
  26. package/dist/components/form/index.js +142 -26
  27. package/dist/components/highlight/index.d.ts +1 -1
  28. package/dist/components/highlight/index.js +63 -14
  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 +33 -2
  32. package/dist/components/input/index.d.ts +1 -1
  33. package/dist/components/input/index.js +67 -4
  34. package/dist/components/input-group/index.js +79 -14
  35. package/dist/components/json-form-builder/index.d.ts +1 -1
  36. package/dist/components/json-form-builder/index.js +383 -99
  37. package/dist/components/loader/index.js +35 -15
  38. package/dist/components/logo/index.js +97 -19
  39. package/dist/components/menu/index.d.ts +1 -1
  40. package/dist/components/menu/index.js +41 -7
  41. package/dist/components/number-input/index.d.ts +1 -1
  42. package/dist/components/number-input/index.js +68 -13
  43. package/dist/components/page-header/index.js +67 -12
  44. package/dist/components/pagination/index.d.ts +1 -1
  45. package/dist/components/pagination/index.js +52 -13
  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 +57 -23
  50. package/dist/components/progress-circle/index.js +82 -30
  51. package/dist/components/radio-group/index.js +60 -19
  52. package/dist/components/scroll-area/index.js +80 -19
  53. package/dist/components/segment-group/index.d.ts +1 -1
  54. package/dist/components/segment-group/index.js +40 -5
  55. package/dist/components/select/index.d.ts +1 -1
  56. package/dist/components/select/index.js +119 -22
  57. package/dist/components/show/index.js +1 -1
  58. package/dist/components/skeleton/index.js +55 -4
  59. package/dist/components/slider/index.d.ts +1 -0
  60. package/dist/components/slider/index.js +174 -55
  61. package/dist/components/spotlight/index.js +447 -126
  62. package/dist/components/steps/index.js +35 -13
  63. package/dist/components/switch/index.d.ts +1 -1
  64. package/dist/components/switch/index.js +210 -43
  65. package/dist/components/table/index.d.ts +1 -1
  66. package/dist/components/table/index.js +435 -67
  67. package/dist/components/tags-input/index.d.ts +1 -1
  68. package/dist/components/tags-input/index.js +25 -9
  69. package/dist/components/textarea/index.d.ts +1 -1
  70. package/dist/components/textarea/index.js +66 -4
  71. package/dist/components/toast/index.d.ts +1 -1
  72. package/dist/components/toast/index.js +56 -22
  73. package/dist/components/tooltip/index.d.ts +1 -1
  74. package/dist/components/tooltip/index.js +87 -25
  75. package/dist/components/tree-view/index.d.ts +1 -1
  76. package/dist/components/tree-view/index.js +64 -8
  77. package/dist/display-date-value-CSPbdE60.js +45 -0
  78. package/dist/{display-date-value-CdfgVuB7.d.ts → display-date-value-RbzRgYHt.d.ts} +1 -1
  79. package/dist/display-value-R2nHrGQo.js +81 -0
  80. package/dist/{featured-icon-DPysOpSf.js → featured-icon-DBnAKGXC.js} +31 -4
  81. package/dist/show-B7zG1Vci.js +28 -0
  82. package/dist/utils/index.js +164 -73
  83. package/package.json +6 -3
  84. package/dist/checkmark-CW-yHMvN.js +0 -18
  85. package/dist/close-button-BM7ikbYh.js +0 -52
  86. package/dist/display-date-value-gTlidtNz.js +0 -21
  87. package/dist/display-value-BNKxQ99u.js +0 -37
  88. package/dist/show-IaI-36v9.js +0 -12
@@ -1,6 +1,7 @@
1
1
  import { createListCollection } from "@ark-ui/react/collection";
2
2
  import { useCallback, useId, useMemo, useRef } from "react";
3
3
  import { Divider } from "@pyck/styled-system/jsx";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { Combobox } from "@pyck/react/combobox";
5
6
  import { ScrollArea } from "@pyck/react/scroll-area";
6
7
  import { useVirtualizer } from "@tanstack/react-virtual";
@@ -23,34 +24,61 @@ const Picker = (props) => {
23
24
  behavior: "auto"
24
25
  });
25
26
  }, [virtualizer]);
26
- return <Combobox.Root ids={{ content: id }} collection={collection} variant="plain" placeholder="Search..." inputBehavior="autohighlight" selectionBehavior="clear" size="sm" scrollToIndexFn={handleScrollToIndexFn} onInputValueChange={(e) => list.setFilterText(e.inputValue)} value={value ? [value.value] : []} onValueChange={({ items }) => {
27
- onValueChange?.(items[0]);
28
- }}>
29
- <Combobox.Trigger asChild focusable>
30
- {children}
31
- </Combobox.Trigger>
32
- <Combobox.Positioner>
33
- <Combobox.Content p="0" gap="0">
34
- <Combobox.Input placeholder={placeholder} my="1" />
35
- <Divider />
36
- <ScrollArea size="sm" ref={contentRef} ids={{ viewport: id }} p="1" maxH="sm">
37
- <Combobox.Empty>{emptyText}</Combobox.Empty>
38
- <Combobox.List style={{ height: `${virtualizer.getTotalSize()}px` }}>
39
- {virtualizer.getVirtualItems().map((virtualItem) => {
40
- const item = collection.items[virtualItem.index];
41
- if (!item) return null;
42
- return <Combobox.Item key={item.value} item={item} persistFocus position="absolute" inset="0" style={{
43
- height: `${virtualItem.size}px`,
44
- transform: `translateY(${virtualItem.start}px)`
45
- }}>
46
- <Combobox.ItemText>{item.label}</Combobox.ItemText>
47
- </Combobox.Item>;
48
- })}
49
- </Combobox.List>
50
- </ScrollArea>
51
- </Combobox.Content>
52
- </Combobox.Positioner>
53
- </Combobox.Root>;
27
+ return /* @__PURE__ */ jsxs(Combobox.Root, {
28
+ ids: { content: id },
29
+ collection,
30
+ variant: "plain",
31
+ placeholder: "Search...",
32
+ inputBehavior: "autohighlight",
33
+ selectionBehavior: "clear",
34
+ size: "sm",
35
+ scrollToIndexFn: handleScrollToIndexFn,
36
+ onInputValueChange: (e) => list.setFilterText(e.inputValue),
37
+ value: value ? [value.value] : [],
38
+ onValueChange: ({ items }) => {
39
+ onValueChange?.(items[0]);
40
+ },
41
+ children: [/* @__PURE__ */ jsx(Combobox.Trigger, {
42
+ asChild: true,
43
+ focusable: true,
44
+ children
45
+ }), /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, {
46
+ p: "0",
47
+ gap: "0",
48
+ children: [
49
+ /* @__PURE__ */ jsx(Combobox.Input, {
50
+ placeholder,
51
+ my: "1"
52
+ }),
53
+ /* @__PURE__ */ jsx(Divider, {}),
54
+ /* @__PURE__ */ jsxs(ScrollArea, {
55
+ size: "sm",
56
+ ref: contentRef,
57
+ ids: { viewport: id },
58
+ p: "1",
59
+ maxH: "sm",
60
+ children: [/* @__PURE__ */ jsx(Combobox.Empty, { children: emptyText }), /* @__PURE__ */ jsx(Combobox.List, {
61
+ style: { height: `${virtualizer.getTotalSize()}px` },
62
+ children: virtualizer.getVirtualItems().map((virtualItem) => {
63
+ const item = collection.items[virtualItem.index];
64
+ if (!item) return null;
65
+ return /* @__PURE__ */ jsx(Combobox.Item, {
66
+ item,
67
+ persistFocus: true,
68
+ position: "absolute",
69
+ inset: "0",
70
+ style: {
71
+ height: `${virtualItem.size}px`,
72
+ transform: `translateY(${virtualItem.start}px)`
73
+ },
74
+ children: /* @__PURE__ */ jsx(Combobox.ItemText, { children: item.label })
75
+ }, item.value);
76
+ })
77
+ })]
78
+ })
79
+ ]
80
+ }) })]
81
+ });
54
82
  };
55
83
 
56
84
  //#endregion
@@ -3,8 +3,8 @@ 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
5
  import { Popover, PopoverContext as Context, PopoverOpenChangeDetails as OpenChangeDetails } from "@ark-ui/react/popover";
6
- import * as _ark_ui_react0 from "@ark-ui/react";
7
6
  import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+ import * as _ark_ui_react0 from "@ark-ui/react";
8
8
 
9
9
  //#region src/components/popover/popover.d.ts
10
10
  declare namespace popover_d_exports {
@@ -3,6 +3,7 @@ import { ark } from "@ark-ui/react/factory";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { popover } from "@pyck/styled-system/recipes";
5
5
  import { Popover, PopoverContext as Context } from "@ark-ui/react/popover";
6
+ import { jsx } from "react/jsx-runtime";
6
7
 
7
8
  //#region src/components/popover/popover.tsx
8
9
  var popover_exports = /* @__PURE__ */ __exportAll({
@@ -34,7 +35,7 @@ const RootProvider = withRootProvider(Popover.Root, { defaultProps: {
34
35
  } });
35
36
  const Anchor = withContext(Popover.Anchor, "anchor");
36
37
  const ArrowTip = withContext(Popover.ArrowTip, "arrowTip");
37
- const Arrow = withContext(Popover.Arrow, "arrow", { defaultProps: { children: <ArrowTip /> } });
38
+ const Arrow = withContext(Popover.Arrow, "arrow", { defaultProps: { children: /* @__PURE__ */ jsx(ArrowTip, {}) } });
38
39
  const CloseTrigger = withContext(Popover.CloseTrigger, "closeTrigger");
39
40
  const Content = withContext(Popover.Content, "content");
40
41
  const Description = withContext(Popover.Description, "description");
@@ -1,23 +1,11 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
1
+ import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { progress } from "@pyck/styled-system/recipes";
5
- import { Progress as Progress$1, ProgressContext as Context } from "@ark-ui/react/progress";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { Progress as Progress$1 } from "@ark-ui/react/progress";
6
7
 
7
8
  //#region src/components/progress/progress.tsx
8
- var progress_exports = /* @__PURE__ */ __exportAll({
9
- Circle: () => Circle,
10
- CircleRange: () => CircleRange,
11
- CircleTrack: () => CircleTrack,
12
- Context: () => Context,
13
- Label: () => Label,
14
- Range: () => Range,
15
- Root: () => Root,
16
- RootProvider: () => RootProvider,
17
- Track: () => Track,
18
- ValueText: () => ValueText,
19
- View: () => View
20
- });
21
9
  const { withProvider, withContext } = createStyleContext(progress);
22
10
  const Root = withProvider(Progress$1.Root, "root");
23
11
  const RootProvider = withProvider(Progress$1.RootProvider, "root");
@@ -33,14 +21,60 @@ const View = withContext(Progress$1.View, "view");
33
21
  //#endregion
34
22
  //#region src/components/progress/progress.closed.tsx
35
23
  const Progress = forwardRef(function Progress(props, ref) {
36
- const { showValueText, valueText, label, ...rest } = props;
37
- return <progress_exports.Root {...rest} ref={ref}>
38
- {label && <progress_exports.Label>{label}</progress_exports.Label>}
39
- <progress_exports.Track>
40
- <progress_exports.Range />
41
- </progress_exports.Track>
42
- {showValueText && <progress_exports.ValueText>{valueText}</progress_exports.ValueText>}
43
- </progress_exports.Root>;
24
+ const $ = c(16);
25
+ let label;
26
+ let rest;
27
+ let showValueText;
28
+ let valueText;
29
+ if ($[0] !== props) {
30
+ ({showValueText, valueText, label, ...rest} = props);
31
+ $[0] = props;
32
+ $[1] = label;
33
+ $[2] = rest;
34
+ $[3] = showValueText;
35
+ $[4] = valueText;
36
+ } else {
37
+ label = $[1];
38
+ rest = $[2];
39
+ showValueText = $[3];
40
+ valueText = $[4];
41
+ }
42
+ let t0;
43
+ if ($[5] !== label) {
44
+ t0 = label && /* @__PURE__ */ jsx(Label, { children: label });
45
+ $[5] = label;
46
+ $[6] = t0;
47
+ } else t0 = $[6];
48
+ let t1;
49
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50
+ t1 = /* @__PURE__ */ jsx(Track, { children: /* @__PURE__ */ jsx(Range, {}) });
51
+ $[7] = t1;
52
+ } else t1 = $[7];
53
+ let t2;
54
+ if ($[8] !== showValueText || $[9] !== valueText) {
55
+ t2 = showValueText && /* @__PURE__ */ jsx(ValueText, { children: valueText });
56
+ $[8] = showValueText;
57
+ $[9] = valueText;
58
+ $[10] = t2;
59
+ } else t2 = $[10];
60
+ let t3;
61
+ if ($[11] !== ref || $[12] !== rest || $[13] !== t0 || $[14] !== t2) {
62
+ t3 = /* @__PURE__ */ jsxs(Root, {
63
+ ...rest,
64
+ ref,
65
+ children: [
66
+ t0,
67
+ t1,
68
+ t2
69
+ ]
70
+ });
71
+ $[11] = ref;
72
+ $[12] = rest;
73
+ $[13] = t0;
74
+ $[14] = t2;
75
+ $[15] = t3;
76
+ } else t3 = $[15];
77
+ return t3;
44
78
  });
45
79
 
46
80
  //#endregion
@@ -1,23 +1,13 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
1
+ import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { Stack, createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { progressCircle } from "@pyck/styled-system/recipes";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { Show } from "@pyck/react/show";
6
7
  import { AbsoluteCenter } from "@pyck/react/absolute-center";
7
- import { Progress, ProgressContext as Context } from "@ark-ui/react/progress";
8
+ import { Progress } from "@ark-ui/react/progress";
8
9
 
9
10
  //#region src/components/progress-circle/progress-circle.tsx
10
- var progress_circle_exports = /* @__PURE__ */ __exportAll({
11
- Circle: () => Circle,
12
- Context: () => Context,
13
- Label: () => Label,
14
- Range: () => Range,
15
- Root: () => Root,
16
- RootProvider: () => RootProvider,
17
- Track: () => Track,
18
- ValueText: () => ValueText,
19
- View: () => View
20
- });
21
11
  const { withProvider, withContext } = createStyleContext(progressCircle);
22
12
  const Root = withProvider(Progress.Root, "root");
23
13
  const RootProvider = withProvider(Progress.RootProvider, "root");
@@ -31,23 +21,85 @@ const View = withContext(Progress.View, "view");
31
21
  //#endregion
32
22
  //#region src/components/progress-circle/progress-circle.closed.tsx
33
23
  const ProgressCircle = forwardRef(function ProgressCircle(props, ref) {
34
- const { showValueText, valueText, label, ...rest } = props;
35
- return <progress_circle_exports.Root {...rest} ref={ref}>
36
- <progress_circle_exports.Circle>
37
- <progress_circle_exports.Track />
38
- <progress_circle_exports.Range />
39
- </progress_circle_exports.Circle>
40
- <AbsoluteCenter>
41
- <Stack gap="0" align="center">
42
- <Show when={label}>
43
- <progress_circle_exports.Label>{label}</progress_circle_exports.Label>
44
- </Show>
45
- <Show when={showValueText}>
46
- <progress_circle_exports.ValueText>{valueText}</progress_circle_exports.ValueText>
47
- </Show>
48
- </Stack>
49
- </AbsoluteCenter>
50
- </progress_circle_exports.Root>;
24
+ const $ = c(23);
25
+ let label;
26
+ let rest;
27
+ let showValueText;
28
+ let valueText;
29
+ if ($[0] !== props) {
30
+ ({showValueText, valueText, label, ...rest} = props);
31
+ $[0] = props;
32
+ $[1] = label;
33
+ $[2] = rest;
34
+ $[3] = showValueText;
35
+ $[4] = valueText;
36
+ } else {
37
+ label = $[1];
38
+ rest = $[2];
39
+ showValueText = $[3];
40
+ valueText = $[4];
41
+ }
42
+ let t0;
43
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
44
+ t0 = /* @__PURE__ */ jsxs(Circle, { children: [/* @__PURE__ */ jsx(Track, {}), /* @__PURE__ */ jsx(Range, {})] });
45
+ $[5] = t0;
46
+ } else t0 = $[5];
47
+ let t1;
48
+ if ($[6] !== label) {
49
+ t1 = /* @__PURE__ */ jsx(Label, { children: label });
50
+ $[6] = label;
51
+ $[7] = t1;
52
+ } else t1 = $[7];
53
+ let t2;
54
+ if ($[8] !== label || $[9] !== t1) {
55
+ t2 = /* @__PURE__ */ jsx(Show, {
56
+ when: label,
57
+ children: t1
58
+ });
59
+ $[8] = label;
60
+ $[9] = t1;
61
+ $[10] = t2;
62
+ } else t2 = $[10];
63
+ let t3;
64
+ if ($[11] !== valueText) {
65
+ t3 = /* @__PURE__ */ jsx(ValueText, { children: valueText });
66
+ $[11] = valueText;
67
+ $[12] = t3;
68
+ } else t3 = $[12];
69
+ let t4;
70
+ if ($[13] !== showValueText || $[14] !== t3) {
71
+ t4 = /* @__PURE__ */ jsx(Show, {
72
+ when: showValueText,
73
+ children: t3
74
+ });
75
+ $[13] = showValueText;
76
+ $[14] = t3;
77
+ $[15] = t4;
78
+ } else t4 = $[15];
79
+ let t5;
80
+ if ($[16] !== t2 || $[17] !== t4) {
81
+ t5 = /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsxs(Stack, {
82
+ gap: "0",
83
+ align: "center",
84
+ children: [t2, t4]
85
+ }) });
86
+ $[16] = t2;
87
+ $[17] = t4;
88
+ $[18] = t5;
89
+ } else t5 = $[18];
90
+ let t6;
91
+ if ($[19] !== ref || $[20] !== rest || $[21] !== t5) {
92
+ t6 = /* @__PURE__ */ jsxs(Root, {
93
+ ...rest,
94
+ ref,
95
+ children: [t0, t5]
96
+ });
97
+ $[19] = ref;
98
+ $[20] = rest;
99
+ $[21] = t5;
100
+ $[22] = t6;
101
+ } else t6 = $[22];
102
+ return t6;
51
103
  });
52
104
 
53
105
  //#endregion
@@ -1,21 +1,11 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
1
+ import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { radioGroup } from "@pyck/styled-system/recipes";
5
- import { RadioGroup, RadioGroupContext as Context } from "@ark-ui/react/radio-group";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { RadioGroup } from "@ark-ui/react/radio-group";
6
7
 
7
8
  //#region src/components/radio-group/radio-group.tsx
8
- var radio_group_exports = /* @__PURE__ */ __exportAll({
9
- Context: () => Context,
10
- Indicator: () => Indicator,
11
- Item: () => Item,
12
- ItemControl: () => ItemControl,
13
- ItemHiddenInput: () => ItemHiddenInput,
14
- ItemText: () => ItemText,
15
- Label: () => Label,
16
- Root: () => Root,
17
- RootProvider: () => RootProvider
18
- });
19
9
  const { withProvider, withContext } = createStyleContext(radioGroup);
20
10
  const Root = withProvider(RadioGroup.Root, "root");
21
11
  const RootProvider = withProvider(RadioGroup.RootProvider, "root");
@@ -29,12 +19,63 @@ const ItemHiddenInput = RadioGroup.ItemHiddenInput;
29
19
  //#endregion
30
20
  //#region src/components/radio-group/radio-group.closed.tsx
31
21
  const Radio = forwardRef(function Radio(props, ref) {
32
- const { children, inputProps, rootRef, ...rest } = props;
33
- return <radio_group_exports.Item ref={rootRef} {...rest}>
34
- <radio_group_exports.ItemHiddenInput ref={ref} {...inputProps} />
35
- <radio_group_exports.ItemControl />
36
- {children && <radio_group_exports.ItemText>{children}</radio_group_exports.ItemText>}
37
- </radio_group_exports.Item>;
22
+ const $ = c(16);
23
+ let children;
24
+ let inputProps;
25
+ let rest;
26
+ let rootRef;
27
+ if ($[0] !== props) {
28
+ ({children, inputProps, rootRef, ...rest} = props);
29
+ $[0] = props;
30
+ $[1] = children;
31
+ $[2] = inputProps;
32
+ $[3] = rest;
33
+ $[4] = rootRef;
34
+ } else {
35
+ children = $[1];
36
+ inputProps = $[2];
37
+ rest = $[3];
38
+ rootRef = $[4];
39
+ }
40
+ let t0;
41
+ if ($[5] !== inputProps || $[6] !== ref) {
42
+ t0 = /* @__PURE__ */ jsx(ItemHiddenInput, {
43
+ ref,
44
+ ...inputProps
45
+ });
46
+ $[5] = inputProps;
47
+ $[6] = ref;
48
+ $[7] = t0;
49
+ } else t0 = $[7];
50
+ let t1;
51
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
52
+ t1 = /* @__PURE__ */ jsx(ItemControl, {});
53
+ $[8] = t1;
54
+ } else t1 = $[8];
55
+ let t2;
56
+ if ($[9] !== children) {
57
+ t2 = children && /* @__PURE__ */ jsx(ItemText, { children });
58
+ $[9] = children;
59
+ $[10] = t2;
60
+ } else t2 = $[10];
61
+ let t3;
62
+ if ($[11] !== rest || $[12] !== rootRef || $[13] !== t0 || $[14] !== t2) {
63
+ t3 = /* @__PURE__ */ jsxs(Item, {
64
+ ref: rootRef,
65
+ ...rest,
66
+ children: [
67
+ t0,
68
+ t1,
69
+ t2
70
+ ]
71
+ });
72
+ $[11] = rest;
73
+ $[12] = rootRef;
74
+ $[13] = t0;
75
+ $[14] = t2;
76
+ $[15] = t3;
77
+ } else t3 = $[15];
78
+ return t3;
38
79
  });
39
80
 
40
81
  //#endregion
@@ -1,40 +1,101 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
1
+ import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { scrollArea } from "@pyck/styled-system/recipes";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { ScrollArea as ScrollArea$1 } from "@ark-ui/react/scroll-area";
6
7
 
7
8
  //#region src/components/scroll-area/scroll-area.tsx
8
- var scroll_area_exports = /* @__PURE__ */ __exportAll({
9
- Content: () => Content,
10
- Corner: () => Corner,
11
- Root: () => Root,
12
- Scrollbar: () => Scrollbar,
13
- Thumb: () => Thumb,
14
- Viewport: () => Viewport
15
- });
16
9
  const { withProvider, withContext } = createStyleContext(scrollArea);
17
10
  const Root = withProvider(ScrollArea$1.Root, "root");
18
11
  const Content = withContext(ScrollArea$1.Content, "content");
19
12
  const Corner = withContext(ScrollArea$1.Corner, "corner");
20
13
  const Thumb = withContext(ScrollArea$1.Thumb, "thumb");
21
- const Scrollbar = withContext(ScrollArea$1.Scrollbar, "scrollbar", { defaultProps: { children: <Thumb /> } });
14
+ const Scrollbar = withContext(ScrollArea$1.Scrollbar, "scrollbar", { defaultProps: { children: /* @__PURE__ */ jsx(Thumb, {}) } });
22
15
  const Viewport = withContext(ScrollArea$1.Viewport, "viewport");
23
16
 
24
17
  //#endregion
25
18
  //#region src/components/scroll-area/scroll-area.closed.tsx
26
19
  const ScrollArea = forwardRef(function ScrollArea(props, ref) {
27
- const { children, scrollbars = "both", contentProps, ...rest } = props;
20
+ const $ = c(24);
21
+ let children;
22
+ let contentProps;
23
+ let rest;
24
+ let t0;
25
+ if ($[0] !== props) {
26
+ ({children, scrollbars: t0, contentProps, ...rest} = props);
27
+ $[0] = props;
28
+ $[1] = children;
29
+ $[2] = contentProps;
30
+ $[3] = rest;
31
+ $[4] = t0;
32
+ } else {
33
+ children = $[1];
34
+ contentProps = $[2];
35
+ rest = $[3];
36
+ t0 = $[4];
37
+ }
38
+ const scrollbars = t0 === void 0 ? "both" : t0;
28
39
  const showVertical = scrollbars === "vertical" || scrollbars === "both";
29
40
  const showHorizontal = scrollbars === "horizontal" || scrollbars === "both";
30
- return <scroll_area_exports.Root {...rest}>
31
- <scroll_area_exports.Viewport ref={ref}>
32
- <scroll_area_exports.Content {...contentProps}>{children}</scroll_area_exports.Content>
33
- </scroll_area_exports.Viewport>
34
- {showVertical && <scroll_area_exports.Scrollbar orientation="vertical" />}
35
- {showHorizontal && <scroll_area_exports.Scrollbar orientation="horizontal" />}
36
- {showVertical && showHorizontal && <scroll_area_exports.Corner />}
37
- </scroll_area_exports.Root>;
41
+ let t1;
42
+ if ($[5] !== children || $[6] !== contentProps) {
43
+ t1 = /* @__PURE__ */ jsx(Content, {
44
+ ...contentProps,
45
+ children
46
+ });
47
+ $[5] = children;
48
+ $[6] = contentProps;
49
+ $[7] = t1;
50
+ } else t1 = $[7];
51
+ let t2;
52
+ if ($[8] !== ref || $[9] !== t1) {
53
+ t2 = /* @__PURE__ */ jsx(Viewport, {
54
+ ref,
55
+ children: t1
56
+ });
57
+ $[8] = ref;
58
+ $[9] = t1;
59
+ $[10] = t2;
60
+ } else t2 = $[10];
61
+ let t3;
62
+ if ($[11] !== showVertical) {
63
+ t3 = showVertical && /* @__PURE__ */ jsx(Scrollbar, { orientation: "vertical" });
64
+ $[11] = showVertical;
65
+ $[12] = t3;
66
+ } else t3 = $[12];
67
+ let t4;
68
+ if ($[13] !== showHorizontal) {
69
+ t4 = showHorizontal && /* @__PURE__ */ jsx(Scrollbar, { orientation: "horizontal" });
70
+ $[13] = showHorizontal;
71
+ $[14] = t4;
72
+ } else t4 = $[14];
73
+ let t5;
74
+ if ($[15] !== showHorizontal || $[16] !== showVertical) {
75
+ t5 = showVertical && showHorizontal && /* @__PURE__ */ jsx(Corner, {});
76
+ $[15] = showHorizontal;
77
+ $[16] = showVertical;
78
+ $[17] = t5;
79
+ } else t5 = $[17];
80
+ let t6;
81
+ if ($[18] !== rest || $[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
82
+ t6 = /* @__PURE__ */ jsxs(Root, {
83
+ ...rest,
84
+ children: [
85
+ t2,
86
+ t3,
87
+ t4,
88
+ t5
89
+ ]
90
+ });
91
+ $[18] = rest;
92
+ $[19] = t2;
93
+ $[20] = t3;
94
+ $[21] = t4;
95
+ $[22] = t5;
96
+ $[23] = t6;
97
+ } else t6 = $[23];
98
+ return t6;
38
99
  });
39
100
 
40
101
  //#endregion
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps, 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 { SegmentGroup, SegmentGroupContext as Context } from "@ark-ui/react/segment-group";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { SegmentGroup, SegmentGroupContext as Context } from "@ark-ui/react/segment-group";
7
7
 
8
8
  //#region src/components/segment-group/segment-group.d.ts
9
9
  declare namespace segment_group_d_exports {
@@ -1,8 +1,10 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
2
  import { n as isString } from "../../function-DOGwA2sm.js";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { useMemo } from "react";
4
5
  import { createStyleContext } from "@pyck/styled-system/jsx";
5
6
  import { segmentGroup } from "@pyck/styled-system/recipes";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
6
8
  import { SegmentGroup, SegmentGroupContext as Context } from "@ark-ui/react/segment-group";
7
9
 
8
10
  //#region src/components/segment-group/segment-group.tsx
@@ -31,11 +33,44 @@ const ItemHiddenInput = SegmentGroup.ItemHiddenInput;
31
33
  const ItemText = withContext(SegmentGroup.ItemText, "itemText");
32
34
  const Label = withContext(SegmentGroup.Label, "label");
33
35
  const Items = (props) => {
34
- const { items, ...itemProps } = props;
35
- return useMemo(() => normalize(items), [items]).map((item) => <Item key={item.value} value={item.value} disabled={item.disabled} {...itemProps}>
36
- <ItemText>{item.label}</ItemText>
37
- <ItemHiddenInput />
38
- </Item>);
36
+ const $ = c(10);
37
+ let itemProps;
38
+ let items;
39
+ if ($[0] !== props) {
40
+ ({items, ...itemProps} = props);
41
+ $[0] = props;
42
+ $[1] = itemProps;
43
+ $[2] = items;
44
+ } else {
45
+ itemProps = $[1];
46
+ items = $[2];
47
+ }
48
+ let t0;
49
+ if ($[3] !== items) {
50
+ t0 = normalize(items);
51
+ $[3] = items;
52
+ $[4] = t0;
53
+ } else t0 = $[4];
54
+ const data = t0;
55
+ let t1;
56
+ if ($[5] !== data || $[6] !== itemProps) {
57
+ let t2;
58
+ if ($[8] !== itemProps) {
59
+ t2 = (item) => /* @__PURE__ */ jsxs(Item, {
60
+ value: item.value,
61
+ disabled: item.disabled,
62
+ ...itemProps,
63
+ children: [/* @__PURE__ */ jsx(ItemText, { children: item.label }), /* @__PURE__ */ jsx(ItemHiddenInput, {})]
64
+ }, item.value);
65
+ $[8] = itemProps;
66
+ $[9] = t2;
67
+ } else t2 = $[9];
68
+ t1 = data.map(t2);
69
+ $[5] = data;
70
+ $[6] = itemProps;
71
+ $[7] = t1;
72
+ } else t1 = $[7];
73
+ return t1;
39
74
  };
40
75
  const normalize = (items) => items.map((item) => isString(item) ? {
41
76
  value: item,
@@ -3,6 +3,7 @@ import * as react from "react";
3
3
  import { ReactNode, RefAttributes } from "react";
4
4
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
5
5
  import { SelectVariantProps } from "@pyck/styled-system/recipes";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
7
  import { FieldProps } from "@pyck/react/field";
7
8
  import * as _ark_ui_react0 from "@ark-ui/react";
8
9
  import { Assign, CollectionItem, SelectRootProps } from "@ark-ui/react";
@@ -10,7 +11,6 @@ import { Select } from "@pyck/react/select";
10
11
  import { Select as Select$1, SelectContext as Context, SelectItemContext as ItemContext, SelectValueChangeDetails as ValueChangeDetails, useListCollection } from "@ark-ui/react/select";
11
12
  import * as _pyck_styled_system_types0 from "@pyck/styled-system/types";
12
13
  import { HTMLStyledProps as HTMLStyledProps$1 } from "@pyck/styled-system/types";
13
- import * as react_jsx_runtime0 from "react/jsx-runtime";
14
14
 
15
15
  //#region src/components/select/select.d.ts
16
16
  declare namespace select_d_exports {