@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
@@ -0,0 +1,75 @@
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 { jsx, jsxs } from "react/jsx-runtime";
7
+ import { dataAttr } from "@pyck/react/utils";
8
+
9
+ //#region src/components/checkmark/checkmark.tsx
10
+ const StyledCheckmark = styled(ark.svg, checkmark);
11
+ const Checkmark = forwardRef(function Checkmark(props, ref) {
12
+ const $ = c(17);
13
+ let checked;
14
+ let disabled;
15
+ let indeterminate;
16
+ let rest;
17
+ if ($[0] !== props) {
18
+ ({checked, indeterminate, disabled, ...rest} = props);
19
+ $[0] = props;
20
+ $[1] = checked;
21
+ $[2] = disabled;
22
+ $[3] = indeterminate;
23
+ $[4] = rest;
24
+ } else {
25
+ checked = $[1];
26
+ disabled = $[2];
27
+ indeterminate = $[3];
28
+ rest = $[4];
29
+ }
30
+ const t0 = indeterminate ? "indeterminate" : checked ? "checked" : "unchecked";
31
+ let t1;
32
+ if ($[5] !== disabled) {
33
+ t1 = dataAttr(disabled);
34
+ $[5] = disabled;
35
+ $[6] = t1;
36
+ } else t1 = $[6];
37
+ let t2;
38
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
39
+ t2 = /* @__PURE__ */ jsx("title", { children: "Checkmark" });
40
+ $[7] = t2;
41
+ } else t2 = $[7];
42
+ let t3;
43
+ if ($[8] !== checked || $[9] !== indeterminate) {
44
+ t3 = indeterminate ? /* @__PURE__ */ jsx("path", { d: "M5 12h14" }) : checked ? /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" }) : null;
45
+ $[8] = checked;
46
+ $[9] = indeterminate;
47
+ $[10] = t3;
48
+ } else t3 = $[10];
49
+ let t4;
50
+ if ($[11] !== ref || $[12] !== rest || $[13] !== t0 || $[14] !== t1 || $[15] !== t3) {
51
+ t4 = /* @__PURE__ */ jsxs(StyledCheckmark, {
52
+ ref,
53
+ viewBox: "0 0 24 24",
54
+ fill: "none",
55
+ stroke: "currentColor",
56
+ strokeWidth: "3px",
57
+ strokeLinecap: "round",
58
+ strokeLinejoin: "round",
59
+ "data-state": t0,
60
+ "data-disabled": t1,
61
+ ...rest,
62
+ children: [t2, t3]
63
+ });
64
+ $[11] = ref;
65
+ $[12] = rest;
66
+ $[13] = t0;
67
+ $[14] = t1;
68
+ $[15] = t3;
69
+ $[16] = t4;
70
+ } else t4 = $[16];
71
+ return t4;
72
+ });
73
+
74
+ //#endregion
75
+ export { Checkmark as t };
@@ -0,0 +1,172 @@
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 { jsx } from "react/jsx-runtime";
9
+ import { Loader } from "@pyck/react/loader";
10
+ import { Group } from "@pyck/react/group";
11
+
12
+ //#region src/components/button/button-group.tsx
13
+ const ButtonGroup = forwardRef(function ButtonGroup(props, ref) {
14
+ const $ = c(8);
15
+ let t0;
16
+ if ($[0] !== props) {
17
+ t0 = button.splitVariantProps(props);
18
+ $[0] = props;
19
+ $[1] = t0;
20
+ } else t0 = $[1];
21
+ const [variantProps, otherProps] = t0;
22
+ let t1;
23
+ if ($[2] !== otherProps || $[3] !== ref) {
24
+ t1 = /* @__PURE__ */ jsx(Group, {
25
+ ref,
26
+ ...otherProps
27
+ });
28
+ $[2] = otherProps;
29
+ $[3] = ref;
30
+ $[4] = t1;
31
+ } else t1 = $[4];
32
+ let t2;
33
+ if ($[5] !== t1 || $[6] !== variantProps) {
34
+ t2 = /* @__PURE__ */ jsx(ButtonPropsProvider, {
35
+ value: variantProps,
36
+ children: t1
37
+ });
38
+ $[5] = t1;
39
+ $[6] = variantProps;
40
+ $[7] = t2;
41
+ } else t2 = $[7];
42
+ return t2;
43
+ });
44
+ const [ButtonPropsProvider, useButtonPropsContext] = createContext({
45
+ name: "ButtonPropsContext",
46
+ hookName: "useButtonPropsContext",
47
+ providerName: "<PropsProvider />",
48
+ strict: false
49
+ });
50
+
51
+ //#endregion
52
+ //#region src/components/button/button.tsx
53
+ const BaseButton = styled(ark.button, button);
54
+ const Button = forwardRef(function Button(props, ref) {
55
+ const $ = c(23);
56
+ const propsContext = useButtonPropsContext();
57
+ let t0;
58
+ if ($[0] !== props || $[1] !== propsContext) {
59
+ t0 = mergeProps(propsContext, props);
60
+ $[0] = props;
61
+ $[1] = propsContext;
62
+ $[2] = t0;
63
+ } else t0 = $[2];
64
+ const buttonProps = t0;
65
+ let children;
66
+ let loading;
67
+ let loadingText;
68
+ let rest;
69
+ let spinner;
70
+ let spinnerPlacement;
71
+ if ($[3] !== buttonProps) {
72
+ ({loading, loadingText, children, spinner, spinnerPlacement, ...rest} = buttonProps);
73
+ $[3] = buttonProps;
74
+ $[4] = children;
75
+ $[5] = loading;
76
+ $[6] = loadingText;
77
+ $[7] = rest;
78
+ $[8] = spinner;
79
+ $[9] = spinnerPlacement;
80
+ } else {
81
+ children = $[4];
82
+ loading = $[5];
83
+ loadingText = $[6];
84
+ rest = $[7];
85
+ spinner = $[8];
86
+ spinnerPlacement = $[9];
87
+ }
88
+ const t1 = loading ? "" : void 0;
89
+ const t2 = loading || rest.disabled;
90
+ let t3;
91
+ if ($[10] !== children || $[11] !== loading || $[12] !== loadingText || $[13] !== props.asChild || $[14] !== spinner || $[15] !== spinnerPlacement) {
92
+ t3 = !props.asChild && loading ? /* @__PURE__ */ jsx(Loader, {
93
+ spinner,
94
+ text: loadingText,
95
+ spinnerPlacement,
96
+ children
97
+ }) : children;
98
+ $[10] = children;
99
+ $[11] = loading;
100
+ $[12] = loadingText;
101
+ $[13] = props.asChild;
102
+ $[14] = spinner;
103
+ $[15] = spinnerPlacement;
104
+ $[16] = t3;
105
+ } else t3 = $[16];
106
+ let t4;
107
+ if ($[17] !== ref || $[18] !== rest || $[19] !== t1 || $[20] !== t2 || $[21] !== t3) {
108
+ t4 = /* @__PURE__ */ jsx(BaseButton, {
109
+ type: "button",
110
+ ref,
111
+ ...rest,
112
+ "data-loading": t1,
113
+ disabled: t2,
114
+ children: t3
115
+ });
116
+ $[17] = ref;
117
+ $[18] = rest;
118
+ $[19] = t1;
119
+ $[20] = t2;
120
+ $[21] = t3;
121
+ $[22] = t4;
122
+ } else t4 = $[22];
123
+ return t4;
124
+ });
125
+
126
+ //#endregion
127
+ //#region src/components/button/icon-button.tsx
128
+ const IconButton = forwardRef(function IconButton(props, ref) {
129
+ const $ = c(3);
130
+ let t0;
131
+ if ($[0] !== props || $[1] !== ref) {
132
+ t0 = /* @__PURE__ */ jsx(Button, {
133
+ px: "0",
134
+ py: "0",
135
+ ref,
136
+ ...props
137
+ });
138
+ $[0] = props;
139
+ $[1] = ref;
140
+ $[2] = t0;
141
+ } else t0 = $[2];
142
+ return t0;
143
+ });
144
+
145
+ //#endregion
146
+ //#region src/components/button/close-button.tsx
147
+ const CloseButton = forwardRef(function CloseButton(props, ref) {
148
+ const $ = c(4);
149
+ let t0;
150
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
151
+ t0 = /* @__PURE__ */ jsx(XIcon, {});
152
+ $[0] = t0;
153
+ } else t0 = $[0];
154
+ let t1;
155
+ if ($[1] !== props || $[2] !== ref) {
156
+ t1 = /* @__PURE__ */ jsx(IconButton, {
157
+ variant: "plain",
158
+ color: "fg.muted",
159
+ "aria-label": "Close",
160
+ ref,
161
+ ...props,
162
+ children: t0
163
+ });
164
+ $[1] = props;
165
+ $[2] = ref;
166
+ $[3] = t1;
167
+ } else t1 = $[3];
168
+ return t1;
169
+ });
170
+
171
+ //#endregion
172
+ export { ButtonGroup as i, IconButton as n, Button as r, CloseButton as t };
@@ -1,18 +1,12 @@
1
- import { t as __exportAll } from "../../chunk-BYypO7fO.js";
1
+ import { c } from "react/compiler-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
4
4
  import { avatar } from "@pyck/styled-system/recipes";
5
- import { Avatar as Avatar$1, AvatarContext as Context } from "@ark-ui/react/avatar";
5
+ import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
6
6
  import { UserIcon } from "lucide-react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
7
8
 
8
9
  //#region src/components/avatar/avatar.tsx
9
- var avatar_exports = /* @__PURE__ */ __exportAll({
10
- Context: () => Context,
11
- Fallback: () => Fallback,
12
- Image: () => Image,
13
- Root: () => Root,
14
- RootProvider: () => RootProvider
15
- });
16
10
  const { withProvider, withContext } = createStyleContext(avatar);
17
11
  const Root = withProvider(Avatar$1.Root, "root");
18
12
  const RootProvider = withProvider(Avatar$1.RootProvider, "root");
@@ -23,11 +17,46 @@ const Image = withContext(Avatar$1.Image, "image", { defaultProps: {
23
17
  } });
24
18
  const StyledFallback = withContext(Avatar$1.Fallback, "fallback");
25
19
  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>;
20
+ const $ = c(13);
21
+ let asChild;
22
+ let children;
23
+ let name;
24
+ let rest;
25
+ if ($[0] !== props) {
26
+ ({name, children, asChild, ...rest} = props);
27
+ $[0] = props;
28
+ $[1] = asChild;
29
+ $[2] = children;
30
+ $[3] = name;
31
+ $[4] = rest;
32
+ } else {
33
+ asChild = $[1];
34
+ children = $[2];
35
+ name = $[3];
36
+ rest = $[4];
37
+ }
38
+ let t0;
39
+ if ($[5] !== asChild || $[6] !== children || $[7] !== name) {
40
+ t0 = children || asChild ? children : name ? getInitials(name) : /* @__PURE__ */ jsx(UserIcon, {});
41
+ $[5] = asChild;
42
+ $[6] = children;
43
+ $[7] = name;
44
+ $[8] = t0;
45
+ } else t0 = $[8];
46
+ const fallbackContent = t0;
47
+ let t1;
48
+ if ($[9] !== fallbackContent || $[10] !== ref || $[11] !== rest) {
49
+ t1 = /* @__PURE__ */ jsx(StyledFallback, {
50
+ ref,
51
+ ...rest,
52
+ children: fallbackContent
53
+ });
54
+ $[9] = fallbackContent;
55
+ $[10] = ref;
56
+ $[11] = rest;
57
+ $[12] = t1;
58
+ } else t1 = $[12];
59
+ return t1;
31
60
  });
32
61
  const getInitials = (name) => {
33
62
  const trimmedName = name.trim();
@@ -41,12 +70,81 @@ const getInitials = (name) => {
41
70
  //#endregion
42
71
  //#region src/components/avatar/avatar.closed.tsx
43
72
  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>;
73
+ const $ = c(23);
74
+ let children;
75
+ let fallback;
76
+ let icon;
77
+ let loading;
78
+ let name;
79
+ let rest;
80
+ let src;
81
+ let srcSet;
82
+ if ($[0] !== props) {
83
+ ({name, src, srcSet, loading, icon, fallback, children, ...rest} = props);
84
+ $[0] = props;
85
+ $[1] = children;
86
+ $[2] = fallback;
87
+ $[3] = icon;
88
+ $[4] = loading;
89
+ $[5] = name;
90
+ $[6] = rest;
91
+ $[7] = src;
92
+ $[8] = srcSet;
93
+ } else {
94
+ children = $[1];
95
+ fallback = $[2];
96
+ icon = $[3];
97
+ loading = $[4];
98
+ name = $[5];
99
+ rest = $[6];
100
+ src = $[7];
101
+ srcSet = $[8];
102
+ }
103
+ const t0 = fallback || icon;
104
+ let t1;
105
+ if ($[9] !== name || $[10] !== t0) {
106
+ t1 = /* @__PURE__ */ jsx(Fallback, {
107
+ name,
108
+ children: t0
109
+ });
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 = /* @__PURE__ */ jsx(Image, {
118
+ src: t2,
119
+ srcSet,
120
+ loading,
121
+ alt: name
122
+ });
123
+ $[12] = loading;
124
+ $[13] = name;
125
+ $[14] = srcSet;
126
+ $[15] = t2;
127
+ $[16] = t3;
128
+ } else t3 = $[16];
129
+ let t4;
130
+ if ($[17] !== children || $[18] !== ref || $[19] !== rest || $[20] !== t1 || $[21] !== t3) {
131
+ t4 = /* @__PURE__ */ jsxs(Root, {
132
+ ref,
133
+ ...rest,
134
+ children: [
135
+ t1,
136
+ t3,
137
+ children
138
+ ]
139
+ });
140
+ $[17] = children;
141
+ $[18] = ref;
142
+ $[19] = rest;
143
+ $[20] = t1;
144
+ $[21] = t3;
145
+ $[22] = t4;
146
+ } else t4 = $[22];
147
+ return t4;
50
148
  });
51
149
 
52
150
  //#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-DAgpEZYq.js";
2
2
 
3
3
  export { Button, ButtonGroup, CloseButton, IconButton };
@@ -1,11 +1,13 @@
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-DAgpEZYq.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";
7
8
  import { carousel } from "@pyck/styled-system/recipes";
8
9
  import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
10
+ import { jsx } from "react/jsx-runtime";
9
11
  import { Carousel, CarouselContext as Context, useCarouselContext } from "@ark-ui/react/carousel";
10
12
 
11
13
  //#region src/components/carousel/carousel.tsx
@@ -35,31 +37,69 @@ const Indicator = withContext(Carousel.Indicator, "indicator");
35
37
  const Item = withContext(Carousel.Item, "item");
36
38
  const ItemGroup = withContext(Carousel.ItemGroup, "itemGroup");
37
39
  const NextTriggerChild = () => {
38
- return <IconButton size="sm" variant="plain" aria-label="Next slide">
39
- <ChevronRightIcon />
40
- </IconButton>;
40
+ const $ = c(1);
41
+ let t0;
42
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43
+ t0 = /* @__PURE__ */ jsx(IconButton, {
44
+ size: "sm",
45
+ variant: "plain",
46
+ "aria-label": "Next slide",
47
+ children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
48
+ });
49
+ $[0] = t0;
50
+ } else t0 = $[0];
51
+ return t0;
41
52
  };
42
53
  const NextTrigger = withContext(Carousel.NextTrigger, "nextTrigger", { defaultProps: {
43
54
  asChild: true,
44
- children: <NextTriggerChild />
55
+ children: /* @__PURE__ */ jsx(NextTriggerChild, {})
45
56
  } });
46
57
  const PrevTriggerChild = () => {
47
- return <IconButton size="sm" variant="plain" aria-label="Previous slide">
48
- <ChevronLeftIcon />
49
- </IconButton>;
58
+ const $ = c(1);
59
+ let t0;
60
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
61
+ t0 = /* @__PURE__ */ jsx(IconButton, {
62
+ size: "sm",
63
+ variant: "plain",
64
+ "aria-label": "Previous slide",
65
+ children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
66
+ });
67
+ $[0] = t0;
68
+ } else t0 = $[0];
69
+ return t0;
50
70
  };
51
71
  const PrevTrigger = withContext(Carousel.PrevTrigger, "prevTrigger", { defaultProps: {
52
72
  asChild: true,
53
- children: <PrevTriggerChild />
73
+ children: /* @__PURE__ */ jsx(PrevTriggerChild, {})
54
74
  } });
55
75
  const Image = withContext(ark.img, "image");
56
76
  const StyledIndicatorGroup = withContext(Carousel.IndicatorGroup, "indicatorGroup");
57
77
  const IndicatorGroup = forwardRef((props, ref) => {
78
+ const $ = c(6);
58
79
  const carousel = useCarouselContext();
59
- return <StyledIndicatorGroup {...props} ref={ref}>
60
- {carousel.pageSnapPoints.map((_, index) => <Indicator key={index} index={index} />)}
61
- </StyledIndicatorGroup>;
80
+ let t0;
81
+ if ($[0] !== carousel.pageSnapPoints) {
82
+ t0 = carousel.pageSnapPoints.map(_temp);
83
+ $[0] = carousel.pageSnapPoints;
84
+ $[1] = t0;
85
+ } else t0 = $[1];
86
+ let t1;
87
+ if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
88
+ t1 = /* @__PURE__ */ jsx(StyledIndicatorGroup, {
89
+ ...props,
90
+ ref,
91
+ children: t0
92
+ });
93
+ $[2] = props;
94
+ $[3] = ref;
95
+ $[4] = t0;
96
+ $[5] = t1;
97
+ } else t1 = $[5];
98
+ return t1;
62
99
  });
100
+ function _temp(_, index) {
101
+ return /* @__PURE__ */ jsx(Indicator, { index }, index);
102
+ }
63
103
 
64
104
  //#endregion
65
105
  export { carousel_exports as Carousel };
@@ -2,11 +2,11 @@ import * as react from "react";
2
2
  import { ComponentProps } from "react";
3
3
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
4
4
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import { Checkbox as Checkbox$1, CheckboxCheckedState } from "@ark-ui/react/checkbox";
6
7
  import { CheckboxProps as CheckboxProps$1 } from "@pyck/react/checkbox";
7
8
  import { FieldPath, FieldValues } from "react-hook-form";
8
9
  import { HTMLStyledProps as HTMLStyledProps$1 } from "@pyck/styled-system/types";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/components/checkbox/checkbox.d.ts
12
12
  type RootProps = ComponentProps<typeof Root>;