@lumx/core 4.0.1-alpha.9 → 4.1.1-alpha.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.
@@ -0,0 +1 @@
1
+ export type Booleanish = boolean | 'true' | 'false';
@@ -0,0 +1,4 @@
1
+ export type CommonRef<T = HTMLElement> = {
2
+ readonly current?: T | null;
3
+ value?: T;
4
+ };
@@ -0,0 +1,8 @@
1
+ import type React from 'react';
2
+ import { ElementType } from './JSXElement';
3
+ export type HasPolymorphicAs<E extends ElementType> = React.ComponentPropsWithoutRef<E> & {
4
+ /**
5
+ * Customize the rendered component.
6
+ */
7
+ as?: E;
8
+ };
@@ -0,0 +1,3 @@
1
+ export type HasRequiredLinkHref<E> = E extends 'a' ? {
2
+ href: string;
3
+ } : Record<string, unknown>;
@@ -1,2 +1,3 @@
1
1
  import type React from 'react';
2
2
  export type JSXElement = boolean | number | string | React.JSX.Element | Iterable<JSXElement> | undefined | null;
3
+ export type ElementType = React.ElementType;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Returns a union type of the given generic values.
3
+ *
4
+ */
5
+ export type ObjectValues<T> = T[keyof T];
@@ -5,7 +5,7 @@ export type { HasClassName } from './HasClassName';
5
5
  export type { HasCloseMode } from './HasCloseMode';
6
6
  export type { HasTheme } from './HasTheme';
7
7
  export type { GenericProps } from './GenericProps';
8
- export type { JSXElement } from './JSXElement';
8
+ export type { JSXElement, ElementType } from './JSXElement';
9
9
  export type { HeadingElement } from './HeadingElement';
10
10
  export type { Point } from './Point';
11
11
  export type { Predicate } from './Predicate';
@@ -15,3 +15,7 @@ export type { ValueOf } from './ValueOf';
15
15
  export type { LumxClassName } from './LumxClassName';
16
16
  export type { Direction } from './Direction';
17
17
  export type { Spacing } from './Spacing';
18
+ export type { ObjectValues } from './ObjectValues';
19
+ export type { HasRequiredLinkHref } from './HasRequiredLinkHref';
20
+ export type { HasPolymorphicAs } from './HasPolymorphicAs';
21
+ export type { CommonRef } from './CommonRef';
package/package.json CHANGED
@@ -6,10 +6,10 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/icons": "^4.0.1-alpha.9",
9
+ "@lumx/icons": "^4.1.1-alpha.0",
10
10
  "classnames": "^2.3.2",
11
11
  "focus-visible": "^5.0.2",
12
- "lodash": "4.17.21",
12
+ "lodash": "4.17.23",
13
13
  "sass-mq": "^6.0.0"
14
14
  },
15
15
  "description": "LumX core",
@@ -36,11 +36,12 @@
36
36
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
37
37
  },
38
38
  "sideEffects": false,
39
- "version": "4.0.1-alpha.9",
39
+ "version": "4.1.1-alpha.0",
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-typescript": "^12.3.0",
42
42
  "@testing-library/dom": "^10.4.1",
43
43
  "@testing-library/jest-dom": "^6.6.3",
44
+ "@testing-library/user-event": "^14.6.1",
44
45
  "@types/react": "^18.3.24",
45
46
  "autoprefixer": "^9.7.4",
46
47
  "glob": "^7.1.6",
@@ -58,5 +59,6 @@
58
59
  "vite": "^6.3.5",
59
60
  "vite-tsconfig-paths": "^5.1.4",
60
61
  "vitest": "^3.0.0"
61
- }
62
+ },
63
+ "stableVersion": "4.1.0"
62
64
  }