@linzjs/lui 23.14.3 → 24.0.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 (55) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/components/Drawer/Drawer.d.ts +1 -1
  3. package/dist/components/Drawer/DrawerGlobal.d.ts +1 -1
  4. package/dist/components/LuiAccordion/LuiAccordion.d.ts +2 -2
  5. package/dist/components/LuiButton/LuiButton.d.ts +3 -3
  6. package/dist/components/LuiColourPicker/ColorInput.d.ts +2 -2
  7. package/dist/components/LuiColourPicker/ColorPalette.d.ts +1 -1
  8. package/dist/components/LuiCounter/LuiCounter.d.ts +1 -1
  9. package/dist/components/LuiError/LuiError.d.ts +2 -2
  10. package/dist/components/LuiFormElements/LuiDateInput/DateInput.d.ts +1 -1
  11. package/dist/components/LuiFormElements/LuiDateInput/LuiDateInput.d.ts +1 -1
  12. package/dist/components/LuiFormElements/LuiMoneyInput/LuiMoneyInput.d.ts +1 -1
  13. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.d.ts +2 -2
  14. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +2 -2
  15. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.d.ts +2 -2
  16. package/dist/components/LuiHeaderMenuV2/LuiHeaderMenusV2.d.ts +2 -2
  17. package/dist/components/LuiHeaderV2/LuiHeaderV2.d.ts +1 -1
  18. package/dist/components/LuiListBox/LuiListBox.d.ts +4 -3
  19. package/dist/components/LuiListBox/LuiListBoxGroup.d.ts +2 -2
  20. package/dist/components/LuiListBox/Renderers/CheckboxItemRenderer.d.ts +2 -2
  21. package/dist/components/LuiListBox/Renderers/RadioItemRenderer.d.ts +2 -2
  22. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.d.ts +2 -2
  23. package/dist/components/LuiLoadingSpinner/LuiLottieLight.d.ts +2 -2
  24. package/dist/components/LuiMenuTrigger/LuiMenuTrigger.d.ts +2 -2
  25. package/dist/components/LuiMultiSwitch/LuiMultiSwitch.d.ts +2 -2
  26. package/dist/components/LuiMultiSwitch/LuiMultiSwitch.examples.d.ts +4 -4
  27. package/dist/components/LuiProgressBar/LuiProgressBar.d.ts +2 -2
  28. package/dist/components/LuiSearchBox/LuiSearchBox.d.ts +1 -1
  29. package/dist/components/LuiSearchInput/LuiPassiveSearchInput.d.ts +2 -2
  30. package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +1 -1
  31. package/dist/components/LuiSideMenu/LuiSideMenu.d.ts +2 -2
  32. package/dist/components/LuiSideMenu/LuiSideMenuItem.d.ts +1 -1
  33. package/dist/components/LuiSidePanel/LuiSidePanelHelper.d.ts +2 -2
  34. package/dist/components/LuiSideToolbar/ToolbarIcon.d.ts +2 -2
  35. package/dist/components/LuiSideToolbar/ToolbarItem.d.ts +2 -2
  36. package/dist/components/LuiSwitchButton/LuiSwitchButton.d.ts +2 -2
  37. package/dist/components/LuiTooltip/LuiTooltip.d.ts +2 -2
  38. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +2 -2
  39. package/dist/components/Splitter/Control/Control.d.ts +1 -1
  40. package/dist/components/Splitter/Control/ControlIcon.d.ts +2 -2
  41. package/dist/components/Splitter/Separator/Separator.d.ts +1 -1
  42. package/dist/components/Splitter/Stories/RangeAsPx.d.ts +2 -2
  43. package/dist/components/Splitter/Stories/Section.d.ts +3 -3
  44. package/dist/components/Toast/Helpers/toastUsage.d.ts +2 -2
  45. package/dist/components/Toast/ToastBanner.d.ts +2 -2
  46. package/dist/components/Toast/ToastProvider.d.ts +1 -1
  47. package/dist/components/Toast/Upgrade/LuiToastMessageCompatibleInterface.d.ts +2 -2
  48. package/dist/components/Toast/Upgrade/index.d.ts +3 -3
  49. package/dist/contexts/LuiMessagingContextProvider.d.ts +2 -2
  50. package/dist/hooks/useClickedOutsideElement.d.ts +1 -1
  51. package/dist/index.js +16674 -10909
  52. package/dist/index.js.map +1 -1
  53. package/dist/lui.esm.js +16713 -10948
  54. package/dist/lui.esm.js.map +1 -1
  55. package/package.json +22 -16
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [24.0.0](https://github.com/linz/lui/compare/v23.14.4...v24.0.0) (2025-11-02)
2
+
3
+ ## [23.14.4](https://github.com/linz/lui/compare/v23.14.3...v23.14.4) (2025-10-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **SearchInput:** CS8444 - show filter when no result ([#1264](https://github.com/linz/lui/issues/1264)) ([0edcaad](https://github.com/linz/lui/commit/0edcaad78c8a6bc316306e12a66440bfb40593d9))
9
+
1
10
  ## [23.14.3](https://github.com/linz/lui/compare/v23.14.2...v23.14.3) (2025-10-22)
2
11
 
3
12
 
@@ -40,5 +40,5 @@ export type DrawerProps = PropsWithChildren<{
40
40
  /** Called when the drawer is resized either manually or programmatically. */
41
41
  onResized?: ComponentProps<typeof Splitter>['onResized'];
42
42
  }> & Omit<ComponentProps<typeof Splitter>, 'ratio' | 'orientation' | 'onResized' | 'startAt' | 'min' | 'max'>;
43
- export declare const Drawer: React.ForwardRefExoticComponent<Pick<DrawerProps, "onResized" | "parts" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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" | "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" | "key" | "isOpen" | "onRequestClose" | "position" | "size" | "initialSize" | "resizeable" | "passThroughOverlayClick" | "closeOnClickOutside" | "closeOnEsc" | "disableScroll" | "hideCloseButton" | "mountChildrenOn"> & React.RefAttributes<HTMLDivElement>>;
43
+ export declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
44
44
  export {};
@@ -9,4 +9,4 @@ export type DrawerGlobalProps = Omit<DrawerProps, 'isOpen' | 'onRequestClose'> &
9
9
  * Unlike in the vanilla `Drawer`, where the consumer must handle the open/close state, here state is handled by `DrawerGlobalContext`. */
10
10
  onBeforeClose?: () => boolean | Promise<boolean>;
11
11
  };
12
- export declare const DrawerGlobal: React.ForwardRefExoticComponent<Pick<DrawerGlobalProps, "onResized" | "parts" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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" | "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" | "key" | "position" | "resizeable" | "closeOnEsc" | "closeOnClickOutside" | "passThroughOverlayClick" | "size" | "initialSize" | "disableScroll" | "hideCloseButton" | "mountChildrenOn" | "onBeforeClose"> & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const DrawerGlobal: React.ForwardRefExoticComponent<Omit<DrawerGlobalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  import './LuiAccordion.scss';
3
3
  export interface ILuiAccordion {
4
4
  heading: ReactNode;
@@ -9,4 +9,4 @@ export interface ILuiAccordion {
9
9
  style?: CSSProperties;
10
10
  onToggleExpand?: (isOpen: boolean) => void;
11
11
  }
12
- export declare const LuiAccordion: (props: ILuiAccordion) => JSX.Element;
12
+ export declare const LuiAccordion: (props: ILuiAccordion) => React.JSX.Element;
@@ -19,11 +19,11 @@ export interface PlainButtonProps {
19
19
  ref: Ref<HTMLButtonElement>;
20
20
  children: ReactNode;
21
21
  }
22
- export declare const PlainButton: React.ForwardRefExoticComponent<Pick<PlainButtonProps & {
22
+ export declare const PlainButton: React.ForwardRefExoticComponent<Omit<PlainButtonProps & {
23
23
  level: string;
24
24
  size: string;
25
- }, "type" | "disabled" | "style" | "onClick" | "name" | "title" | "data-testid" | "className" | "buttonProps" | "children" | "level" | "size"> & React.RefAttributes<HTMLButtonElement>>;
26
- export declare const LuiButton: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<LuiButtonProps>, "type" | "disabled" | "style" | "onClick" | "name" | "title" | "data-testid" | "className" | "buttonProps" | "children" | "level" | "size" | "href" | "openInNewTab"> & React.RefAttributes<HTMLButtonElement>>;
25
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
26
+ export declare const LuiButton: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<LuiButtonProps>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
27
27
  interface LuiButtonGroupProps {
28
28
  /**
29
29
  * LuiButton component(s) to render in series.
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import './ColorPalette.scss';
3
- export declare const ColorInputGroup: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
3
+ export declare const ColorInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export declare const ColorInput: React.ForwardRefExoticComponent<{
5
5
  name: string;
6
6
  color: string;
7
7
  description?: string | undefined;
8
8
  label?: Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "title" | "aria-label" | "htmlFor"> | undefined;
9
- } & Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "name" | "type" | "value"> & React.RefAttributes<HTMLInputElement>>;
9
+ } & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "name" | "type" | "value"> & React.RefAttributes<HTMLInputElement>>;
@@ -11,4 +11,4 @@ export declare const ColorPalette: React.ForwardRefExoticComponent<{
11
11
  selected?: string | undefined;
12
12
  onSelect: (color: string) => void;
13
13
  name?: string | undefined;
14
- } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect"> & React.RefAttributes<HTMLDivElement>>;
14
+ } & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onSelect"> & React.RefAttributes<HTMLDivElement>>;
@@ -5,4 +5,4 @@ export declare const LuiCounter: React.ForwardRefExoticComponent<{
5
5
  totalNum: number;
6
6
  shape?: "rect" | "circle" | undefined;
7
7
  countZero?: boolean | undefined;
8
- } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
8
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import '../../scss/Components/LuiError/LuiError.scss';
3
3
  interface ILuiError {
4
4
  error?: string | boolean;
5
5
  className: string;
6
6
  }
7
- export declare const LuiError: ({ error, className }: ILuiError) => JSX.Element;
7
+ export declare const LuiError: ({ error, className }: ILuiError) => React.JSX.Element;
8
8
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  type Input = JSX.IntrinsicElements['input'];
3
3
  type Props = Omit<Input, 'pattern' | 'type' | 'placeholder'>;
4
- export declare const DateInput: React.ForwardRefExoticComponent<Pick<Props, "key" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "readOnly" | "required" | "size" | "src" | "step" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "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" | "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" | "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.RefAttributes<HTMLInputElement>>;
4
+ export declare const DateInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
5
  export default DateInput;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { LuiTextInput } from '../LuiTextInput/LuiTextInput';
3
3
  type Props = Omit<Parameters<typeof LuiTextInput>[0], 'as'>;
4
- export declare const LuiDateInput: React.ForwardRefExoticComponent<Pick<Props, keyof import("../LuiTextInput/LuiTextInput").LuiTextInputProps | "key"> & React.RefAttributes<HTMLInputElement>>;
4
+ export declare const LuiDateInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
5
  export {};
@@ -24,5 +24,5 @@ type Props = Omit<LuiInputProps, 'value'> & {
24
24
  value?: number | null;
25
25
  onNumberChange: ((value: number | null) => void) | null;
26
26
  };
27
- export declare const LuiMoneyInput: React.ForwardRefExoticComponent<Pick<Props, "onChange" | "inputProps" | "error" | "warning" | "hideLabel" | "label" | "mandatory" | "showPadlockIcon" | "className" | "value" | "icon" | "size" | "key" | "onNumberChange"> & React.RefAttributes<HTMLInputElement>>;
27
+ export declare const LuiMoneyInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
28
  export {};
@@ -1,4 +1,4 @@
1
- import { ChangeEventHandler, InputHTMLAttributes } from 'react';
1
+ import React, { ChangeEventHandler, InputHTMLAttributes } from 'react';
2
2
  export interface LuiRadioProps {
3
3
  onChange: ChangeEventHandler<HTMLInputElement>;
4
4
  selectedValue: string;
@@ -12,4 +12,4 @@ export interface LuiRadioProps {
12
12
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
13
13
  renderLabelFor?: (value: string) => JSX.Element;
14
14
  }
15
- export declare const LuiRadioInput: (props: LuiRadioProps) => JSX.Element;
15
+ export declare const LuiRadioInput: (props: LuiRadioProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ChangeEventHandler, DetailedHTMLProps, SelectHTMLAttributes } from 'react';
1
+ import React, { ChangeEventHandler, DetailedHTMLProps, SelectHTMLAttributes } from 'react';
2
2
  export type SelectOptions = {
3
3
  label: string;
4
4
  value: string;
@@ -17,4 +17,4 @@ export interface SelectProps {
17
17
  placeholderText?: string;
18
18
  className?: string;
19
19
  }
20
- export declare const LuiSelectInput: (props: SelectProps) => JSX.Element;
20
+ export declare const LuiSelectInput: (props: SelectProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import React, { PropsWithChildren, ReactNode } from 'react';
2
2
  export interface IFormSectionHeaderProps {
3
3
  header: string;
4
4
  details?: string | ReactNode;
5
5
  link?: string;
6
6
  }
7
- export declare const LuiFormSectionHeader: (props: PropsWithChildren<IFormSectionHeaderProps>) => JSX.Element;
7
+ export declare const LuiFormSectionHeader: (props: PropsWithChildren<IFormSectionHeaderProps>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import React, { ReactElement, ReactNode } from 'react';
2
2
  import { LuiHeaderMenuItemV2Props } from '../LuiHeaderV2/LuiHeaderV2';
3
3
  import { Size } from '../common/ResponsiveUtils';
4
4
  import { IconSize } from '../LuiIcon/LuiIcon';
@@ -74,7 +74,7 @@ type LuiDropdownMenuV2Props = Omit<LuiHeaderMenuItemV2Props, 'onClick' | 'isSele
74
74
  */
75
75
  export declare const LuiDropdownMenuV2DropContent: ({ children, }: {
76
76
  children: ReactNode;
77
- }) => JSX.Element;
77
+ }) => React.JSX.Element;
78
78
  declare const LuiDropdownMenuV2: (props: Omit<LuiHeaderMenuItemV2Props, "onClick" | "isSelected"> & {
79
79
  /**
80
80
  * The anchor origin of dropdown, default to left
@@ -105,5 +105,5 @@ type LuiMenuCloseButtonV2Props = {
105
105
  iconSize?: IconSize;
106
106
  iconColor?: string;
107
107
  };
108
- declare const LuiMenuCloseButtonV2: ({ icon, hide, iconSize, iconColor, "data-testid": dataTestId, }: LuiMenuCloseButtonV2Props) => JSX.Element;
108
+ declare const LuiMenuCloseButtonV2: ({ icon, hide, iconSize, iconColor, "data-testid": dataTestId, }: LuiMenuCloseButtonV2Props) => React.JSX.Element;
109
109
  export { LuiHeaderV2Props, LuiHeaderV2, LuiHeaderMenuItemV2Props, LuiHeaderMenuItemV2, LuiCloseableHeaderMenuItemV2Props, LuiCloseableHeaderMenuItemV2, useLuiCloseableHeaderMenuContextV2, LuiMenuCloseButtonV2Props, LuiMenuCloseButtonV2, };
@@ -1,7 +1,8 @@
1
1
  import './LuiListBox.scss';
2
2
  import 'react-loading-skeleton/dist/skeleton.css';
3
- import { HTMLAttributes, Key, ReactNode, MutableRefObject } from 'react';
4
- import { SelectionBehavior, SelectionMode } from '@react-types/shared';
3
+ import { HTMLAttributes, ReactNode, MutableRefObject } from 'react';
4
+ import { Key, SelectionBehavior, SelectionMode } from '@react-types/shared';
5
+ import React from 'react';
5
6
  import { AriaListBoxOptions } from '@react-aria/listbox';
6
7
  export type KeyGetter<T> = (item: T) => Key;
7
8
  export type GroupGetter<T> = (item: T) => string | null;
@@ -54,5 +55,5 @@ type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | nul
54
55
  export declare const LuiListBox: <T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T> & {
55
56
  ref?: ForwardedRef<ILuiListBoxHandle> | undefined;
56
57
  }) => ReturnType<typeof LuiListBoxWithRef>;
57
- declare function LuiListBoxWithRef<T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T>, ref: ForwardedRef<ILuiListBoxHandle>): JSX.Element;
58
+ declare function LuiListBoxWithRef<T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T>, ref: ForwardedRef<ILuiListBoxHandle>): React.JSX.Element;
58
59
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ListState } from '@react-stately/list';
2
- import { ReactNode } from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
  import { IGroupHeadingRendererProps, IItemRendererProps, ILuiListItemNode } from './LuiListBox';
4
4
  export interface ILuiListBoxSectionProps<T> {
5
5
  group: ILuiListItemNode<T>;
@@ -7,4 +7,4 @@ export interface ILuiListBoxSectionProps<T> {
7
7
  headingRenderer: (props: IGroupHeadingRendererProps) => ReactNode;
8
8
  itemRenderer: (item: IItemRendererProps<T>) => ReactNode;
9
9
  }
10
- export declare function LuiListBoxGroup<T>({ group, state, headingRenderer, itemRenderer, }: ILuiListBoxSectionProps<T>): JSX.Element;
10
+ export declare function LuiListBoxGroup<T>({ group, state, headingRenderer, itemRenderer, }: ILuiListBoxSectionProps<T>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
1
  import './CheckboxItemRenderer.scss';
3
2
  import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
4
- export declare function CheckboxItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): JSX.Element;
3
+ import React from 'react';
4
+ export declare function CheckboxItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
1
  import './RadioItemRenderer.scss';
3
2
  import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
4
- export declare function RadioItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): JSX.Element;
3
+ import React from 'react';
4
+ export declare function RadioItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
@@ -7,9 +7,9 @@ interface LuiMiniSpinnerProps {
7
7
  size: number;
8
8
  divProps?: any;
9
9
  }
10
- export declare const LuiMiniSpinner: (props: LuiMiniSpinnerProps) => JSX.Element;
10
+ export declare const LuiMiniSpinner: (props: LuiMiniSpinnerProps) => React.JSX.Element;
11
11
  export declare const LuiLoadingSpinner: (props: {
12
12
  dataTestId?: string;
13
- }) => JSX.Element;
13
+ }) => React.JSX.Element;
14
14
  export declare function isChromatic(): boolean;
15
15
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface LuiLottieLightProps {
3
3
  animationData: any;
4
4
  loop: boolean;
@@ -10,5 +10,5 @@ interface LuiLottieLightProps {
10
10
  * Very trivial react wrapper for Lottie-web light. Using lottie-web directly rather than with `react-lottie` or
11
11
  * `lottie-react` reduces our bundle size and enables use to use lottie-web in light mode.
12
12
  */
13
- export declare const LuiLottieLight: ({ animationData, style, rendererSettings, autoplay, loop, }: LuiLottieLightProps) => JSX.Element;
13
+ export declare const LuiLottieLight: ({ animationData, style, rendererSettings, autoplay, loop, }: LuiLottieLightProps) => React.JSX.Element;
14
14
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export interface ILuiMenuTrigger {
3
3
  className?: string;
4
4
  }
5
- export declare const LuiMenuTrigger: ({ className }: ILuiMenuTrigger) => JSX.Element;
5
+ export declare const LuiMenuTrigger: ({ className }: ILuiMenuTrigger) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
2
  export interface LuiMultiSwitchOption<ValueType> {
3
3
  text: ReactElement | string;
4
4
  value: ValueType;
@@ -20,4 +20,4 @@ export interface LuiMultiSwitchProps<ValueType> {
20
20
  /**
21
21
  * Uncontrolled grouped button style component where component has single focus and associated keyboard events.
22
22
  */
23
- export declare const LuiMultiSwitch: <ValueType>({ className, defaultValue, value, onChange, disabled, autoFocus, options, ...props }: LuiMultiSwitchProps<ValueType>) => JSX.Element;
23
+ export declare const LuiMultiSwitch: <ValueType>({ className, defaultValue, value, onChange, disabled, autoFocus, options, ...props }: LuiMultiSwitchProps<ValueType>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const Controlled: () => JSX.Element;
3
- export declare const Uncontrolled: () => JSX.Element;
4
- export declare const CustomValues: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Controlled: () => React.JSX.Element;
3
+ export declare const Uncontrolled: () => React.JSX.Element;
4
+ export declare const CustomValues: () => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
1
  import './LuiProgressBar.scss';
2
+ import React from 'react';
3
3
  export type ProgressBarProps = {
4
4
  value?: number;
5
5
  max?: number;
6
6
  error?: boolean;
7
7
  barHeight?: string;
8
8
  };
9
- export declare const LuiProgressBar: ({ value, max, error, barHeight, }: ProgressBarProps) => JSX.Element;
9
+ export declare const LuiProgressBar: ({ value, max, error, barHeight, }: ProgressBarProps) => React.JSX.Element;
@@ -38,4 +38,4 @@ export interface ILuiSearchBoxProps {
38
38
  * See examples in SearchBox in storybook.
39
39
  */
40
40
  export declare const LuiSearchBox: ({ searchBoxOptions, initOptionValue, onMenuSelect, autoFocus, externalSearch, searchString, onClickInput, onClearInput, }: ILuiSearchBoxProps) => JSX.Element;
41
- export declare const LuiSearchBoxButton: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<LuiButtonProps>, "type" | "href" | "openInNewTab" | "level" | "size" | "disabled" | "style" | "onClick" | "name" | "title" | "data-testid" | "className" | "buttonProps" | "children"> & React.RefAttributes<HTMLButtonElement>>;
41
+ export declare const LuiSearchBoxButton: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<LuiButtonProps>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -19,10 +19,10 @@ export interface IPassiveSearchInputProps {
19
19
  export declare const ControlledPassiveSearchInputComponent: (props: IPassiveSearchInputProps & {
20
20
  typedValue: string;
21
21
  setTypedValue: (value: string) => void;
22
- }) => JSX.Element;
22
+ }) => React.JSX.Element;
23
23
  /**
24
24
  * @deprecated This was created for client to easily customize the passive input component.
25
25
  * But that is hard to keep input memory to be consistent with other input components.
26
26
  * Has extracted the controlled version and let LuiSearchInput to align the input value.
27
27
  */
28
- export declare const LuiPassiveSearchInput: (props: React.PropsWithChildren<IPassiveSearchInputProps>) => JSX.Element;
28
+ export declare const LuiPassiveSearchInput: (props: React.PropsWithChildren<IPassiveSearchInputProps>) => React.JSX.Element;
@@ -27,4 +27,4 @@ export interface ISearchInputProps<SearchResult extends ISearchResult = ISearchR
27
27
  filterElement?: ReactElement;
28
28
  trimBeforeMinCharCheck?: boolean;
29
29
  }
30
- export declare const LuiSearchInput: <SearchResult extends ISearchResult = ISearchResult>(props: React.PropsWithChildren<ISearchInputProps<SearchResult>>) => JSX.Element;
30
+ export declare const LuiSearchInput: <SearchResult extends ISearchResult = ISearchResult>(props: React.PropsWithChildren<ISearchInputProps<SearchResult>>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export interface ILuiSideMenuProps {
3
3
  children: ReactNode;
4
4
  }
5
- export declare function LuiSideMenu({ children }: ILuiSideMenuProps): JSX.Element;
5
+ export declare function LuiSideMenu({ children }: ILuiSideMenuProps): React.JSX.Element;
@@ -8,4 +8,4 @@ export interface ILuiSideMenuItemProps {
8
8
  isActive?: boolean;
9
9
  disabled?: boolean;
10
10
  }
11
- export declare function LuiSideMenuItem({ to, label, icon, isActive, onClick, disabled, }: ILuiSideMenuItemProps): JSX.Element;
11
+ export declare function LuiSideMenuItem({ to, label, icon, isActive, onClick, disabled, }: ILuiSideMenuItemProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type LuiSidePanelHelperProps = {
3
3
  initialSelectedRow?: number;
4
4
  rows?: number[];
5
5
  };
6
- export declare const LuiSidePanelHelper: ({ initialSelectedRow, rows, }: LuiSidePanelHelperProps) => JSX.Element;
6
+ export declare const LuiSidePanelHelper: ({ initialSelectedRow, rows, }: LuiSidePanelHelperProps) => React.JSX.Element;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ToolbarIconProps {
3
3
  iconImage?: string;
4
4
  iconName: string;
@@ -9,5 +9,5 @@ interface ToolbarIconProps {
9
9
  * @param param
10
10
  * @returns
11
11
  */
12
- export declare const ToolbarIcon: ({ iconImage, iconName }: ToolbarIconProps) => JSX.Element;
12
+ export declare const ToolbarIcon: ({ iconImage, iconName }: ToolbarIconProps) => React.JSX.Element;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import 'react-loading-skeleton/dist/skeleton.css';
3
3
  export interface ToolbarItemProps {
4
4
  loading?: boolean;
@@ -14,4 +14,4 @@ export interface ToolbarItemProps {
14
14
  * @returns
15
15
  */
16
16
  export declare const ToolbarItem: (props: ToolbarItemProps) => JSX.Element;
17
- export declare const ToolbarItemSeparator: () => JSX.Element;
17
+ export declare const ToolbarItemSeparator: () => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { ChangeEvent } from 'react';
1
+ import React, { ChangeEvent } from 'react';
2
2
  import './../../scss/Components/LuiSwitchButton/LuiSwitchButton.scss';
3
3
  export declare const LuiSwitchButton: (props: {
4
4
  checked: boolean;
5
5
  onChange: (event: ChangeEvent<HTMLInputElement>) => any;
6
6
  disabled?: boolean | undefined;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  /**
4
4
  * @see https://atomiks.github.io/tippyjs/
@@ -13,4 +13,4 @@ export type ILuiTooltipProperties = TippyProps & {
13
13
  */
14
14
  mode?: 'default' | 'info' | 'error' | 'default-withDelay' | 'info-withDelay' | 'error-withDelay';
15
15
  };
16
- export declare const LuiTooltip: (props: ILuiTooltipProperties) => JSX.Element;
16
+ export declare const LuiTooltip: (props: ILuiTooltipProperties) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  interface IFrameConfig {
3
3
  url: string;
4
4
  width: number;
@@ -23,5 +23,5 @@ type SplashModalProps = {
23
23
  smallImage?: never;
24
24
  iframe: IFrameConfig;
25
25
  });
26
- export declare const LuiUpdatesSplashModal: (props: SplashModalProps) => JSX.Element;
26
+ export declare const LuiUpdatesSplashModal: (props: SplashModalProps) => React.JSX.Element;
27
27
  export {};
@@ -5,5 +5,5 @@ type ButtonProps = Partial<ComponentPropsWithRef<typeof LuiButton>>;
5
5
  type Props = {
6
6
  side: 'primary' | 'secondary';
7
7
  } & ButtonProps;
8
- export declare const Control: React.ForwardRefExoticComponent<Pick<Props, "href" | "openInNewTab" | "level" | "type" | "size" | "disabled" | "style" | "onClick" | "name" | "title" | "data-testid" | "className" | "buttonProps" | "children" | "key" | "side"> & React.RefAttributes<HTMLButtonElement>>;
8
+ export declare const Control: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { RefObject } from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  type Side = 'primary' | 'secondary';
3
3
  export declare const ControlIcon: ({ parent, side, }: {
4
4
  side: Side;
5
5
  parent: RefObject<HTMLButtonElement>;
6
- }) => JSX.Element | null;
6
+ }) => React.JSX.Element | null;
7
7
  export {};
@@ -2,7 +2,7 @@ import './Separator.scss';
2
2
  import React, { ComponentProps } from 'react';
3
3
  import { Splitter } from '../Splitter';
4
4
  type Parts = NonNullable<ComponentProps<typeof Splitter>['parts']>['controls'];
5
- export declare const Separator: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
5
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
6
  parts?: Parts;
7
7
  ratio?: number | undefined;
8
8
  onResized?: ((val: number) => void) | undefined;
@@ -1,9 +1,9 @@
1
- import { ComponentProps } from 'react';
1
+ import React, { ComponentProps } from 'react';
2
2
  import { Splitter } from '../Splitter';
3
3
  import './RangeAsPx.scss';
4
4
  type SplitterProps = ComponentProps<typeof Splitter>;
5
5
  type PixelProps = SplitterProps & {
6
6
  unit?: '%' | 'px';
7
7
  };
8
- export declare const RangeAsPx: ({ unit, ...rest }: PixelProps) => JSX.Element;
8
+ export declare const RangeAsPx: ({ unit, ...rest }: PixelProps) => React.JSX.Element;
9
9
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type SectionProps = JSX.IntrinsicElements['section'];
3
- export declare const HorizontalSection: (props: SectionProps) => JSX.Element;
4
- export declare const VerticalSection: (props: SectionProps) => JSX.Element;
3
+ export declare const HorizontalSection: (props: SectionProps) => React.JSX.Element;
4
+ export declare const VerticalSection: (props: SectionProps) => React.JSX.Element;
5
5
  export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const ToastUsage: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const ToastUsage: () => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import './ToastBanner.scss';
2
- import { ComponentPropsWithoutRef } from 'react';
2
+ import React, { ComponentPropsWithoutRef } from 'react';
3
3
  import { LuiBannerV2 } from '../LuiBannerV2/LuiBannerV2';
4
4
  type Props = Pick<ComponentPropsWithoutRef<typeof LuiBannerV2>, 'level' | 'onDismiss' | 'children'>;
5
- export declare const ToastBanner: ({ level, onDismiss, children }: Props) => JSX.Element;
5
+ export declare const ToastBanner: ({ level, onDismiss, children }: Props) => React.JSX.Element;
6
6
  export {};
@@ -7,4 +7,4 @@ export declare const ToastProvider: ({ children, defaultTimeout, stack, }: {
7
7
  defaultTimeout?: number | undefined;
8
8
  stack?: number | undefined;
9
9
  children: ReactNode;
10
- }) => JSX.Element;
10
+ }) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ComponentProps } from 'react';
1
+ import React, { ComponentProps } from 'react';
2
2
  import { LuiToastMessage } from '../../LuiToastMessage/LuiToastMessage';
3
3
  type Props = ComponentProps<typeof LuiToastMessage>;
4
- export declare const LuiToastMessageCompatibleInterface: (props: Props) => JSX.Element;
4
+ export declare const LuiToastMessageCompatibleInterface: (props: Props) => React.JSX.Element;
5
5
  export {};
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ReactNode } from 'react';
1
+ import React, { ComponentProps, ReactNode } from 'react';
2
2
  import { LuiToastMessage as LuiToastMessageOld } from '../../LuiToastMessage/LuiToastMessage';
3
3
  type ProviderPropsV1 = {
4
4
  /** Use v2 explicitely to get the new designs */
@@ -23,7 +23,7 @@ type ProviderProps = {
23
23
  * Context provider to handle global logic of toast messages. It defaults to legacy version 'v1'.
24
24
  * @description Set version property to 'v2' to get the latest designs.
25
25
  */
26
- export declare const LuiMessagingContextProvider: (props: ProviderProps) => JSX.Element;
26
+ export declare const LuiMessagingContextProvider: (props: ProviderProps) => React.JSX.Element;
27
27
  /**
28
28
  * Hook to display pop-up messages in response to a user action or state change. Examples include: Saving, exporting, committing, deleting, etc.
29
29
  * @description Legacy hook to trigger toasts. It requires {@linkcode LuiMessagingContextProvider}.
@@ -35,5 +35,5 @@ export declare const LuiMessagingContextProvider: (props: ProviderProps) => JSX.
35
35
  */
36
36
  export declare const useShowLUIMessage: () => (messageProps: import("../../../contexts/LuiMessagingContextProvider").ShowMessageProps) => void;
37
37
  type LuiToastMessageProps = ComponentProps<typeof LuiToastMessageOld>;
38
- export declare const LuiToastMessage: (props: LuiToastMessageProps) => JSX.Element;
38
+ export declare const LuiToastMessage: (props: LuiToastMessageProps) => React.JSX.Element;
39
39
  export {};