@parrot-co/parrot-ui 0.0.88 → 0.0.90

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/main.js CHANGED
@@ -25,12 +25,15 @@ $parcel$export(module.exports, "IconButton", () => $3af04cd154cf4de1$export$c25a
25
25
  $parcel$export(module.exports, "ButtonGroup", () => $7f70742e736041ff$export$69b1032f2ecdf404);
26
26
  $parcel$export(module.exports, "Checkbox", () => $f88e10ca2ba68239$export$48513f6b9f8ce62d);
27
27
  $parcel$export(module.exports, "CheckboxGroup", () => $0f8ef6f4acac1766$export$4aa08d5625cb8ead);
28
+ $parcel$export(module.exports, "DropdownMenu", () => $3b903582a5253460$export$e44a253a59704894);
28
29
  $parcel$export(module.exports, "Radio", () => $e158c5cf7e190200$export$d7b12c4107be0d61);
29
30
  $parcel$export(module.exports, "RadioGroup", () => $e158c5cf7e190200$export$a98f0dcb43a68a25);
30
31
  $parcel$export(module.exports, "RadioCard", () => $71fcf48f7e2e9427$export$f8afaea2e9656b91);
31
32
  $parcel$export(module.exports, "Select", () => $e37831ebf64d8e7d$export$ef9b1a59e592288f);
32
- $parcel$export(module.exports, "DatePicker", () => $64d5f0f4b10da15c$export$5109c6dd95d8fb00);
33
- $parcel$export(module.exports, "Calendar", () => $7f850fc45f6bb29f$export$e1aef45b828286de);
33
+ $parcel$export(module.exports, "Option", () => $dcfc4542aa84c062$export$36d18380658d5d20);
34
+ $parcel$export(module.exports, "Section", () => $dcfc4542aa84c062$export$6e2c8f0811a474ce);
35
+ $parcel$export(module.exports, "DateInput", () => $e0a58c83d4c36e4e$export$7edc06cf1783b30f);
36
+ $parcel$export(module.exports, "Calendar", () => $284d30e280d297d3$export$e1aef45b828286de);
34
37
  $parcel$export(module.exports, "Avatar", () => $2fdd5844efb4cca1$export$e2255cf6045e8d47);
35
38
  $parcel$export(module.exports, "FileUploader", () => $5f87818f4e8f8603$export$1a5cb5295a7d2749);
36
39
  $parcel$export(module.exports, "Separator", () => $9e8a15ca4065ce60$export$1ff3c3f08ae963c0);
@@ -130,7 +133,7 @@ function $62f1c614c0962470$export$c9058316764c140e(...refs) {
130
133
  }
131
134
 
132
135
 
133
- const $eb8f27c3596a0e6b$export$e71c4d32a2263218 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ stretchX: stretchX, stretchY: stretchY, stretchXY: stretchXY, children: children, className: className, position: position, as: as = "div", ...props }, ref)=>{
136
+ const $eb8f27c3596a0e6b$export$23c260ee8e4dfaad = ({ stretchX: stretchX, stretchY: stretchY, stretchXY: stretchXY, children: children, className: className, position: position, as: as = "div", ...props }, ref)=>{
134
137
  const Comp = as;
135
138
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)(Comp, {
136
139
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)({
@@ -144,8 +147,9 @@ const $eb8f27c3596a0e6b$export$e71c4d32a2263218 = /*#__PURE__*/ $8zHUo$react.for
144
147
  ...props,
145
148
  children: children
146
149
  });
147
- });
148
- $eb8f27c3596a0e6b$export$e71c4d32a2263218.displayName = "Box";
150
+ };
151
+ $eb8f27c3596a0e6b$export$23c260ee8e4dfaad.displayName = "Box";
152
+ const $eb8f27c3596a0e6b$export$e71c4d32a2263218 = /*#__PURE__*/ $8zHUo$react.forwardRef($eb8f27c3596a0e6b$export$23c260ee8e4dfaad);
149
153
 
150
154
 
151
155
 
@@ -195,7 +199,7 @@ $df66c26cdcece32b$export$9eb849b9b922d396.displayName = "GridItem";
195
199
 
196
200
 
197
201
 
198
- const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.forwardRef((props, ref)=>{
202
+ const $c3a954a7c0cb5109$export$21ee1313e2afe36c = (props, ref)=>{
199
203
  const { justify: justify, align: align, direction: direction, gap: gap = "sm", columnGap: columnGap, rowGap: rowGap, inline: inline, wrap: wrap, stack: stack, className: className, ...otherProps } = props;
200
204
  const getDirection = $8zHUo$react.useCallback(()=>{
201
205
  if (stack) return "column";
@@ -216,12 +220,14 @@ const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.for
216
220
  [`row-gap-${rowGap}`]: !!rowGap,
217
221
  [`flex-${wrap}`]: !!wrap
218
222
  }),
223
+ // TODO - Fix types here - seems to work just fine though
219
224
  ref: ref,
220
225
  ...otherProps,
221
226
  children: props.children
222
227
  });
223
- });
224
- $c3a954a7c0cb5109$export$f51f4c4ede09e011.displayName = "Flex";
228
+ };
229
+ $c3a954a7c0cb5109$export$21ee1313e2afe36c.displayName = "Flex";
230
+ const $c3a954a7c0cb5109$export$f51f4c4ede09e011 = /*#__PURE__*/ $8zHUo$react.forwardRef($c3a954a7c0cb5109$export$21ee1313e2afe36c);
225
231
 
226
232
 
227
233
 
@@ -386,7 +392,7 @@ function $f2fd0cbe11b7f0dd$export$93d4e7f90805808f(options) {
386
392
 
387
393
 
388
394
 
389
- const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ label: label, error: error, color: color = "gray", appearance: appearance = "outline", size: size = "sm", append: append, prepend: prepend, description: description, isDisabled: isDisabled, validationStatus: validationStatus, className: className, inputRef: inputRef, radius: radius, ...props }, ref)=>{
395
+ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ label: label, error: error, color: color = "gray", appearance: appearance = "outline", size: size = "sm", append: append, prepend: prepend, description: description, isDisabled: isDisabled, validationStatus: validationStatus, className: className, inputRef: inputRef, radius: radius, style: style, ...props }, ref)=>{
390
396
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
391
397
  const internalInputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
392
398
  const { labelProps: labelProps, inputProps: inputProps, errorMessageProps: errorMessageProps, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useTextField)({
@@ -406,6 +412,7 @@ const $d9ffc65197682590$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
406
412
  ref: ref,
407
413
  gap: "3xs",
408
414
  stretchX: true,
415
+ style: style,
409
416
  children: [
410
417
  label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
411
418
  color: color,
@@ -581,7 +588,7 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
581
588
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
582
589
  const buttonGroupProps = (0, $7f70742e736041ff$export$749e21be8b14b968)();
583
590
  const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
584
- const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = "violet", activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton, appearance: appearance, style: style, ...otherProps } = {
591
+ const { color: color = theme?.color ?? "violet", variant: variant = "solid", append: append, prepend: prepend, size: size = "md", children: children, as: as = "button", className: className, isLoading: isLoading, radius: radius = "full", isToggle: isToggle, activeColor: activeColor = "violet", activeVariant: activeVariant = "solid", idleColor: idleColor = "gray", idleVariant: idleVariant = "outline", isIconButton: isIconButton, style: style, ...otherProps } = {
585
592
  ...buttonGroupProps,
586
593
  ...props
587
594
  };
@@ -593,18 +600,6 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
593
600
  ...otherProps,
594
601
  elementType: as
595
602
  }, state, buttonRef);
596
- const getAppearance = (0, ($parcel$interopDefault($8zHUo$react))).useCallback(()=>{
597
- if (theme?.buttonAppearance && appearance) return {
598
- color: theme.buttonAppearance[appearance]?.color,
599
- variant: theme.buttonAppearance[appearance]?.variant
600
- };
601
- return {
602
- color: color,
603
- variant: variant
604
- };
605
- }, [
606
- appearance
607
- ]);
608
603
  function getColor() {
609
604
  if (!state.isSelected && isToggle) return {
610
605
  color: idleColor,
@@ -615,14 +610,13 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
615
610
  variant: activeVariant
616
611
  };
617
612
  return {
618
- variant: getAppearance().variant,
619
- color: getAppearance().color
613
+ variant: variant,
614
+ color: color
620
615
  };
621
616
  }
622
617
  const Comp = as;
623
618
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)(Comp, {
624
619
  style: style,
625
- "data-appearance": appearance,
626
620
  "data-pressed": isPressed,
627
621
  "data-radius": radius,
628
622
  "data-icon-button": isIconButton,
@@ -633,6 +627,7 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
633
627
  "data-size": size,
634
628
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-button", space.classNames),
635
629
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(ref, buttonRef),
630
+ form: otherProps.form,
636
631
  ...buttonProps,
637
632
  children: [
638
633
  prepend,
@@ -1002,6 +997,212 @@ $f88e10ca2ba68239$export$48513f6b9f8ce62d.displayName = "checkbox";
1002
997
 
1003
998
 
1004
999
 
1000
+
1001
+
1002
+ function $0f347092d3465402$export$5b6b19405a83ff9d({ state: state, children: children, popoverRef: popoverRef, ...props }) {
1003
+ const internalPopoverRef = $8zHUo$react.useRef(null);
1004
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1005
+ const { popoverProps: popoverProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.usePopover)({
1006
+ ...props,
1007
+ popoverRef: internalPopoverRef
1008
+ }, state);
1009
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $8zHUo$reactaria.Overlay), {
1010
+ children: [
1011
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1012
+ ...underlayProps,
1013
+ className: "underlay"
1014
+ }),
1015
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1016
+ "data-color": theme?.color,
1017
+ "data-radius": theme?.radius,
1018
+ ...popoverProps,
1019
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(popoverRef, internalPopoverRef),
1020
+ className: "p-popover",
1021
+ children: children
1022
+ })
1023
+ ]
1024
+ });
1025
+ }
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+ const $724eace27ebf345b$var$DropdownContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
1033
+ function $724eace27ebf345b$export$e44a253a59704894({ children: children, ...props }) {
1034
+ const triggerRef = $8zHUo$react.useRef(null);
1035
+ const triggerState = (0, $8zHUo$reactstately.useMenuTriggerState)(props);
1036
+ const { menuProps: menuProps, menuTriggerProps: triggerProps } = (0, $8zHUo$reactaria.useMenuTrigger)(props, triggerState, triggerRef);
1037
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$DropdownContext.Provider, {
1038
+ value: {
1039
+ triggerRef: triggerRef,
1040
+ triggerState: triggerState,
1041
+ triggerProps: triggerProps,
1042
+ menuProps: menuProps
1043
+ },
1044
+ children: children
1045
+ });
1046
+ }
1047
+ function $724eace27ebf345b$export$e7eb525bc415b4b4({ asChild: asChild, children: children, useClickEvent: useClickEvent }) {
1048
+ const ctx = $8zHUo$react.useContext($724eace27ebf345b$var$DropdownContext);
1049
+ const { pressProps: pressProps, isPressed: isPressed } = (0, $8zHUo$reactaria.usePress)({
1050
+ ...ctx?.triggerProps,
1051
+ ref: ctx?.triggerRef
1052
+ });
1053
+ const triggerProps = useClickEvent ? pressProps : ctx?.triggerProps;
1054
+ if (asChild) {
1055
+ const child = $8zHUo$react.Children.only(children);
1056
+ return /*#__PURE__*/ $8zHUo$react.cloneElement(child, {
1057
+ ...triggerProps,
1058
+ ref: ctx?.triggerRef,
1059
+ "data-pressed": isPressed
1060
+ });
1061
+ }
1062
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a6f28f3fd58ff6e$export$353f5b6fc5456de1), {
1063
+ ...ctx?.triggerProps,
1064
+ ref: ctx?.triggerRef,
1065
+ children: children
1066
+ });
1067
+ }
1068
+ function $724eace27ebf345b$export$d9b273488cd8ce6f(props) {
1069
+ const ctx = $8zHUo$react.useContext($724eace27ebf345b$var$DropdownContext);
1070
+ if (!ctx?.triggerState.isOpen) return null;
1071
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $0f347092d3465402$export$5b6b19405a83ff9d), {
1072
+ placement: "bottom start",
1073
+ offset: 8,
1074
+ state: ctx?.triggerState,
1075
+ triggerRef: ctx?.triggerRef,
1076
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$MenuInner, {
1077
+ ...(0, $8zHUo$reactaria.mergeProps)(props, ctx.menuProps)
1078
+ })
1079
+ });
1080
+ }
1081
+ function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: menuFooter, ...props }) {
1082
+ const state = (0, $8zHUo$reactstately.useTreeState)(props);
1083
+ const ref = $8zHUo$react.useRef(null);
1084
+ const { menuProps: menuProps } = (0, $8zHUo$reactaria.useMenu)({
1085
+ ...props,
1086
+ autoFocus: true,
1087
+ isVirtualized: true
1088
+ }, state, ref);
1089
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1090
+ function resolvedMenuHeader() {
1091
+ if (typeof menuHeader === "function") return menuHeader();
1092
+ return menuHeader;
1093
+ }
1094
+ function resolvedMenuFooter() {
1095
+ if (typeof menuFooter === "function") return menuFooter();
1096
+ return menuFooter;
1097
+ }
1098
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1099
+ stack: true,
1100
+ ref: ref,
1101
+ ...menuProps,
1102
+ "data-color": theme?.color ?? "violet",
1103
+ "data-radius": theme?.radius ?? "lg",
1104
+ className: "p-list-box-wrapper",
1105
+ children: [
1106
+ resolvedMenuHeader(),
1107
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
1108
+ children: [
1109
+ ...state.collection
1110
+ ].map((item)=>{
1111
+ if (item.type === "section") return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$MenuSectionInner, {
1112
+ state: state,
1113
+ section: item
1114
+ }, item.key);
1115
+ return /*#__PURE__*/ (0, $8zHUo$react.createElement)($724eace27ebf345b$var$MenuItemInner, {
1116
+ ...item.props,
1117
+ state: state,
1118
+ item: item,
1119
+ key: item.key
1120
+ });
1121
+ })
1122
+ }),
1123
+ resolvedMenuFooter()
1124
+ ]
1125
+ });
1126
+ }
1127
+ function $724eace27ebf345b$var$MenuItemInner({ state: state, item: item, ...otherProps }) {
1128
+ const ref = $8zHUo$react.useRef(null);
1129
+ const { menuItemProps: menuItemProps, isSelected: isSelected, isFocused: isFocused, isPressed: isPressed, isDisabled: isDisabled } = (0, $8zHUo$reactaria.useMenuItem)({
1130
+ key: item?.key
1131
+ }, state, ref);
1132
+ const { className: className, style: style, isReadOnly: isReadOnly } = otherProps;
1133
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1134
+ ref: ref,
1135
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option"),
1136
+ "data-selected": isSelected,
1137
+ "data-focused": isFocused,
1138
+ "data-pressed": isPressed,
1139
+ "data-disabled": isDisabled,
1140
+ "data-readonly": isReadOnly,
1141
+ style: style,
1142
+ ...menuItemProps,
1143
+ children: item.rendered
1144
+ });
1145
+ }
1146
+ function $724eace27ebf345b$var$MenuSectionInner({ state: state, section: section }) {
1147
+ const { itemProps: itemProps, headingProps: headingProps, groupProps: groupProps } = (0, $8zHUo$reactaria.useMenuSection)({
1148
+ heading: section?.rendered,
1149
+ "aria-label": section?.["aria-label"]
1150
+ });
1151
+ const { separatorProps: separatorProps } = (0, $8zHUo$reactaria.useSeparator)({
1152
+ elementType: "li"
1153
+ });
1154
+ function getChildren() {
1155
+ if (state?.collection.getChildren) return [
1156
+ ...state.collection.getChildren(section.key)
1157
+ ];
1158
+ return [];
1159
+ }
1160
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1161
+ className: "p-list-section",
1162
+ children: [
1163
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1164
+ className: "p-list-separator",
1165
+ ...separatorProps
1166
+ }),
1167
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1168
+ ...itemProps,
1169
+ children: section?.rendered && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("span", {
1170
+ ...headingProps,
1171
+ children: section?.rendered
1172
+ })
1173
+ }),
1174
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
1175
+ ...groupProps,
1176
+ children: getChildren().map((item)=>{
1177
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$MenuItemInner, {
1178
+ state: state,
1179
+ item: item
1180
+ }, item.key);
1181
+ })
1182
+ })
1183
+ ]
1184
+ });
1185
+ }
1186
+ const $724eace27ebf345b$export$2ce376c2cc3355c8 = (0, $8zHUo$reactstately.Item);
1187
+ const $724eace27ebf345b$export$4b1545b4f2016d26 = (0, $8zHUo$reactstately.Section);
1188
+
1189
+
1190
+ (0, $724eace27ebf345b$export$e44a253a59704894).Menu = (0, $724eace27ebf345b$export$d9b273488cd8ce6f);
1191
+ (0, $724eace27ebf345b$export$e44a253a59704894).Trigger = (0, $724eace27ebf345b$export$e7eb525bc415b4b4);
1192
+ (0, $724eace27ebf345b$export$e44a253a59704894).Item = (0, $724eace27ebf345b$export$2ce376c2cc3355c8);
1193
+ (0, $724eace27ebf345b$export$e44a253a59704894).Section = (0, $724eace27ebf345b$export$4b1545b4f2016d26);
1194
+ const $3b903582a5253460$export$e44a253a59704894 = (0, $724eace27ebf345b$export$e44a253a59704894);
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1005
1206
  const $e158c5cf7e190200$export$b118023277d4a5c3 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).createContext(null);
1006
1207
  const $e158c5cf7e190200$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
1007
1208
  const state = (0, ($parcel$interopDefault($8zHUo$react))).useContext($e158c5cf7e190200$export$b118023277d4a5c3);
@@ -1156,6 +1357,7 @@ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderO
1156
1357
  const label = item?.[labelKey ?? "label"];
1157
1358
  const value = item?.[valueKey ?? "id"];
1158
1359
  const sectionChildren = item?.[sectionKey ?? "children"] ?? [];
1360
+ console.log(label, "label");
1159
1361
  if (item?.[sectionKey]) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$6e2c8f0811a474ce), {
1160
1362
  items: sectionChildren,
1161
1363
  title: getSectionLabel?.(item),
@@ -1193,14 +1395,15 @@ function $71edc9998a9f3b41$export$961f16f221737ce2() {
1193
1395
 
1194
1396
 
1195
1397
 
1196
- function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color, width: width = 300, showSelectedMarker: showSelectedMarker = true, ...props }) {
1398
+
1399
+ function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color, width: width = 300, showSelectedMarker: showSelectedMarker = true, listBoxRef: listBoxRef, ...props }) {
1197
1400
  const internalState = (0, $8zHUo$reactstately.useListState)({
1198
1401
  ...props,
1199
1402
  children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props)
1200
1403
  });
1201
1404
  const listRef = $8zHUo$react.useRef(null);
1202
1405
  const listState = state || internalState;
1203
- const { listBoxProps: listBoxProps, labelProps: labelProps } = (0, $8zHUo$reactaria.useListBox)(props, listState, listRef);
1406
+ const { listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useListBox)(props, listState, listRef);
1204
1407
  const options = [
1205
1408
  ...listState.collection
1206
1409
  ];
@@ -1221,7 +1424,7 @@ function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color,
1221
1424
  stack: true,
1222
1425
  gap: "none",
1223
1426
  className: "p-list-box-wrapper",
1224
- ref: listRef,
1427
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(listRef, listBoxRef),
1225
1428
  "data-radius": "lg",
1226
1429
  ...listBoxProps,
1227
1430
  children: [
@@ -1441,38 +1644,8 @@ $cfadb0728cf907ff$export$3288d34c523a1192.displayName = "Tag";
1441
1644
 
1442
1645
 
1443
1646
 
1444
- function $0f347092d3465402$export$5b6b19405a83ff9d({ state: state, children: children, ...props }) {
1445
- const popoverRef = $8zHUo$react.useRef(null);
1446
- const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1447
- const { popoverProps: popoverProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.usePopover)({
1448
- ...props,
1449
- popoverRef: popoverRef
1450
- }, state);
1451
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $8zHUo$reactaria.Overlay), {
1452
- children: [
1453
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1454
- ...underlayProps,
1455
- className: "underlay"
1456
- }),
1457
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1458
- "data-color": theme?.color,
1459
- "data-radius": theme?.radius,
1460
- ...popoverProps,
1461
- ref: popoverRef,
1462
- className: "p-popover",
1463
- children: children
1464
- })
1465
- ]
1466
- });
1467
- }
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
1647
 
1475
- function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode: selectionMode = "single", appearance: appearance = "outline", append: append, prepend: prepend, renderValue: renderValue, color: color = "gray", error: error, description: description, size: size = "sm", radius: radius, listBoxColor: listBoxColor, className: className, value: value, defaultValue: defaultValue, onChange: onChange, ...props }) {
1648
+ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode: selectionMode = "single", appearance: appearance = "outline", renderValue: renderValue, color: color = "gray", error: error, description: description, size: size = "sm", radius: radius, listBoxColor: listBoxColor, className: className, value: value, defaultValue: defaultValue, onChange: onChange, ...props }) {
1476
1649
  const isMultiple = selectionMode === "multiple";
1477
1650
  function getValue(value) {
1478
1651
  if (!value) return null;
@@ -1532,7 +1705,6 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1532
1705
  children: item?.textValue
1533
1706
  }, item?.key))
1534
1707
  });
1535
- console.log(selectedItems);
1536
1708
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1537
1709
  variant: "default",
1538
1710
  color: color === "gray" ? "black" : color,
@@ -1564,7 +1736,7 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1564
1736
  }),
1565
1737
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1566
1738
  "data-radius": radius ?? theme?.radius ?? "lg",
1567
- gap: "2xs",
1739
+ gap: "3xs",
1568
1740
  stack: true,
1569
1741
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", className, space.compactItemWrapperAdjust),
1570
1742
  "data-size": size,
@@ -1590,6 +1762,16 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1590
1762
  size: 18
1591
1763
  })
1592
1764
  ]
1765
+ }),
1766
+ error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1767
+ children: error
1768
+ }),
1769
+ description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1770
+ as: "div",
1771
+ variant: "light",
1772
+ color: "gray",
1773
+ size: "sm",
1774
+ children: description
1593
1775
  })
1594
1776
  ]
1595
1777
  }),
@@ -1628,18 +1810,23 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1628
1810
 
1629
1811
 
1630
1812
 
1631
- const $eb05b0a9c6033e00$export$d9781c7894a82487 = /*#__PURE__*/ $8zHUo$react.forwardRef((props, ref)=>{
1813
+
1814
+ function $5a757815ed1b91e3$var$createCalendar() {
1815
+ return new (0, $8zHUo$internationalizeddate.GregorianCalendar)();
1816
+ }
1817
+ const $5a757815ed1b91e3$export$d9781c7894a82487 = /*#__PURE__*/ $8zHUo$react.forwardRef((props, ref)=>{
1632
1818
  const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
1633
1819
  const state = (0, $8zHUo$reactstately.useDateFieldState)({
1634
1820
  ...props,
1635
1821
  locale: locale,
1636
- createCalendar: $8zHUo$internationalizeddate.createCalendar
1822
+ createCalendar: $5a757815ed1b91e3$var$createCalendar
1637
1823
  });
1638
1824
  const fieldRef = $8zHUo$react.useRef(null);
1639
1825
  const { fieldProps: fieldProps } = (0, $8zHUo$reactaria.useDateField)(props, state, fieldRef);
1640
1826
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1827
+ gap: "none",
1641
1828
  style: {
1642
- padding: 4,
1829
+ padding: "4px 0px",
1643
1830
  flex: 1
1644
1831
  },
1645
1832
  stretchY: true,
@@ -1647,14 +1834,14 @@ const $eb05b0a9c6033e00$export$d9781c7894a82487 = /*#__PURE__*/ $8zHUo$react.for
1647
1834
  inline: true,
1648
1835
  ...fieldProps,
1649
1836
  children: state.segments.map((segment, i)=>{
1650
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($eb05b0a9c6033e00$var$DateSegment, {
1837
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($5a757815ed1b91e3$var$DateSegment, {
1651
1838
  segment: segment,
1652
1839
  state: state
1653
1840
  }, i);
1654
1841
  })
1655
1842
  });
1656
1843
  });
1657
- function $eb05b0a9c6033e00$var$DateSegment({ segment: segment, state: state }) {
1844
+ function $5a757815ed1b91e3$var$DateSegment({ segment: segment, state: state }) {
1658
1845
  const ref = $8zHUo$react.useRef(null);
1659
1846
  const { segmentProps: segmentProps } = (0, $8zHUo$reactaria.useDateSegment)(segment, state, ref);
1660
1847
  const segmentMaxValue = segment.maxValue ?? 0;
@@ -1664,6 +1851,7 @@ function $eb05b0a9c6033e00$var$DateSegment({ segment: segment, state: state }) {
1664
1851
  justify: "center",
1665
1852
  ref: ref,
1666
1853
  "data-placeholder": segment.isPlaceholder,
1854
+ "data-separator": segment.text === "/",
1667
1855
  style: {
1668
1856
  minWidth: segmentMaxValue.toString().length + "ch",
1669
1857
  color: segment.text == "/" ? "var(--color-6)" : "var(--color-12)"
@@ -1681,7 +1869,6 @@ function $eb05b0a9c6033e00$var$DateSegment({ segment: segment, state: state }) {
1681
1869
  height: segment.isPlaceholder ? "" : 0,
1682
1870
  pointerEvents: "none",
1683
1871
  visibility: segment.isPlaceholder ? undefined : "hidden",
1684
- fontStyle: "italic",
1685
1872
  position: segment.isPlaceholder ? undefined : "absolute"
1686
1873
  },
1687
1874
  children: segment.placeholder
@@ -1690,7 +1877,7 @@ function $eb05b0a9c6033e00$var$DateSegment({ segment: segment, state: state }) {
1690
1877
  ]
1691
1878
  });
1692
1879
  }
1693
- $eb05b0a9c6033e00$export$d9781c7894a82487.displayName = "DateField";
1880
+ $5a757815ed1b91e3$export$d9781c7894a82487.displayName = "DateField";
1694
1881
 
1695
1882
 
1696
1883
 
@@ -1721,7 +1908,7 @@ function $9bce4a3d5b18599c$export$b4085f3d3ede4716(array, keys) {
1721
1908
  }
1722
1909
 
1723
1910
 
1724
- const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.forwardRef(({ numberOfMonths: numberOfMonths = 1, color: color, ...props }, ref)=>{
1911
+ const $284d30e280d297d3$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.forwardRef(({ numberOfMonths: numberOfMonths = 1, color: color, ...props }, ref)=>{
1725
1912
  const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
1726
1913
  const state = (0, $8zHUo$reactstately.useCalendarState)({
1727
1914
  ...props,
@@ -1733,12 +1920,12 @@ const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1733
1920
  });
1734
1921
  const { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, title: title } = (0, $8zHUo$reactaria.useCalendar)(props, state);
1735
1922
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1736
- color: color,
1923
+ "data-color": color,
1737
1924
  inline: true,
1738
1925
  gap: "xs",
1739
1926
  direction: "column",
1740
1927
  ref: ref,
1741
- className: "p-calendar",
1928
+ className: "p-calendar-wrapper",
1742
1929
  ...calendarProps,
1743
1930
  children: [
1744
1931
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
@@ -1747,9 +1934,9 @@ const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1747
1934
  className: "header",
1748
1935
  children: [
1749
1936
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
1750
- variant: "ghost",
1751
- radius: "md",
1752
- size: "xs",
1937
+ variant: "outline",
1938
+ radius: "full",
1939
+ size: "sm",
1753
1940
  color: "gray",
1754
1941
  ...prevButtonProps,
1755
1942
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiChevronLeft), {
@@ -1757,16 +1944,16 @@ const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1757
1944
  })
1758
1945
  }),
1759
1946
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1760
- color: "gray",
1947
+ color: "black",
1761
1948
  size: "sm",
1762
- weight: "medium",
1949
+ weight: "regular",
1763
1950
  as: "h2",
1764
1951
  children: title
1765
1952
  }),
1766
1953
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
1767
- variant: "ghost",
1768
- radius: "md",
1769
- size: "xs",
1954
+ variant: "outline",
1955
+ radius: "full",
1956
+ size: "sm",
1770
1957
  color: "gray",
1771
1958
  ...nextButtonProps,
1772
1959
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiChevronRight), {
@@ -1778,7 +1965,7 @@ const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1778
1965
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1779
1966
  gap: "xl",
1780
1967
  children: (0, $9bce4a3d5b18599c$export$d02631cccf789723)(1, numberOfMonths).map((n)=>{
1781
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($7f850fc45f6bb29f$var$CalendarGrid, {
1968
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($284d30e280d297d3$var$CalendarGrid, {
1782
1969
  color: color,
1783
1970
  state: state,
1784
1971
  offset: {
@@ -1790,7 +1977,7 @@ const $7f850fc45f6bb29f$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1790
1977
  ]
1791
1978
  });
1792
1979
  });
1793
- function $7f850fc45f6bb29f$var$CalendarGrid({ state: state, offset: offset = {}, color: color, ...props }) {
1980
+ function $284d30e280d297d3$var$CalendarGrid({ state: state, offset: offset = {}, color: color, ...props }) {
1794
1981
  const { locale: locale } = (0, $8zHUo$reactaria.useLocale)();
1795
1982
  const startDate = state.visibleRange.start.add(offset);
1796
1983
  const endDate = (0, $8zHUo$internationalizeddate.endOfMonth)(startDate);
@@ -1811,8 +1998,8 @@ function $7f850fc45f6bb29f$var$CalendarGrid({ state: state, offset: offset = {},
1811
1998
  className: "p-date-cell",
1812
1999
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1813
2000
  size: "sm",
1814
- variant: "lighter",
1815
- weight: "medium",
2001
+ variant: "light",
2002
+ weight: "regular",
1816
2003
  children: day
1817
2004
  })
1818
2005
  })
@@ -1823,7 +2010,7 @@ function $7f850fc45f6bb29f$var$CalendarGrid({ state: state, offset: offset = {},
1823
2010
  children: [
1824
2011
  ...new Array(weeksInMonth).keys()
1825
2012
  ].map((weekIndex)=>/*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("tr", {
1826
- children: state.getDatesInWeek(weekIndex, startDate).map((date, index)=>date ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($7f850fc45f6bb29f$var$CalendarCell, {
2013
+ children: state.getDatesInWeek(weekIndex, startDate).map((date, index)=>date ? /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($284d30e280d297d3$var$CalendarCell, {
1827
2014
  color: color,
1828
2015
  state: state,
1829
2016
  date: date,
@@ -1834,7 +2021,7 @@ function $7f850fc45f6bb29f$var$CalendarGrid({ state: state, offset: offset = {},
1834
2021
  ]
1835
2022
  });
1836
2023
  }
1837
- function $7f850fc45f6bb29f$var$CalendarCell({ state: state, currentMonth: currentMonth, color: color, ...props }) {
2024
+ function $284d30e280d297d3$var$CalendarCell({ state: state, currentMonth: currentMonth, color: color, ...props }) {
1838
2025
  const ref = $8zHUo$react.useRef(null);
1839
2026
  const { cellProps: cellProps, buttonProps: buttonProps, isSelected: isSelected, isDisabled: isDisabled, isUnavailable: isUnavailable, formattedDate: formattedDate } = (0, $8zHUo$reactaria.useCalendarCell)(props, state, ref);
1840
2027
  const { focusProps: focusProps, isFocusVisible: isFocusVisible, isFocused: isFocused } = (0, $8zHUo$reactaria.useFocusRing)();
@@ -1856,7 +2043,7 @@ function $7f850fc45f6bb29f$var$CalendarCell({ state: state, currentMonth: curren
1856
2043
  })
1857
2044
  });
1858
2045
  }
1859
- $7f850fc45f6bb29f$export$e1aef45b828286de.displayName = "Calendar";
2046
+ $284d30e280d297d3$export$e1aef45b828286de.displayName = "Calendar";
1860
2047
 
1861
2048
 
1862
2049
 
@@ -1867,45 +2054,30 @@ $7f850fc45f6bb29f$export$e1aef45b828286de.displayName = "Calendar";
1867
2054
 
1868
2055
 
1869
2056
 
1870
- function $965664701ecc5d2a$export$85930906f541ddb8(date) {
1871
- return new (0, $8zHUo$internationalizeddate.CalendarDate)(date.getFullYear(), date.getMonth() + 1, date.getDate());
1872
- }
1873
2057
 
1874
2058
 
1875
2059
 
1876
-
1877
- const $64d5f0f4b10da15c$export$5109c6dd95d8fb00 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ appearance: appearance = "filled", size: size = "md", color: color, shape: shape, numberOfMonths: numberOfMonths, value: value, onChange: onChange, defaultValue: defaultValue, dropdownIcon: dropdownIcon = /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiOutlineCalendar), {
2060
+ const $e0a58c83d4c36e4e$export$7edc06cf1783b30f = /*#__PURE__*/ $8zHUo$react.forwardRef(({ appearance: appearance = "outline", size: size = "md", color: color, numberOfMonths: numberOfMonths, radius: radius, dropdownIcon: dropdownIcon = /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiOutlineCalendar), {
1878
2061
  size: 16
1879
- }), ...props }, ref)=>{
2062
+ }), value: value, defaultValue: defaultValue, onChange: onChange, ...props }, ref)=>{
1880
2063
  const space = (0, $eae337549f49a5a2$export$450c36e0b0e62ccd)();
1881
- function _onChange(date) {
1882
- onChange?.(new Date(date.year, date.month, date.day), date);
2064
+ function proxyOnChange(date) {
2065
+ onChange?.(date.toString(), date);
1883
2066
  }
1884
- // convert Date to DateValue
1885
- const proxyDateValues = $8zHUo$react.useMemo(()=>{
1886
- return {
1887
- value: value ? (0, $965664701ecc5d2a$export$85930906f541ddb8)(value) : undefined,
1888
- defaultValue: defaultValue ? (0, $965664701ecc5d2a$export$85930906f541ddb8)(defaultValue) : undefined
1889
- };
1890
- }, [
1891
- value?.toString(),
1892
- defaultValue?.toString()
1893
- ]);
1894
- const newPropsWithProxies = {
2067
+ const newProps = {
1895
2068
  ...props,
1896
- onChange: onChange ? _onChange : undefined,
1897
- value: proxyDateValues.value,
1898
- defaultValue: proxyDateValues.defaultValue
2069
+ value: value ? (0, $8zHUo$internationalizeddate.parseDate)(value) : undefined,
2070
+ defaultValue: defaultValue ? (0, $8zHUo$internationalizeddate.parseDate)(defaultValue) : undefined,
2071
+ onChange: proxyOnChange
1899
2072
  };
1900
- const state = (0, $8zHUo$reactstately.useDatePickerState)(newPropsWithProxies);
2073
+ const state = (0, $8zHUo$reactstately.useDatePickerState)(newProps);
1901
2074
  const pickerRef = $8zHUo$react.useRef(null);
1902
- const { groupProps: groupProps, calendarProps: calendarProps, fieldProps: fieldProps, buttonProps: buttonProps, errorMessageProps: errorMessageProps, labelProps: labelProps } = (0, $8zHUo$reactaria.useDatePicker)(newPropsWithProxies, state, pickerRef);
2075
+ const { groupProps: groupProps, calendarProps: calendarProps, fieldProps: fieldProps, buttonProps: buttonProps, errorMessageProps: errorMessageProps, labelProps: labelProps } = (0, $8zHUo$reactaria.useDatePicker)(newProps, state, pickerRef);
2076
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1903
2077
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
2078
+ "data-radius": radius ?? theme?.radius ?? "lg",
1904
2079
  "data-size": size,
1905
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)({
1906
- [space.compactItemWrapperAdjust]: true,
1907
- "p-input-group": true
1908
- }),
2080
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", space.compactItemWrapperAdjust),
1909
2081
  stretchX: true,
1910
2082
  stack: true,
1911
2083
  gap: "xs",
@@ -1922,11 +2094,7 @@ const $64d5f0f4b10da15c$export$5109c6dd95d8fb00 = /*#__PURE__*/ $8zHUo$react.for
1922
2094
  stack: true,
1923
2095
  children: [
1924
2096
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1925
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)({
1926
- "date-picker-trigger": true,
1927
- "p-input": true,
1928
- ...space.classNames
1929
- }),
2097
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-control", "date-picker-trigger", space.classNames),
1930
2098
  ref: pickerRef,
1931
2099
  justify: "space-between",
1932
2100
  align: "center",
@@ -1934,14 +2102,14 @@ const $64d5f0f4b10da15c$export$5109c6dd95d8fb00 = /*#__PURE__*/ $8zHUo$react.for
1934
2102
  "data-color": color,
1935
2103
  ...groupProps,
1936
2104
  children: [
1937
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $eb05b0a9c6033e00$export$d9781c7894a82487), {
2105
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a757815ed1b91e3$export$d9781c7894a82487), {
1938
2106
  appearance: appearance,
1939
2107
  size: size,
1940
2108
  ...fieldProps
1941
2109
  }),
1942
2110
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
1943
2111
  size: "sm",
1944
- variant: "ghost",
2112
+ variant: "light",
1945
2113
  color: color,
1946
2114
  ...buttonProps,
1947
2115
  children: dropdownIcon
@@ -1953,10 +2121,16 @@ const $64d5f0f4b10da15c$export$5109c6dd95d8fb00 = /*#__PURE__*/ $8zHUo$react.for
1953
2121
  state: state,
1954
2122
  triggerRef: pickerRef,
1955
2123
  placement: "bottom start",
1956
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $7f850fc45f6bb29f$export$e1aef45b828286de), {
1957
- color: color,
1958
- ...calendarProps,
1959
- numberOfMonths: numberOfMonths
2124
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
2125
+ style: {
2126
+ maxHeight: "auto"
2127
+ },
2128
+ "data-radius": radius ?? theme?.radius ?? "lg",
2129
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $284d30e280d297d3$export$e1aef45b828286de), {
2130
+ color: color,
2131
+ ...calendarProps,
2132
+ numberOfMonths: numberOfMonths
2133
+ })
1960
2134
  })
1961
2135
  })
1962
2136
  ]
@@ -1968,7 +2142,7 @@ const $64d5f0f4b10da15c$export$5109c6dd95d8fb00 = /*#__PURE__*/ $8zHUo$react.for
1968
2142
  ]
1969
2143
  });
1970
2144
  });
1971
- $64d5f0f4b10da15c$export$5109c6dd95d8fb00.displayName = "DatePicker";
2145
+ $e0a58c83d4c36e4e$export$7edc06cf1783b30f.displayName = "DateInput";
1972
2146
 
1973
2147
 
1974
2148
 
@@ -2580,8 +2754,9 @@ function $9ff025417b0a683c$export$e6a97ba2cae5bb94({ items: items, render: rende
2580
2754
 
2581
2755
  function $1278141024f0bc4d$export$c6fdb837b070b4ff({ children: children, state: state, ...props }) {
2582
2756
  const modalRef = $8zHUo$react.useRef(null);
2583
- const { modalProps: modalProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.useModalOverlay)(props, state, modalRef);
2584
- if (!state.isOpen) return null;
2757
+ const { modalProps: modalProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.useModalOverlay)(props, // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2758
+ state, modalRef);
2759
+ if (!state?.isOpen) return null;
2585
2760
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.Overlay), {
2586
2761
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2587
2762
  className: "p-modal-underlay",
@@ -2628,7 +2803,7 @@ function $1278141024f0bc4d$var$Dialog({ width: width = 400, title: title, onCanc
2628
2803
  title && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
2629
2804
  weight: "medium",
2630
2805
  size: "md",
2631
- color: "gray",
2806
+ color: "black",
2632
2807
  ...titleProps,
2633
2808
  as: "div",
2634
2809
  children: title