@luscii-healthtech/web-ui 64.0.5 → 64.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/esm/components/ActionCard/ActionCard.js +3 -3
  2. package/dist/esm/components/ActionCard/ActionCard.js.map +1 -1
  3. package/dist/esm/components/ActionCard/ActionIcon.js +17 -0
  4. package/dist/esm/components/ActionCard/ActionIcon.js.map +1 -1
  5. package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js +1 -1
  6. package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js.map +1 -1
  7. package/dist/esm/components/Dropzone/Dropzone.js +3 -4
  8. package/dist/esm/components/Dropzone/Dropzone.js.map +1 -1
  9. package/dist/esm/components/FileUpload/FileUpload.js +4 -4
  10. package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
  11. package/dist/esm/components/MediaPicker/MediaPicker.js +7 -6
  12. package/dist/esm/components/MediaPicker/MediaPicker.js.map +1 -1
  13. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageForm.js +3 -4
  14. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageForm.js.map +1 -1
  15. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInput.js +4 -3
  16. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInput.js.map +1 -1
  17. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.js +4 -3
  18. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.js.map +1 -1
  19. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormSelect.js +4 -3
  20. package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormSelect.js.map +1 -1
  21. package/dist/esm/components/TextEditor/MentionList.js +3 -4
  22. package/dist/esm/components/TextEditor/MentionList.js.map +1 -1
  23. package/dist/index.development.js +40 -25
  24. package/dist/index.development.js.map +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/src/components/ActionCard/ActionCard.d.ts +10 -3
  28. package/dist/src/components/ActionCard/ActionIcon.d.ts +9 -3
  29. package/dist/src/components/ActionCardDetailed/ActionCardDetailed.d.ts +2 -2
  30. package/dist/src/components/Dropzone/Dropzone.d.ts +1 -1
  31. package/dist/src/components/FileUpload/FileUpload.d.ts +6 -2
  32. package/dist/src/components/MediaPicker/MediaPicker.d.ts +4 -2
  33. package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +42 -29
  34. package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +8 -12
  35. package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +12 -6
  36. package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +8 -9
  37. package/dist/src/components/TextEditor/MentionList.d.ts +4 -1
  38. package/dist/src/generated/components/ActionCard/ActionCard.d.ts +10 -3
  39. package/dist/src/generated/components/ActionCard/ActionIcon.d.ts +9 -3
  40. package/dist/src/generated/components/ActionCardDetailed/ActionCardDetailed.d.ts +2 -2
  41. package/dist/src/generated/components/Dropzone/Dropzone.d.ts +1 -1
  42. package/dist/src/generated/components/FileUpload/FileUpload.d.ts +6 -2
  43. package/dist/src/generated/components/MediaPicker/MediaPicker.d.ts +4 -2
  44. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +42 -29
  45. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +8 -12
  46. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +12 -6
  47. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +8 -9
  48. package/dist/src/generated/components/TextEditor/MentionList.d.ts +4 -1
  49. package/dist/stories/ActionCard.stories.d.ts +3 -0
  50. package/dist/stories/ActionCardDetailed.stories.d.ts +2 -0
  51. package/dist/stories/Dropzone.stories.d.ts +2 -2
  52. package/dist/stories/FileUpload.stories.d.ts +6 -1
  53. package/dist/stories/MediaPicker.stories.d.ts +3 -1
  54. package/dist/stories/NaturalLanguageForm.stories.d.ts +37 -24
  55. package/dist/stories/TextEditor.stories.d.ts +9 -0
  56. package/dist/web-ui-tailwind.css +3 -0
  57. package/package.json +1 -1
@@ -5095,11 +5095,12 @@ const ImagePickerInner = ({
5095
5095
  (_a2 = fileInputRef.current) === null || _a2 === void 0 ? void 0 : _a2.click();
5096
5096
  }, children: localisation.uploadImage }), jsxRuntime.jsx("input", { ref: fileInputRef, type: "file", disabled: isDisabled, name: `uploaded-${name}`, accept: acceptedMimeTypes.join(","), onChange: uploadImage, className: "ui:hidden" })] }), isClearButtonVisible && selectedMedia !== placeholderImage && !isUploading && jsxRuntime.jsx(SecondaryButton, { disabled: isDisabled, isPending: isUploading, onClick: handleDeleteClick, children: localisation.clearSelection })] })] }), jsxRuntime.jsxs(ModalDialog, { open: isImagesPanelOpen, onClose: handleCloseModal, variant: "centered-dialog", size: "l", children: [jsxRuntime.jsxs(ModalDialog.Header, { children: [jsxRuntime.jsx(ModalDialog.Title, { children: localisation.modalTitle }), jsxRuntime.jsx(ModalDialog.CloseButton, { onClick: handleCloseModal })] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(ModalDialog.Body, { children: jsxRuntime.jsxs(Stack, { axis: "y", _gap: "l", width: "full", className: "ui:max-h-135", children: [jsxRuntime.jsx(SearchInput, { name: "searchImages", className: "ui:w-full", value: search, placeholder: localisation.search, onChange: handleSearchChange }), jsxRuntime.jsx("div", { className: "ui:flex ui:w-full ui:flex-row ui:flex-wrap ui:items-center", children: filteredCategories === null || filteredCategories === void 0 ? void 0 : filteredCategories.map((category) => jsxRuntime.jsx(ImageCategory, { category, images: images === null || images === void 0 ? void 0 : images.filter((categoryImage) => categoryImage.includes(category.folder)), highlightedImage, handleImageClick, isTypeCompact }, category.folder)) })] }) }), jsxRuntime.jsx(ModalDialog.Footer, { children: jsxRuntime.jsx(ModalDialog.Actions, { width: "full", children: jsxRuntime.jsxs(Stack, { axis: "x", _gap: "m", justify: "end", width: "full", children: [jsxRuntime.jsx(SecondaryButton, { dataTestId: "modal-footer-trailing-secondary-button", onClick: handleCloseModal, children: localisation.cancel }), jsxRuntime.jsx(PrimaryButton, { dataTestId: "modal-footer-trailing-primary-button", onClick: handleConfirmSelection, children: localisation.selectButton })] }) }) })] })] });
5097
5097
  };
5098
- const MediaPicker = React__namespace.default.forwardRef((props, ref) => {
5099
- var _a, _b;
5100
- const mappedProps = Object.assign(Object.assign({}, props), { preselectedImage: props.preselectedMedia, images: props.media, handleChange: props.onChange, clearImageIndex: props.clearIndex, localisation: Object.assign(Object.assign({}, props.localisation), { uploadImage: (_b = (_a = props.localisation) === null || _a === void 0 ? void 0 : _a.upload) !== null && _b !== void 0 ? _b : "Upload file" }) });
5098
+ const MediaPicker = (_a) => {
5099
+ var _b, _c;
5100
+ var { ref } = _a, props = __rest(_a, ["ref"]);
5101
+ const mappedProps = Object.assign(Object.assign({}, props), { preselectedImage: props.preselectedMedia, images: props.media, handleChange: props.onChange, clearImageIndex: props.clearIndex, localisation: Object.assign(Object.assign({}, props.localisation), { uploadImage: (_c = (_b = props.localisation) === null || _b === void 0 ? void 0 : _b.upload) !== null && _c !== void 0 ? _c : "Upload file" }) });
5101
5102
  return jsxRuntime.jsx(ImagePickerInner, Object.assign({}, mappedProps, { innerRef: ref }));
5102
- });
5103
+ };
5103
5104
 
5104
5105
  const TagGroup = ({ children, className }) => jsxRuntime.jsx("div", { className: classNames__default.default("ui:flex ui:flex-row ui:flex-wrap ui:gap-2", className), children });
5105
5106
 
@@ -5154,6 +5155,14 @@ const typeIcons = {
5154
5155
  lesson: ActionLessonColoredIcon,
5155
5156
  calculation: ActionCalculationColoredIcon
5156
5157
  };
5158
+ const workflowIcons = {
5159
+ sendMessage: ChatBubbleIcon,
5160
+ changeProgram: ArrowsUpDownIcon,
5161
+ changeGroupProgram: ArrowsUpDownIcon,
5162
+ changeProtocol: RocketIcon,
5163
+ changePatientStatus: FlagIcon
5164
+ };
5165
+ const isWorkflowType = (type) => type in workflowIcons;
5157
5166
  const ActionIcon = ({ type, iconUrl, size = 20 }) => {
5158
5167
  const [hasImageError, setHasImageError] = React.useState(false);
5159
5168
  React.useEffect(() => {
@@ -5165,6 +5174,10 @@ const ActionIcon = ({ type, iconUrl, size = 20 }) => {
5165
5174
  }
5166
5175
  return jsxRuntime.jsx(Image$1, { src: iconUrl, alt: "", "data-chromatic": "ignore", width: size, height: size, className: "ui:shrink-0", showIconOnFailure: false, wrapperClassName: "ui:shrink-0", onError: () => setHasImageError(true) });
5167
5176
  }
5177
+ if (isWorkflowType(type)) {
5178
+ const WorkflowIcon = workflowIcons[type];
5179
+ return jsxRuntime.jsx(Box, { "aria-hidden": true, _p: "s", className: "ui:inline-flex ui:shrink-0 ui:bg-background-brand-secondary-default ui:text-text-brand-primary-default ui:[border-radius:var(--ui-semantic-radius-s)]", style: { width: size, height: size }, children: jsxRuntime.jsx(WorkflowIcon, { width: "100%", height: "100%" }) });
5180
+ }
5168
5181
  const TypeIcon = typeIcons[type];
5169
5182
  return jsxRuntime.jsx(TypeIcon, { "aria-hidden": true, width: size, height: size, className: "ui:shrink-0" });
5170
5183
  };
@@ -5184,9 +5197,9 @@ const ActionCard = ({ type, iconUrl, title, metadata, instruments, actions, drag
5184
5197
  * above the overlay.
5185
5198
  */
5186
5199
  jsxRuntime.jsx("button", { type: "button", onClick, className: "ui:cursor-pointer ui:text-left ui:after:absolute ui:after:inset-0 ui:after:content-[''] ui:focus:outline-primary", children: title })
5187
- ) : title })] }), metadata && metadata.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: !isCompact, children: metadata.map(({ label, bordered }, index) => jsxRuntime.jsx(
5200
+ ) : title })] }), metadata && metadata.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: !isCompact, children: metadata.map(({ label, bordered, icon }, index) => jsxRuntime.jsx(
5188
5201
  Tag,
5189
- { _size: "small", _type: "neutral", _variant: bordered ? "bordered" : "flat", _truncate: isCompact, children: label },
5202
+ { _size: "small", _type: "neutral", _variant: bordered ? "bordered" : "flat", _truncate: isCompact, _leadingIcon: icon && React.cloneElement(icon, { "aria-hidden": true }), children: label },
5190
5203
  `${index}-${label}`
5191
5204
  )) }), !isCompact && instruments && instruments.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: true, children: instruments.map((instrument) => {
5192
5205
  var _a;
@@ -5197,7 +5210,7 @@ const ActionCard = ({ type, iconUrl, title, metadata, instruments, actions, drag
5197
5210
  const ScheduleItem = ({ icon, label, value, detail }) => jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", children: [jsxRuntime.jsx(Box, { "aria-hidden": true, _p: "s", className: "ui:size-[var(--ui-semantic-size-xl)] ui:shrink-0 ui:[border-radius:var(--ui-semantic-radius-s)]", children: icon }), jsxRuntime.jsxs(Stack, { _gap: "none", className: "ui:min-w-0", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "baseline", _gap: "s", wrap: true, className: "ui:min-h-[var(--ui-semantic-size-xl)] ui:content-center", children: [jsxRuntime.jsx(Text, { variant: "body-base-light", color: "neutral-secondary", children: label }), jsxRuntime.jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: value })] }), detail && jsxRuntime.jsx(Text, { variant: "body-small-regular", color: "neutral-secondary", children: detail })] })] });
5198
5211
  const ActionCardDetailed = ({ type, iconUrl, title, category, metadata, schedule, scheduleHeading = "Schedule settings", instruments, instrumentsHeading = "Instruments in this action", children, editLabel = "Edit action", deleteLabel = "Delete action", closeLabel = "Close action details", onEdit, onDelete, onClose, className }) => {
5199
5212
  const hasActions = onEdit || onDelete || onClose;
5200
- return jsxRuntime.jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames__default.default("ui:w-full ui:max-w-[600px]", className), children: jsxRuntime.jsxs(Stack, { _gap: "xl", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(ActionIcon, { type, iconUrl, size: 32 }), jsxRuntime.jsxs(Stack, { _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(Heading, { variant: "h3", children: title }), category && jsxRuntime.jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: category })] })] }), hasActions && jsxRuntime.jsxs(Stack, { axis: "x", align: "center", _gap: "base", className: "ui:shrink-0", children: [onEdit && jsxRuntime.jsx(TertiaryIconButton, { label: editLabel, onClick: onEdit, children: jsxRuntime.jsx(PencilIcon, { "aria-hidden": true }) }), onDelete && jsxRuntime.jsx(TertiaryIconButton, { label: deleteLabel, onClick: onDelete, children: jsxRuntime.jsx(TrashBinIcon, { "aria-hidden": true }) }), onClose && jsxRuntime.jsx(TertiaryIconButton, { label: closeLabel, onClick: onClose, children: jsxRuntime.jsx(CrossIcon, { "aria-hidden": true }) })] })] }), metadata && metadata.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: true, children: metadata.map((item, index) => jsxRuntime.jsx(
5213
+ return jsxRuntime.jsx(Card, { border: true, borderRadius: "m", elevation: "medium", className: classNames__default.default("ui:w-full ui:max-w-[600px]", className), children: jsxRuntime.jsxs(Stack, { _gap: "xl", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", justify: "between", _gap: "base", width: "full", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "start", _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(ActionIcon, { type, iconUrl, size: 32 }), jsxRuntime.jsxs(Stack, { _gap: "base", className: "ui:min-w-0", children: [jsxRuntime.jsx(Heading, { variant: "h3", className: "ui:pt-f_s", children: title }), category && jsxRuntime.jsx(Text, { variant: "body-base-regular", color: "neutral-secondary", children: category })] })] }), hasActions && jsxRuntime.jsxs(Stack, { axis: "x", align: "center", _gap: "base", className: "ui:h-[var(--ui-semantic-size-xl)] ui:shrink-0", children: [onEdit && jsxRuntime.jsx(TertiaryIconButton, { label: editLabel, onClick: onEdit, children: jsxRuntime.jsx(PencilIcon, { "aria-hidden": true }) }), onDelete && jsxRuntime.jsx(TertiaryIconButton, { label: deleteLabel, onClick: onDelete, children: jsxRuntime.jsx(TrashBinIcon, { "aria-hidden": true }) }), onClose && jsxRuntime.jsx(TertiaryIconButton, { label: closeLabel, onClick: onClose, children: jsxRuntime.jsx(CrossIcon, { "aria-hidden": true }) })] })] }), metadata && metadata.length > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", wrap: true, children: metadata.map((item, index) => jsxRuntime.jsx(
5201
5214
  Tag,
5202
5215
  { _size: "large", _type: "neutral", _variant: "flat", children: item },
5203
5216
  `${index}-${item}`
@@ -5354,7 +5367,7 @@ const TextEditorToolbar = ({ toolbarId, toolbar, hasTextSelected, editor, transl
5354
5367
  return jsxRuntime.jsx(Stack, { axis: "x", _gap: "l", _px: "xs", id: toolbarId, children: toolbar.map((group) => jsxRuntime.jsx(Stack, { axis: "x", _gap: "xs", children: group.map((option, optionIndex) => jsxRuntime.jsx(TextEditorToolbarButton, { option, hasTextSelected, editor, translations }, getOptionKey(option, optionIndex))) }, getGroupKey(group))) });
5355
5368
  };
5356
5369
 
5357
- const MentionList = React.forwardRef(({ items, command }, ref) => {
5370
+ const MentionList = ({ items, command, ref }) => {
5358
5371
  const [selectedIndex, setSelectedIndex] = React.useState(0);
5359
5372
  React.useEffect(() => {
5360
5373
  setSelectedIndex(0);
@@ -5403,8 +5416,7 @@ const MentionList = React.forwardRef(({ items, command }, ref) => {
5403
5416
  }),
5404
5417
  children: jsxRuntime.jsx(Text, { truncate: true, children: item.label })
5405
5418
  }, item.id)) }) });
5406
- });
5407
- MentionList.displayName = "MentionList";
5419
+ };
5408
5420
 
5409
5421
  const MAX_RESULTS = 8;
5410
5422
  const createMentionSuggestion = (getTags, getPopupContainer = () => null) => ({
@@ -6067,14 +6079,14 @@ function SectionTitle(props) {
6067
6079
  return jsxRuntime.jsx(MenuItemPadding, { children: jsxRuntime.jsx(Text, { variant: "strong", children: props.children }) });
6068
6080
  }
6069
6081
 
6070
- const Dropzone = React.forwardRef((props, ref) => {
6071
- const { isHighlighted = false, className, children } = props, rest = __rest(props, ["isHighlighted", "className", "children"]);
6082
+ const Dropzone = (props) => {
6083
+ const { isHighlighted = false, className, children, ref } = props, rest = __rest(props, ["isHighlighted", "className", "children", "ref"]);
6072
6084
  const classes = classNames__default.default("ui:border ui:items-center ui:border-primary", {
6073
6085
  "ui:bg-surface ui:border-dashed": !isHighlighted,
6074
6086
  "ui:bg-primary-background ui:border-solid": isHighlighted
6075
6087
  }, className);
6076
6088
  return jsxRuntime.jsx("div", Object.assign({ className: classes, ref }, rest, { children }));
6077
- });
6089
+ };
6078
6090
 
6079
6091
  const defaultRemoveFilterOptionLabelGetter = (activeFilter) => `Remove filter ${activeFilter.label}`;
6080
6092
  const ActiveFilters = (props) => {
@@ -6410,8 +6422,8 @@ const WeekdaysPicker = (props) => {
6410
6422
  WeekdaysPicker.weekdayNameToIndex = weekdayNameToIndex;
6411
6423
  WeekdaysPicker.indexToWeekdayName = indexToWeekdayName;
6412
6424
 
6413
- const FileUpload = React.forwardRef((props, ref) => {
6414
- const { accept, maxFileSize, name, id, onChange, isDisabled = false, buttonText = "Upload a file", leadingIcon, removeButtonLabel = "Remove" } = props, otherProps = __rest(props, ["accept", "maxFileSize", "name", "id", "onChange", "isDisabled", "buttonText", "leadingIcon", "removeButtonLabel"]);
6425
+ const FileUpload = (props) => {
6426
+ const { ref, accept, maxFileSize, name, id, onChange, isDisabled = false, buttonText = "Upload a file", leadingIcon, removeButtonLabel = "Remove" } = props, otherProps = __rest(props, ["ref", "accept", "maxFileSize", "name", "id", "onChange", "isDisabled", "buttonText", "leadingIcon", "removeButtonLabel"]);
6415
6427
  const [selectedFile, setSelectedFile] = React.useState(null);
6416
6428
  const fileUploadRef = React.useRef(null);
6417
6429
  const handleOnUploadClick = () => {
@@ -6445,7 +6457,7 @@ const FileUpload = React.forwardRef((props, ref) => {
6445
6457
  }
6446
6458
  }
6447
6459
  }, onChange: handleChangeEvent, disabled: isDisabled }, otherProps))] });
6448
- });
6460
+ };
6449
6461
  const UploadedFileSection = ({ file, onRemove, removeButtonLabel = "Remove" }) => {
6450
6462
  return jsxRuntime.jsx("div", { className: "ui:inline-block ui:flex-row ui:rounded-lg ui:bg-blue-100", children: jsxRuntime.jsxs(Stack, { axis: "x", justify: "center", align: "center", _gap: "base", _py: "base", _px: "l", title: file.name, children: [jsxRuntime.jsx(Text, { truncate: true, className: "ui:max-w-55", children: file.name }), jsxRuntime.jsx(TertiaryButton, { leadingIcon: jsxRuntime.jsx(TrashBinIcon, {}), onClick: onRemove, "aria-label": removeButtonLabel })] }) });
6451
6463
  };
@@ -7339,16 +7351,18 @@ const useNaturalLanguageFormContext = () => {
7339
7351
  return React__namespace.default.useContext(NaturalLanguageFormContext);
7340
7352
  };
7341
7353
 
7342
- const NaturalLanguageFormInput = React__namespace.default.forwardRef((props, ref) => {
7354
+ const NaturalLanguageFormInput = (_a) => {
7355
+ var { ref } = _a, props = __rest(_a, ["ref"]);
7343
7356
  const { height } = useNaturalLanguageFormContext();
7344
7357
  return jsxRuntime.jsx(StyledInput, Object.assign({ ref, height }, props));
7345
- });
7358
+ };
7346
7359
  NaturalLanguageFormInput.displayName = "NaturalLanguageForm.Input";
7347
7360
 
7348
- const NaturalLanguageFormSelect = React__namespace.default.forwardRef((props, ref) => {
7361
+ const NaturalLanguageFormSelect = (_a) => {
7362
+ var { ref } = _a, props = __rest(_a, ["ref"]);
7349
7363
  const { height } = useNaturalLanguageFormContext();
7350
7364
  return jsxRuntime.jsx(StyledSelect, Object.assign({ ref, height }, props));
7351
- });
7365
+ };
7352
7366
  NaturalLanguageFormSelect.displayName = "NaturalLanguageForm.Select";
7353
7367
 
7354
7368
  const NaturalLanguageFormText = (props) => {
@@ -7357,20 +7371,21 @@ const NaturalLanguageFormText = (props) => {
7357
7371
  };
7358
7372
  NaturalLanguageFormText.displayName = "NaturalLanguageForm.Text";
7359
7373
 
7360
- const NaturalLanguageFormInputSelectBase = React__namespace.default.forwardRef((props, ref) => {
7374
+ const NaturalLanguageFormInputSelectBase = (_a) => {
7375
+ var { ref } = _a, props = __rest(_a, ["ref"]);
7361
7376
  const { height } = useNaturalLanguageFormContext();
7362
7377
  return jsxRuntime.jsx(InputSelectWithSubComponents, Object.assign({ ref, height }, props));
7363
- });
7378
+ };
7364
7379
  NaturalLanguageFormInputSelectBase.displayName = "NaturalLanguageForm.InputSelect";
7365
7380
  const NaturalLanguageFormInputSelect = Object.assign(NaturalLanguageFormInputSelectBase, {
7366
7381
  Input: InputSelectWithSubComponents.Input,
7367
7382
  Select: InputSelectWithSubComponents.Select
7368
7383
  });
7369
7384
 
7370
- const NaturalLanguageForm = React__namespace.default.forwardRef((props, ref) => {
7371
- const { className, children, height = "md" } = props;
7385
+ const NaturalLanguageForm = (props) => {
7386
+ const { className, children, height = "md", ref } = props;
7372
7387
  return jsxRuntime.jsx(NaturalLanguageFormContext.Provider, { value: { height }, children: jsxRuntime.jsx(Stack, { ref, axis: "x", _gap: "m", align: "center", wrap: true, className, children }) });
7373
- });
7388
+ };
7374
7389
  NaturalLanguageForm.displayName = "NaturalLanguageForm";
7375
7390
  const NaturalLanguageFormWithSubComponents = Object.assign(NaturalLanguageForm, {
7376
7391
  Input: NaturalLanguageFormInput,