@pyck/react 0.0.3 → 0.0.6

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 (58) hide show
  1. package/dist/checkmark-fJPHeX8N.js +62 -0
  2. package/dist/close-button-r3blTfSH.js +141 -0
  3. package/dist/components/avatar/index.js +96 -11
  4. package/dist/components/button/index.js +1 -1
  5. package/dist/components/carousel/index.js +35 -10
  6. package/dist/components/checkbox/index.js +103 -22
  7. package/dist/components/checkmark/index.js +1 -1
  8. package/dist/components/combobox/index.js +30 -6
  9. package/dist/components/data-list/index.js +19 -8
  10. package/dist/components/date-picker/index.js +1 -1
  11. package/dist/components/dialog/index.js +45 -14
  12. package/dist/components/display-date-value/index.js +2 -2
  13. package/dist/components/display-value/index.js +1 -1
  14. package/dist/components/drawer/index.js +17 -1
  15. package/dist/components/drilldown-menu/index.js +209 -78
  16. package/dist/components/field/index.js +89 -16
  17. package/dist/components/floating-panel/index.js +54 -43
  18. package/dist/components/form/index.js +115 -26
  19. package/dist/components/highlight/index.js +52 -14
  20. package/dist/components/icon/index.js +1 -1
  21. package/dist/components/image/index.js +27 -2
  22. package/dist/components/input/index.js +47 -4
  23. package/dist/components/input-group/index.js +56 -14
  24. package/dist/components/json-form-builder/index.js +243 -85
  25. package/dist/components/logo/index.js +46 -19
  26. package/dist/components/menu/index.js +28 -6
  27. package/dist/components/number-input/index.js +46 -7
  28. package/dist/components/page-header/index.js +45 -12
  29. package/dist/components/pagination/index.js +35 -13
  30. package/dist/components/progress/index.js +47 -8
  31. package/dist/components/progress-circle/index.js +66 -17
  32. package/dist/components/radio-group/index.js +47 -6
  33. package/dist/components/scroll-area/index.js +64 -9
  34. package/dist/components/segment-group/index.js +34 -5
  35. package/dist/components/select/index.js +85 -21
  36. package/dist/components/show/index.js +1 -1
  37. package/dist/components/skeleton/index.js +44 -4
  38. package/dist/components/slider/index.js +134 -37
  39. package/dist/components/spotlight/index.js +269 -125
  40. package/dist/components/steps/index.js +26 -12
  41. package/dist/components/switch/index.js +160 -29
  42. package/dist/components/table/index.js +370 -66
  43. package/dist/components/tags-input/index.js +17 -7
  44. package/dist/components/textarea/index.js +47 -4
  45. package/dist/components/toast/index.js +28 -22
  46. package/dist/components/tooltip/index.js +71 -14
  47. package/dist/components/tree-view/index.js +45 -8
  48. package/dist/display-date-value-BAU46P8s.js +40 -0
  49. package/dist/display-value-Bz71ZqgM.js +57 -0
  50. package/dist/{featured-icon-DPysOpSf.js → featured-icon-CKDv0xfF.js} +27 -4
  51. package/dist/show-DAysVQAC.js +27 -0
  52. package/dist/utils/index.js +164 -73
  53. package/package.json +21 -3
  54. package/dist/checkmark-CW-yHMvN.js +0 -18
  55. package/dist/close-button-BM7ikbYh.js +0 -52
  56. package/dist/display-date-value-gTlidtNz.js +0 -21
  57. package/dist/display-value-BNKxQ99u.js +0 -37
  58. package/dist/show-IaI-36v9.js +0 -12
@@ -1,4 +1,5 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { forwardRef } from "react";
3
4
  import { ark } from "@ark-ui/react/factory";
4
5
  import { HStack, VisuallyHidden, createStyleContext } from "@pyck/styled-system/jsx";
@@ -40,54 +41,150 @@ const Track = withContext(Slider$1.Track, "track");
40
41
  const ValueText = withContext(Slider$1.ValueText, "valueText");
41
42
  const HiddenInput = Slider$1.HiddenInput;
42
43
  const Marks = forwardRef(function Marks(props, ref) {
43
- const { marks, ...rest } = props;
44
+ const $ = c(9);
45
+ let marks;
46
+ let rest;
47
+ if ($[0] !== props) {
48
+ ({marks, ...rest} = props);
49
+ $[0] = props;
50
+ $[1] = marks;
51
+ $[2] = rest;
52
+ } else {
53
+ marks = $[1];
54
+ rest = $[2];
55
+ }
44
56
  if (!marks?.length) return null;
45
- return <MarkerGroup ref={ref} {...rest}>
46
- <For each={marks}>
47
- {(mark, index) => {
48
- const value = typeof mark === "number" ? mark : mark.value;
49
- const label = typeof mark === "number" ? void 0 : mark.label;
50
- return <Marker key={index} value={value}>
51
- <MarkerIndicator />
52
- {label != null && <span>{label}</span>}
53
- </Marker>;
54
- }}
55
- </For>
56
- </MarkerGroup>;
57
+ let t0;
58
+ if ($[3] !== marks) {
59
+ t0 = <For each={marks}>{_temp$1}</For>;
60
+ $[3] = marks;
61
+ $[4] = t0;
62
+ } else t0 = $[4];
63
+ let t1;
64
+ if ($[5] !== ref || $[6] !== rest || $[7] !== t0) {
65
+ t1 = <MarkerGroup ref={ref} {...rest}>{t0}</MarkerGroup>;
66
+ $[5] = ref;
67
+ $[6] = rest;
68
+ $[7] = t0;
69
+ $[8] = t1;
70
+ } else t1 = $[8];
71
+ return t1;
57
72
  });
58
73
  const Thumbs = (props) => {
74
+ const $ = c(5);
59
75
  const slider = useSliderContext();
60
- return <For each={slider.value}>
61
- {(_, index) => <Thumb key={index} index={index} {...props}>
62
- <HiddenInput />
63
- </Thumb>}
64
- </For>;
76
+ let t0;
77
+ if ($[0] !== props) {
78
+ t0 = (_, index) => <Thumb key={index} index={index} {...props}><HiddenInput /></Thumb>;
79
+ $[0] = props;
80
+ $[1] = t0;
81
+ } else t0 = $[1];
82
+ let t1;
83
+ if ($[2] !== slider.value || $[3] !== t0) {
84
+ t1 = <For each={slider.value}>{t0}</For>;
85
+ $[2] = slider.value;
86
+ $[3] = t0;
87
+ $[4] = t1;
88
+ } else t1 = $[4];
89
+ return t1;
65
90
  };
91
+ function _temp$1(mark, index) {
92
+ const value = typeof mark === "number" ? mark : mark.value;
93
+ const label = typeof mark === "number" ? void 0 : mark.label;
94
+ return <Marker key={index} value={value}><MarkerIndicator />{label != null && <span>{label}</span>}</Marker>;
95
+ }
66
96
 
67
97
  //#endregion
68
98
  //#region src/components/slider/sllider.closed.tsx
69
99
  const Slider = forwardRef(function Slider(props, ref) {
70
- const { label, hideLabel, showValue, children, marks, ...rest } = props;
71
- return <slider_exports.Root ref={ref} {...rest}>
72
- <Wrap when={hideLabel} with={(node) => <VisuallyHidden>{node}</VisuallyHidden>}>
73
- <HStack justify="space-between">
74
- <slider_exports.Label>{label}</slider_exports.Label>
75
- <Show when={showValue}>
76
- <slider_exports.ValueText />
77
- </Show>
78
- </HStack>
79
- </Wrap>
80
- <slider_exports.Control>
81
- <slider_exports.Track>
82
- <slider_exports.Range />
83
- </slider_exports.Track>
84
- <slider_exports.Thumbs />
85
- <slider_exports.Marks marks={marks} />
86
- </slider_exports.Control>
87
- {children}
88
- </slider_exports.Root>;
100
+ const $ = c(28);
101
+ let children;
102
+ let hideLabel;
103
+ let label;
104
+ let marks;
105
+ let rest;
106
+ let showValue;
107
+ if ($[0] !== props) {
108
+ ({label, hideLabel, showValue, children, marks, ...rest} = props);
109
+ $[0] = props;
110
+ $[1] = children;
111
+ $[2] = hideLabel;
112
+ $[3] = label;
113
+ $[4] = marks;
114
+ $[5] = rest;
115
+ $[6] = showValue;
116
+ } else {
117
+ children = $[1];
118
+ hideLabel = $[2];
119
+ label = $[3];
120
+ marks = $[4];
121
+ rest = $[5];
122
+ showValue = $[6];
123
+ }
124
+ let t0;
125
+ if ($[7] !== label) {
126
+ t0 = <slider_exports.Label>{label}</slider_exports.Label>;
127
+ $[7] = label;
128
+ $[8] = t0;
129
+ } else t0 = $[8];
130
+ let t1;
131
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
132
+ t1 = <slider_exports.ValueText />;
133
+ $[9] = t1;
134
+ } else t1 = $[9];
135
+ let t2;
136
+ if ($[10] !== showValue) {
137
+ t2 = <Show when={showValue}>{t1}</Show>;
138
+ $[10] = showValue;
139
+ $[11] = t2;
140
+ } else t2 = $[11];
141
+ let t3;
142
+ if ($[12] !== t0 || $[13] !== t2) {
143
+ t3 = <HStack justify="space-between">{t0}{t2}</HStack>;
144
+ $[12] = t0;
145
+ $[13] = t2;
146
+ $[14] = t3;
147
+ } else t3 = $[14];
148
+ let t4;
149
+ if ($[15] !== hideLabel || $[16] !== t3) {
150
+ t4 = <Wrap when={hideLabel} with={_temp}>{t3}</Wrap>;
151
+ $[15] = hideLabel;
152
+ $[16] = t3;
153
+ $[17] = t4;
154
+ } else t4 = $[17];
155
+ let t5;
156
+ let t6;
157
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
158
+ t5 = <slider_exports.Track><slider_exports.Range /></slider_exports.Track>;
159
+ t6 = <slider_exports.Thumbs />;
160
+ $[18] = t5;
161
+ $[19] = t6;
162
+ } else {
163
+ t5 = $[18];
164
+ t6 = $[19];
165
+ }
166
+ let t7;
167
+ if ($[20] !== marks) {
168
+ t7 = <slider_exports.Control>{t5}{t6}<slider_exports.Marks marks={marks} /></slider_exports.Control>;
169
+ $[20] = marks;
170
+ $[21] = t7;
171
+ } else t7 = $[21];
172
+ let t8;
173
+ if ($[22] !== children || $[23] !== ref || $[24] !== rest || $[25] !== t4 || $[26] !== t7) {
174
+ t8 = <slider_exports.Root ref={ref} {...rest}>{t4}{t7}{children}</slider_exports.Root>;
175
+ $[22] = children;
176
+ $[23] = ref;
177
+ $[24] = rest;
178
+ $[25] = t4;
179
+ $[26] = t7;
180
+ $[27] = t8;
181
+ } else t8 = $[27];
182
+ return t8;
89
183
  });
90
184
  const SliderContext = Context;
185
+ function _temp(node) {
186
+ return <VisuallyHidden>{node}</VisuallyHidden>;
187
+ }
91
188
 
92
189
  //#endregion
93
190
  export { Slider, SliderContext };
@@ -1,4 +1,5 @@
1
1
  import { createListCollection } from "@ark-ui/react/collection";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { useEffect, useMemo, useState } from "react";
3
4
  import { Box, Center, Grid, HStack } from "@pyck/styled-system/jsx";
4
5
  import { ArrowDownIcon, ArrowUpIcon, ChevronRightIcon, CommandIcon, CornerDownLeftIcon, SearchIcon, UserIcon } from "lucide-react";
@@ -19,146 +20,289 @@ import { Highlight } from "@pyck/react/highlight";
19
20
 
20
21
  //#region src/components/spotlight/keyboard-hints.tsx
21
22
  const KeyboardHints = () => {
22
- return <HStack gap="4">
23
- <Shortcut label="to navigate">
24
- <HStack gap="1.5">
25
- <KeyboardKey>
26
- <ArrowUpIcon />
27
- </KeyboardKey>
28
- <KeyboardKey>
29
- <ArrowDownIcon />
30
- </KeyboardKey>
31
- </HStack>
32
- </Shortcut>
33
-
34
- <Shortcut label="to select">
35
- <KeyboardKey>
36
- <CornerDownLeftIcon />
37
- </KeyboardKey>
38
- </Shortcut>
39
-
40
- <Shortcut label="to close">
41
- <Kbd variant="surface" size="2xl" color="fg.muted">
42
- Esc
43
- </Kbd>
44
- </Shortcut>
45
- </HStack>;
23
+ const $ = c(4);
24
+ let t0;
25
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
26
+ t0 = <KeyboardKey><ArrowUpIcon /></KeyboardKey>;
27
+ $[0] = t0;
28
+ } else t0 = $[0];
29
+ let t1;
30
+ 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
+ $[1] = t1;
33
+ } else t1 = $[1];
34
+ let t2;
35
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
36
+ t2 = <Shortcut label="to select"><KeyboardKey><CornerDownLeftIcon /></KeyboardKey></Shortcut>;
37
+ $[2] = t2;
38
+ } else t2 = $[2];
39
+ let t3;
40
+ 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>;
42
+ $[3] = t3;
43
+ } else t3 = $[3];
44
+ return t3;
45
+ };
46
+ const Shortcut = (t0) => {
47
+ const $ = c(5);
48
+ const { children, label } = t0;
49
+ let t1;
50
+ if ($[0] !== label) {
51
+ t1 = <Text color="fg.muted" textStyle="sm" fontWeight="medium">{label}</Text>;
52
+ $[0] = label;
53
+ $[1] = t1;
54
+ } else t1 = $[1];
55
+ let t2;
56
+ if ($[2] !== children || $[3] !== t1) {
57
+ t2 = <HStack>{children}{t1}</HStack>;
58
+ $[2] = children;
59
+ $[3] = t1;
60
+ $[4] = t2;
61
+ } else t2 = $[4];
62
+ return t2;
63
+ };
64
+ const KeyboardKey = (props) => {
65
+ const $ = c(2);
66
+ let t0;
67
+ if ($[0] !== props) {
68
+ t0 = <Kbd variant="surface" size="2xl"><Icon {...props} /></Kbd>;
69
+ $[0] = props;
70
+ $[1] = t0;
71
+ } else t0 = $[1];
72
+ return t0;
46
73
  };
47
- const Shortcut = ({ children, label }) => <HStack>
48
- {children}
49
- <Text color="fg.muted" textStyle="sm" fontWeight="medium">
50
- {label}
51
- </Text>
52
- </HStack>;
53
- const KeyboardKey = (props) => <Kbd variant="surface" size="2xl">
54
- <Icon {...props} />
55
- </Kbd>;
56
74
 
57
75
  //#endregion
58
76
  //#region src/components/spotlight/search-result-item.tsx
59
77
  const SearchResultItem = (props) => {
78
+ const $ = c(16);
60
79
  const { item, filterText } = props;
61
- return <HStack py="2.5" px="3.5" borderRadius="l3" _hover={{ bg: "gray.surface.bg.hover" }}>
62
- <Center borderWidth="1px" borderRadius="l2" boxSize="10">
63
- <Icon>
64
- <UserIcon />
65
- </Icon>
66
- </Center>
67
- <Box textStyle="sm">
68
- <Text fontWeight="medium">{item.label}</Text>
69
- <Breadcrumb.Root size="sm">
70
- <Breadcrumb.List gap="0.5">
71
- <Breadcrumb.Item>{item.matchReason?.property}</Breadcrumb.Item>
72
- <Breadcrumb.Separator>
73
- <ChevronRightIcon />
74
- </Breadcrumb.Separator>
75
- <Breadcrumb.Item color="fg.muted">
76
- <Text>
77
- <Highlight query={filterText ?? ""} variant="subtle" colorPalette="teal">
78
- {item.matchReason?.value ?? ""}
79
- </Highlight>
80
- </Text>
81
- </Breadcrumb.Item>
82
- </Breadcrumb.List>
83
- </Breadcrumb.Root>
84
- </Box>
85
- </HStack>;
80
+ let t0;
81
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
82
+ t0 = { bg: "gray.surface.bg.hover" };
83
+ $[0] = t0;
84
+ } else t0 = $[0];
85
+ let t1;
86
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
87
+ t1 = <Center borderWidth="1px" borderRadius="l2" boxSize="10"><Icon><UserIcon /></Icon></Center>;
88
+ $[1] = t1;
89
+ } else t1 = $[1];
90
+ let t2;
91
+ if ($[2] !== item.label) {
92
+ t2 = <Text fontWeight="medium">{item.label}</Text>;
93
+ $[2] = item.label;
94
+ $[3] = t2;
95
+ } else t2 = $[3];
96
+ const t3 = item.matchReason?.property;
97
+ let t4;
98
+ if ($[4] !== t3) {
99
+ t4 = <Breadcrumb.Item>{t3}</Breadcrumb.Item>;
100
+ $[4] = t3;
101
+ $[5] = t4;
102
+ } else t4 = $[5];
103
+ let t5;
104
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
105
+ t5 = <Breadcrumb.Separator><ChevronRightIcon /></Breadcrumb.Separator>;
106
+ $[6] = t5;
107
+ } else t5 = $[6];
108
+ const t6 = filterText ?? "";
109
+ const t7 = item.matchReason?.value ?? "";
110
+ let t8;
111
+ 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>;
113
+ $[7] = t6;
114
+ $[8] = t7;
115
+ $[9] = t8;
116
+ } else t8 = $[9];
117
+ let t9;
118
+ if ($[10] !== t4 || $[11] !== t8) {
119
+ t9 = <Breadcrumb.Root size="sm"><Breadcrumb.List gap="0.5">{t4}{t5}{t8}</Breadcrumb.List></Breadcrumb.Root>;
120
+ $[10] = t4;
121
+ $[11] = t8;
122
+ $[12] = t9;
123
+ } else t9 = $[12];
124
+ let t10;
125
+ 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>;
127
+ $[13] = t2;
128
+ $[14] = t9;
129
+ $[15] = t10;
130
+ } else t10 = $[15];
131
+ return t10;
86
132
  };
87
133
 
88
134
  //#endregion
89
135
  //#region src/components/spotlight/spotlight.tsx
90
136
  const Spotlight = (props) => {
137
+ const $ = c(46);
91
138
  const { searchList, children, onHighlightChange } = props;
92
139
  const [open, setOpen] = useState(false);
93
140
  useHotkey(setOpen);
94
141
  const [filterText, setFilterText] = useState("");
95
- const debouncedValue = useDebounce(filterText, { wait: 250 });
96
- useEffect(() => {
97
- console.log("Setting filter text to:", debouncedValue);
98
- searchList.setFilterText(debouncedValue);
99
- }, [debouncedValue]);
100
- const collection = useMemo(() => createListCollection({ items: searchList.items }), [searchList.items]);
101
- const id = "list";
102
- return <Dialog.Root open={open} onOpenChange={(event) => {
103
- setOpen(event.open);
104
- if (!event.open) {
105
- setFilterText("");
106
- searchList.setFilterText("");
107
- }
108
- }} motionPreset="slide-in-bottom" scrollBehavior="inside">
109
- <Dialog.Trigger asChild>
110
- <Button variant="outline" size="sm" minW="56">
111
- <Icon color="fg.muted" size="sm">
112
- <SearchIcon />
113
- </Icon>
114
- <Span fontWeight="normal" flex="1" minW="0" textAlign="start">
115
- Find...
116
- </Span>
117
- <Kbd variant="surface" size="sm" gap="0.5">
118
- <Icon boxSize="3">
119
- <CommandIcon />
120
- </Icon>
121
- K
122
- </Kbd>
123
- </Button>
124
- </Dialog.Trigger>
125
- <Portal>
126
- <Dialog.Backdrop />
127
- <Dialog.Positioner>
128
- <Combobox.Root open disableLayer inputBehavior="autohighlight" placeholder="Search..." selectionBehavior="preserve" collection={collection} loopFocus={false} onInputValueChange={({ inputValue }) => setFilterText(inputValue || "")} onHighlightChange={(e) => onHighlightChange?.(e.highlightedItem)} variant="plain" ids={{ content: id }}>
129
- <Dialog.Content maxW="4xl" divideY="1px">
130
- <Dialog.Header px="1" p="2">
131
- <InputGroup startElement={<SearchIcon />}>
132
- <Combobox.Input />
133
- </InputGroup>
134
- </Dialog.Header>
135
- <Dialog.Body px="0">
136
- <Grid columns={2} gridTemplateColumns="2fr 3fr" width="full" h="xl" divideX="1px">
137
- <ScrollArea size="sm" ids={{ viewport: id }}>
138
- <Combobox.List gap="1" p="2">
139
- <Combobox.Empty>No results found.</Combobox.Empty>
140
- {collection.items.map((item) => <Combobox.Item key={item.value} item={item} persistFocus p="0">
141
- <SearchResultItem item={item} filterText={debouncedValue} />
142
- </Combobox.Item>)}
143
- </Combobox.List>
144
- </ScrollArea>
145
- <ScrollArea size="sm" h="full">
146
- <Box py="4" ps="4" pe="8">
147
- <Show when={children !== null} fallback={<Center>Placeholder to explain how search works</Center>}>
148
- {children}
149
- </Show>
150
- </Box>
151
- </ScrollArea>
152
- </Grid>
153
- </Dialog.Body>
154
- <Dialog.Footer py="3.5" px="4" justifyContent="start">
155
- <KeyboardHints />
156
- </Dialog.Footer>
157
- </Dialog.Content>
158
- </Combobox.Root>
159
- </Dialog.Positioner>
160
- </Portal>
161
- </Dialog.Root>;
142
+ let t0;
143
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
144
+ t0 = { wait: 250 };
145
+ $[0] = t0;
146
+ } else t0 = $[0];
147
+ const debouncedValue = useDebounce(filterText, t0);
148
+ let t1;
149
+ if ($[1] !== debouncedValue || $[2] !== searchList) {
150
+ t1 = () => {
151
+ console.log("Setting filter text to:", debouncedValue);
152
+ searchList.setFilterText(debouncedValue);
153
+ };
154
+ $[1] = debouncedValue;
155
+ $[2] = searchList;
156
+ $[3] = t1;
157
+ } else t1 = $[3];
158
+ let t2;
159
+ if ($[4] !== debouncedValue) {
160
+ t2 = [debouncedValue];
161
+ $[4] = debouncedValue;
162
+ $[5] = t2;
163
+ } else t2 = $[5];
164
+ useEffect(t1, t2);
165
+ let t3;
166
+ if ($[6] !== searchList.items) {
167
+ t3 = createListCollection({ items: searchList.items });
168
+ $[6] = searchList.items;
169
+ $[7] = t3;
170
+ } else t3 = $[7];
171
+ const collection = t3;
172
+ let t4;
173
+ if ($[8] !== searchList) {
174
+ t4 = (event) => {
175
+ setOpen(event.open);
176
+ if (!event.open) {
177
+ setFilterText("");
178
+ searchList.setFilterText("");
179
+ }
180
+ };
181
+ $[8] = searchList;
182
+ $[9] = t4;
183
+ } else t4 = $[9];
184
+ let t5;
185
+ let t6;
186
+ 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>;
189
+ $[10] = t5;
190
+ $[11] = t6;
191
+ } else {
192
+ t5 = $[10];
193
+ t6 = $[11];
194
+ }
195
+ let t7;
196
+ 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>;
198
+ $[12] = t7;
199
+ } else t7 = $[12];
200
+ let t8;
201
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
202
+ t8 = <Dialog.Backdrop />;
203
+ $[13] = t8;
204
+ } else t8 = $[13];
205
+ let t9;
206
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
207
+ t9 = (t10) => {
208
+ const { inputValue } = t10;
209
+ return setFilterText(inputValue || "");
210
+ };
211
+ $[14] = t9;
212
+ } else t9 = $[14];
213
+ let t10;
214
+ if ($[15] !== onHighlightChange) {
215
+ t10 = (e) => onHighlightChange?.(e.highlightedItem);
216
+ $[15] = onHighlightChange;
217
+ $[16] = t10;
218
+ } else t10 = $[16];
219
+ let t11;
220
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
221
+ t11 = { content: "list" };
222
+ $[17] = t11;
223
+ } else t11 = $[17];
224
+ let t12;
225
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
226
+ t12 = <Dialog.Header px="1" p="2"><InputGroup startElement={<SearchIcon />}><Combobox.Input /></InputGroup></Dialog.Header>;
227
+ $[18] = t12;
228
+ } else t12 = $[18];
229
+ let t13;
230
+ if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
231
+ t13 = { viewport: "list" };
232
+ $[19] = t13;
233
+ } else t13 = $[19];
234
+ let t14;
235
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
236
+ t14 = <Combobox.Empty>No results found.</Combobox.Empty>;
237
+ $[20] = t14;
238
+ } else t14 = $[20];
239
+ let t15;
240
+ if ($[21] !== collection.items || $[22] !== debouncedValue) {
241
+ let t16;
242
+ if ($[24] !== debouncedValue) {
243
+ t16 = (item) => <Combobox.Item key={item.value} item={item} persistFocus={true} p="0"><SearchResultItem item={item} filterText={debouncedValue} /></Combobox.Item>;
244
+ $[24] = debouncedValue;
245
+ $[25] = t16;
246
+ } else t16 = $[25];
247
+ t15 = collection.items.map(t16);
248
+ $[21] = collection.items;
249
+ $[22] = debouncedValue;
250
+ $[23] = t15;
251
+ } else t15 = $[23];
252
+ let t16;
253
+ if ($[26] !== t15) {
254
+ t16 = <ScrollArea size="sm" ids={t13}><Combobox.List gap="1" p="2">{t14}{t15}</Combobox.List></ScrollArea>;
255
+ $[26] = t15;
256
+ $[27] = t16;
257
+ } else t16 = $[27];
258
+ const t17 = children !== null;
259
+ let t18;
260
+ if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
261
+ t18 = <Center>Placeholder to explain how search works</Center>;
262
+ $[28] = t18;
263
+ } else t18 = $[28];
264
+ let t19;
265
+ 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>;
267
+ $[29] = children;
268
+ $[30] = t17;
269
+ $[31] = t19;
270
+ } else t19 = $[31];
271
+ let t20;
272
+ 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>;
274
+ $[32] = t16;
275
+ $[33] = t19;
276
+ $[34] = t20;
277
+ } else t20 = $[34];
278
+ let t21;
279
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
280
+ t21 = <Dialog.Footer py="3.5" px="4" justifyContent="start"><KeyboardHints /></Dialog.Footer>;
281
+ $[35] = t21;
282
+ } else t21 = $[35];
283
+ let t22;
284
+ if ($[36] !== t20) {
285
+ t22 = <Dialog.Content maxW="4xl" divideY="1px">{t12}{t20}{t21}</Dialog.Content>;
286
+ $[36] = t20;
287
+ $[37] = t22;
288
+ } else t22 = $[37];
289
+ let t23;
290
+ 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>;
292
+ $[38] = collection;
293
+ $[39] = t10;
294
+ $[40] = t22;
295
+ $[41] = t23;
296
+ } else t23 = $[41];
297
+ let t24;
298
+ 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>;
300
+ $[42] = open;
301
+ $[43] = t23;
302
+ $[44] = t4;
303
+ $[45] = t24;
304
+ } else t24 = $[45];
305
+ return t24;
162
306
  };
163
307
 
164
308
  //#endregion
@@ -1,4 +1,5 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { forwardRef } from "react";
3
4
  import { ark } from "@ark-ui/react/factory";
4
5
  import { Box, createStyleContext } from "@pyck/styled-system/jsx";
@@ -39,19 +40,32 @@ const Separator = withContext(Steps.Separator, "separator");
39
40
  const Trigger = withContext(Steps.Trigger, "trigger");
40
41
  const Title = withContext(ark.div, "title");
41
42
  const Description = withContext(ark.div, "description");
42
- const Status = (props) => <Steps.ItemContext>
43
- {(api) => {
44
- if (api.current) return <>{props.current ?? props.incomplete}</>;
45
- if (api.completed) return <>{props.complete}</>;
46
- return <>{props.incomplete ?? props.current}</>;
47
- }}
48
- </Steps.ItemContext>;
43
+ const Status = (props) => {
44
+ const $ = c(4);
45
+ let t0;
46
+ 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>;
52
+ $[0] = props.complete;
53
+ $[1] = props.current;
54
+ $[2] = props.incomplete;
55
+ $[3] = t0;
56
+ } else t0 = $[3];
57
+ return t0;
58
+ };
49
59
  const StepNumber = forwardRef(function StepNumber(props, ref) {
50
- return <Steps.ItemContext>
51
- {(api) => <Box ref={ref} {...props}>
52
- {api.index + 1}
53
- </Box>}
54
- </Steps.ItemContext>;
60
+ const $ = c(3);
61
+ let t0;
62
+ if ($[0] !== props || $[1] !== ref) {
63
+ t0 = <Steps.ItemContext>{(api) => <Box ref={ref} {...props}>{api.index + 1}</Box>}</Steps.ItemContext>;
64
+ $[0] = props;
65
+ $[1] = ref;
66
+ $[2] = t0;
67
+ } else t0 = $[2];
68
+ return t0;
55
69
  });
56
70
  const Indicator = withContext(Steps.Indicator, "indicator", { defaultProps: { children: <Status complete={<CheckIcon />} incomplete={<StepNumber />} /> } });
57
71
  const Context = Steps.Context;