@parrot-co/parrot-ui 0.0.89 → 0.0.91

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,10 +25,13 @@ $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);
33
+ $parcel$export(module.exports, "Option", () => $dcfc4542aa84c062$export$36d18380658d5d20);
34
+ $parcel$export(module.exports, "Section", () => $dcfc4542aa84c062$export$6e2c8f0811a474ce);
32
35
  $parcel$export(module.exports, "DateInput", () => $e0a58c83d4c36e4e$export$7edc06cf1783b30f);
33
36
  $parcel$export(module.exports, "Calendar", () => $284d30e280d297d3$export$e1aef45b828286de);
34
37
  $parcel$export(module.exports, "Avatar", () => $2fdd5844efb4cca1$export$e2255cf6045e8d47);
@@ -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,
@@ -620,6 +627,7 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
620
627
  "data-size": size,
621
628
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-button", space.classNames),
622
629
  ref: (0, $62f1c614c0962470$export$c9058316764c140e)(ref, buttonRef),
630
+ form: otherProps.form,
623
631
  ...buttonProps,
624
632
  children: [
625
633
  prepend,
@@ -989,6 +997,212 @@ $f88e10ca2ba68239$export$48513f6b9f8ce62d.displayName = "checkbox";
989
997
 
990
998
 
991
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
+
992
1206
  const $e158c5cf7e190200$export$b118023277d4a5c3 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).createContext(null);
993
1207
  const $e158c5cf7e190200$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
994
1208
  const state = (0, ($parcel$interopDefault($8zHUo$react))).useContext($e158c5cf7e190200$export$b118023277d4a5c3);
@@ -1143,6 +1357,7 @@ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderO
1143
1357
  const label = item?.[labelKey ?? "label"];
1144
1358
  const value = item?.[valueKey ?? "id"];
1145
1359
  const sectionChildren = item?.[sectionKey ?? "children"] ?? [];
1360
+ console.log(label, "label");
1146
1361
  if (item?.[sectionKey]) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$6e2c8f0811a474ce), {
1147
1362
  items: sectionChildren,
1148
1363
  title: getSectionLabel?.(item),
@@ -1180,14 +1395,15 @@ function $71edc9998a9f3b41$export$961f16f221737ce2() {
1180
1395
 
1181
1396
 
1182
1397
 
1183
- 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 }) {
1184
1400
  const internalState = (0, $8zHUo$reactstately.useListState)({
1185
1401
  ...props,
1186
1402
  children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props)
1187
1403
  });
1188
1404
  const listRef = $8zHUo$react.useRef(null);
1189
1405
  const listState = state || internalState;
1190
- const { listBoxProps: listBoxProps, labelProps: labelProps } = (0, $8zHUo$reactaria.useListBox)(props, listState, listRef);
1406
+ const { listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useListBox)(props, listState, listRef);
1191
1407
  const options = [
1192
1408
  ...listState.collection
1193
1409
  ];
@@ -1208,7 +1424,7 @@ function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color,
1208
1424
  stack: true,
1209
1425
  gap: "none",
1210
1426
  className: "p-list-box-wrapper",
1211
- ref: listRef,
1427
+ ref: (0, $62f1c614c0962470$export$c9058316764c140e)(listRef, listBoxRef),
1212
1428
  "data-radius": "lg",
1213
1429
  ...listBoxProps,
1214
1430
  children: [
@@ -1428,38 +1644,8 @@ $cfadb0728cf907ff$export$3288d34c523a1192.displayName = "Tag";
1428
1644
 
1429
1645
 
1430
1646
 
1431
- function $0f347092d3465402$export$5b6b19405a83ff9d({ state: state, children: children, ...props }) {
1432
- const popoverRef = $8zHUo$react.useRef(null);
1433
- const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1434
- const { popoverProps: popoverProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.usePopover)({
1435
- ...props,
1436
- popoverRef: popoverRef
1437
- }, state);
1438
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $8zHUo$reactaria.Overlay), {
1439
- children: [
1440
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1441
- ...underlayProps,
1442
- className: "underlay"
1443
- }),
1444
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1445
- "data-color": theme?.color,
1446
- "data-radius": theme?.radius,
1447
- ...popoverProps,
1448
- ref: popoverRef,
1449
- className: "p-popover",
1450
- children: children
1451
- })
1452
- ]
1453
- });
1454
- }
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
1647
 
1462
- 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 }) {
1463
1649
  const isMultiple = selectionMode === "multiple";
1464
1650
  function getValue(value) {
1465
1651
  if (!value) return null;
@@ -1519,7 +1705,6 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1519
1705
  children: item?.textValue
1520
1706
  }, item?.key))
1521
1707
  });
1522
- console.log(selectedItems);
1523
1708
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1524
1709
  variant: "default",
1525
1710
  color: color === "gray" ? "black" : color,
@@ -1551,7 +1736,7 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1551
1736
  }),
1552
1737
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1553
1738
  "data-radius": radius ?? theme?.radius ?? "lg",
1554
- gap: "2xs",
1739
+ gap: "3xs",
1555
1740
  stack: true,
1556
1741
  className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-input-group", className, space.compactItemWrapperAdjust),
1557
1742
  "data-size": size,
@@ -1577,6 +1762,16 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1577
1762
  size: 18
1578
1763
  })
1579
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
1580
1775
  })
1581
1776
  ]
1582
1777
  }),
@@ -1615,6 +1810,7 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1615
1810
 
1616
1811
 
1617
1812
 
1813
+
1618
1814
  function $5a757815ed1b91e3$var$createCalendar() {
1619
1815
  return new (0, $8zHUo$internationalizeddate.GregorianCalendar)();
1620
1816
  }
@@ -1724,7 +1920,7 @@ const $284d30e280d297d3$export$e1aef45b828286de = /*#__PURE__*/ $8zHUo$react.for
1724
1920
  });
1725
1921
  const { calendarProps: calendarProps, prevButtonProps: prevButtonProps, nextButtonProps: nextButtonProps, title: title } = (0, $8zHUo$reactaria.useCalendar)(props, state);
1726
1922
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1727
- color: color,
1923
+ "data-color": color,
1728
1924
  inline: true,
1729
1925
  gap: "xs",
1730
1926
  direction: "column",
@@ -2558,8 +2754,9 @@ function $9ff025417b0a683c$export$e6a97ba2cae5bb94({ items: items, render: rende
2558
2754
 
2559
2755
  function $1278141024f0bc4d$export$c6fdb837b070b4ff({ children: children, state: state, ...props }) {
2560
2756
  const modalRef = $8zHUo$react.useRef(null);
2561
- const { modalProps: modalProps, underlayProps: underlayProps } = (0, $8zHUo$reactaria.useModalOverlay)(props, state, modalRef);
2562
- 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;
2563
2760
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.Overlay), {
2564
2761
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
2565
2762
  className: "p-modal-underlay",