@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,23 +1,14 @@
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 { VisuallyHidden, createStyleContext, styled } from "@pyck/styled-system/jsx";
4
4
  import { checkbox } from "@pyck/styled-system/recipes";
5
- import { Checkbox as Checkbox$1, CheckboxGroupProvider as GroupProvider, useCheckboxContext } from "@ark-ui/react/checkbox";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { Checkbox as Checkbox$1, useCheckboxContext } from "@ark-ui/react/checkbox";
6
7
  import { Checkbox as Checkbox$2 } from "@pyck/react/checkbox";
7
8
  import { Field } from "@pyck/react/field";
8
9
  import { Controller, useFormContext } from "react-hook-form";
9
10
 
10
11
  //#region src/components/checkbox/checkbox.tsx
11
- var checkbox_exports = /* @__PURE__ */ __exportAll({
12
- Control: () => Control,
13
- Group: () => Group,
14
- GroupProvider: () => GroupProvider,
15
- HiddenInput: () => HiddenInput,
16
- Indicator: () => Indicator,
17
- Label: () => Label,
18
- Root: () => Root,
19
- RootProvider: () => RootProvider
20
- });
21
12
  const { withProvider, withContext } = createStyleContext(checkbox);
22
13
  const Root = withProvider(Checkbox$1.Root, "root");
23
14
  const RootProvider = withProvider(Checkbox$1.RootProvider, "root");
@@ -26,41 +17,167 @@ const Group = withProvider(Checkbox$1.Group, "group");
26
17
  const Label = withContext(Checkbox$1.Label, "label");
27
18
  const HiddenInput = Checkbox$1.HiddenInput;
28
19
  const Indicator = forwardRef(function Indicator(props, ref) {
20
+ const $ = c(11);
29
21
  const { indeterminate, checked } = useCheckboxContext();
30
- return <Checkbox$1.Indicator indeterminate={indeterminate} asChild>
31
- <styled.svg ref={ref} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3px" strokeLinecap="round" strokeLinejoin="round" {...props}>
32
- <title>Checkmark</title>
33
- {indeterminate ? <path d="M5 12h14" /> : checked ? <path d="M20 6 9 17l-5-5" /> : null}
34
- </styled.svg>
35
- </Checkbox$1.Indicator>;
22
+ let t0;
23
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
24
+ t0 = /* @__PURE__ */ jsx("title", { children: "Checkmark" });
25
+ $[0] = t0;
26
+ } else t0 = $[0];
27
+ let t1;
28
+ if ($[1] !== checked || $[2] !== indeterminate) {
29
+ t1 = indeterminate ? /* @__PURE__ */ jsx("path", { d: "M5 12h14" }) : checked ? /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" }) : null;
30
+ $[1] = checked;
31
+ $[2] = indeterminate;
32
+ $[3] = t1;
33
+ } else t1 = $[3];
34
+ let t2;
35
+ if ($[4] !== props || $[5] !== ref || $[6] !== t1) {
36
+ t2 = /* @__PURE__ */ jsxs(styled.svg, {
37
+ ref,
38
+ viewBox: "0 0 24 24",
39
+ fill: "none",
40
+ stroke: "currentColor",
41
+ strokeWidth: "3px",
42
+ strokeLinecap: "round",
43
+ strokeLinejoin: "round",
44
+ ...props,
45
+ children: [t0, t1]
46
+ });
47
+ $[4] = props;
48
+ $[5] = ref;
49
+ $[6] = t1;
50
+ $[7] = t2;
51
+ } else t2 = $[7];
52
+ let t3;
53
+ if ($[8] !== indeterminate || $[9] !== t2) {
54
+ t3 = /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
55
+ indeterminate,
56
+ asChild: true,
57
+ children: t2
58
+ });
59
+ $[8] = indeterminate;
60
+ $[9] = t2;
61
+ $[10] = t3;
62
+ } else t3 = $[10];
63
+ return t3;
36
64
  });
37
65
 
38
66
  //#endregion
39
67
  //#region src/components/checkbox/checkbox.closed.tsx
40
68
  const Checkbox = forwardRef(function Checkbox(props, ref) {
41
- const { children, inputProps, ...rootProps } = props;
42
- return <checkbox_exports.Root {...rootProps}>
43
- <checkbox_exports.HiddenInput ref={ref} {...inputProps} />
44
- <checkbox_exports.Control>
45
- <checkbox_exports.Indicator />
46
- </checkbox_exports.Control>
47
- {children && <checkbox_exports.Label>{children}</checkbox_exports.Label>}
48
- {props["aria-label"] && <checkbox_exports.Label asChild>
49
- <VisuallyHidden>{props["aria-label"]}</VisuallyHidden>
50
- </checkbox_exports.Label>}
51
- </checkbox_exports.Root>;
69
+ const $ = c(17);
70
+ let children;
71
+ let inputProps;
72
+ let rootProps;
73
+ if ($[0] !== props) {
74
+ ({children, inputProps, ...rootProps} = props);
75
+ $[0] = props;
76
+ $[1] = children;
77
+ $[2] = inputProps;
78
+ $[3] = rootProps;
79
+ } else {
80
+ children = $[1];
81
+ inputProps = $[2];
82
+ rootProps = $[3];
83
+ }
84
+ let t0;
85
+ if ($[4] !== inputProps || $[5] !== ref) {
86
+ t0 = /* @__PURE__ */ jsx(HiddenInput, {
87
+ ref,
88
+ ...inputProps
89
+ });
90
+ $[4] = inputProps;
91
+ $[5] = ref;
92
+ $[6] = t0;
93
+ } else t0 = $[6];
94
+ let t1;
95
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
96
+ t1 = /* @__PURE__ */ jsx(Control, { children: /* @__PURE__ */ jsx(Indicator, {}) });
97
+ $[7] = t1;
98
+ } else t1 = $[7];
99
+ let t2;
100
+ if ($[8] !== children) {
101
+ t2 = children && /* @__PURE__ */ jsx(Label, { children });
102
+ $[8] = children;
103
+ $[9] = t2;
104
+ } else t2 = $[9];
105
+ let t3;
106
+ if ($[10] !== props) {
107
+ t3 = props["aria-label"] && /* @__PURE__ */ jsx(Label, {
108
+ asChild: true,
109
+ children: /* @__PURE__ */ jsx(VisuallyHidden, { children: props["aria-label"] })
110
+ });
111
+ $[10] = props;
112
+ $[11] = t3;
113
+ } else t3 = $[11];
114
+ let t4;
115
+ if ($[12] !== rootProps || $[13] !== t0 || $[14] !== t2 || $[15] !== t3) {
116
+ t4 = /* @__PURE__ */ jsxs(Root, {
117
+ ...rootProps,
118
+ children: [
119
+ t0,
120
+ t1,
121
+ t2,
122
+ t3
123
+ ]
124
+ });
125
+ $[12] = rootProps;
126
+ $[13] = t0;
127
+ $[14] = t2;
128
+ $[15] = t3;
129
+ $[16] = t4;
130
+ } else t4 = $[16];
131
+ return t4;
52
132
  });
53
133
 
54
134
  //#endregion
55
135
  //#region src/components/checkbox/checkbox.field.tsx
56
136
  const CheckboxField = (props) => {
137
+ const $ = c(11);
57
138
  const { name, label, helperText, hideLabel, disabled, checkboxProps, required } = props;
58
139
  const { control } = useFormContext();
59
- return <Controller name={name} control={control} render={({ field, fieldState }) => <Field helperText={helperText} disabled={disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message} hideLabel={hideLabel} required={required}>
60
- <Checkbox$2 size="xs" checked={!!field.value} onCheckedChange={(e) => field.onChange(e.checked)} {...checkboxProps}>
61
- {label}
62
- </Checkbox$2>
63
- </Field>} />;
140
+ let t0;
141
+ if ($[0] !== checkboxProps || $[1] !== disabled || $[2] !== helperText || $[3] !== hideLabel || $[4] !== label || $[5] !== required) {
142
+ t0 = (t1) => {
143
+ const { field, fieldState } = t1;
144
+ return /* @__PURE__ */ jsx(Field, {
145
+ helperText,
146
+ disabled,
147
+ invalid: !!fieldState.error,
148
+ errorText: fieldState.error?.message,
149
+ hideLabel,
150
+ required,
151
+ children: /* @__PURE__ */ jsx(Checkbox$2, {
152
+ size: "xs",
153
+ checked: !!field.value,
154
+ onCheckedChange: (e) => field.onChange(e.checked),
155
+ ...checkboxProps,
156
+ children: label
157
+ })
158
+ });
159
+ };
160
+ $[0] = checkboxProps;
161
+ $[1] = disabled;
162
+ $[2] = helperText;
163
+ $[3] = hideLabel;
164
+ $[4] = label;
165
+ $[5] = required;
166
+ $[6] = t0;
167
+ } else t0 = $[6];
168
+ let t1;
169
+ if ($[7] !== control || $[8] !== name || $[9] !== t0) {
170
+ t1 = /* @__PURE__ */ jsx(Controller, {
171
+ name,
172
+ control,
173
+ render: t0
174
+ });
175
+ $[7] = control;
176
+ $[8] = name;
177
+ $[9] = t0;
178
+ $[10] = t1;
179
+ } else t1 = $[10];
180
+ return t1;
64
181
  };
65
182
 
66
183
  //#endregion
@@ -1,3 +1,3 @@
1
- import { t as Checkmark } from "../../checkmark-CW-yHMvN.js";
1
+ import { t as Checkmark } from "../../checkmark-rF75Pk98.js";
2
2
 
3
3
  export { Checkmark };
@@ -2,6 +2,7 @@ import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
2
  import { createStyleContext } from "@pyck/styled-system/jsx";
3
3
  import { clipboard } from "@pyck/styled-system/recipes";
4
4
  import { CheckIcon, CopyIcon } from "lucide-react";
5
+ import { jsx } from "react/jsx-runtime";
5
6
  import { Clipboard, ClipboardContext as Context } from "@ark-ui/react/clipboard";
6
7
 
7
8
  //#region src/components/clipboard/clipboard.tsx
@@ -24,8 +25,8 @@ const Input = withContext(Clipboard.Input, "input");
24
25
  const Label = withContext(Clipboard.Label, "label");
25
26
  const Trigger = withContext(Clipboard.Trigger, "trigger");
26
27
  const Indicator = withContext(Clipboard.Indicator, "indicator", { defaultProps: {
27
- copied: <CheckIcon />,
28
- children: <CopyIcon />
28
+ copied: /* @__PURE__ */ jsx(CheckIcon, {}),
29
+ children: /* @__PURE__ */ jsx(CopyIcon, {})
29
30
  } });
30
31
  const CopyText = withContext(Clipboard.Indicator, "indicator", { defaultProps: {
31
32
  copied: "Copied",
@@ -1,14 +1,16 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
- import { t as Checkmark } from "../../checkmark-CW-yHMvN.js";
2
+ import { t as Checkmark } from "../../checkmark-rF75Pk98.js";
3
3
  import "../checkmark/index.js";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { forwardRef } from "react";
5
6
  import { ark } from "@ark-ui/react/factory";
6
7
  import { createStyleContext } from "@pyck/styled-system/jsx";
7
8
  import { combobox } from "@pyck/styled-system/recipes";
8
9
  import { ChevronsUpDownIcon, XIcon } from "lucide-react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ import { Show } from "@pyck/react/show";
9
12
  import { Combobox, ComboboxContext as Context, useComboboxItemContext, useListCollection } from "@ark-ui/react/combobox";
10
13
  import { useFilter } from "@ark-ui/react/locale";
11
- import { Show } from "@pyck/react/show";
12
14
 
13
15
  //#region src/components/combobox/combobox.tsx
14
16
  var combobox_exports = /* @__PURE__ */ __exportAll({
@@ -34,7 +36,7 @@ var combobox_exports = /* @__PURE__ */ __exportAll({
34
36
  const { withProvider, withContext } = createStyleContext(combobox);
35
37
  const Root = withProvider(Combobox.Root, "root", { defaultProps: { positioning: { sameWidth: false } } });
36
38
  const RootProvider = withProvider(Combobox.RootProvider, "root");
37
- const ClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger", { defaultProps: { children: <XIcon /> } });
39
+ const ClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger", { defaultProps: { children: /* @__PURE__ */ jsx(XIcon, {}) } });
38
40
  const Content = withContext(Combobox.Content, "content");
39
41
  const Control = withContext(Combobox.Control, "control");
40
42
  const Empty = withContext(Combobox.Empty, "empty");
@@ -45,18 +47,53 @@ const ItemGroup = withContext(Combobox.ItemGroup, "itemGroup");
45
47
  const ItemGroupLabel = withContext(Combobox.ItemGroupLabel, "itemGroupLabel");
46
48
  const StyledItemIndicator = withContext(Combobox.ItemIndicator, "itemIndicator");
47
49
  const ItemIndicator = forwardRef(function ItemIndicator(props, ref) {
50
+ const $ = c(10);
48
51
  const item = useComboboxItemContext();
49
- return <Show when={item.selected} fallback={<Checkmark size="sm" />}>
50
- <StyledItemIndicator ref={ref} asChild {...props}>
51
- <Checkmark size="sm" checked={item.selected} />
52
- </StyledItemIndicator>
53
- </Show>;
52
+ let t0;
53
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
54
+ t0 = /* @__PURE__ */ jsx(Checkmark, { size: "sm" });
55
+ $[0] = t0;
56
+ } else t0 = $[0];
57
+ let t1;
58
+ if ($[1] !== item.selected) {
59
+ t1 = /* @__PURE__ */ jsx(Checkmark, {
60
+ size: "sm",
61
+ checked: item.selected
62
+ });
63
+ $[1] = item.selected;
64
+ $[2] = t1;
65
+ } else t1 = $[2];
66
+ let t2;
67
+ if ($[3] !== props || $[4] !== ref || $[5] !== t1) {
68
+ t2 = /* @__PURE__ */ jsx(StyledItemIndicator, {
69
+ ref,
70
+ asChild: true,
71
+ ...props,
72
+ children: t1
73
+ });
74
+ $[3] = props;
75
+ $[4] = ref;
76
+ $[5] = t1;
77
+ $[6] = t2;
78
+ } else t2 = $[6];
79
+ let t3;
80
+ if ($[7] !== item.selected || $[8] !== t2) {
81
+ t3 = /* @__PURE__ */ jsx(Show, {
82
+ when: item.selected,
83
+ fallback: t0,
84
+ children: t2
85
+ });
86
+ $[7] = item.selected;
87
+ $[8] = t2;
88
+ $[9] = t3;
89
+ } else t3 = $[9];
90
+ return t3;
54
91
  });
55
92
  const ItemText = withContext(Combobox.ItemText, "itemText");
56
93
  const Label = withContext(Combobox.Label, "label");
57
94
  const List = withContext(Combobox.List, "list");
58
95
  const Positioner = withContext(Combobox.Positioner, "positioner");
59
- const Trigger = withContext(Combobox.Trigger, "trigger", { defaultProps: { children: <ChevronsUpDownIcon /> } });
96
+ const Trigger = withContext(Combobox.Trigger, "trigger", { defaultProps: { children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, {}) } });
60
97
 
61
98
  //#endregion
62
99
  export { combobox_exports as Combobox, useFilter, useListCollection };
@@ -1,12 +1,13 @@
1
- import { r as DisplayDateValueProps } from "../../display-date-value-CdfgVuB7.js";
1
+ import { r as DisplayDateValueProps } from "../../display-date-value-RbzRgYHt.js";
2
2
  import "../display-date-value/index.js";
3
3
  import { n as DisplayValueProps } from "../../display-value-IyQT1429.js";
4
+ import "../display-value/index.js";
4
5
  import * as react from "react";
5
6
  import { ComponentProps } from "react";
6
7
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
7
8
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
8
- import * as _ark_ui_react0 from "@ark-ui/react";
9
9
  import * as react_jsx_runtime0 from "react/jsx-runtime";
10
+ import * as _ark_ui_react0 from "@ark-ui/react";
10
11
 
11
12
  //#region src/components/data-list/data-list.d.ts
12
13
  declare namespace data_list_d_exports {
@@ -1,11 +1,13 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
- import { t as DisplayValue } from "../../display-value-BNKxQ99u.js";
3
- import { t as DisplayDateValue } from "../../display-date-value-gTlidtNz.js";
2
+ import { t as DisplayValue } from "../../display-value-R2nHrGQo.js";
3
+ import { t as DisplayDateValue } from "../../display-date-value-CSPbdE60.js";
4
4
  import "../display-date-value/index.js";
5
5
  import "../display-value/index.js";
6
+ import { c } from "react/compiler-runtime";
6
7
  import { ark } from "@ark-ui/react/factory";
7
8
  import { createStyleContext } from "@pyck/styled-system/jsx";
8
9
  import { dataList } from "@pyck/styled-system/recipes";
10
+ import { jsx } from "react/jsx-runtime";
9
11
 
10
12
  //#region src/components/data-list/data-list.tsx
11
13
  var data_list_exports = /* @__PURE__ */ __exportAll({
@@ -25,14 +27,27 @@ const Item = withContext(ark.div, "item");
25
27
  const Term = withContext(ark.dt, "term");
26
28
  const StyledValue = withContext(ark.dd, "value");
27
29
  const Value = (props) => {
28
- return <StyledValue>
29
- <DisplayValue copyable {...props} />
30
- </StyledValue>;
30
+ const $ = c(2);
31
+ let t0;
32
+ if ($[0] !== props) {
33
+ t0 = /* @__PURE__ */ jsx(StyledValue, { children: /* @__PURE__ */ jsx(DisplayValue, {
34
+ copyable: true,
35
+ ...props
36
+ }) });
37
+ $[0] = props;
38
+ $[1] = t0;
39
+ } else t0 = $[1];
40
+ return t0;
31
41
  };
32
42
  const DateValue = (props) => {
33
- return <StyledValue>
34
- <DisplayDateValue {...props} />
35
- </StyledValue>;
43
+ const $ = c(2);
44
+ let t0;
45
+ if ($[0] !== props) {
46
+ t0 = /* @__PURE__ */ jsx(StyledValue, { children: /* @__PURE__ */ jsx(DisplayDateValue, { ...props }) });
47
+ $[0] = props;
48
+ $[1] = t0;
49
+ } else t0 = $[1];
50
+ return t0;
36
51
  };
37
52
 
38
53
  //#endregion
@@ -1,10 +1,11 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
- import { n as IconButton, r as Button } from "../../close-button-BM7ikbYh.js";
2
+ import { n as IconButton, r as Button } from "../../close-button-DAgpEZYq.js";
3
3
  import "../button/index.js";
4
4
  import { DatePicker, DatePickerContext as Context } from "@ark-ui/react/date-picker";
5
5
  import { createStyleContext } from "@pyck/styled-system/jsx";
6
6
  import { datePicker } from "@pyck/styled-system/recipes";
7
7
  import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
8
+ import { jsx } from "react/jsx-runtime";
8
9
 
9
10
  //#region src/components/date-picker/date-picker.tsx
10
11
  var date_picker_exports = /* @__PURE__ */ __exportAll({
@@ -46,17 +47,21 @@ const Label = withContext(DatePicker.Label, "label");
46
47
  const MonthSelect = withContext(DatePicker.MonthSelect, "monthSelect");
47
48
  const NextTrigger = withContext(DatePicker.NextTrigger, "nextTrigger", { defaultProps: {
48
49
  asChild: true,
49
- children: <IconButton size="sm" variant="plain">
50
- <ChevronRightIcon />
51
- </IconButton>
50
+ children: /* @__PURE__ */ jsx(IconButton, {
51
+ size: "sm",
52
+ variant: "plain",
53
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
54
+ })
52
55
  } });
53
56
  const Positioner = withContext(DatePicker.Positioner, "positioner");
54
57
  const PresetTrigger = withContext(DatePicker.PresetTrigger, "presetTrigger");
55
58
  const PrevTrigger = withContext(DatePicker.PrevTrigger, "prevTrigger", { defaultProps: {
56
59
  asChild: true,
57
- children: <IconButton size="sm" variant="plain">
58
- <ChevronLeftIcon />
59
- </IconButton>
60
+ children: /* @__PURE__ */ jsx(IconButton, {
61
+ size: "sm",
62
+ variant: "plain",
63
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
64
+ })
60
65
  } });
61
66
  const RangeText = withContext(DatePicker.RangeText, "rangeText");
62
67
  const Table = withContext(DatePicker.Table, "table");
@@ -71,9 +76,11 @@ const View = withContext(DatePicker.View, "view");
71
76
  const ViewControl = withContext(DatePicker.ViewControl, "viewControl");
72
77
  const ViewTrigger = withContext(DatePicker.ViewTrigger, "viewTrigger", { defaultProps: {
73
78
  asChild: true,
74
- children: <Button variant="plain" size="sm">
75
- <RangeText />
76
- </Button>
79
+ children: /* @__PURE__ */ jsx(Button, {
80
+ variant: "plain",
81
+ size: "sm",
82
+ children: /* @__PURE__ */ jsx(RangeText, {})
83
+ })
77
84
  } });
78
85
  const YearSelect = withContext(DatePicker.YearSelect, "yearSelect");
79
86
 
@@ -3,10 +3,10 @@ import * as react from "react";
3
3
  import { ComponentProps, ElementType, ReactNode } from "react";
4
4
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
5
5
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
7
  import { DefaultValues, FieldValues } from "react-hook-form";
7
8
  import { Dialog, DialogContext as Context } from "@ark-ui/react/dialog";
8
9
  import * as _ark_ui_react0 from "@ark-ui/react";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/components/dialog/create-overlay.d.ts
12
12
  interface CreateOverlayProps {