linear-react-components-ui 1.1.24-beta.5 → 1.1.24-beta.6

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 (45) hide show
  1. package/lib/assets/styles/datepicker2.scss +1 -6
  2. package/lib/assets/styles/filefield.scss +42 -0
  3. package/lib/assets/styles/selectfield.scss +3 -1
  4. package/lib/assets/styles/textfield.scss +42 -16
  5. package/lib/dialog/base/index.js +0 -11
  6. package/lib/dialog/form/index.js +49 -9
  7. package/lib/dialog/types.d.ts +4 -0
  8. package/lib/form2/index.d.ts +1 -1
  9. package/lib/form2/types.d.ts +3 -3
  10. package/lib/index-208e7f62.d.ts +44 -0
  11. package/lib/index-299f841a.d.ts +41 -0
  12. package/lib/index-543f1d54.d.ts +23 -0
  13. package/lib/index-7dfa8924.d.ts +22 -0
  14. package/lib/index-e71434f9.d.ts +15 -0
  15. package/lib/inputs/file/index.js +0 -1
  16. package/lib/inputs2/checkboxfield/index.d.ts +1 -1
  17. package/lib/inputs2/checkboxfield/index.js +3 -0
  18. package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
  19. package/lib/inputs2/date/datefield/index.js +1 -1
  20. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
  21. package/lib/inputs2/date/dateperiodfield/index.js +1 -1
  22. package/lib/inputs2/filefield/index.d.ts +9 -0
  23. package/lib/inputs2/filefield/index.js +168 -0
  24. package/lib/inputs2/index.d.ts +5 -4
  25. package/lib/inputs2/index.js +5 -1
  26. package/lib/inputs2/radiofield/index.d.ts +1 -1
  27. package/lib/inputs2/selectfield/context.d.ts +0 -1
  28. package/lib/inputs2/selectfield/index.d.ts +1 -2
  29. package/lib/inputs2/selectfield/index.js +3 -46
  30. package/lib/inputs2/selectfield/item.d.ts +1 -2
  31. package/lib/inputs2/selectfield/item.js +0 -4
  32. package/lib/inputs2/selectfield/listbox.d.ts +1 -1
  33. package/lib/inputs2/selectfield/listbox.js +6 -17
  34. package/lib/inputs2/selectfield/search.d.ts +1 -1
  35. package/lib/inputs2/selectfield/selections.d.ts +1 -1
  36. package/lib/inputs2/selectfield/triggers.js +4 -12
  37. package/lib/inputs2/slot/index.d.ts +2 -2
  38. package/lib/inputs2/textareafield/index.d.ts +8 -0
  39. package/lib/inputs2/textareafield/index.js +191 -0
  40. package/package.json +1 -1
  41. package/lib/index-5e77448f.d.ts +0 -41
  42. package/lib/index-5f373da5.d.ts +0 -26
  43. package/lib/index-b4abd0b1.d.ts +0 -15
  44. package/lib/inputs2/selectfield/options.d.ts +0 -9
  45. package/lib/inputs2/selectfield/options.js +0 -26
@@ -2,6 +2,6 @@ import React__default from 'react';
2
2
 
3
3
  interface DateFieldCalendarBoxProps extends React__default.ComponentProps<'div'> {
4
4
  }
5
- declare const CalendarBox: React__default.ForwardRefExoticComponent<Pick<DateFieldCalendarBoxProps, "style" | "children" | "slot" | "title" | "className" | "key" | "align" | "onClick" | "color" | "hidden" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
5
+ declare const CalendarBox: React__default.ForwardRefExoticComponent<Pick<DateFieldCalendarBoxProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
6
6
 
7
7
  export { CalendarBox, DateFieldCalendarBoxProps };
@@ -166,7 +166,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
166
166
  props?.onFocus?.(event);
167
167
  setActiveDescendant((selectedDate ?? (0, _moment.default)()).format(_helpers2.TOKEN_ISO_FORMAT));
168
168
  setCalendarDisplayDate(selectedDate ?? (0, _moment.default)());
169
- if (openCalendarOnFocus) {
169
+ if (!isReadOnly && openCalendarOnFocus) {
170
170
  handleOpenCalendar();
171
171
  }
172
172
  };
@@ -2,6 +2,6 @@ import React__default from 'react';
2
2
 
3
3
  interface DateFieldCalendarBoxProps extends React__default.ComponentProps<'div'> {
4
4
  }
5
- declare const CalendarBox: React__default.ForwardRefExoticComponent<Pick<DateFieldCalendarBoxProps, "style" | "children" | "slot" | "title" | "className" | "key" | "align" | "onClick" | "color" | "hidden" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
5
+ declare const CalendarBox: React__default.ForwardRefExoticComponent<Pick<DateFieldCalendarBoxProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
6
6
 
7
7
  export { CalendarBox, DateFieldCalendarBoxProps };
@@ -357,7 +357,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __)
357
357
  };
358
358
  const handleOnFocusMaskInput = (event, inputType) => {
359
359
  props?.onFocus?.(event);
360
- if (!calendarBoxOpen && openCalendarOnFocus) {
360
+ if (!isReadOnly && !calendarBoxOpen && openCalendarOnFocus) {
361
361
  setCalendarBoxOpen(true);
362
362
  }
363
363
  if (inputType === 'initial') {
@@ -0,0 +1,9 @@
1
+ import 'react';
2
+ import '../../index-3b70931d.js';
3
+ export { F as FileFieldInputProps, I as Input } from '../../index-7dfa8924.js';
4
+ import '../../@types/Align.js';
5
+ import '../../@types/ColorStyles.js';
6
+ import '../../@types/Position.js';
7
+ import '../../@types/PermissionAttr.js';
8
+ import '../slot/index.js';
9
+ import '../../tooltip/types.js';
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Input = void 0;
7
+ require("../../assets/styles/filefield.scss");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _lodash = _interopRequireDefault(require("lodash"));
10
+ var _buttons = _interopRequireDefault(require("../../buttons"));
11
+ var TextField = _interopRequireWildcard(require("../textfield"));
12
+ var _list = _interopRequireWildcard(require("../../list"));
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
18
+ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
19
+ const rest = Object.assign({}, (_objectDestructuringEmpty(props), props));
20
+ const inputFileRef = _react.default.useRef(null);
21
+ const [internalFiles, setInternalFiles] = _react.default.useState([]);
22
+ const files = props?.value ?? internalFiles;
23
+ const inputLabel = _lodash.default.isArray(files) && files.length > 0 ? `${files.length} arquivo(s) selecionado(s)` : 'Nenhum arquivo selecionado';
24
+ const handleSelect = event => {
25
+ const fileList = event.target.files;
26
+ if (!fileList) return;
27
+ let selectedFiles = Array.from(fileList);
28
+ if (props?.maxSize) {
29
+ selectedFiles = selectedFiles.filter(file => file.size <= _lodash.default.toNumber(props.maxSize));
30
+ }
31
+ if (!props?.multiple && selectedFiles.length > 1) {
32
+ selectedFiles = [selectedFiles[0]];
33
+ }
34
+ if (_lodash.default.isNil(props?.value)) {
35
+ setInternalFiles(selectedFiles);
36
+ }
37
+ props.onChange?.({
38
+ target: {
39
+ name: props.name,
40
+ value: selectedFiles
41
+ }
42
+ });
43
+ inputFileRef.current.value = '';
44
+ };
45
+ const handleClear = () => {
46
+ if (_lodash.default.isNil(props?.value)) {
47
+ setInternalFiles([]);
48
+ }
49
+ props.onChange?.({
50
+ target: {
51
+ name: props.name,
52
+ value: ''
53
+ }
54
+ });
55
+ inputFileRef.current.value = '';
56
+ };
57
+ const openDialog = () => {
58
+ inputFileRef.current?.click();
59
+ };
60
+ const handleLockOnPaste = _react.default.useCallback(event => {
61
+ event.preventDefault();
62
+ }, []);
63
+ const handleLockOnBeforeInput = _react.default.useCallback(event => {
64
+ props.onBeforeInput?.(event);
65
+ }, []);
66
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(TextField.Input, _extends({}, rest, {
67
+ ref: ref,
68
+ type: "text",
69
+ readOnly: false,
70
+ value: inputLabel,
71
+ customClass: "file-input",
72
+ onPaste: handleLockOnPaste,
73
+ onBeforeInput: handleLockOnBeforeInput,
74
+ customClassInputContainer: "file-container"
75
+ }), /*#__PURE__*/_react.default.createElement(TextField.LeftSlot, null, /*#__PURE__*/_react.default.createElement("input", {
76
+ ref: inputFileRef,
77
+ type: "file",
78
+ name: props?.name,
79
+ accept: props?.accept,
80
+ multiple: props?.multiple,
81
+ onChange: handleSelect,
82
+ style: {
83
+ all: 'unset',
84
+ display: 'none'
85
+ }
86
+ })), /*#__PURE__*/_react.default.createElement(TextField.RightSlot, {
87
+ className: "file-right-slot"
88
+ }, /*#__PURE__*/_react.default.createElement(_buttons.default, {
89
+ className: "show-files-selected-list",
90
+ visible: true,
91
+ dropdown: true,
92
+ transparent: true,
93
+ boxShadow: false,
94
+ showIconDropdown: false,
95
+ type: "button",
96
+ title: "Arquivos Selecionados",
97
+ tabIndex: -1,
98
+ disabled: props?.disabled,
99
+ "aria-label": "Arquivos Selecionados",
100
+ "aria-readonly": props?.readOnly,
101
+ "data-state-read-only": props?.readOnly,
102
+ iconName: "information",
103
+ dropdownAlign: "right",
104
+ onMouseDown: event => {
105
+ event.preventDefault();
106
+ }
107
+ }, !_lodash.default.isArray(files) && /*#__PURE__*/_react.default.createElement(_list.default, {
108
+ condensed: true
109
+ }, /*#__PURE__*/_react.default.createElement(_list.ListItem, {
110
+ key: "nenhum-selecionado",
111
+ itemId: "nenhum-selecionado",
112
+ text: "Nenhum arquivo selecionado",
113
+ onMouseDown: event => {
114
+ event?.preventDefault?.();
115
+ }
116
+ })), _lodash.default.isArray(files) && _lodash.default.size(files) > 0 && /*#__PURE__*/_react.default.createElement(_list.default, {
117
+ condensed: true
118
+ }, files.map((file, index) => {
119
+ const id = `${file.name}-${index + 1}`;
120
+ return /*#__PURE__*/_react.default.createElement(_list.ListItem, {
121
+ key: id,
122
+ itemId: id,
123
+ text: file.name,
124
+ onMouseDown: event => {
125
+ event?.preventDefault?.();
126
+ }
127
+ });
128
+ }))), /*#__PURE__*/_react.default.createElement(_buttons.default, {
129
+ "data-testid": "test-file-field-trigger-clear-files-selected",
130
+ className: "clear-files-selected",
131
+ visible: true,
132
+ transparent: true,
133
+ boxShadow: false,
134
+ showIconDropdown: false,
135
+ type: "button",
136
+ title: "Limpar",
137
+ tabIndex: -1,
138
+ disabled: props?.disabled,
139
+ "aria-label": "Limpar",
140
+ "aria-readonly": props?.readOnly,
141
+ "data-state-read-only": props?.readOnly,
142
+ iconName: "close",
143
+ onClick: handleClear,
144
+ onMouseDown: event => {
145
+ event.preventDefault();
146
+ }
147
+ }), /*#__PURE__*/_react.default.createElement(_buttons.default, {
148
+ "data-testid": "test-file-field-trigger-select-files",
149
+ className: "select-files",
150
+ visible: true,
151
+ boxShadow: false,
152
+ showIconDropdown: false,
153
+ type: "button",
154
+ title: "Selecionar",
155
+ label: "Selecionar",
156
+ tabIndex: -1,
157
+ disabled: props?.disabled,
158
+ "aria-label": "Selecionar",
159
+ "aria-readonly": props?.readOnly,
160
+ "data-state-read-only": props?.readOnly,
161
+ iconName: "upload4",
162
+ onClick: openDialog,
163
+ onMouseDown: event => {
164
+ event.preventDefault();
165
+ }
166
+ }))));
167
+ });
168
+ Input.displayName = 'FileFieldInput';
@@ -1,16 +1,18 @@
1
1
  export { i as TextField } from '../index-3b70931d.js';
2
+ export { i as TextAreaField } from '../index-208e7f62.js';
2
3
  export { i as NumberField } from '../index-ecafc8c6.js';
3
4
  export { i as DateField } from '../index-368f781f.js';
4
- export { i as RadioField } from '../index-b4abd0b1.js';
5
- export { i as SelectField } from '../index-5f373da5.js';
5
+ export { i as RadioField } from '../index-e71434f9.js';
6
+ export { i as SelectField } from '../index-543f1d54.js';
6
7
  export { i as ColorField } from '../index-9e576346.js';
7
8
  export { B as MaskField } from '../BaseMask-0c14ef51.js';
8
9
  export { C as CpfField } from '../Cpf-3fa496ad.js';
9
10
  export { C as CnpjField } from '../Cnpj-bde01dd0.js';
10
11
  export { P as PhoneField } from '../Phone-2bb0b397.js';
11
12
  export { Z as ZipCodeField } from '../ZipCode-09460e18.js';
12
- export { i as CheckboxField } from '../index-5e77448f.js';
13
+ export { i as CheckboxField } from '../index-299f841a.js';
13
14
  export { i as DatePeriodField } from '../index-c9247c1f.js';
15
+ export { i as FileField } from '../index-7dfa8924.js';
14
16
  import 'react';
15
17
  import '../@types/Align.js';
16
18
  import '../@types/ColorStyles.js';
@@ -26,7 +28,6 @@ import 'moment';
26
28
  import './date/types.js';
27
29
  import './radiofield/types.js';
28
30
  import '../@types/Size.js';
29
- import './selectfield/options.js';
30
31
  import './selectfield/item.js';
31
32
  import './selectfield/types.js';
32
33
  import 'imask';
@@ -3,9 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ZipCodeField = exports.TextField = exports.SelectField = exports.RadioField = exports.PhoneField = exports.NumberField = exports.MaskField = exports.DatePeriodField = exports.DateField = exports.CpfField = exports.ColorField = exports.CnpjField = exports.CheckboxField = void 0;
6
+ exports.ZipCodeField = exports.TextField = exports.TextAreaField = exports.SelectField = exports.RadioField = exports.PhoneField = exports.NumberField = exports.MaskField = exports.FileField = exports.DatePeriodField = exports.DateField = exports.CpfField = exports.ColorField = exports.CnpjField = exports.CheckboxField = void 0;
7
7
  var TextField = _interopRequireWildcard(require("./textfield"));
8
8
  exports.TextField = TextField;
9
+ var TextAreaField = _interopRequireWildcard(require("./textareafield"));
10
+ exports.TextAreaField = TextAreaField;
9
11
  var NumberField = _interopRequireWildcard(require("./numberfield"));
10
12
  exports.NumberField = NumberField;
11
13
  var DateField = _interopRequireWildcard(require("./date/datefield"));
@@ -30,5 +32,7 @@ var CheckboxField = _interopRequireWildcard(require("./checkboxfield"));
30
32
  exports.CheckboxField = CheckboxField;
31
33
  var DatePeriodField = _interopRequireWildcard(require("./date/dateperiodfield"));
32
34
  exports.DatePeriodField = DatePeriodField;
35
+ var FileField = _interopRequireWildcard(require("./filefield/index"));
36
+ exports.FileField = FileField;
33
37
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
34
38
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  export { RadioFieldInputProps } from './types.js';
3
- export { I as Input } from '../../index-b4abd0b1.js';
3
+ export { I as Input } from '../../index-e71434f9.js';
4
4
  import '../../@types/Size.js';
5
5
  import '../../@types/Align.js';
6
6
  import '../../@types/ColorStyles.js';
@@ -18,7 +18,6 @@ interface SelectFieldContextProps {
18
18
  activeDescendant?: string;
19
19
  notFoundFilterLabel: string;
20
20
  searchInputPlaceholder: string;
21
- optionItens: React__default.ReactNode[];
22
21
  dropdownAlignButton?: Extract<Position, 'left' | 'right'>;
23
22
  liSelectedRef: React__default.RefObject<HTMLLIElement | null>;
24
23
  selectInputRef: React__default.RefObject<HTMLInputElement | null>;
@@ -1,9 +1,8 @@
1
1
  import 'react';
2
2
  export { LeftSlot, RightSlot } from '../slot/index.js';
3
- export { Options } from './options.js';
4
3
  export { Item } from './item.js';
5
4
  export { SelectFieldInputProps } from './types.js';
6
- export { I as Input } from '../../index-5f373da5.js';
5
+ export { I as Input } from '../../index-543f1d54.js';
7
6
  import '../../@types/Align.js';
8
7
  import '../../@types/ColorStyles.js';
9
8
  import '../../tooltip/types.js';
@@ -16,12 +16,6 @@ Object.defineProperty(exports, "LeftSlot", {
16
16
  return _slot.LeftSlot;
17
17
  }
18
18
  });
19
- Object.defineProperty(exports, "Options", {
20
- enumerable: true,
21
- get: function () {
22
- return _options.Options;
23
- }
24
- });
25
19
  Object.defineProperty(exports, "RightSlot", {
26
20
  enumerable: true,
27
21
  get: function () {
@@ -44,7 +38,6 @@ var _listbox = require("./listbox");
44
38
  var _triggers = require("./triggers");
45
39
  var _selections = require("./selections");
46
40
  var _context = require("./context");
47
- var _options = require("./options");
48
41
  var _item = require("./item");
49
42
  var _types = require("./types");
50
43
  var _helpers2 = require("./helpers");
@@ -107,7 +100,6 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
107
100
  const isMultipleWithCheckboxes = _lodash.default.isEqual(props?.multiple, _types.MultipleVariantEnum.checkboxes);
108
101
  const isMultipleSelect = isMultipleDefault || isMultipleWithCheckboxes;
109
102
  const liSelectedRef = _react.default.useRef(null);
110
- const selectFieldRoot = _react.default.useRef(null);
111
103
  const selectInputRef = _react.default.useRef(null);
112
104
  const selectListBoxRef = _react.default.useRef(null);
113
105
  const selectContainerRef = _react.default.useRef(null);
@@ -157,22 +149,6 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
157
149
  const hasValidationErrors = Boolean(errors?.length);
158
150
  const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);
159
151
  const isDisabled = Boolean(props.disabled || onDenied.disabled);
160
- const {
161
- childrenItems
162
- } = _react.default.useMemo(() => {
163
- const itens = [];
164
- _react.default.Children.map(children, (childElement, index) => {
165
- if (/*#__PURE__*/_react.default.isValidElement(childElement)) {
166
- const clonedChild = /*#__PURE__*/_react.default.cloneElement(childElement, {
167
- key: childElement.key ?? `child-item-${index + 1}`
168
- });
169
- if (childElement.type === _item.Item) itens.push(clonedChild);
170
- }
171
- });
172
- return {
173
- childrenItems: itens
174
- };
175
- }, [children, isDisabled]);
176
152
  const {
177
153
  leftSlotElements,
178
154
  rightSlotElements
@@ -195,23 +171,6 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
195
171
  rightSlotElements: right
196
172
  };
197
173
  }, [children, isDisabled]);
198
- const {
199
- optionItens
200
- } = _react.default.useMemo(() => {
201
- const itens = [];
202
- _react.default.Children.map(children, (childElement, index) => {
203
- if (/*#__PURE__*/_react.default.isValidElement(childElement)) {
204
- const clonedChildItem = /*#__PURE__*/_react.default.cloneElement(childElement, {
205
- key: childElement.key ?? `option-list-${index}`,
206
- disabled: isDisabled
207
- });
208
- if (childElement.type === _options.Options) itens.push(clonedChildItem);
209
- }
210
- });
211
- return {
212
- optionItens: itens
213
- };
214
- }, [children, isDisabled]);
215
174
  const hasLeftSlotElements = Boolean(leftSlotElements?.length);
216
175
  const hasRightSlotElements = Boolean(rightSlotElements?.length);
217
176
  const handleCloseListBox = () => {
@@ -431,16 +390,14 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
431
390
  dropdownAlignButton,
432
391
  handleClearValue,
433
392
  handleCheckMultiple,
434
- handleChangeListBoxState,
435
- optionItens
436
- }), [striped, listBoxOpen, isDisabled, filterValue, props?.name, props?.value, activeDescendant, notFoundFilterLabel, searchOnDropdown, isMultipleSelect, showClearButton, isMultipleDefault, isMultipleWithCheckboxes, searchInputPlaceholder, dropdownAlignButton, optionItens]);
393
+ handleChangeListBoxState
394
+ }), [striped, listBoxOpen, isDisabled, filterValue, props?.name, props?.value, activeDescendant, notFoundFilterLabel, searchOnDropdown, isMultipleSelect, showClearButton, isMultipleDefault, isMultipleWithCheckboxes, searchInputPlaceholder, dropdownAlignButton]);
437
395
  if (unvisible || hideContent) return null;
438
396
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
439
397
  cols: gridLayout
440
398
  }, /*#__PURE__*/_react.default.createElement(_context.SelectFieldContext.Provider, {
441
399
  value: contextValues
442
400
  }, /*#__PURE__*/_react.default.createElement("div", {
443
- ref: selectFieldRoot,
444
401
  "data-testid": "test-select-field-root",
445
402
  className: `select-field-root ${customClassWrapper}`,
446
403
  "data-state-error": hasValidationErrors,
@@ -510,7 +467,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
510
467
  "data-state-skeletonize": skeletonize
511
468
  }, /*#__PURE__*/_react.default.createElement(_triggers.Triggers, null)), listBoxOpen && !hideContent && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_listbox.ListBox, {
512
469
  ref: selectListBoxRef
513
- }, childrenItems), document.body)), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
470
+ }, children), document.body)), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
514
471
  customClass: "hint",
515
472
  skeletonize: skeletonize,
516
473
  description: props.hint,
@@ -4,9 +4,8 @@ interface SelectFieldItemProps extends React__default.ComponentProps<'li'> {
4
4
  value: any;
5
5
  label: string;
6
6
  disabled?: boolean;
7
- readOnly?: boolean;
8
7
  children: React__default.ReactNode;
9
8
  }
10
- declare const Item: React__default.ForwardRefExoticComponent<Pick<SelectFieldItemProps, "disabled" | "readOnly" | "style" | "children" | "label" | "slot" | "title" | "className" | "key" | "align" | "onClick" | "color" | "hidden" | "id" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLLIElement>>;
9
+ declare const Item: React__default.ForwardRefExoticComponent<Pick<SelectFieldItemProps, "label" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "value"> & React__default.RefAttributes<HTMLLIElement>>;
11
10
 
12
11
  export { Item, SelectFieldItemProps };
@@ -15,7 +15,6 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
15
15
  const Item = exports.Item = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
16
16
  const {
17
17
  disabled,
18
- readOnly,
19
18
  children
20
19
  } = props;
21
20
  const {
@@ -59,7 +58,6 @@ const Item = exports.Item = /*#__PURE__*/_react.default.forwardRef((props, ref)
59
58
  title: props.label,
60
59
  "aria-label": props.label,
61
60
  "aria-selected": ariaSelected,
62
- "aria-readonly": readOnly,
63
61
  "aria-hidden": props['aria-hidden'] || !hasPartOfFilter,
64
62
  "aria-disabled": disabled,
65
63
  "data-content-value": props.value,
@@ -77,8 +75,6 @@ const Item = exports.Item = /*#__PURE__*/_react.default.forwardRef((props, ref)
77
75
  }
78
76
  }, props), isMultipleWithCheckboxes && /*#__PURE__*/_react.default.createElement(Checkbox.Input, {
79
77
  rounded: true,
80
- disabled: disabled,
81
- readOnly: readOnly,
82
78
  checked: ariaSelected,
83
79
  size: "default",
84
80
  variant: "secondary",
@@ -2,6 +2,6 @@ import React__default from 'react';
2
2
 
3
3
  interface SelectFieldListBoxProps extends React__default.ComponentProps<'div'> {
4
4
  }
5
- declare const ListBox: React__default.ForwardRefExoticComponent<Pick<SelectFieldListBoxProps, "style" | "children" | "slot" | "title" | "className" | "key" | "align" | "onClick" | "color" | "hidden" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
5
+ declare const ListBox: React__default.ForwardRefExoticComponent<Pick<SelectFieldListBoxProps, "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
6
6
 
7
7
  export { ListBox, SelectFieldListBoxProps };
@@ -6,14 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ListBox = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _lodash = _interopRequireDefault(require("lodash"));
9
- var _search = require("./search");
10
9
  var _context = require("./context");
10
+ var _search = require("./search");
11
11
  const _excluded = ["children"];
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
14
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
15
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
- const MAX_HEIGHT = 27 * 15 + 1; // 27px de height do list item * 15 itens máximos na exibição + 1px de borda listbox.
17
16
  const ListBox = exports.ListBox = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
18
17
  const {
19
18
  children
@@ -57,22 +56,12 @@ const ListBox = exports.ListBox = /*#__PURE__*/_react.default.forwardRef((props,
57
56
  width,
58
57
  height
59
58
  } = selectPositionOnScreen;
60
- const spaceBelow = window.innerHeight - (top + height);
61
- const spaceAbove = top;
62
- const shouldOpenUp = spaceBelow < MAX_HEIGHT && spaceAbove > spaceBelow;
63
- let styles = {
59
+ setListBoxStyles({
60
+ top: top + height + window.scrollY,
64
61
  left: left + window.scrollX,
65
- position: 'absolute',
66
- minWidth: width
67
- };
68
- if (shouldOpenUp) {
69
- styles.bottom = window.innerHeight - top - window.scrollY;
70
- styles.maxHeight = Math.min(MAX_HEIGHT, spaceAbove);
71
- } else {
72
- styles.top = top + height + window.scrollY;
73
- styles.maxHeight = Math.min(MAX_HEIGHT, spaceBelow);
74
- }
75
- setListBoxStyles(styles);
62
+ minWidth: width,
63
+ position: 'absolute'
64
+ });
76
65
  }
77
66
  };
78
67
  if (listBoxOpen) {