@linzjs/lui 22.12.4 → 23.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 (59) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/assets/svg-content.d.ts +2 -2
  3. package/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
  4. package/dist/components/LuiBanner/LuiBanner.d.ts +1 -1
  5. package/dist/components/LuiBannerV2/LuiBannerV2.d.ts +3 -3
  6. package/dist/components/LuiErrorPage/LuiErrorIllustration.d.ts +1 -1
  7. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.d.ts +3 -3
  8. package/dist/components/LuiFilterMenu/LuiFilterMenu.d.ts +1 -1
  9. package/dist/components/LuiFormElements/LuiDateInput/DateInput.d.ts +2 -2
  10. package/dist/components/LuiFormElements/LuiDateInput/DateInputHelper.d.ts +1 -1
  11. package/dist/components/LuiFormElements/LuiDateInput/LuiDateInput.d.ts +1 -1
  12. package/dist/components/LuiFormElements/LuiMoneyInput/LuiMoneyInput.d.ts +2 -2
  13. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +1 -1
  14. package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.d.ts +2 -2
  15. package/dist/components/LuiHeader/LuiHeader.d.ts +1 -1
  16. package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +2 -2
  17. package/dist/components/LuiHeaderMenuV2/LuiHeaderMenusV2.d.ts +3 -3
  18. package/dist/components/LuiHeaderV2/LuiHeaderV2.d.ts +5 -5
  19. package/dist/components/LuiIcon/LuiIcon.d.ts +3 -3
  20. package/dist/components/LuiListBox/LuiListBox.d.ts +4 -4
  21. package/dist/components/LuiModal/LuiAlertModalV2.d.ts +2 -2
  22. package/dist/components/LuiModal/LuiModalV2.d.ts +1 -1
  23. package/dist/components/LuiPagination/LuiPagination.d.ts +1 -1
  24. package/dist/components/LuiProgressBar/LuiProgressBar.d.ts +1 -1
  25. package/dist/components/LuiSelectMenu/LuiSelectDataMenu.d.ts +2 -2
  26. package/dist/components/LuiSelectMenu/LuiSelectMenu.d.ts +1 -1
  27. package/dist/components/LuiSideMenu/LuiSideMenuItem.d.ts +1 -1
  28. package/dist/components/LuiSidePanel/LuiSidePanelHelper.d.ts +1 -1
  29. package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.d.ts +1 -1
  30. package/dist/components/LuiToastMessage/LuiToastMessage.d.ts +1 -1
  31. package/dist/components/LuiTooltip/LuiTooltip.d.ts +10 -1
  32. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +1 -1
  33. package/dist/components/Splitter/Control/Control.d.ts +2 -2
  34. package/dist/components/Splitter/Control/ControlIcon.d.ts +1 -1
  35. package/dist/components/Splitter/Separator/Separator.d.ts +1 -1
  36. package/dist/components/Splitter/Splitter.d.ts +9 -9
  37. package/dist/components/Splitter/Stories/RangeAsPx.d.ts +2 -2
  38. package/dist/components/Splitter/Stories/Section.d.ts +1 -1
  39. package/dist/components/Splitter/helpers/dataBoundary.d.ts +2 -2
  40. package/dist/components/Splitter/helpers/getKeyDownDeltaMove.d.ts +1 -1
  41. package/dist/components/Splitter/helpers/getSeparatorAttributes.d.ts +1 -1
  42. package/dist/components/Splitter/helpers/useForkRef.d.ts +1 -1
  43. package/dist/components/Toast/Helpers/ToastTypes.d.ts +6 -6
  44. package/dist/components/Toast/Helpers/useToastState.d.ts +1 -1
  45. package/dist/components/Toast/ToastBanner.d.ts +1 -1
  46. package/dist/components/Toast/Upgrade/LuiToastMessageCompatibleInterface.d.ts +1 -1
  47. package/dist/components/Toast/Upgrade/index.d.ts +4 -4
  48. package/dist/components/Toast/useToast.d.ts +2 -2
  49. package/dist/components/common/ResponsiveUtils.d.ts +2 -2
  50. package/dist/components/common/UseMediaQuery.d.ts +1 -1
  51. package/dist/contexts/LuiMessagingContextProvider.d.ts +2 -2
  52. package/dist/index.d.ts +0 -1
  53. package/dist/index.js +34 -24879
  54. package/dist/index.js.map +1 -1
  55. package/dist/lui.esm.js +36 -24877
  56. package/dist/lui.esm.js.map +1 -1
  57. package/package.json +13 -19
  58. package/dist/components/LuiFloatingWindow/LuiFloatingWindow.d.ts +0 -28
  59. package/dist/components/LuiFloatingWindow/LuiFloatingWindowHeaders.d.ts +0 -11
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IToast, ToastAction } from './ToastTypes';
3
- declare type ToastState = {
3
+ type ToastState = {
4
4
  toasts: IToast[];
5
5
  stack: number;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import './ToastBanner.scss';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
  import { LuiBannerV2 } from '../LuiBannerV2/LuiBannerV2';
4
- declare type Props = Pick<ComponentPropsWithoutRef<typeof LuiBannerV2>, 'level' | 'onDismiss' | 'children'>;
4
+ type Props = Pick<ComponentPropsWithoutRef<typeof LuiBannerV2>, 'level' | 'onDismiss' | 'children'>;
5
5
  export declare const ToastBanner: ({ level, onDismiss, children }: Props) => JSX.Element;
6
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { LuiToastMessage } from '../../LuiToastMessage/LuiToastMessage';
3
- declare type Props = ComponentProps<typeof LuiToastMessage>;
3
+ type Props = ComponentProps<typeof LuiToastMessage>;
4
4
  export declare const LuiToastMessageCompatibleInterface: (props: Props) => JSX.Element;
5
5
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
2
  import { LuiToastMessage as LuiToastMessageOld } from '../../LuiToastMessage/LuiToastMessage';
3
- declare type ProviderPropsV1 = {
3
+ type ProviderPropsV1 = {
4
4
  /** Use v2 explicitely to get the new designs */
5
5
  version?: 'v1';
6
6
  /** Default timeout is not permitted in v1 */
@@ -8,7 +8,7 @@ declare type ProviderPropsV1 = {
8
8
  /** Stack is not permitted in v1 */
9
9
  stack?: never;
10
10
  };
11
- declare type ProviderPropsV2 = {
11
+ type ProviderPropsV2 = {
12
12
  /** Latest designs */
13
13
  version: 'v2';
14
14
  /** Default timeout for ephemeral toasts is 4000ms */
@@ -16,7 +16,7 @@ declare type ProviderPropsV2 = {
16
16
  /** Max number of toast allowed simultaneously. Default value is 5. */
17
17
  stack?: number;
18
18
  };
19
- declare type ProviderProps = {
19
+ type ProviderProps = {
20
20
  children?: ReactNode;
21
21
  } & (ProviderPropsV1 | ProviderPropsV2);
22
22
  /**
@@ -34,6 +34,6 @@ export declare const LuiMessagingContextProvider: (props: ProviderProps) => JSX.
34
34
  * toaster({ message: 'Failed to save', messageType: 'toast', messageLevel: 'error' });
35
35
  */
36
36
  export declare const useShowLUIMessage: () => (messageProps: import("../../../contexts/LuiMessagingContextProvider").ShowMessageProps) => void;
37
- declare type LuiToastMessageProps = ComponentProps<typeof LuiToastMessageOld>;
37
+ type LuiToastMessageProps = ComponentProps<typeof LuiToastMessageOld>;
38
38
  export declare const LuiToastMessage: (props: LuiToastMessageProps) => JSX.Element;
39
39
  export {};
@@ -1,10 +1,10 @@
1
1
  import './ToastProvider.scss';
2
2
  import { ReactNode } from 'react';
3
3
  import { ToastNode, ToastOptions } from './Helpers/ToastTypes';
4
- declare type Config = ToastOptions & {
4
+ type Config = ToastOptions & {
5
5
  id?: number;
6
6
  };
7
- declare type BannerToast = (children: ReactNode, config?: Config) => number;
7
+ type BannerToast = (children: ReactNode, config?: Config) => number;
8
8
  /**
9
9
  * Hook to display pop-up messages in response to a user action or state change. Examples include: Saving, exporting, committing, deleting, etc.
10
10
  * It requires 'LuiMessagingContextProvider' with property version set to 'v2'.
@@ -1,6 +1,6 @@
1
1
  import { ClassDictionary } from 'clsx';
2
- export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- export declare type Range = {
2
+ export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ export type Range = {
4
4
  from?: Size;
5
5
  upto?: Size;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { Size } from './ResponsiveUtils';
2
- export declare type Breakpoint = Exclude<Size | 'xxl', 'xs'>;
2
+ export type Breakpoint = Exclude<Size | 'xxl', 'xs'>;
3
3
  export declare const breakpoints: Record<Breakpoint, number>;
4
4
  export declare const breakpointQuery: {
5
5
  up: (bp: Breakpoint) => string;
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare type MessageLevel = 'success' | 'info' | 'warning' | 'error';
3
- export declare type MessageType = 'toast';
2
+ export type MessageLevel = 'success' | 'info' | 'warning' | 'error';
3
+ export type MessageType = 'toast';
4
4
  export interface IUIMessagingContext {
5
5
  showMessage: (messageProps: ShowMessageProps) => void;
6
6
  }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export { LuiBanner, LuiBannerContent } from './components/LuiBanner/LuiBanner';
2
2
  export { LuiStaticMessage } from './components/LuiStaticMessage/LuiStaticMessage';
3
3
  export { LuiButton } from './components/LuiButton/LuiButton';
4
- export { LuiFloatingWindow, type ILuiFloatingWindowProps, LUI_WINDOW_NAME, LuiFloatingWindowContextProvider, useLuiFloatingWindow, } from './components/LuiFloatingWindow/LuiFloatingWindow';
5
4
  export { type ILuiToastMessageLevels } from './components/LuiToastMessage/LuiToastMessage';
6
5
  export { type MessageLevel, type MessageType, type IUIMessagingContext, type ShowMessageProps, } from './contexts/LuiMessagingContextProvider';
7
6
  export { LuiButtonGroup } from './components/LuiButton/LuiButton';