@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.
- package/dist/checkmark-rF75Pk98.js +75 -0
- package/dist/close-button-DAgpEZYq.js +172 -0
- package/dist/components/avatar/index.js +118 -20
- package/dist/components/button/index.js +1 -1
- package/dist/components/carousel/index.js +52 -12
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +151 -34
- package/dist/components/checkmark/index.js +1 -1
- package/dist/components/clipboard/index.js +3 -2
- package/dist/components/combobox/index.js +46 -9
- package/dist/components/data-list/index.d.ts +3 -2
- package/dist/components/data-list/index.js +23 -8
- package/dist/components/date-picker/index.js +17 -10
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +156 -95
- package/dist/components/display-date-value/index.d.ts +1 -1
- package/dist/components/display-date-value/index.js +2 -2
- package/dist/components/display-value/index.js +1 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +22 -1
- package/dist/components/drilldown-menu/index.js +268 -87
- package/dist/components/field/index.js +110 -27
- package/dist/components/floating-panel/index.d.ts +1 -1
- package/dist/components/floating-panel/index.js +91 -43
- package/dist/components/form/index.d.ts +1 -1
- package/dist/components/form/index.js +142 -26
- package/dist/components/highlight/index.d.ts +1 -1
- package/dist/components/highlight/index.js +63 -14
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/image/index.js +33 -2
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +67 -4
- package/dist/components/input-group/index.js +79 -14
- package/dist/components/json-form-builder/index.d.ts +1 -1
- package/dist/components/json-form-builder/index.js +383 -99
- package/dist/components/loader/index.js +35 -15
- package/dist/components/logo/index.js +97 -19
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +41 -7
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.js +68 -13
- package/dist/components/page-header/index.js +67 -12
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +52 -13
- package/dist/components/picker/index.js +56 -28
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +2 -1
- package/dist/components/progress/index.js +57 -23
- package/dist/components/progress-circle/index.js +82 -30
- package/dist/components/radio-group/index.js +60 -19
- package/dist/components/scroll-area/index.js +80 -19
- package/dist/components/segment-group/index.d.ts +1 -1
- package/dist/components/segment-group/index.js +40 -5
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +119 -22
- package/dist/components/show/index.js +1 -1
- package/dist/components/skeleton/index.js +55 -4
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +174 -55
- package/dist/components/spotlight/index.js +447 -126
- package/dist/components/steps/index.js +35 -13
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +210 -43
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +435 -67
- package/dist/components/tags-input/index.d.ts +1 -1
- package/dist/components/tags-input/index.js +25 -9
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/index.js +66 -4
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +56 -22
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +87 -25
- package/dist/components/tree-view/index.d.ts +1 -1
- package/dist/components/tree-view/index.js +64 -8
- package/dist/display-date-value-CSPbdE60.js +45 -0
- package/dist/{display-date-value-CdfgVuB7.d.ts → display-date-value-RbzRgYHt.d.ts} +1 -1
- package/dist/display-value-R2nHrGQo.js +81 -0
- package/dist/{featured-icon-DPysOpSf.js → featured-icon-DBnAKGXC.js} +31 -4
- package/dist/show-B7zG1Vci.js +28 -0
- package/dist/utils/index.js +164 -73
- package/package.json +6 -3
- package/dist/checkmark-CW-yHMvN.js +0 -18
- package/dist/close-button-BM7ikbYh.js +0 -52
- package/dist/display-date-value-gTlidtNz.js +0 -21
- package/dist/display-value-BNKxQ99u.js +0 -37
- package/dist/show-IaI-36v9.js +0 -12
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
|
@@ -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:
|
|
28
|
-
children:
|
|
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-
|
|
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:
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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:
|
|
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-
|
|
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-
|
|
3
|
-
import { t as DisplayDateValue } from "../../display-date-value-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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-
|
|
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:
|
|
50
|
-
|
|
51
|
-
|
|
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:
|
|
58
|
-
|
|
59
|
-
|
|
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:
|
|
75
|
-
|
|
76
|
-
|
|
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 {
|