@linzjs/lui 24.20.0 → 26.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.
- package/CHANGELOG.md +29 -0
- package/dist/assets/svg-content.d.ts +7 -7
- package/dist/components/Drawer/Drawer.d.ts +45 -45
- package/dist/components/Drawer/DrawerContext.d.ts +6 -7
- package/dist/components/Drawer/DrawerGlobal.d.ts +12 -12
- package/dist/components/Drawer/DrawerGlobalContext.d.ts +14 -14
- package/dist/components/Drawer/utils.d.ts +7 -7
- package/dist/components/LuiAccordicard/LuiAccordicard.d.ts +9 -9
- package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.d.ts +9 -9
- package/dist/components/LuiAccordion/LuiAccordion.d.ts +12 -12
- package/dist/components/LuiBadge/LuiBadge.d.ts +12 -12
- package/dist/components/LuiBanner/LuiBanner.d.ts +10 -10
- package/dist/components/LuiBannerV2/LuiBannerV2.d.ts +22 -22
- package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +16 -16
- package/dist/components/LuiButton/LuiButton.d.ts +44 -44
- package/dist/components/LuiColourPicker/ColorBucket.d.ts +6 -6
- package/dist/components/LuiColourPicker/ColorInput.d.ts +9 -9
- package/dist/components/LuiColourPicker/ColorPalette.d.ts +14 -14
- package/dist/components/LuiColourPicker/ColourPaletteConstants.d.ts +8 -8
- package/dist/components/LuiCommonInputProps.d.ts +5 -5
- package/dist/components/LuiCounter/LuiCounter.d.ts +8 -8
- package/dist/components/LuiError/LuiError.d.ts +8 -8
- package/dist/components/LuiErrorPage/LuiErrorIllustration.d.ts +5 -5
- package/dist/components/LuiErrorPage/LuiErrorPage.d.ts +9 -9
- package/dist/components/LuiErrorPanel/LuiErrorPanel.d.ts +23 -23
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.d.ts +19 -19
- package/dist/components/LuiFilterContainer/LuiFilterContainer.d.ts +14 -14
- package/dist/components/LuiFilterMenu/LuiFilterMenu.d.ts +16 -16
- package/dist/components/LuiFooter/LuiAppFooterSml.d.ts +13 -13
- package/dist/components/LuiFooter/LuiFooter.d.ts +12 -12
- package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.d.ts +14 -14
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +16 -16
- package/dist/components/LuiFormElements/LuiComboSelect/LuiComboSelect.d.ts +27 -27
- package/dist/components/LuiFormElements/LuiDateInput/DateInput.d.ts +5 -5
- package/dist/components/LuiFormElements/LuiDateInput/DateInputHelper.d.ts +6 -6
- package/dist/components/LuiFormElements/LuiDateInput/FireDateChange.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiDateInput/LuiDateInput.d.ts +5 -5
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +36 -36
- package/dist/components/LuiFormElements/LuiMoneyInput/LuiMoneyInput.d.ts +28 -28
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.d.ts +15 -15
- package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +20 -20
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiAutoExpandTextAreaInput.d.ts +3 -3
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.d.ts +12 -12
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +23 -23
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.d.ts +7 -7
- package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.d.ts +6 -6
- package/dist/components/LuiHeader/LuiHeader.d.ts +72 -72
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +51 -51
- package/dist/components/LuiHeaderMenuV2/LuiHeaderMenusV2.d.ts +87 -102
- package/dist/components/LuiHeaderV2/LuiHeaderV2.d.ts +103 -109
- package/dist/components/LuiIcon/LuiIcon.d.ts +35 -35
- package/dist/components/LuiListBox/LuiListBox.d.ts +59 -59
- package/dist/components/LuiListBox/LuiListBoxGroup.d.ts +10 -10
- package/dist/components/LuiListBox/LuiListBoxItem.d.ts +10 -10
- package/dist/components/LuiListBox/Renderers/CheckboxItemRenderer.d.ts +4 -4
- package/dist/components/LuiListBox/Renderers/RadioItemRenderer.d.ts +4 -4
- package/dist/components/LuiListBox/useLuiListBox.d.ts +3 -3
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.d.ts +16 -16
- package/dist/components/LuiLoadingSpinner/LuiLottieLight.d.ts +14 -14
- package/dist/components/LuiMenu/LuiMenu.d.ts +12 -12
- package/dist/components/LuiMenuTrigger/LuiMenuTrigger.d.ts +5 -5
- package/dist/components/LuiModal/LuiAlertModalV2.d.ts +7 -7
- package/dist/components/LuiModal/LuiModal.d.ts +40 -40
- package/dist/components/LuiModal/LuiModalContext.d.ts +6 -0
- package/dist/components/LuiModal/LuiModalV2.d.ts +36 -36
- package/dist/components/LuiMultiSwitch/LuiMultiSwitch.d.ts +23 -23
- package/dist/components/LuiMultiSwitch/LuiMultiSwitch.examples.d.ts +4 -4
- package/dist/components/LuiPagination/LuiPagination.d.ts +23 -23
- package/dist/components/LuiProgressBar/LuiProgressBar.d.ts +9 -9
- package/dist/components/LuiResizableLayout/LuiResizableLayout.d.ts +25 -25
- package/dist/components/LuiSearchBox/LuiSearchBox.d.ts +41 -41
- package/dist/components/LuiSearchInput/LuiPassiveSearchInput.d.ts +28 -28
- package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +38 -38
- package/dist/components/LuiSearchInput/ResultsDisplay.d.ts +23 -23
- package/dist/components/LuiSelectMenu/LuiSelectDataMenu.d.ts +15 -15
- package/dist/components/LuiSelectMenu/LuiSelectMenu.d.ts +25 -25
- package/dist/components/LuiShadow/LuiShadow.d.ts +6 -6
- package/dist/components/LuiSideMenu/LuiSideMenu.d.ts +5 -5
- package/dist/components/LuiSideMenu/LuiSideMenuItem.d.ts +11 -11
- package/dist/components/LuiSidePanel/LuiSidePanel.d.ts +9 -9
- package/dist/components/LuiSidePanel/LuiSidePanelHelper.d.ts +7 -7
- package/dist/components/LuiSideToolbar/LuiSideToolbar.d.ts +11 -11
- package/dist/components/LuiSideToolbar/ToolbarButton.d.ts +21 -21
- package/dist/components/LuiSideToolbar/ToolbarIcon.d.ts +13 -13
- package/dist/components/LuiSideToolbar/ToolbarItem.d.ts +17 -17
- package/dist/components/LuiSplitButton/LuiSplitButton.d.ts +30 -30
- package/dist/components/LuiStaticMessage/LuiStaticMessage.d.ts +10 -10
- package/dist/components/LuiSwitchButton/LuiSwitchButton.d.ts +8 -8
- package/dist/components/LuiTabs/LuiTab/LuiTab.d.ts +13 -13
- package/dist/components/LuiTabs/LuiTabs.d.ts +10 -10
- package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.d.ts +5 -5
- package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.d.ts +8 -8
- package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.d.ts +8 -8
- package/dist/components/LuiToastMessage/LuiToastMessage.d.ts +20 -20
- package/dist/components/LuiTooltip/LuiTooltip.d.ts +16 -16
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +27 -27
- package/dist/components/Splitter/Control/Control.d.ts +9 -9
- package/dist/components/Splitter/Control/ControlIcon.d.ts +7 -7
- package/dist/components/Splitter/Separator/Separator.d.ts +11 -11
- package/dist/components/Splitter/Splitter.d.ts +44 -44
- package/dist/components/Splitter/Stories/RangeAsPx.d.ts +9 -9
- package/dist/components/Splitter/Stories/Section.d.ts +5 -3
- package/dist/components/Splitter/helpers/clampSeparator.d.ts +10 -10
- package/dist/components/Splitter/helpers/dataBoundary.d.ts +18 -18
- package/dist/components/Splitter/helpers/getGridTemplate.d.ts +14 -14
- package/dist/components/Splitter/helpers/getKeyDownDeltaMove.d.ts +6 -7
- package/dist/components/Splitter/helpers/getSeparatorAttributes.d.ts +27 -27
- package/dist/components/Splitter/helpers/getSeparatorPosition.d.ts +7 -7
- package/dist/components/Splitter/helpers/transition.d.ts +5 -5
- package/dist/components/Splitter/helpers/useForkRef.d.ts +3 -4
- package/dist/components/Splitter/helpers/useMoveSeparator.d.ts +11 -11
- package/dist/components/Splitter/helpers/useShowSeparator.d.ts +7 -7
- package/dist/components/Splitter/helpers/useValueSeparator.d.ts +15 -15
- package/dist/components/Splitter/helpers/useValueSeparatorEffects.d.ts +5 -5
- package/dist/components/Splitter/useSplitterRef.d.ts +5 -5
- package/dist/components/Toast/Helpers/ToastSection.d.ts +9 -9
- package/dist/components/Toast/Helpers/ToastTypes.d.ts +35 -35
- package/dist/components/Toast/Helpers/getToastProviderEl.d.ts +15 -15
- package/dist/components/Toast/Helpers/toastUsage.d.ts +2 -2
- package/dist/components/Toast/Helpers/useToastState.d.ts +20 -21
- package/dist/components/Toast/ToastBanner.d.ts +6 -6
- package/dist/components/Toast/ToastProvider.d.ts +10 -10
- package/dist/components/Toast/Upgrade/LuiToastMessageCompatibleInterface.d.ts +5 -5
- package/dist/components/Toast/Upgrade/ToastVersion.d.ts +2 -3
- package/dist/components/Toast/Upgrade/index.d.ts +39 -39
- package/dist/components/Toast/Upgrade/observeOlderToasts.d.ts +6 -6
- package/dist/components/Toast/Upgrade/useShowLUIMessageCompatibleInterface.d.ts +5 -5
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/Toast/useToast.d.ts +43 -43
- package/dist/components/common/Hooks.d.ts +32 -32
- package/dist/components/common/ResponsiveUtils.d.ts +7 -7
- package/dist/components/common/StorybookSupport.d.ts +6 -6
- package/dist/components/common/UseMediaQuery.d.ts +9 -9
- package/dist/contexts/LuiFilterCharactersProvider.d.ts +12 -12
- package/dist/contexts/LuiMessagingContextProvider.d.ts +14 -14
- package/dist/fonts.d.ts +10 -10
- package/dist/functions/LinzFreeTextFilter.d.ts +14 -14
- package/dist/functions/LinzFreeTextValidator.d.ts +2 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useClickedOutsideElement.d.ts +14 -14
- package/dist/hooks/useDeprecatedWarning.d.ts +1 -1
- package/dist/index.d.ts +92 -92
- package/dist/index.js +10914 -9556
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +10914 -9556
- package/dist/lui.esm.js.map +1 -1
- package/package.json +74 -62
|
@@ -1,109 +1,103 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { HeaderSize } from '../LuiHeader/LuiHeader';
|
|
3
|
-
import { IconSize } from '../LuiIcon/LuiIcon';
|
|
4
|
-
type LuiHeaderV2Props = {
|
|
5
|
-
headingText?: string;
|
|
6
|
-
size?: HeaderSize;
|
|
7
|
-
homeLink?: string | (() => void);
|
|
8
|
-
transparent?: boolean;
|
|
9
|
-
sticky?: boolean;
|
|
10
|
-
appMenu?: ReactNode;
|
|
11
|
-
};
|
|
12
|
-
declare const LuiHeaderV2: ({ headingText, size, homeLink, transparent, children, sticky, appMenu, }: LuiHeaderV2Props & {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
type LuiHeaderMenuItemV2Props = {
|
|
16
|
-
/**
|
|
17
|
-
* LuiIcon name
|
|
18
|
-
*/
|
|
19
|
-
icon?: string;
|
|
20
|
-
/**
|
|
21
|
-
* icon color,
|
|
22
|
-
*/
|
|
23
|
-
iconColor?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The label that will show up beside (right) the icon, if not specified then it won't show up
|
|
26
|
-
*/
|
|
27
|
-
label?: string | ReactElement;
|
|
28
|
-
/**
|
|
29
|
-
* The string that will show up as a notification badge which will show up at the upper right corner of the icon
|
|
30
|
-
*/
|
|
31
|
-
badge?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The callback handler to be registered which will be called when menu item is clicked
|
|
34
|
-
*/
|
|
35
|
-
onClick?: () => void;
|
|
36
|
-
/**
|
|
37
|
-
* The test id used to reference the html element which is bound to the onClick function
|
|
38
|
-
*/
|
|
39
|
-
'data-testid'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Allow the selected state to be controlled externally
|
|
42
|
-
*/
|
|
43
|
-
isSelected?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* The callback handler to be registered which will be called when outside of menu item is clicked
|
|
46
|
-
*/
|
|
47
|
-
onClickOutside?: () => void;
|
|
48
|
-
/**
|
|
49
|
-
* The callback handler to be registered which will be called when Escape key is pressed
|
|
50
|
-
*/
|
|
51
|
-
onEscape?: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* The tooltip when mouse over the menu item
|
|
54
|
-
*/
|
|
55
|
-
tooltip?: {
|
|
56
|
-
/**
|
|
57
|
-
* The tooltip text
|
|
58
|
-
*/
|
|
59
|
-
text: string;
|
|
60
|
-
/**
|
|
61
|
-
* The tooltip anchor origin, default to left
|
|
62
|
-
*/
|
|
63
|
-
anchorOrigin?: 'left' | 'right';
|
|
64
|
-
/**
|
|
65
|
-
* The tooltip theme, default to dark
|
|
66
|
-
*/
|
|
67
|
-
theme?: 'dark' | 'light';
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Allow appending custom class
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
};
|
|
74
|
-
declare const LuiHeaderMenuItemV2: React.ForwardRefExoticComponent<LuiHeaderMenuItemV2Props & {
|
|
75
|
-
children?: ReactNode;
|
|
76
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
-
export type LuiCloseableHeaderMenuContextType = {
|
|
78
|
-
isOpen: boolean;
|
|
79
|
-
toggle: () => void;
|
|
80
|
-
open: () => void;
|
|
81
|
-
close: () => void;
|
|
82
|
-
};
|
|
83
|
-
export declare const LuiCloseableHeaderMenuContextV2: React.Context<LuiCloseableHeaderMenuContextType>;
|
|
84
|
-
declare const useLuiCloseableHeaderMenuContextV2: () => LuiCloseableHeaderMenuContextType;
|
|
85
|
-
type LuiCloseableHeaderMenuItemV2Props = Omit<LuiHeaderMenuItemV2Props, 'onClick' | 'isSelected'> & {
|
|
86
|
-
menuControls: {
|
|
87
|
-
isOpen: boolean;
|
|
88
|
-
toggle: () => void;
|
|
89
|
-
setOpen: (open: boolean) => void;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
declare const LuiCloseableHeaderMenuItemV2: ({ children, menuControls, ...props }:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
icon?: string;
|
|
105
|
-
iconSize?: IconSize;
|
|
106
|
-
iconColor?: string;
|
|
107
|
-
};
|
|
108
|
-
declare const LuiMenuCloseButtonV2: ({ icon, hide, iconSize, iconColor, "data-testid": dataTestId, }: LuiMenuCloseButtonV2Props) => React.JSX.Element;
|
|
109
|
-
export { LuiHeaderV2Props, LuiHeaderV2, LuiHeaderMenuItemV2Props, LuiHeaderMenuItemV2, LuiCloseableHeaderMenuItemV2Props, LuiCloseableHeaderMenuItemV2, useLuiCloseableHeaderMenuContextV2, LuiMenuCloseButtonV2Props, LuiMenuCloseButtonV2, };
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { HeaderSize } from '../LuiHeader/LuiHeader';
|
|
3
|
+
import { IconSize } from '../LuiIcon/LuiIcon';
|
|
4
|
+
type LuiHeaderV2Props = {
|
|
5
|
+
headingText?: string;
|
|
6
|
+
size?: HeaderSize;
|
|
7
|
+
homeLink?: string | (() => void);
|
|
8
|
+
transparent?: boolean;
|
|
9
|
+
sticky?: boolean;
|
|
10
|
+
appMenu?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const LuiHeaderV2: ({ headingText, size, homeLink, transparent, children, sticky, appMenu, }: LuiHeaderV2Props & {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
type LuiHeaderMenuItemV2Props = {
|
|
16
|
+
/**
|
|
17
|
+
* LuiIcon name
|
|
18
|
+
*/
|
|
19
|
+
icon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* icon color,
|
|
22
|
+
*/
|
|
23
|
+
iconColor?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The label that will show up beside (right) the icon, if not specified then it won't show up
|
|
26
|
+
*/
|
|
27
|
+
label?: string | ReactElement;
|
|
28
|
+
/**
|
|
29
|
+
* The string that will show up as a notification badge which will show up at the upper right corner of the icon
|
|
30
|
+
*/
|
|
31
|
+
badge?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The callback handler to be registered which will be called when menu item is clicked
|
|
34
|
+
*/
|
|
35
|
+
onClick?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* The test id used to reference the html element which is bound to the onClick function
|
|
38
|
+
*/
|
|
39
|
+
'data-testid'?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Allow the selected state to be controlled externally
|
|
42
|
+
*/
|
|
43
|
+
isSelected?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The callback handler to be registered which will be called when outside of menu item is clicked
|
|
46
|
+
*/
|
|
47
|
+
onClickOutside?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* The callback handler to be registered which will be called when Escape key is pressed
|
|
50
|
+
*/
|
|
51
|
+
onEscape?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* The tooltip when mouse over the menu item
|
|
54
|
+
*/
|
|
55
|
+
tooltip?: {
|
|
56
|
+
/**
|
|
57
|
+
* The tooltip text
|
|
58
|
+
*/
|
|
59
|
+
text: string;
|
|
60
|
+
/**
|
|
61
|
+
* The tooltip anchor origin, default to left
|
|
62
|
+
*/
|
|
63
|
+
anchorOrigin?: 'left' | 'right';
|
|
64
|
+
/**
|
|
65
|
+
* The tooltip theme, default to dark
|
|
66
|
+
*/
|
|
67
|
+
theme?: 'dark' | 'light';
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Allow appending custom class
|
|
71
|
+
*/
|
|
72
|
+
className?: string;
|
|
73
|
+
};
|
|
74
|
+
declare const LuiHeaderMenuItemV2: React.ForwardRefExoticComponent<LuiHeaderMenuItemV2Props & {
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
export type LuiCloseableHeaderMenuContextType = {
|
|
78
|
+
isOpen: boolean;
|
|
79
|
+
toggle: () => void;
|
|
80
|
+
open: () => void;
|
|
81
|
+
close: () => void;
|
|
82
|
+
};
|
|
83
|
+
export declare const LuiCloseableHeaderMenuContextV2: React.Context<LuiCloseableHeaderMenuContextType>;
|
|
84
|
+
declare const useLuiCloseableHeaderMenuContextV2: () => LuiCloseableHeaderMenuContextType;
|
|
85
|
+
type LuiCloseableHeaderMenuItemV2Props = Omit<LuiHeaderMenuItemV2Props, 'onClick' | 'isSelected'> & {
|
|
86
|
+
menuControls: {
|
|
87
|
+
isOpen: boolean;
|
|
88
|
+
toggle: () => void;
|
|
89
|
+
setOpen: (open: boolean) => void;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
declare const LuiCloseableHeaderMenuItemV2: ({ children, menuControls, ...props }: LuiCloseableHeaderMenuItemV2Props & {
|
|
93
|
+
children?: ReactNode;
|
|
94
|
+
}) => React.JSX.Element;
|
|
95
|
+
type LuiMenuCloseButtonV2Props = {
|
|
96
|
+
'data-testid'?: string;
|
|
97
|
+
hide?: boolean;
|
|
98
|
+
icon?: string;
|
|
99
|
+
iconSize?: IconSize;
|
|
100
|
+
iconColor?: string;
|
|
101
|
+
};
|
|
102
|
+
declare const LuiMenuCloseButtonV2: ({ icon, hide, iconSize, iconColor, "data-testid": dataTestId, }: LuiMenuCloseButtonV2Props) => React.JSX.Element;
|
|
103
|
+
export { LuiHeaderV2Props, LuiHeaderV2, LuiHeaderMenuItemV2Props, LuiHeaderMenuItemV2, LuiCloseableHeaderMenuItemV2Props, LuiCloseableHeaderMenuItemV2, useLuiCloseableHeaderMenuContextV2, LuiMenuCloseButtonV2Props, LuiMenuCloseButtonV2, };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { ICONS } from '../../assets/svg-content';
|
|
2
|
-
import React, { InputHTMLAttributes } from 'react';
|
|
3
|
-
export type IconSize = keyof typeof ICON_SIZES;
|
|
4
|
-
export type IconStatus = keyof typeof ICON_STATUS;
|
|
5
|
-
export type IconName = keyof typeof ICONS;
|
|
6
|
-
export interface LuiIconProps {
|
|
7
|
-
/**
|
|
8
|
-
* The `ic_string` name
|
|
9
|
-
*/
|
|
10
|
-
name: IconName;
|
|
11
|
-
alt: string;
|
|
12
|
-
size?: IconSize;
|
|
13
|
-
status?: IconStatus;
|
|
14
|
-
className?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
spanProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
-
color?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const ICON_SIZES: {
|
|
20
|
-
xs: string;
|
|
21
|
-
sm: string;
|
|
22
|
-
md: string;
|
|
23
|
-
lg: string;
|
|
24
|
-
xl: string;
|
|
25
|
-
ns: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const ICON_STATUS: {
|
|
28
|
-
none: string;
|
|
29
|
-
error: string;
|
|
30
|
-
warning: string;
|
|
31
|
-
success: string;
|
|
32
|
-
interactive: string;
|
|
33
|
-
disabled: string;
|
|
34
|
-
};
|
|
35
|
-
export declare const LuiIcon: React.ForwardRefExoticComponent<LuiIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1
|
+
import { ICONS } from '../../assets/svg-content';
|
|
2
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
3
|
+
export type IconSize = keyof typeof ICON_SIZES;
|
|
4
|
+
export type IconStatus = keyof typeof ICON_STATUS;
|
|
5
|
+
export type IconName = keyof typeof ICONS;
|
|
6
|
+
export interface LuiIconProps {
|
|
7
|
+
/**
|
|
8
|
+
* The `ic_string` name
|
|
9
|
+
*/
|
|
10
|
+
name: IconName;
|
|
11
|
+
alt: string;
|
|
12
|
+
size?: IconSize;
|
|
13
|
+
status?: IconStatus;
|
|
14
|
+
className?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
spanProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const ICON_SIZES: {
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
ns: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const ICON_STATUS: {
|
|
28
|
+
none: string;
|
|
29
|
+
error: string;
|
|
30
|
+
warning: string;
|
|
31
|
+
success: string;
|
|
32
|
+
interactive: string;
|
|
33
|
+
disabled: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const LuiIcon: React.ForwardRefExoticComponent<LuiIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import './LuiListBox.scss';
|
|
2
|
-
import 'react-loading-skeleton/dist/skeleton.css';
|
|
3
|
-
import { HTMLAttributes, ReactNode, MutableRefObject } from 'react';
|
|
4
|
-
import { Key, SelectionBehavior, SelectionMode } from '@react-types/shared';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { AriaListBoxOptions } from '@react-aria/listbox';
|
|
7
|
-
export type KeyGetter<T> = (item: T) => Key;
|
|
8
|
-
export type GroupGetter<T> = (item: T) => string | null;
|
|
9
|
-
export type LabelGetter<T> = (item: T) => string;
|
|
10
|
-
export interface ILuiListItemNode<T> {
|
|
11
|
-
key: Key;
|
|
12
|
-
textValue: string;
|
|
13
|
-
childNodes?: ILuiListItemNode<T>[];
|
|
14
|
-
value?: T;
|
|
15
|
-
}
|
|
16
|
-
export interface ILuiListBoxItem extends Object {
|
|
17
|
-
key: Key;
|
|
18
|
-
label: ReactNode;
|
|
19
|
-
group?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IItemRendererProps<T> {
|
|
22
|
-
item: T;
|
|
23
|
-
isSelected: boolean;
|
|
24
|
-
isDisabled: boolean;
|
|
25
|
-
isFocusVisible: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface IGroupHeadingRendererProps {
|
|
28
|
-
text: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ILuiListBoxProps<T = ILuiListBoxItem> extends Omit<HTMLAttributes<HTMLUListElement>, 'onChange'> {
|
|
31
|
-
ariaLabel?: string;
|
|
32
|
-
ariaLabelledBy?: string;
|
|
33
|
-
items?: T[];
|
|
34
|
-
value?: Key | Key[];
|
|
35
|
-
disabled?: boolean;
|
|
36
|
-
onChange?: (keys: Key[], items: T[]) => void;
|
|
37
|
-
ariaProps?: Omit<AriaListBoxOptions<ILuiListItemNode<T>>, 'children' | 'selectedKeys' | 'onSelectionChange' | 'selectionMode'>;
|
|
38
|
-
selectionMode?: SelectionMode;
|
|
39
|
-
selectionBehavior?: SelectionBehavior;
|
|
40
|
-
disabledKeys?: Key[];
|
|
41
|
-
itemRenderer?: (props: IItemRendererProps<T>) => ReactNode;
|
|
42
|
-
groupHeadingRenderer?: (props: IGroupHeadingRendererProps) => ReactNode;
|
|
43
|
-
getKey?: KeyGetter<T>;
|
|
44
|
-
getGroup?: GroupGetter<T>;
|
|
45
|
-
getLabel?: LabelGetter<T>;
|
|
46
|
-
loadingIndicator?: () => ReactNode;
|
|
47
|
-
emptyIndicator?: () => ReactNode;
|
|
48
|
-
onNavigateOutOfBounds?: (bound: 'start' | 'end') => void;
|
|
49
|
-
}
|
|
50
|
-
export interface ILuiListBoxHandle {
|
|
51
|
-
focusFirstItem: () => void;
|
|
52
|
-
selectFirstItem: () => void;
|
|
53
|
-
}
|
|
54
|
-
type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null;
|
|
55
|
-
export declare const LuiListBox: <T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T> & {
|
|
56
|
-
ref?: ForwardedRef<ILuiListBoxHandle
|
|
57
|
-
}) => ReturnType<typeof LuiListBoxWithRef>;
|
|
58
|
-
declare function LuiListBoxWithRef<T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T>, ref: ForwardedRef<ILuiListBoxHandle>): React.JSX.Element;
|
|
59
|
-
export {};
|
|
1
|
+
import './LuiListBox.scss';
|
|
2
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
3
|
+
import { HTMLAttributes, ReactNode, MutableRefObject } from 'react';
|
|
4
|
+
import { Key, SelectionBehavior, SelectionMode } from '@react-types/shared';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { AriaListBoxOptions } from '@react-aria/listbox';
|
|
7
|
+
export type KeyGetter<T> = (item: T) => Key;
|
|
8
|
+
export type GroupGetter<T> = (item: T) => string | null;
|
|
9
|
+
export type LabelGetter<T> = (item: T) => string;
|
|
10
|
+
export interface ILuiListItemNode<T> {
|
|
11
|
+
key: Key;
|
|
12
|
+
textValue: string;
|
|
13
|
+
childNodes?: ILuiListItemNode<T>[];
|
|
14
|
+
value?: T;
|
|
15
|
+
}
|
|
16
|
+
export interface ILuiListBoxItem extends Object {
|
|
17
|
+
key: Key;
|
|
18
|
+
label: ReactNode;
|
|
19
|
+
group?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IItemRendererProps<T> {
|
|
22
|
+
item: T;
|
|
23
|
+
isSelected: boolean;
|
|
24
|
+
isDisabled: boolean;
|
|
25
|
+
isFocusVisible: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface IGroupHeadingRendererProps {
|
|
28
|
+
text: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ILuiListBoxProps<T = ILuiListBoxItem> extends Omit<HTMLAttributes<HTMLUListElement>, 'onChange'> {
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
ariaLabelledBy?: string;
|
|
33
|
+
items?: T[];
|
|
34
|
+
value?: Key | Key[];
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
onChange?: (keys: Key[], items: T[]) => void;
|
|
37
|
+
ariaProps?: Omit<AriaListBoxOptions<ILuiListItemNode<T>>, 'children' | 'selectedKeys' | 'onSelectionChange' | 'selectionMode'>;
|
|
38
|
+
selectionMode?: SelectionMode;
|
|
39
|
+
selectionBehavior?: SelectionBehavior;
|
|
40
|
+
disabledKeys?: Key[];
|
|
41
|
+
itemRenderer?: (props: IItemRendererProps<T>) => ReactNode;
|
|
42
|
+
groupHeadingRenderer?: (props: IGroupHeadingRendererProps) => ReactNode;
|
|
43
|
+
getKey?: KeyGetter<T>;
|
|
44
|
+
getGroup?: GroupGetter<T>;
|
|
45
|
+
getLabel?: LabelGetter<T>;
|
|
46
|
+
loadingIndicator?: () => ReactNode;
|
|
47
|
+
emptyIndicator?: () => ReactNode;
|
|
48
|
+
onNavigateOutOfBounds?: (bound: 'start' | 'end') => void;
|
|
49
|
+
}
|
|
50
|
+
export interface ILuiListBoxHandle {
|
|
51
|
+
focusFirstItem: () => void;
|
|
52
|
+
selectFirstItem: () => void;
|
|
53
|
+
}
|
|
54
|
+
type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null;
|
|
55
|
+
export declare const LuiListBox: <T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T> & {
|
|
56
|
+
ref?: ForwardedRef<ILuiListBoxHandle>;
|
|
57
|
+
}) => ReturnType<typeof LuiListBoxWithRef>;
|
|
58
|
+
declare function LuiListBoxWithRef<T extends object = ILuiListBoxItem>(props: ILuiListBoxProps<T>, ref: ForwardedRef<ILuiListBoxHandle>): React.JSX.Element;
|
|
59
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ListState } from '@react-stately/list';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { IGroupHeadingRendererProps, IItemRendererProps, ILuiListItemNode } from './LuiListBox';
|
|
4
|
-
export interface ILuiListBoxSectionProps<T> {
|
|
5
|
-
group: ILuiListItemNode<T>;
|
|
6
|
-
state: ListState<ILuiListItemNode<T>>;
|
|
7
|
-
headingRenderer: (props: IGroupHeadingRendererProps) => ReactNode;
|
|
8
|
-
itemRenderer: (item: IItemRendererProps<T>) => ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function LuiListBoxGroup<T>({ group, state, headingRenderer, itemRenderer, }: ILuiListBoxSectionProps<T>): React.JSX.Element;
|
|
1
|
+
import { ListState } from '@react-stately/list';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { IGroupHeadingRendererProps, IItemRendererProps, ILuiListItemNode } from './LuiListBox';
|
|
4
|
+
export interface ILuiListBoxSectionProps<T> {
|
|
5
|
+
group: ILuiListItemNode<T>;
|
|
6
|
+
state: ListState<ILuiListItemNode<T>>;
|
|
7
|
+
headingRenderer: (props: IGroupHeadingRendererProps) => ReactNode;
|
|
8
|
+
itemRenderer: (item: IItemRendererProps<T>) => ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function LuiListBoxGroup<T>({ group, state, headingRenderer, itemRenderer, }: ILuiListBoxSectionProps<T>): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IItemRendererProps, ILuiListItemNode } from './LuiListBox';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { ListState } from '@react-stately/list';
|
|
5
|
-
export interface ILuiListBoxItemProps<T> {
|
|
6
|
-
node: ILuiListItemNode<T>;
|
|
7
|
-
state: ListState<ILuiListItemNode<T>>;
|
|
8
|
-
renderer: (item: IItemRendererProps<T>) => ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export default function LuiListBoxItem<T>({ node, state, renderer, }: ILuiListBoxItemProps<T>): React.JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IItemRendererProps, ILuiListItemNode } from './LuiListBox';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ListState } from '@react-stately/list';
|
|
5
|
+
export interface ILuiListBoxItemProps<T> {
|
|
6
|
+
node: ILuiListItemNode<T>;
|
|
7
|
+
state: ListState<ILuiListItemNode<T>>;
|
|
8
|
+
renderer: (item: IItemRendererProps<T>) => ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export default function LuiListBoxItem<T>({ node, state, renderer, }: ILuiListBoxItemProps<T>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './CheckboxItemRenderer.scss';
|
|
2
|
-
import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare function CheckboxItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
|
|
1
|
+
import './CheckboxItemRenderer.scss';
|
|
2
|
+
import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare function CheckboxItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './RadioItemRenderer.scss';
|
|
2
|
-
import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare function RadioItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
|
|
1
|
+
import './RadioItemRenderer.scss';
|
|
2
|
+
import { IItemRendererProps, ILuiListBoxItem } from '../LuiListBox';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare function RadioItemRenderer({ item, isSelected, }: IItemRendererProps<ILuiListBoxItem>): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ListProps } from '@react-stately/list';
|
|
2
|
-
import { ILuiListBoxProps, ILuiListItemNode } from './LuiListBox';
|
|
3
|
-
export declare function useLuiListBox<T extends object>({ selectionMode, selectionBehavior, items, value, onChange, ariaProps, disabled, disabledKeys, getGroup, getKey, getLabel, }: ILuiListBoxProps<T>): ListProps<ILuiListItemNode<T>>;
|
|
1
|
+
import { ListProps } from '@react-stately/list';
|
|
2
|
+
import { ILuiListBoxProps, ILuiListItemNode } from './LuiListBox';
|
|
3
|
+
export declare function useLuiListBox<T extends object>({ selectionMode, selectionBehavior, items, value, onChange, ariaProps, disabled, disabledKeys, getGroup, getKey, getLabel, }: ILuiListBoxProps<T>): ListProps<ILuiListItemNode<T>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* A LuiSpinner with a status message beneath it.
|
|
4
|
-
*/
|
|
5
|
-
export declare const LuiStatusSpinner: React.FC<React.PropsWithChildren<unknown>>;
|
|
6
|
-
interface LuiMiniSpinnerProps {
|
|
7
|
-
size: number;
|
|
8
|
-
divProps?: any;
|
|
9
|
-
highContrast?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const LuiMiniSpinner: React.MemoExoticComponent<(props: LuiMiniSpinnerProps) => React.JSX.Element>;
|
|
12
|
-
export declare const LuiLoadingSpinner: (props: {
|
|
13
|
-
dataTestId?: string;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
export declare function isChromatic(): boolean;
|
|
16
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A LuiSpinner with a status message beneath it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const LuiStatusSpinner: React.FC<React.PropsWithChildren<unknown>>;
|
|
6
|
+
interface LuiMiniSpinnerProps {
|
|
7
|
+
size: number;
|
|
8
|
+
divProps?: any;
|
|
9
|
+
highContrast?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const LuiMiniSpinner: React.MemoExoticComponent<(props: LuiMiniSpinnerProps) => React.JSX.Element>;
|
|
12
|
+
export declare const LuiLoadingSpinner: (props: {
|
|
13
|
+
dataTestId?: string;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare function isChromatic(): boolean;
|
|
16
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface LuiLottieLightProps {
|
|
3
|
-
animationData: any;
|
|
4
|
-
loop: boolean;
|
|
5
|
-
autoplay: boolean;
|
|
6
|
-
rendererSettings: any;
|
|
7
|
-
style: any;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Very trivial react wrapper for Lottie-web light. Using lottie-web directly rather than with `react-lottie` or
|
|
11
|
-
* `lottie-react` reduces our bundle size and enables use to use lottie-web in light mode.
|
|
12
|
-
*/
|
|
13
|
-
export declare const LuiLottieLight: ({ animationData, style, rendererSettings, autoplay, loop, }: LuiLottieLightProps) => React.JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LuiLottieLightProps {
|
|
3
|
+
animationData: any;
|
|
4
|
+
loop: boolean;
|
|
5
|
+
autoplay: boolean;
|
|
6
|
+
rendererSettings: any;
|
|
7
|
+
style: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Very trivial react wrapper for Lottie-web light. Using lottie-web directly rather than with `react-lottie` or
|
|
11
|
+
* `lottie-react` reduces our bundle size and enables use to use lottie-web in light mode.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LuiLottieLight: ({ animationData, style, rendererSettings, autoplay, loop, }: LuiLottieLightProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ControlledMenuProps, MenuProps } from '@szhsin/react-menu';
|
|
3
|
-
/**
|
|
4
|
-
* A menu controlled by a user-supplied MenuButton. Open/closed state is managed internally. The defaulted style props,
|
|
5
|
-
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
6
|
-
*/
|
|
7
|
-
export declare const LuiMenu: (props: MenuProps) => React.JSX.Element;
|
|
8
|
-
/**
|
|
9
|
-
* A menu with state managed externally. Can be used quite conveniently as a context menu. The defaulted style props,
|
|
10
|
-
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
11
|
-
*/
|
|
12
|
-
export declare const LuiControlledMenu: (props: ControlledMenuProps) => React.JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ControlledMenuProps, MenuProps } from '@szhsin/react-menu';
|
|
3
|
+
/**
|
|
4
|
+
* A menu controlled by a user-supplied MenuButton. Open/closed state is managed internally. The defaulted style props,
|
|
5
|
+
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LuiMenu: (props: MenuProps) => React.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* A menu with state managed externally. Can be used quite conveniently as a context menu. The defaulted style props,
|
|
10
|
+
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LuiControlledMenu: (props: ControlledMenuProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ILuiMenuTrigger {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const LuiMenuTrigger: ({ className }: ILuiMenuTrigger) => React.JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ILuiMenuTrigger {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const LuiMenuTrigger: ({ className }: ILuiMenuTrigger) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { LuiModalV2Props } from './LuiModalV2';
|
|
3
|
-
export type LuiAlertModalLevel = 'success' | 'info' | 'warning' | 'error';
|
|
4
|
-
export type LuiAlertModalV2Props = Omit<LuiModalV2Props, 'headingIcon'> & {
|
|
5
|
-
level: LuiAlertModalLevel;
|
|
6
|
-
};
|
|
7
|
-
export declare const LuiAlertModalV2: FC<PropsWithChildren<LuiAlertModalV2Props>>;
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { LuiModalV2Props } from './LuiModalV2';
|
|
3
|
+
export type LuiAlertModalLevel = 'success' | 'info' | 'warning' | 'error';
|
|
4
|
+
export type LuiAlertModalV2Props = Omit<LuiModalV2Props, 'headingIcon'> & {
|
|
5
|
+
level: LuiAlertModalLevel;
|
|
6
|
+
};
|
|
7
|
+
export declare const LuiAlertModalV2: FC<PropsWithChildren<LuiAlertModalV2Props>>;
|