@parrot-co/parrot-ui 0.0.91 → 0.0.93

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
@@ -26,6 +26,7 @@ $parcel$export(module.exports, "ButtonGroup", () => $7f70742e736041ff$export$69b
26
26
  $parcel$export(module.exports, "Checkbox", () => $f88e10ca2ba68239$export$48513f6b9f8ce62d);
27
27
  $parcel$export(module.exports, "CheckboxGroup", () => $0f8ef6f4acac1766$export$4aa08d5625cb8ead);
28
28
  $parcel$export(module.exports, "DropdownMenu", () => $3b903582a5253460$export$e44a253a59704894);
29
+ $parcel$export(module.exports, "ComboBox", () => $d67a8dc6cbdaa7ed$export$72b9695b8216309a);
29
30
  $parcel$export(module.exports, "Radio", () => $e158c5cf7e190200$export$d7b12c4107be0d61);
30
31
  $parcel$export(module.exports, "RadioGroup", () => $e158c5cf7e190200$export$a98f0dcb43a68a25);
31
32
  $parcel$export(module.exports, "RadioCard", () => $71fcf48f7e2e9427$export$f8afaea2e9656b91);
@@ -1029,6 +1030,8 @@ function $0f347092d3465402$export$5b6b19405a83ff9d({ state: state, children: chi
1029
1030
 
1030
1031
 
1031
1032
 
1033
+
1034
+
1032
1035
  const $724eace27ebf345b$var$DropdownContext = /*#__PURE__*/ $8zHUo$react.createContext(null);
1033
1036
  function $724eace27ebf345b$export$e44a253a59704894({ children: children, ...props }) {
1034
1037
  const triggerRef = $8zHUo$react.useRef(null);
@@ -1065,12 +1068,12 @@ function $724eace27ebf345b$export$e7eb525bc415b4b4({ asChild: asChild, children:
1065
1068
  children: children
1066
1069
  });
1067
1070
  }
1068
- function $724eace27ebf345b$export$d9b273488cd8ce6f(props) {
1071
+ function $724eace27ebf345b$export$d9b273488cd8ce6f({ placement: placement = "bottom start", offset: offset = 8, ...props }) {
1069
1072
  const ctx = $8zHUo$react.useContext($724eace27ebf345b$var$DropdownContext);
1070
1073
  if (!ctx?.triggerState.isOpen) return null;
1071
1074
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $0f347092d3465402$export$5b6b19405a83ff9d), {
1072
- placement: "bottom start",
1073
- offset: 8,
1075
+ placement: placement,
1076
+ offset: offset,
1074
1077
  state: ctx?.triggerState,
1075
1078
  triggerRef: ctx?.triggerRef,
1076
1079
  children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$MenuInner, {
@@ -1078,7 +1081,7 @@ function $724eace27ebf345b$export$d9b273488cd8ce6f(props) {
1078
1081
  })
1079
1082
  });
1080
1083
  }
1081
- function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: menuFooter, ...props }) {
1084
+ function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: menuFooter, className: className, color: color, maxHeight: maxHeight = 300, minWidth: minWidth = 200, maxWidth: maxWidth, ...props }) {
1082
1085
  const state = (0, $8zHUo$reactstately.useTreeState)(props);
1083
1086
  const ref = $8zHUo$react.useRef(null);
1084
1087
  const { menuProps: menuProps } = (0, $8zHUo$reactaria.useMenu)({
@@ -1099,9 +1102,14 @@ function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: m
1099
1102
  stack: true,
1100
1103
  ref: ref,
1101
1104
  ...menuProps,
1102
- "data-color": theme?.color ?? "violet",
1105
+ "data-color": color ?? theme?.color ?? "violet",
1103
1106
  "data-radius": theme?.radius ?? "lg",
1104
- className: "p-list-box-wrapper",
1107
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-list-box-wrapper", className),
1108
+ style: {
1109
+ minWidth: `max(200px, ${`${minWidth}`.replace("px", "")}px)`,
1110
+ maxWidth: `${`${maxWidth}`.replace("px", "")}px`,
1111
+ maxHeight: `${`${maxHeight}`.replace("px", "")}px`
1112
+ },
1105
1113
  children: [
1106
1114
  resolvedMenuHeader(),
1107
1115
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
@@ -1110,7 +1118,8 @@ function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: m
1110
1118
  ].map((item)=>{
1111
1119
  if (item.type === "section") return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($724eace27ebf345b$var$MenuSectionInner, {
1112
1120
  state: state,
1113
- section: item
1121
+ section: item,
1122
+ ...item.props
1114
1123
  }, item.key);
1115
1124
  return /*#__PURE__*/ (0, $8zHUo$react.createElement)($724eace27ebf345b$var$MenuItemInner, {
1116
1125
  ...item.props,
@@ -1126,24 +1135,59 @@ function $724eace27ebf345b$var$MenuInner({ menuHeader: menuHeader, menuFooter: m
1126
1135
  }
1127
1136
  function $724eace27ebf345b$var$MenuItemInner({ state: state, item: item, ...otherProps }) {
1128
1137
  const ref = $8zHUo$react.useRef(null);
1129
- const { menuItemProps: menuItemProps, isSelected: isSelected, isFocused: isFocused, isPressed: isPressed, isDisabled: isDisabled } = (0, $8zHUo$reactaria.useMenuItem)({
1138
+ const { menuItemProps: menuItemProps, isSelected: isSelected, isFocused: isFocused, isPressed: isPressed, isDisabled: isDisabled, descriptionProps: descriptionProps } = (0, $8zHUo$reactaria.useMenuItem)({
1130
1139
  key: item?.key
1131
1140
  }, state, ref);
1132
- const { className: className, style: style, isReadOnly: isReadOnly } = otherProps;
1133
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1141
+ const { className: className, style: style, isReadOnly: isReadOnly, icon: icon, color: color, description: description, label: label } = otherProps;
1142
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("li", {
1134
1143
  ref: ref,
1135
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option"),
1144
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-option p-menu-item"),
1136
1145
  "data-selected": isSelected,
1137
1146
  "data-focused": isFocused,
1138
1147
  "data-pressed": isPressed,
1139
1148
  "data-disabled": isDisabled,
1140
1149
  "data-readonly": isReadOnly,
1141
1150
  style: style,
1151
+ "data-color": color,
1142
1152
  ...menuItemProps,
1143
- children: item.rendered
1153
+ children: [
1154
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1155
+ align: "center",
1156
+ children: [
1157
+ icon && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1158
+ className: "p-list-option-icon-wrapper",
1159
+ children: /*#__PURE__*/ $8zHUo$react.isValidElement(icon) && /*#__PURE__*/ $8zHUo$react.cloneElement(icon, {
1160
+ className: "p-list-option-icon",
1161
+ size: 18,
1162
+ ...icon?.props
1163
+ })
1164
+ }),
1165
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1166
+ gap: "3xs",
1167
+ stack: true,
1168
+ children: [
1169
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1170
+ as: "div",
1171
+ color: "black",
1172
+ children: label ?? item.rendered
1173
+ }),
1174
+ description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1175
+ as: "div",
1176
+ lineHeight: "base",
1177
+ ...descriptionProps,
1178
+ children: description
1179
+ })
1180
+ ]
1181
+ })
1182
+ ]
1183
+ }),
1184
+ isSelected && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiCheck), {
1185
+ className: "selected-marker"
1186
+ })
1187
+ ]
1144
1188
  });
1145
1189
  }
1146
- function $724eace27ebf345b$var$MenuSectionInner({ state: state, section: section }) {
1190
+ function $724eace27ebf345b$var$MenuSectionInner({ state: state, section: section, className: className, style: style }) {
1147
1191
  const { itemProps: itemProps, headingProps: headingProps, groupProps: groupProps } = (0, $8zHUo$reactaria.useMenuSection)({
1148
1192
  heading: section?.rendered,
1149
1193
  "aria-label": section?.["aria-label"]
@@ -1155,30 +1199,41 @@ function $724eace27ebf345b$var$MenuSectionInner({ state: state, section: section
1155
1199
  if (state?.collection.getChildren) return [
1156
1200
  ...state.collection.getChildren(section.key)
1157
1201
  ];
1158
- return [];
1202
+ return [
1203
+ ...section.childNodes
1204
+ ];
1159
1205
  }
1160
1206
  return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1161
- className: "p-list-section",
1207
+ stack: true,
1208
+ as: "ul",
1209
+ style: style,
1210
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)(className, "p-list-section"),
1162
1211
  children: [
1163
1212
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1164
1213
  className: "p-list-separator",
1165
1214
  ...separatorProps
1166
1215
  }),
1167
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("li", {
1216
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("li", {
1168
1217
  ...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
- })
1218
+ children: [
1219
+ section?.rendered && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1220
+ as: "h4",
1221
+ className: "p-list-section-header",
1222
+ ...headingProps,
1223
+ children: section?.rendered
1224
+ }),
1225
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("ul", {
1226
+ ...groupProps,
1227
+ children: getChildren().map((item)=>{
1228
+ return /*#__PURE__*/ (0, $8zHUo$react.createElement)($724eace27ebf345b$var$MenuItemInner, {
1229
+ ...item.props,
1230
+ state: state,
1231
+ item: item,
1232
+ key: item.key
1233
+ });
1234
+ })
1235
+ })
1236
+ ]
1182
1237
  })
1183
1238
  ]
1184
1239
  });
@@ -1187,92 +1242,13 @@ const $724eace27ebf345b$export$2ce376c2cc3355c8 = (0, $8zHUo$reactstately.Item);
1187
1242
  const $724eace27ebf345b$export$4b1545b4f2016d26 = (0, $8zHUo$reactstately.Section);
1188
1243
 
1189
1244
 
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
-
1206
- const $e158c5cf7e190200$export$b118023277d4a5c3 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).createContext(null);
1207
- const $e158c5cf7e190200$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
1208
- const state = (0, ($parcel$interopDefault($8zHUo$react))).useContext($e158c5cf7e190200$export$b118023277d4a5c3);
1209
- const { size: size = "sm", className: className, style: style, appearance: appearance, color: color, ...otherProps } = props;
1210
- if (!state) throw new Error("Radio must be used within a RadioGroup");
1211
- const inputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
1212
- const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(otherProps, state, inputRef);
1213
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
1214
- style: style,
1215
- className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1216
- className,
1217
- "p-radio"
1218
- ]),
1219
- ref: ref,
1220
- children: [
1221
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
1222
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
1223
- ...inputProps,
1224
- ref: inputRef
1225
- })
1226
- }),
1227
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1228
- "data-color": color,
1229
- className: "p-fake-radio",
1230
- "data-appearance": appearance,
1231
- "data-checked": inputProps.checked,
1232
- "data-size": size
1233
- }),
1234
- props.children
1235
- ]
1236
- });
1237
- });
1238
- const $e158c5cf7e190200$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ stack: stack = true, direction: direction, gap: gap = "xs", rowGap: rowGap, align: align, justify: justify, wrap: wrap, columnGap: columnGap, ...props }, ref)=>{
1239
- const { children: children, label: label, description: description, errorMessage: errorMessage } = props;
1240
- const state = (0, $8zHUo$reactstately.useRadioGroupState)(props);
1241
- const { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $8zHUo$reactaria.useRadioGroup)(props, state);
1242
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1243
- ref: ref,
1244
- stack: stack,
1245
- gap: gap,
1246
- direction: direction,
1247
- rowGap: rowGap,
1248
- columnGap: columnGap,
1249
- align: align,
1250
- justify: justify,
1251
- wrap: wrap,
1252
- ...radioGroupProps,
1253
- children: [
1254
- label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
1255
- ...labelProps,
1256
- children: label
1257
- }),
1258
- description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1259
- variant: "light",
1260
- ...descriptionProps,
1261
- children: description
1262
- }),
1263
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($e158c5cf7e190200$export$b118023277d4a5c3.Provider, {
1264
- value: state,
1265
- children: children
1266
- }),
1267
- errorMessage && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1268
- ...errorMessageProps,
1269
- children: errorMessage
1270
- })
1271
- ]
1272
- });
1273
- });
1274
- $e158c5cf7e190200$export$a98f0dcb43a68a25.displayName = "RadioGroup";
1275
- $e158c5cf7e190200$export$d7b12c4107be0d61.displayName = "Radio";
1245
+ const $3b903582a5253460$export$e44a253a59704894 = {
1246
+ Root: (0, $724eace27ebf345b$export$e44a253a59704894),
1247
+ Menu: $724eace27ebf345b$export$d9b273488cd8ce6f,
1248
+ Trigger: (0, $724eace27ebf345b$export$e7eb525bc415b4b4),
1249
+ Item: (0, $724eace27ebf345b$export$2ce376c2cc3355c8),
1250
+ Section: (0, $724eace27ebf345b$export$4b1545b4f2016d26)
1251
+ };
1276
1252
 
1277
1253
 
1278
1254
 
@@ -1281,59 +1257,6 @@ $e158c5cf7e190200$export$d7b12c4107be0d61.displayName = "Radio";
1281
1257
 
1282
1258
 
1283
1259
 
1284
- const $71fcf48f7e2e9427$export$f8afaea2e9656b91 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ title: title, description: description, children: children, appearance: appearance, showIndicator: showIndicator = true, color: color, ...props }, ref)=>{
1285
- const state = $8zHUo$react.useContext((0, $e158c5cf7e190200$export$b118023277d4a5c3));
1286
- if (!state) throw new Error("RadioCard must be used within a RadioGroup");
1287
- const inputRef = $8zHUo$react.useRef(null);
1288
- const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(props, state, inputRef);
1289
- return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
1290
- "data-radius": "lg",
1291
- className: "p-radio-card",
1292
- "data-color": color,
1293
- "data-appearance": appearance,
1294
- "data-checked": inputProps.checked,
1295
- ref: ref,
1296
- children: [
1297
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
1298
- children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
1299
- ...inputProps,
1300
- ref: inputRef
1301
- })
1302
- }),
1303
- showIndicator && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1304
- className: "p-fake-radio",
1305
- "data-size": "sm",
1306
- "data-checked": inputProps.checked
1307
- }),
1308
- /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1309
- stack: true,
1310
- gap: "xs",
1311
- children: [
1312
- (title || description) && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1313
- gap: "4xs",
1314
- stack: true,
1315
- children: [
1316
- title && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1317
- color: color,
1318
- size: "sm",
1319
- children: title
1320
- }),
1321
- description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1322
- color: color,
1323
- lineHeight: "tall",
1324
- size: "xs",
1325
- variant: "lighter",
1326
- children: description
1327
- })
1328
- ]
1329
- }),
1330
- children
1331
- ]
1332
- })
1333
- ]
1334
- });
1335
- });
1336
- $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
1337
1260
 
1338
1261
 
1339
1262
 
@@ -1357,7 +1280,6 @@ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderO
1357
1280
  const label = item?.[labelKey ?? "label"];
1358
1281
  const value = item?.[valueKey ?? "id"];
1359
1282
  const sectionChildren = item?.[sectionKey ?? "children"] ?? [];
1360
- console.log(label, "label");
1361
1283
  if (item?.[sectionKey]) return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$6e2c8f0811a474ce), {
1362
1284
  items: sectionChildren,
1363
1285
  title: getSectionLabel?.(item),
@@ -1541,6 +1463,261 @@ const $dcfc4542aa84c062$export$6e2c8f0811a474ce = (0, $8zHUo$reactstately.Sectio
1541
1463
 
1542
1464
 
1543
1465
 
1466
+ const $d67a8dc6cbdaa7ed$export$acd2d351457d1d82 = ({ label: label, error: error, showDropdownButton: showDropdownButton = true, dropdownArrow: dropdownArrow = /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reacticonshi.HiSelector), {
1467
+ size: 18
1468
+ }), className: className, style: style, color: color = "gray", radius: radius, size: size = "md", appearance: appearance = "outline", listBoxColor: listBoxColor, append: append, prepend: prepend, isLoading: isLoading, ...props }, ref)=>{
1469
+ const theme = (0, $f2fd0cbe11b7f0dd$export$93d4e7f90805808f)();
1470
+ const { contains: contains } = (0, $8zHUo$reactaria.useFilter)({
1471
+ sensitivity: "base"
1472
+ });
1473
+ const state = (0, $8zHUo$reactstately.useComboBoxState)({
1474
+ ...props,
1475
+ children: (0, $fc43ab93aaa777d9$export$3d7d0414f6db67e7)(props),
1476
+ defaultFilter: contains
1477
+ });
1478
+ const inputRef = $8zHUo$react.useRef(null);
1479
+ const buttonRef = $8zHUo$react.useRef(null);
1480
+ const listBoxRef = $8zHUo$react.useRef(null);
1481
+ const popoverRef = $8zHUo$react.useRef(null);
1482
+ const wrapperRef = $8zHUo$react.useRef(null);
1483
+ const { inputProps: inputProps, buttonProps: buttonProps, listBoxProps: listBoxProps } = (0, $8zHUo$reactaria.useComboBox)({
1484
+ inputRef: inputRef,
1485
+ buttonRef: buttonRef,
1486
+ listBoxRef: listBoxRef,
1487
+ popoverRef: popoverRef,
1488
+ ...props
1489
+ }, state);
1490
+ function resolvedDropdownArrow() {
1491
+ if (typeof dropdownArrow === "function") return dropdownArrow({
1492
+ color: "gray",
1493
+ size: "md"
1494
+ });
1495
+ return dropdownArrow;
1496
+ }
1497
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1498
+ "data-color": color ?? theme?.color ?? "gray",
1499
+ "data-size": size,
1500
+ "data-radius": radius ?? theme?.radius ?? "lg",
1501
+ style: style,
1502
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)("p-combo-box p-input-group", className),
1503
+ ref: ref,
1504
+ stack: true,
1505
+ gap: "3xs",
1506
+ stretchX: true,
1507
+ children: [
1508
+ label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
1509
+ children: label
1510
+ }),
1511
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1512
+ position: "relative",
1513
+ gap: "3xs",
1514
+ ref: wrapperRef,
1515
+ align: "center",
1516
+ "data-appearance": appearance,
1517
+ className: "p-input-control p-combo-box-control",
1518
+ children: [
1519
+ prepend,
1520
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
1521
+ className: "p-combo-box-input p-text-input-el",
1522
+ onChange: (e)=>inputProps.onChange?.(e),
1523
+ ref: inputRef,
1524
+ "data-has-prepend": !!prepend,
1525
+ "data-size": "md",
1526
+ ...(0, $ff6fce0e059b3a1a$export$30a06c8d3562193f)(inputProps, [
1527
+ "size",
1528
+ "onChange"
1529
+ ])
1530
+ }),
1531
+ append,
1532
+ isLoading && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $a28e128499dd0b02$export$3b0d6d7590275603), {
1533
+ size: "xs"
1534
+ }),
1535
+ showDropdownButton && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $3af04cd154cf4de1$export$c25acd513dcc8062), {
1536
+ ...buttonProps,
1537
+ variant: "ghost",
1538
+ color: "gray",
1539
+ radius: "lg",
1540
+ className: "p-combo-box-button",
1541
+ ref: buttonRef,
1542
+ children: resolvedDropdownArrow()
1543
+ })
1544
+ ]
1545
+ }),
1546
+ error && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1547
+ children: error
1548
+ }),
1549
+ state.isOpen && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $0f347092d3465402$export$5b6b19405a83ff9d), {
1550
+ popoverRef: popoverRef,
1551
+ offset: 8,
1552
+ state: state,
1553
+ triggerRef: wrapperRef,
1554
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $dcfc4542aa84c062$export$41f133550aa26f48), {
1555
+ color: listBoxColor ?? theme?.color ?? "gray",
1556
+ width: wrapperRef.current?.getBoundingClientRect().width,
1557
+ listBoxRef: listBoxRef,
1558
+ state: state,
1559
+ ...listBoxProps
1560
+ })
1561
+ })
1562
+ ]
1563
+ });
1564
+ };
1565
+ $d67a8dc6cbdaa7ed$export$acd2d351457d1d82.displayName = "ComboBox";
1566
+ const $d67a8dc6cbdaa7ed$export$72b9695b8216309a = /*#__PURE__*/ $8zHUo$react.forwardRef($d67a8dc6cbdaa7ed$export$acd2d351457d1d82);
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+ const $e158c5cf7e190200$export$b118023277d4a5c3 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).createContext(null);
1581
+ const $e158c5cf7e190200$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef((props, ref)=>{
1582
+ const state = (0, ($parcel$interopDefault($8zHUo$react))).useContext($e158c5cf7e190200$export$b118023277d4a5c3);
1583
+ const { size: size = "sm", className: className, style: style, appearance: appearance, color: color, ...otherProps } = props;
1584
+ if (!state) throw new Error("Radio must be used within a RadioGroup");
1585
+ const inputRef = (0, ($parcel$interopDefault($8zHUo$react))).useRef(null);
1586
+ const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(otherProps, state, inputRef);
1587
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
1588
+ style: style,
1589
+ className: (0, $62f1c614c0962470$export$a274e22fb40f762e)([
1590
+ className,
1591
+ "p-radio"
1592
+ ]),
1593
+ ref: ref,
1594
+ children: [
1595
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
1596
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
1597
+ ...inputProps,
1598
+ ref: inputRef
1599
+ })
1600
+ }),
1601
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1602
+ "data-color": color,
1603
+ className: "p-fake-radio",
1604
+ "data-appearance": appearance,
1605
+ "data-checked": inputProps.checked,
1606
+ "data-size": size
1607
+ }),
1608
+ props.children
1609
+ ]
1610
+ });
1611
+ });
1612
+ const $e158c5cf7e190200$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, ($parcel$interopDefault($8zHUo$react))).forwardRef(({ stack: stack = true, direction: direction, gap: gap = "xs", rowGap: rowGap, align: align, justify: justify, wrap: wrap, columnGap: columnGap, ...props }, ref)=>{
1613
+ const { children: children, label: label, description: description, errorMessage: errorMessage } = props;
1614
+ const state = (0, $8zHUo$reactstately.useRadioGroupState)(props);
1615
+ const { radioGroupProps: radioGroupProps, labelProps: labelProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $8zHUo$reactaria.useRadioGroup)(props, state);
1616
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1617
+ ref: ref,
1618
+ stack: stack,
1619
+ gap: gap,
1620
+ direction: direction,
1621
+ rowGap: rowGap,
1622
+ columnGap: columnGap,
1623
+ align: align,
1624
+ justify: justify,
1625
+ wrap: wrap,
1626
+ ...radioGroupProps,
1627
+ children: [
1628
+ label && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5a5b41d120374960$export$2e2bcd8739ae039), {
1629
+ ...labelProps,
1630
+ children: label
1631
+ }),
1632
+ description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1633
+ variant: "light",
1634
+ ...descriptionProps,
1635
+ children: description
1636
+ }),
1637
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)($e158c5cf7e190200$export$b118023277d4a5c3.Provider, {
1638
+ value: state,
1639
+ children: children
1640
+ }),
1641
+ errorMessage && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $4b54f76a59afa8a5$export$2e2bcd8739ae039), {
1642
+ ...errorMessageProps,
1643
+ children: errorMessage
1644
+ })
1645
+ ]
1646
+ });
1647
+ });
1648
+ $e158c5cf7e190200$export$a98f0dcb43a68a25.displayName = "RadioGroup";
1649
+ $e158c5cf7e190200$export$d7b12c4107be0d61.displayName = "Radio";
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+ const $71fcf48f7e2e9427$export$f8afaea2e9656b91 = /*#__PURE__*/ $8zHUo$react.forwardRef(({ title: title, description: description, children: children, appearance: appearance, showIndicator: showIndicator = true, color: color, ...props }, ref)=>{
1659
+ const state = $8zHUo$react.useContext((0, $e158c5cf7e190200$export$b118023277d4a5c3));
1660
+ if (!state) throw new Error("RadioCard must be used within a RadioGroup");
1661
+ const inputRef = $8zHUo$react.useRef(null);
1662
+ const { inputProps: inputProps } = (0, $8zHUo$reactaria.useRadio)(props, state, inputRef);
1663
+ return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)("label", {
1664
+ "data-radius": "lg",
1665
+ className: "p-radio-card",
1666
+ "data-color": color,
1667
+ "data-appearance": appearance,
1668
+ "data-checked": inputProps.checked,
1669
+ ref: ref,
1670
+ children: [
1671
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.VisuallyHidden), {
1672
+ children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("input", {
1673
+ ...inputProps,
1674
+ ref: inputRef
1675
+ })
1676
+ }),
1677
+ showIndicator && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)("div", {
1678
+ className: "p-fake-radio",
1679
+ "data-size": "sm",
1680
+ "data-checked": inputProps.checked
1681
+ }),
1682
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1683
+ stack: true,
1684
+ gap: "xs",
1685
+ children: [
1686
+ (title || description) && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
1687
+ gap: "4xs",
1688
+ stack: true,
1689
+ children: [
1690
+ title && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1691
+ color: color,
1692
+ size: "sm",
1693
+ children: title
1694
+ }),
1695
+ description && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $88fa102d91bf323a$export$5f1af8db9871e1d6), {
1696
+ color: color,
1697
+ lineHeight: "tall",
1698
+ size: "xs",
1699
+ variant: "lighter",
1700
+ children: description
1701
+ })
1702
+ ]
1703
+ }),
1704
+ children
1705
+ ]
1706
+ })
1707
+ ]
1708
+ });
1709
+ });
1710
+ $71fcf48f7e2e9427$export$f8afaea2e9656b91.displayName = "RadioCard";
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1544
1721
 
1545
1722
 
1546
1723
 
@@ -1717,7 +1894,9 @@ function $e37831ebf64d8e7d$export$ef9b1a59e592288f({ label: label, selectionMode
1717
1894
  position: "relative",
1718
1895
  stretchX: true,
1719
1896
  children: [
1720
- selectionMode === "single" && /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.HiddenSelect), {
1897
+ selectionMode === "single" && // Implement a hidden select element to allow for native form submission
1898
+ // should work for both single and multiple selection modes
1899
+ /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$reactaria.HiddenSelect), {
1721
1900
  triggerRef: triggerRef,
1722
1901
  label: label,
1723
1902
  name: props.name,
@@ -2791,6 +2970,7 @@ function $1278141024f0bc4d$var$Dialog({ width: width = 400, title: title, onCanc
2791
2970
  ...dialogProps,
2792
2971
  children: [
2793
2972
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
2973
+ align: "center",
2794
2974
  as: "header",
2795
2975
  justify: "space-between",
2796
2976
  gap: "2xl",
@@ -2829,6 +3009,7 @@ function $1278141024f0bc4d$var$Dialog({ width: width = 400, title: title, onCanc
2829
3009
  ]
2830
3010
  }),
2831
3011
  /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $c3a954a7c0cb5109$export$f51f4c4ede09e011), {
3012
+ stack: true,
2832
3013
  className: "p-modal-body",
2833
3014
  children: children
2834
3015
  }),