@lumx/react 4.3.2-alpha.14 → 4.3.2-alpha.16

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/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.14",
10
- "@lumx/icons": "^4.3.2-alpha.14",
9
+ "@lumx/core": "^4.3.2-alpha.16",
10
+ "@lumx/icons": "^4.3.2-alpha.16",
11
11
  "@popperjs/core": "^2.5.4",
12
12
  "body-scroll-lock": "^3.1.5",
13
13
  "react-popper": "^2.2.4"
@@ -76,6 +76,16 @@
76
76
  "main": "index.js",
77
77
  "types": "index.d.ts",
78
78
  "name": "@lumx/react",
79
+ "exports": {
80
+ ".": {
81
+ "default": "./index.js",
82
+ "types": "./index.d.ts"
83
+ },
84
+ "./utils": {
85
+ "default": "./utils/index.js",
86
+ "types": "./utils/index.d.ts"
87
+ }
88
+ },
79
89
  "publishConfig": {
80
90
  "directory": "dist"
81
91
  },
@@ -92,6 +102,6 @@
92
102
  "build:storybook": "storybook build"
93
103
  },
94
104
  "sideEffects": false,
95
- "version": "4.3.2-alpha.14",
105
+ "version": "4.3.2-alpha.16",
96
106
  "stableVersion": "4.3.1"
97
107
  }
package/utils/index.d.ts CHANGED
@@ -1,11 +1,8 @@
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';
3
2
  import { Falsy } from '@lumx/core/js/types';
4
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
4
  import { DisabledStateContextValue } from '@lumx/core/js/utils/disabledState';
6
5
  import { ObjectValues } from '@lumx/core/src/js/types/ObjectValues';
7
- import '@lumx/core/js/constants';
8
- import '@lumx/core/js/types/Selector';
9
6
 
10
7
  interface ClickAwayParameters {
11
8
  /**
@@ -399,36 +396,5 @@ type Output = [
399
396
  */
400
397
  declare const useRovingTabIndex: (...args: BaseHookOptions) => Output;
401
398
 
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 };
399
+ export { A11YLiveMessage, ClickAwayProvider, DisabledStateProvider, InfiniteScroll, MovingFocusContext, MovingFocusProvider, Portal, PortalProvider, useDisabledStateContext, useRovingTabIndex, useVirtualFocus, useVirtualFocusParent };
434
400
  export type { A11YLiveMessageProps, InfiniteScrollProps, PortalInit, PortalProps, PortalProviderProps };