@pyck/react 0.0.5 → 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 +44 -13
  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 +245 -87
  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 +5 -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
@@ -0,0 +1,62 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { forwardRef } from "react";
3
+ import { ark } from "@ark-ui/react/factory";
4
+ import { styled } from "@pyck/styled-system/jsx";
5
+ import { checkmark } from "@pyck/styled-system/recipes";
6
+ import { dataAttr } from "@pyck/react/utils";
7
+
8
+ //#region src/components/checkmark/checkmark.tsx
9
+ const StyledCheckmark = styled(ark.svg, checkmark);
10
+ const Checkmark = forwardRef(function Checkmark(props, ref) {
11
+ const $ = c(17);
12
+ let checked;
13
+ let disabled;
14
+ let indeterminate;
15
+ let rest;
16
+ if ($[0] !== props) {
17
+ ({checked, indeterminate, disabled, ...rest} = props);
18
+ $[0] = props;
19
+ $[1] = checked;
20
+ $[2] = disabled;
21
+ $[3] = indeterminate;
22
+ $[4] = rest;
23
+ } else {
24
+ checked = $[1];
25
+ disabled = $[2];
26
+ indeterminate = $[3];
27
+ rest = $[4];
28
+ }
29
+ const t0 = indeterminate ? "indeterminate" : checked ? "checked" : "unchecked";
30
+ let t1;
31
+ if ($[5] !== disabled) {
32
+ t1 = dataAttr(disabled);
33
+ $[5] = disabled;
34
+ $[6] = t1;
35
+ } else t1 = $[6];
36
+ let t2;
37
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
38
+ t2 = <title>Checkmark</title>;
39
+ $[7] = t2;
40
+ } else t2 = $[7];
41
+ let t3;
42
+ if ($[8] !== checked || $[9] !== indeterminate) {
43
+ t3 = indeterminate ? <path d="M5 12h14" /> : checked ? <path d="M20 6 9 17l-5-5" /> : null;
44
+ $[8] = checked;
45
+ $[9] = indeterminate;
46
+ $[10] = t3;
47
+ } else t3 = $[10];
48
+ let t4;
49
+ if ($[11] !== ref || $[12] !== rest || $[13] !== t0 || $[14] !== t1 || $[15] !== t3) {
50
+ t4 = <StyledCheckmark ref={ref} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3px" strokeLinecap="round" strokeLinejoin="round" data-state={t0} data-disabled={t1} {...rest}>{t2}{t3}</StyledCheckmark>;
51
+ $[11] = ref;
52
+ $[12] = rest;
53
+ $[13] = t0;
54
+ $[14] = t1;
55
+ $[15] = t3;
56
+ $[16] = t4;
57
+ } else t4 = $[16];
58
+ return t4;
59
+ });
60
+
61
+ //#endregion
62
+ export { Checkmark as t };
@@ -0,0 +1,141 @@
1
+ import { createContext, mergeProps } from "@ark-ui/react/utils";
2
+ import { c } from "react/compiler-runtime";
3
+ import { forwardRef, useMemo } from "react";
4
+ import { ark } from "@ark-ui/react/factory";
5
+ import { styled } from "@pyck/styled-system/jsx";
6
+ import { button } from "@pyck/styled-system/recipes";
7
+ import { XIcon } from "lucide-react";
8
+ import { Loader } from "@pyck/react/loader";
9
+ import { Group } from "@pyck/react/group";
10
+
11
+ //#region src/components/button/button-group.tsx
12
+ const ButtonGroup = forwardRef(function ButtonGroup(props, ref) {
13
+ const $ = c(8);
14
+ let t0;
15
+ if ($[0] !== props) {
16
+ t0 = button.splitVariantProps(props);
17
+ $[0] = props;
18
+ $[1] = t0;
19
+ } else t0 = $[1];
20
+ const [variantProps, otherProps] = t0;
21
+ let t1;
22
+ if ($[2] !== otherProps || $[3] !== ref) {
23
+ t1 = <Group ref={ref} {...otherProps} />;
24
+ $[2] = otherProps;
25
+ $[3] = ref;
26
+ $[4] = t1;
27
+ } else t1 = $[4];
28
+ let t2;
29
+ if ($[5] !== t1 || $[6] !== variantProps) {
30
+ t2 = <ButtonPropsProvider value={variantProps}>{t1}</ButtonPropsProvider>;
31
+ $[5] = t1;
32
+ $[6] = variantProps;
33
+ $[7] = t2;
34
+ } else t2 = $[7];
35
+ return t2;
36
+ });
37
+ const [ButtonPropsProvider, useButtonPropsContext] = createContext({
38
+ name: "ButtonPropsContext",
39
+ hookName: "useButtonPropsContext",
40
+ providerName: "<PropsProvider />",
41
+ strict: false
42
+ });
43
+
44
+ //#endregion
45
+ //#region src/components/button/button.tsx
46
+ const BaseButton = styled(ark.button, button);
47
+ const Button = forwardRef(function Button(props, ref) {
48
+ const $ = c(23);
49
+ const propsContext = useButtonPropsContext();
50
+ let t0;
51
+ if ($[0] !== props || $[1] !== propsContext) {
52
+ t0 = mergeProps(propsContext, props);
53
+ $[0] = props;
54
+ $[1] = propsContext;
55
+ $[2] = t0;
56
+ } else t0 = $[2];
57
+ const buttonProps = t0;
58
+ let children;
59
+ let loading;
60
+ let loadingText;
61
+ let rest;
62
+ let spinner;
63
+ let spinnerPlacement;
64
+ if ($[3] !== buttonProps) {
65
+ ({loading, loadingText, children, spinner, spinnerPlacement, ...rest} = buttonProps);
66
+ $[3] = buttonProps;
67
+ $[4] = children;
68
+ $[5] = loading;
69
+ $[6] = loadingText;
70
+ $[7] = rest;
71
+ $[8] = spinner;
72
+ $[9] = spinnerPlacement;
73
+ } else {
74
+ children = $[4];
75
+ loading = $[5];
76
+ loadingText = $[6];
77
+ rest = $[7];
78
+ spinner = $[8];
79
+ spinnerPlacement = $[9];
80
+ }
81
+ const t1 = loading ? "" : void 0;
82
+ const t2 = loading || rest.disabled;
83
+ let t3;
84
+ if ($[10] !== children || $[11] !== loading || $[12] !== loadingText || $[13] !== props.asChild || $[14] !== spinner || $[15] !== spinnerPlacement) {
85
+ t3 = !props.asChild && loading ? <Loader spinner={spinner} text={loadingText} spinnerPlacement={spinnerPlacement}>{children}</Loader> : children;
86
+ $[10] = children;
87
+ $[11] = loading;
88
+ $[12] = loadingText;
89
+ $[13] = props.asChild;
90
+ $[14] = spinner;
91
+ $[15] = spinnerPlacement;
92
+ $[16] = t3;
93
+ } else t3 = $[16];
94
+ let t4;
95
+ if ($[17] !== ref || $[18] !== rest || $[19] !== t1 || $[20] !== t2 || $[21] !== t3) {
96
+ t4 = <BaseButton type="button" ref={ref} {...rest} data-loading={t1} disabled={t2}>{t3}</BaseButton>;
97
+ $[17] = ref;
98
+ $[18] = rest;
99
+ $[19] = t1;
100
+ $[20] = t2;
101
+ $[21] = t3;
102
+ $[22] = t4;
103
+ } else t4 = $[22];
104
+ return t4;
105
+ });
106
+
107
+ //#endregion
108
+ //#region src/components/button/icon-button.tsx
109
+ const IconButton = forwardRef(function IconButton(props, ref) {
110
+ const $ = c(3);
111
+ let t0;
112
+ if ($[0] !== props || $[1] !== ref) {
113
+ t0 = <Button px="0" py="0" ref={ref} {...props} />;
114
+ $[0] = props;
115
+ $[1] = ref;
116
+ $[2] = t0;
117
+ } else t0 = $[2];
118
+ return t0;
119
+ });
120
+
121
+ //#endregion
122
+ //#region src/components/button/close-button.tsx
123
+ const CloseButton = forwardRef(function CloseButton(props, ref) {
124
+ const $ = c(4);
125
+ let t0;
126
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
127
+ t0 = <XIcon />;
128
+ $[0] = t0;
129
+ } else t0 = $[0];
130
+ let t1;
131
+ if ($[1] !== props || $[2] !== ref) {
132
+ t1 = <IconButton variant="plain" color="fg.muted" aria-label="Close" ref={ref} {...props}>{t0}</IconButton>;
133
+ $[1] = props;
134
+ $[2] = ref;
135
+ $[3] = t1;
136
+ } else t1 = $[3];
137
+ return t1;
138
+ });
139
+
140
+ //#endregion
141
+ export { ButtonGroup as i, IconButton as n, Button as r, CloseButton as t };
@@ -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 { createStyleContext } from "@pyck/styled-system/jsx";
4
5
  import { avatar } from "@pyck/styled-system/recipes";
@@ -23,11 +24,42 @@ const Image = withContext(Avatar$1.Image, "image", { defaultProps: {
23
24
  } });
24
25
  const StyledFallback = withContext(Avatar$1.Fallback, "fallback");
25
26
  const Fallback = forwardRef(function Fallback(props, ref) {
26
- const { name, children, asChild, ...rest } = props;
27
- const fallbackContent = children || asChild ? children : name ? getInitials(name) : <UserIcon />;
28
- return <StyledFallback ref={ref} {...rest}>
29
- {fallbackContent}
30
- </StyledFallback>;
27
+ const $ = c(13);
28
+ let asChild;
29
+ let children;
30
+ let name;
31
+ let rest;
32
+ if ($[0] !== props) {
33
+ ({name, children, asChild, ...rest} = props);
34
+ $[0] = props;
35
+ $[1] = asChild;
36
+ $[2] = children;
37
+ $[3] = name;
38
+ $[4] = rest;
39
+ } else {
40
+ asChild = $[1];
41
+ children = $[2];
42
+ name = $[3];
43
+ rest = $[4];
44
+ }
45
+ let t0;
46
+ if ($[5] !== asChild || $[6] !== children || $[7] !== name) {
47
+ t0 = children || asChild ? children : name ? getInitials(name) : <UserIcon />;
48
+ $[5] = asChild;
49
+ $[6] = children;
50
+ $[7] = name;
51
+ $[8] = t0;
52
+ } else t0 = $[8];
53
+ const fallbackContent = t0;
54
+ let t1;
55
+ if ($[9] !== fallbackContent || $[10] !== ref || $[11] !== rest) {
56
+ t1 = <StyledFallback ref={ref} {...rest}>{fallbackContent}</StyledFallback>;
57
+ $[9] = fallbackContent;
58
+ $[10] = ref;
59
+ $[11] = rest;
60
+ $[12] = t1;
61
+ } else t1 = $[12];
62
+ return t1;
31
63
  });
32
64
  const getInitials = (name) => {
33
65
  const trimmedName = name.trim();
@@ -41,12 +73,65 @@ const getInitials = (name) => {
41
73
  //#endregion
42
74
  //#region src/components/avatar/avatar.closed.tsx
43
75
  const Avatar = forwardRef(function Avatar(props, ref) {
44
- const { name, src, srcSet, loading, icon, fallback, children, ...rest } = props;
45
- return <avatar_exports.Root ref={ref} {...rest}>
46
- <avatar_exports.Fallback name={name}>{fallback || icon}</avatar_exports.Fallback>
47
- <avatar_exports.Image src={src ?? void 0} srcSet={srcSet} loading={loading} alt={name} />
48
- {children}
49
- </avatar_exports.Root>;
76
+ const $ = c(23);
77
+ let children;
78
+ let fallback;
79
+ let icon;
80
+ let loading;
81
+ let name;
82
+ let rest;
83
+ let src;
84
+ let srcSet;
85
+ if ($[0] !== props) {
86
+ ({name, src, srcSet, loading, icon, fallback, children, ...rest} = props);
87
+ $[0] = props;
88
+ $[1] = children;
89
+ $[2] = fallback;
90
+ $[3] = icon;
91
+ $[4] = loading;
92
+ $[5] = name;
93
+ $[6] = rest;
94
+ $[7] = src;
95
+ $[8] = srcSet;
96
+ } else {
97
+ children = $[1];
98
+ fallback = $[2];
99
+ icon = $[3];
100
+ loading = $[4];
101
+ name = $[5];
102
+ rest = $[6];
103
+ src = $[7];
104
+ srcSet = $[8];
105
+ }
106
+ const t0 = fallback || icon;
107
+ let t1;
108
+ if ($[9] !== name || $[10] !== t0) {
109
+ t1 = <avatar_exports.Fallback name={name}>{t0}</avatar_exports.Fallback>;
110
+ $[9] = name;
111
+ $[10] = t0;
112
+ $[11] = t1;
113
+ } else t1 = $[11];
114
+ const t2 = src ?? void 0;
115
+ let t3;
116
+ if ($[12] !== loading || $[13] !== name || $[14] !== srcSet || $[15] !== t2) {
117
+ t3 = <avatar_exports.Image src={t2} srcSet={srcSet} loading={loading} alt={name} />;
118
+ $[12] = loading;
119
+ $[13] = name;
120
+ $[14] = srcSet;
121
+ $[15] = t2;
122
+ $[16] = t3;
123
+ } else t3 = $[16];
124
+ let t4;
125
+ if ($[17] !== children || $[18] !== ref || $[19] !== rest || $[20] !== t1 || $[21] !== t3) {
126
+ t4 = <avatar_exports.Root ref={ref} {...rest}>{t1}{t3}{children}</avatar_exports.Root>;
127
+ $[17] = children;
128
+ $[18] = ref;
129
+ $[19] = rest;
130
+ $[20] = t1;
131
+ $[21] = t3;
132
+ $[22] = t4;
133
+ } else t4 = $[22];
134
+ return t4;
50
135
  });
51
136
 
52
137
  //#endregion
@@ -1,3 +1,3 @@
1
- import { i as ButtonGroup, n as IconButton, r as Button, t as CloseButton } from "../../close-button-BM7ikbYh.js";
1
+ import { i as ButtonGroup, n as IconButton, r as Button, t as CloseButton } from "../../close-button-r3blTfSH.js";
2
2
 
3
3
  export { Button, ButtonGroup, CloseButton, IconButton };
@@ -1,6 +1,7 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
- import { n as IconButton } from "../../close-button-BM7ikbYh.js";
2
+ import { n as IconButton } from "../../close-button-r3blTfSH.js";
3
3
  import "../button/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";
@@ -35,18 +36,26 @@ const Indicator = withContext(Carousel.Indicator, "indicator");
35
36
  const Item = withContext(Carousel.Item, "item");
36
37
  const ItemGroup = withContext(Carousel.ItemGroup, "itemGroup");
37
38
  const NextTriggerChild = () => {
38
- return <IconButton size="sm" variant="plain" aria-label="Next slide">
39
- <ChevronRightIcon />
40
- </IconButton>;
39
+ const $ = c(1);
40
+ let t0;
41
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42
+ t0 = <IconButton size="sm" variant="plain" aria-label="Next slide"><ChevronRightIcon /></IconButton>;
43
+ $[0] = t0;
44
+ } else t0 = $[0];
45
+ return t0;
41
46
  };
42
47
  const NextTrigger = withContext(Carousel.NextTrigger, "nextTrigger", { defaultProps: {
43
48
  asChild: true,
44
49
  children: <NextTriggerChild />
45
50
  } });
46
51
  const PrevTriggerChild = () => {
47
- return <IconButton size="sm" variant="plain" aria-label="Previous slide">
48
- <ChevronLeftIcon />
49
- </IconButton>;
52
+ const $ = c(1);
53
+ let t0;
54
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
55
+ t0 = <IconButton size="sm" variant="plain" aria-label="Previous slide"><ChevronLeftIcon /></IconButton>;
56
+ $[0] = t0;
57
+ } else t0 = $[0];
58
+ return t0;
50
59
  };
51
60
  const PrevTrigger = withContext(Carousel.PrevTrigger, "prevTrigger", { defaultProps: {
52
61
  asChild: true,
@@ -55,11 +64,27 @@ const PrevTrigger = withContext(Carousel.PrevTrigger, "prevTrigger", { defaultPr
55
64
  const Image = withContext(ark.img, "image");
56
65
  const StyledIndicatorGroup = withContext(Carousel.IndicatorGroup, "indicatorGroup");
57
66
  const IndicatorGroup = forwardRef((props, ref) => {
67
+ const $ = c(6);
58
68
  const carousel = useCarouselContext();
59
- return <StyledIndicatorGroup {...props} ref={ref}>
60
- {carousel.pageSnapPoints.map((_, index) => <Indicator key={index} index={index} />)}
61
- </StyledIndicatorGroup>;
69
+ let t0;
70
+ if ($[0] !== carousel.pageSnapPoints) {
71
+ t0 = carousel.pageSnapPoints.map(_temp);
72
+ $[0] = carousel.pageSnapPoints;
73
+ $[1] = t0;
74
+ } else t0 = $[1];
75
+ let t1;
76
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
77
+ t1 = <StyledIndicatorGroup {...props} ref={ref}>{t0}</StyledIndicatorGroup>;
78
+ $[2] = props;
79
+ $[3] = ref;
80
+ $[4] = t0;
81
+ $[5] = t1;
82
+ } else t1 = $[5];
83
+ return t1;
62
84
  });
85
+ function _temp(_, index) {
86
+ return <Indicator key={index} index={index} />;
87
+ }
63
88
 
64
89
  //#endregion
65
90
  export { carousel_exports as Carousel };
@@ -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 { VisuallyHidden, createStyleContext, styled } from "@pyck/styled-system/jsx";
4
5
  import { checkbox } from "@pyck/styled-system/recipes";
@@ -26,41 +27,121 @@ const Group = withProvider(Checkbox$1.Group, "group");
26
27
  const Label = withContext(Checkbox$1.Label, "label");
27
28
  const HiddenInput = Checkbox$1.HiddenInput;
28
29
  const Indicator = forwardRef(function Indicator(props, ref) {
30
+ const $ = c(11);
29
31
  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>;
32
+ let t0;
33
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
34
+ t0 = <title>Checkmark</title>;
35
+ $[0] = t0;
36
+ } else t0 = $[0];
37
+ let t1;
38
+ if ($[1] !== checked || $[2] !== indeterminate) {
39
+ t1 = indeterminate ? <path d="M5 12h14" /> : checked ? <path d="M20 6 9 17l-5-5" /> : null;
40
+ $[1] = checked;
41
+ $[2] = indeterminate;
42
+ $[3] = t1;
43
+ } else t1 = $[3];
44
+ let t2;
45
+ if ($[4] !== props || $[5] !== ref || $[6] !== t1) {
46
+ t2 = <styled.svg ref={ref} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3px" strokeLinecap="round" strokeLinejoin="round" {...props}>{t0}{t1}</styled.svg>;
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 = <Checkbox$1.Indicator indeterminate={indeterminate} asChild={true}>{t2}</Checkbox$1.Indicator>;
55
+ $[8] = indeterminate;
56
+ $[9] = t2;
57
+ $[10] = t3;
58
+ } else t3 = $[10];
59
+ return t3;
36
60
  });
37
61
 
38
62
  //#endregion
39
63
  //#region src/components/checkbox/checkbox.closed.tsx
40
64
  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>;
65
+ const $ = c(17);
66
+ let children;
67
+ let inputProps;
68
+ let rootProps;
69
+ if ($[0] !== props) {
70
+ ({children, inputProps, ...rootProps} = props);
71
+ $[0] = props;
72
+ $[1] = children;
73
+ $[2] = inputProps;
74
+ $[3] = rootProps;
75
+ } else {
76
+ children = $[1];
77
+ inputProps = $[2];
78
+ rootProps = $[3];
79
+ }
80
+ let t0;
81
+ if ($[4] !== inputProps || $[5] !== ref) {
82
+ t0 = <checkbox_exports.HiddenInput ref={ref} {...inputProps} />;
83
+ $[4] = inputProps;
84
+ $[5] = ref;
85
+ $[6] = t0;
86
+ } else t0 = $[6];
87
+ let t1;
88
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
89
+ t1 = <checkbox_exports.Control><checkbox_exports.Indicator /></checkbox_exports.Control>;
90
+ $[7] = t1;
91
+ } else t1 = $[7];
92
+ let t2;
93
+ if ($[8] !== children) {
94
+ t2 = children && <checkbox_exports.Label>{children}</checkbox_exports.Label>;
95
+ $[8] = children;
96
+ $[9] = t2;
97
+ } else t2 = $[9];
98
+ let t3;
99
+ if ($[10] !== props) {
100
+ t3 = props["aria-label"] && <checkbox_exports.Label asChild={true}><VisuallyHidden>{props["aria-label"]}</VisuallyHidden></checkbox_exports.Label>;
101
+ $[10] = props;
102
+ $[11] = t3;
103
+ } else t3 = $[11];
104
+ let t4;
105
+ if ($[12] !== rootProps || $[13] !== t0 || $[14] !== t2 || $[15] !== t3) {
106
+ t4 = <checkbox_exports.Root {...rootProps}>{t0}{t1}{t2}{t3}</checkbox_exports.Root>;
107
+ $[12] = rootProps;
108
+ $[13] = t0;
109
+ $[14] = t2;
110
+ $[15] = t3;
111
+ $[16] = t4;
112
+ } else t4 = $[16];
113
+ return t4;
52
114
  });
53
115
 
54
116
  //#endregion
55
117
  //#region src/components/checkbox/checkbox.field.tsx
56
118
  const CheckboxField = (props) => {
119
+ const $ = c(11);
57
120
  const { name, label, helperText, hideLabel, disabled, checkboxProps, required } = props;
58
121
  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>} />;
122
+ let t0;
123
+ if ($[0] !== checkboxProps || $[1] !== disabled || $[2] !== helperText || $[3] !== hideLabel || $[4] !== label || $[5] !== required) {
124
+ t0 = (t1) => {
125
+ const { field, fieldState } = t1;
126
+ return <Field helperText={helperText} disabled={disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message} hideLabel={hideLabel} required={required}><Checkbox$2 size="xs" checked={!!field.value} onCheckedChange={(e) => field.onChange(e.checked)} {...checkboxProps}>{label}</Checkbox$2></Field>;
127
+ };
128
+ $[0] = checkboxProps;
129
+ $[1] = disabled;
130
+ $[2] = helperText;
131
+ $[3] = hideLabel;
132
+ $[4] = label;
133
+ $[5] = required;
134
+ $[6] = t0;
135
+ } else t0 = $[6];
136
+ let t1;
137
+ if ($[7] !== control || $[8] !== name || $[9] !== t0) {
138
+ t1 = <Controller name={name} control={control} render={t0} />;
139
+ $[7] = control;
140
+ $[8] = name;
141
+ $[9] = t0;
142
+ $[10] = t1;
143
+ } else t1 = $[10];
144
+ return t1;
64
145
  };
65
146
 
66
147
  //#endregion
@@ -1,3 +1,3 @@
1
- import { t as Checkmark } from "../../checkmark-CW-yHMvN.js";
1
+ import { t as Checkmark } from "../../checkmark-fJPHeX8N.js";
2
2
 
3
3
  export { Checkmark };
@@ -1,6 +1,7 @@
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-fJPHeX8N.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";
@@ -45,12 +46,35 @@ const ItemGroup = withContext(Combobox.ItemGroup, "itemGroup");
45
46
  const ItemGroupLabel = withContext(Combobox.ItemGroupLabel, "itemGroupLabel");
46
47
  const StyledItemIndicator = withContext(Combobox.ItemIndicator, "itemIndicator");
47
48
  const ItemIndicator = forwardRef(function ItemIndicator(props, ref) {
49
+ const $ = c(10);
48
50
  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>;
51
+ let t0;
52
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
53
+ t0 = <Checkmark size="sm" />;
54
+ $[0] = t0;
55
+ } else t0 = $[0];
56
+ let t1;
57
+ if ($[1] !== item.selected) {
58
+ t1 = <Checkmark size="sm" checked={item.selected} />;
59
+ $[1] = item.selected;
60
+ $[2] = t1;
61
+ } else t1 = $[2];
62
+ let t2;
63
+ if ($[3] !== props || $[4] !== ref || $[5] !== t1) {
64
+ t2 = <StyledItemIndicator ref={ref} asChild={true} {...props}>{t1}</StyledItemIndicator>;
65
+ $[3] = props;
66
+ $[4] = ref;
67
+ $[5] = t1;
68
+ $[6] = t2;
69
+ } else t2 = $[6];
70
+ let t3;
71
+ if ($[7] !== item.selected || $[8] !== t2) {
72
+ t3 = <Show when={item.selected} fallback={t0}>{t2}</Show>;
73
+ $[7] = item.selected;
74
+ $[8] = t2;
75
+ $[9] = t3;
76
+ } else t3 = $[9];
77
+ return t3;
54
78
  });
55
79
  const ItemText = withContext(Combobox.ItemText, "itemText");
56
80
  const Label = withContext(Combobox.Label, "label");
@@ -1,8 +1,9 @@
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-Bz71ZqgM.js";
3
+ import { t as DisplayDateValue } from "../../display-date-value-BAU46P8s.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";
@@ -25,14 +26,24 @@ const Item = withContext(ark.div, "item");
25
26
  const Term = withContext(ark.dt, "term");
26
27
  const StyledValue = withContext(ark.dd, "value");
27
28
  const Value = (props) => {
28
- return <StyledValue>
29
- <DisplayValue copyable {...props} />
30
- </StyledValue>;
29
+ const $ = c(2);
30
+ let t0;
31
+ if ($[0] !== props) {
32
+ t0 = <StyledValue><DisplayValue copyable={true} {...props} /></StyledValue>;
33
+ $[0] = props;
34
+ $[1] = t0;
35
+ } else t0 = $[1];
36
+ return t0;
31
37
  };
32
38
  const DateValue = (props) => {
33
- return <StyledValue>
34
- <DisplayDateValue {...props} />
35
- </StyledValue>;
39
+ const $ = c(2);
40
+ let t0;
41
+ if ($[0] !== props) {
42
+ t0 = <StyledValue><DisplayDateValue {...props} /></StyledValue>;
43
+ $[0] = props;
44
+ $[1] = t0;
45
+ } else t0 = $[1];
46
+ return t0;
36
47
  };
37
48
 
38
49
  //#endregion
@@ -1,5 +1,5 @@
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-r3blTfSH.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";