@lumx/react 4.3.2-alpha.12 → 4.3.2-alpha.14
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/Tooltip-CCXZsfG-.d.ts +986 -0
- package/_internal/BCgo9dYV.js +1805 -0
- package/_internal/BCgo9dYV.js.map +1 -0
- package/index.d.ts +335 -672
- package/index.js +1696 -323
- package/index.js.map +1 -1
- package/package.json +3 -7
- package/utils/index.d.ts +35 -1
- package/utils/index.js +3 -1322
- package/utils/index.js.map +1 -1
- package/_internal/DpdvhbTO.js +0 -159
- package/_internal/DpdvhbTO.js.map +0 -1
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/core": "^4.3.2-alpha.
|
|
10
|
-
"@lumx/icons": "^4.3.2-alpha.
|
|
9
|
+
"@lumx/core": "^4.3.2-alpha.14",
|
|
10
|
+
"@lumx/icons": "^4.3.2-alpha.14",
|
|
11
11
|
"@popperjs/core": "^2.5.4",
|
|
12
12
|
"body-scroll-lock": "^3.1.5",
|
|
13
13
|
"react-popper": "^2.2.4"
|
|
@@ -76,10 +76,6 @@
|
|
|
76
76
|
"main": "index.js",
|
|
77
77
|
"types": "index.d.ts",
|
|
78
78
|
"name": "@lumx/react",
|
|
79
|
-
"exports": {
|
|
80
|
-
".": "./injdex.js",
|
|
81
|
-
"utils": "./utils/index.js"
|
|
82
|
-
},
|
|
83
79
|
"publishConfig": {
|
|
84
80
|
"directory": "dist"
|
|
85
81
|
},
|
|
@@ -96,6 +92,6 @@
|
|
|
96
92
|
"build:storybook": "storybook build"
|
|
97
93
|
},
|
|
98
94
|
"sideEffects": false,
|
|
99
|
-
"version": "4.3.2-alpha.
|
|
95
|
+
"version": "4.3.2-alpha.14",
|
|
100
96
|
"stableVersion": "4.3.1"
|
|
101
97
|
}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React__default, { RefObject, ReactNode, AriaAttributes } from 'react';
|
|
2
|
+
import { $ as ComboboxAction, i as ComboboxProps, a0 as ComboboxSelectionType, a1 as ComboboxTranslations, a2 as BaseLoadingStatus, a3 as RegisteredComboboxOption, a4 as ComboboxOptionSelectEventSource } from '../Tooltip-CCXZsfG-.js';
|
|
2
3
|
import { Falsy } from '@lumx/core/js/types';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
import { DisabledStateContextValue } from '@lumx/core/js/utils/disabledState';
|
|
5
6
|
import { ObjectValues } from '@lumx/core/src/js/types/ObjectValues';
|
|
7
|
+
import '@lumx/core/js/constants';
|
|
8
|
+
import '@lumx/core/js/types/Selector';
|
|
6
9
|
|
|
7
10
|
interface ClickAwayParameters {
|
|
8
11
|
/**
|
|
@@ -396,5 +399,36 @@ type Output = [
|
|
|
396
399
|
*/
|
|
397
400
|
declare const useRovingTabIndex: (...args: BaseHookOptions) => Output;
|
|
398
401
|
|
|
399
|
-
|
|
402
|
+
/** Dispatch for the combobox component */
|
|
403
|
+
type ComboboxDispatch = React.Dispatch<ComboboxAction>;
|
|
404
|
+
|
|
405
|
+
/** Retrieve the current combobox state and actions */
|
|
406
|
+
declare const useCombobox: () => {
|
|
407
|
+
openOnFocus?: ComboboxProps["openOnFocus"];
|
|
408
|
+
openOnClick?: ComboboxProps["openOnClick"];
|
|
409
|
+
optionsLength: number;
|
|
410
|
+
selectedIds?: Array<string>;
|
|
411
|
+
selectionType?: ComboboxSelectionType;
|
|
412
|
+
showErrorState?: boolean;
|
|
413
|
+
showEmptyState?: boolean;
|
|
414
|
+
translations: ComboboxTranslations;
|
|
415
|
+
comboboxId: string;
|
|
416
|
+
listboxId: string;
|
|
417
|
+
status: BaseLoadingStatus;
|
|
418
|
+
options: Record<string, RegisteredComboboxOption>;
|
|
419
|
+
isOpen: boolean;
|
|
420
|
+
showAll: boolean;
|
|
421
|
+
type: "listbox" | "grid";
|
|
422
|
+
defaultInputValue?: string;
|
|
423
|
+
handleClose: () => void;
|
|
424
|
+
handleOpen: (params?: {
|
|
425
|
+
manual?: boolean;
|
|
426
|
+
}) => Promise<RegisteredComboboxOption[] | undefined>;
|
|
427
|
+
handleInputChange: (value: string, name?: string, event?: React__default.SyntheticEvent) => void;
|
|
428
|
+
handleSelected: (option: RegisteredComboboxOption, source?: ComboboxOptionSelectEventSource) => void;
|
|
429
|
+
dispatch: ComboboxDispatch;
|
|
430
|
+
inputValue: string;
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
export { A11YLiveMessage, ClickAwayProvider, DisabledStateProvider, InfiniteScroll, MovingFocusContext, MovingFocusProvider, Portal, PortalProvider, useCombobox, useDisabledStateContext, useRovingTabIndex, useVirtualFocus, useVirtualFocusParent };
|
|
400
434
|
export type { A11YLiveMessageProps, InfiniteScrollProps, PortalInit, PortalProps, PortalProviderProps };
|