@lumx/react 4.3.2-alpha.6 → 4.3.2-alpha.8

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/index.d.ts CHANGED
@@ -673,7 +673,7 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
673
673
  * @param ref Component ref.
674
674
  * @return React element.
675
675
  */
676
- declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
676
+ declare const Button: Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>;
677
677
 
678
678
  interface IconButtonProps$1 extends BaseButtonProps {
679
679
  /**
@@ -2161,7 +2161,7 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
2161
2161
  * @param ref Component ref.
2162
2162
  * @return React element.
2163
2163
  */
2164
- declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
2164
+ declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
2165
2165
 
2166
2166
  /**
2167
2167
  * Defines the props of the component.
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { Kind as Kind$1, Size as Size$1, ColorPalette as ColorPalette$1, Emphasis as Emphasis$1, Theme as Theme$1, AspectRatio as AspectRatio$1, ColorVariant, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, Alignment, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants/index.js';
2
- export * from '@lumx/core/js/constants/index.js';
3
- export * from '@lumx/core/js/types/index.js';
1
+ import { Kind as Kind$1, Size as Size$1, ColorPalette as ColorPalette$1, Emphasis as Emphasis$1, Theme as Theme$1, AspectRatio as AspectRatio$1, ColorVariant, DIALOG_TRANSITION_DURATION, Orientation as Orientation$1, Alignment, NOTIFICATION_TRANSITION_DURATION, TOOLTIP_LONG_PRESS_DELAY, TOOLTIP_HOVER_DELAY } from '@lumx/core/js/constants';
2
+ export * from '@lumx/core/js/constants';
3
+ export * from '@lumx/core/js/types';
4
4
  import * as React from 'react';
5
5
  import React__default, { useState, useEffect, useMemo, useRef, useCallback, Children, useLayoutEffect, cloneElement, createContext, isValidElement, useContext, useReducer } from 'react';
6
6
  import { mdiAlert } from '@lumx/icons/esm/alert.js';
7
7
  import { mdiAlertCircle } from '@lumx/icons/esm/alert-circle.js';
8
8
  import { mdiCheckCircle } from '@lumx/icons/esm/check-circle.js';
9
9
  import { mdiInformation } from '@lumx/icons/esm/information.js';
10
- import { classNames, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils/index.js';
10
+ import { classNames, onEnterPressed, onEscapePressed, onButtonPressed, detectHorizontalSwipe } from '@lumx/core/js/utils';
11
11
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
12
12
  import last from 'lodash/last';
13
13
  import pull from 'lodash/pull';
@@ -18,7 +18,7 @@ import partition from 'lodash/partition';
18
18
  import reduce from 'lodash/reduce';
19
19
  import { u as useDisabledStateContext, P as Portal, C as ClickAwayProvider } from './_internal/DpdvhbTO.js';
20
20
  import isEmpty from 'lodash/isEmpty';
21
- import { getDisabledState } from '@lumx/core/js/utils/disabledState/index.js';
21
+ import { getDisabledState } from '@lumx/core/js/utils/disabledState';
22
22
  import { mdiCloseCircle } from '@lumx/icons/esm/close-circle.js';
23
23
  import memoize from 'lodash/memoize';
24
24
  import { mdiClose } from '@lumx/icons/esm/close.js';
@@ -47,7 +47,7 @@ import take from 'lodash/take';
47
47
  import { mdiRadioboxBlank } from '@lumx/icons/esm/radiobox-blank.js';
48
48
  import { mdiRadioboxMarked } from '@lumx/icons/esm/radiobox-marked.js';
49
49
  import { mdiMenuDown } from '@lumx/icons/esm/menu-down.js';
50
- import { getWithSelector } from '@lumx/core/js/utils/selectors/getWithSelector.js';
50
+ import { getWithSelector } from '@lumx/core/js/utils/selectors/getWithSelector';
51
51
  import { mdiArrowDown } from '@lumx/icons/esm/arrow-down.js';
52
52
  import { mdiArrowUp } from '@lumx/icons/esm/arrow-up.js';
53
53
  import set from 'lodash/set';
@@ -4074,7 +4074,7 @@ function getNodeName(element) {
4074
4074
  return element ? (element.nodeName || '').toLowerCase() : null;
4075
4075
  }
4076
4076
 
4077
- /*:: import type { Window } from '../types.js'; */
4077
+ /*:: import type { Window } from '../types'; */
4078
4078
 
4079
4079
  /*:: declare function getWindow(node: Node | Window): Window; */
4080
4080
  function getWindow(node) {
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.6",
10
- "@lumx/icons": "^4.3.2-alpha.6",
9
+ "@lumx/core": "^4.3.2-alpha.8",
10
+ "@lumx/icons": "^4.3.2-alpha.8",
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,10 @@
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
+ },
79
83
  "publishConfig": {
80
84
  "directory": "dist"
81
85
  },
@@ -92,6 +96,6 @@
92
96
  "build:storybook": "storybook build"
93
97
  },
94
98
  "sideEffects": false,
95
- "version": "4.3.2-alpha.6",
99
+ "version": "4.3.2-alpha.8",
96
100
  "stableVersion": "4.3.1"
97
101
  }
package/utils/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React__default, { useEffect } from 'react';
2
- import { join, visuallyHidden } from '@lumx/core/js/utils/classNames/index.js';
2
+ import { join, visuallyHidden } from '@lumx/core/js/utils/classNames';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  export { C as ClickAwayProvider, D as DisabledStateProvider, P as Portal, a as PortalProvider, u as useDisabledStateContext } from '../_internal/DpdvhbTO.js';
5
5
  import noop from 'lodash/noop';