@lumx/react 4.3.2-alpha.2 → 4.3.2-alpha.20

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.2",
10
- "@lumx/icons": "^4.3.2-alpha.2",
9
+ "@lumx/core": "^4.3.2-alpha.20",
10
+ "@lumx/icons": "^4.3.2-alpha.20",
11
11
  "@popperjs/core": "^2.5.4",
12
12
  "body-scroll-lock": "^3.1.5",
13
13
  "react-popper": "^2.2.4"
@@ -21,6 +21,7 @@
21
21
  "@rollup/plugin-commonjs": "^29.0.0",
22
22
  "@rollup/plugin-node-resolve": "^16.0.3",
23
23
  "@storybook/addon-a11y": "^10.2.0",
24
+ "@storybook/addon-vitest": "10.2.0",
24
25
  "@storybook/react-vite": "^10.2.0",
25
26
  "@testing-library/dom": "^10.4.1",
26
27
  "@testing-library/react": "^16.3.1",
@@ -31,6 +32,7 @@
31
32
  "@types/lodash": "^4.14.149",
32
33
  "@types/react": "^18.3.24",
33
34
  "@types/react-dom": "^18.3.7",
35
+ "@vitest/browser-playwright": "^4.0.18",
34
36
  "@vitest/ui": "^4.0.18",
35
37
  "autoprefixer": "^9.7.4",
36
38
  "chromatic": "^13.1.4",
@@ -38,6 +40,7 @@
38
40
  "glob": "^7.1.6",
39
41
  "jsdom": "^27.2.0",
40
42
  "lodash": "4.17.23",
43
+ "playwright": "^1.58.2",
41
44
  "react": "^18.3.1",
42
45
  "react-dom": "^18.3.1",
43
46
  "rollup": "^4.56.0",
@@ -48,6 +51,7 @@
48
51
  "rollup-plugin-peer-deps-external": "^2.2.4",
49
52
  "rollup-plugin-ts-paths-resolve": "^1.7.1",
50
53
  "storybook": "^10.2.0",
54
+ "storybook-addon-vis": "^3.1.2",
51
55
  "typescript": "^5.4.3",
52
56
  "vite": "^7.3.1",
53
57
  "vite-tsconfig-paths": "^5.1.4",
@@ -72,6 +76,16 @@
72
76
  "main": "index.js",
73
77
  "types": "index.d.ts",
74
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
+ },
75
89
  "publishConfig": {
76
90
  "directory": "dist"
77
91
  },
@@ -82,11 +96,12 @@
82
96
  "scripts": {
83
97
  "build": "rollup -c",
84
98
  "test": "vitest run --run",
99
+ "test:storybook": "vitest -c .storybook/vitest.config.mts run --run",
85
100
  "type-check": "yarn tsc -p tsconfig.json",
86
101
  "start:storybook": "storybook dev -p 9000",
87
102
  "build:storybook": "storybook build"
88
103
  },
89
104
  "sideEffects": false,
90
- "version": "4.3.2-alpha.2",
105
+ "version": "4.3.2-alpha.20",
91
106
  "stableVersion": "4.3.1"
92
107
  }
package/utils/index.d.ts CHANGED
@@ -2,7 +2,12 @@ import React__default, { RefObject, ReactNode, AriaAttributes } from 'react';
2
2
  import { Falsy } from '@lumx/core/js/types';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DisabledStateContextValue } from '@lumx/core/js/utils/disabledState';
5
- import { ObjectValues } from '@lumx/core/src/js/types/ObjectValues';
5
+
6
+ /**
7
+ * Returns a union type of the given generic values.
8
+ *
9
+ */
10
+ type ObjectValues<T> = T[keyof T];
6
11
 
7
12
  interface ClickAwayParameters {
8
13
  /**
package/utils/index.js CHANGED
@@ -2,13 +2,13 @@ import React__default, { useEffect } from 'react';
2
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
- import noop from 'lodash/noop';
6
- import findLast from 'lodash/findLast';
7
- import find from 'lodash/find';
8
- import findLastIndex from 'lodash/findLastIndex';
9
- import isNil from 'lodash/isNil';
10
- import groupBy from 'lodash/groupBy';
11
- import uniqueId from 'lodash/uniqueId';
5
+ import noop from 'lodash/noop.js';
6
+ import findLast from 'lodash/findLast.js';
7
+ import find from 'lodash/find.js';
8
+ import findLastIndex from 'lodash/findLastIndex.js';
9
+ import isNil from 'lodash/isNil.js';
10
+ import groupBy from 'lodash/groupBy.js';
11
+ import uniqueId from 'lodash/uniqueId.js';
12
12
 
13
13
  // The error margin in px we want to have for triggering infinite scroll
14
14
  const CLASSNAME = 'lumx-infinite-scroll-anchor';