@lumx/core 4.1.0 → 4.1.1-alpha.1

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,2 @@
1
+ import type { AriaAttributes } from 'react';
2
+ export type { AriaAttributes };
@@ -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,5 @@
1
+ import { Booleanish } from './Booleanish';
2
+ export interface HasAriaDisabled {
3
+ /** Similar to `disabled` but does not block pointer events or focus */
4
+ 'aria-disabled'?: Booleanish;
5
+ }
@@ -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;
@@ -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';
@@ -16,3 +16,8 @@ export type { LumxClassName } from './LumxClassName';
16
16
  export type { Direction } from './Direction';
17
17
  export type { Spacing } from './Spacing';
18
18
  export type { ObjectValues } from './ObjectValues';
19
+ export type { HasRequiredLinkHref } from './HasRequiredLinkHref';
20
+ export type { HasPolymorphicAs } from './HasPolymorphicAs';
21
+ export type { CommonRef } from './CommonRef';
22
+ export type { HasAriaDisabled } from './HasAriaDisabled';
23
+ export type { AriaAttributes } from './AriaAttributes';
package/lumx.css CHANGED
@@ -12797,6 +12797,7 @@ table {
12797
12797
  .lumx-user-block {
12798
12798
  display: flex;
12799
12799
  align-items: center;
12800
+ min-width: 0;
12800
12801
  }
12801
12802
  .lumx-user-block--orientation-vertical {
12802
12803
  flex-direction: column;
@@ -12819,13 +12820,12 @@ table {
12819
12820
  .lumx-user-block__wrapper {
12820
12821
  display: flex;
12821
12822
  flex-direction: column;
12823
+ min-width: 0;
12822
12824
  }
12823
12825
  .lumx-user-block--orientation-vertical .lumx-user-block__wrapper {
12824
12826
  align-items: center;
12825
12827
  }
12826
12828
  .lumx-user-block__name {
12827
- width: -moz-fit-content;
12828
- width: fit-content;
12829
12829
  outline: none;
12830
12830
  font-size: 14px;
12831
12831
  font-weight: var(--lumx-typography-interface-subtitle1-font-weight);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/icons": "^4.1.0",
9
+ "@lumx/icons": "^4.1.1-alpha.1",
10
10
  "classnames": "^2.3.2",
11
11
  "focus-visible": "^5.0.2",
12
12
  "lodash": "4.17.23",
@@ -36,11 +36,12 @@
36
36
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
37
37
  },
38
38
  "sideEffects": false,
39
- "version": "4.1.0",
39
+ "version": "4.1.1-alpha.1",
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
  }
@@ -9,6 +9,7 @@
9
9
 
10
10
  display: flex;
11
11
  align-items: center;
12
+ min-width: 0;
12
13
 
13
14
  &--orientation-vertical {
14
15
  flex-direction: column;
@@ -42,6 +43,7 @@
42
43
  &__wrapper {
43
44
  display: flex;
44
45
  flex-direction: column;
46
+ min-width: 0;
45
47
 
46
48
  #{$self}--orientation-vertical & {
47
49
  align-items: center;
@@ -49,14 +51,12 @@
49
51
  }
50
52
 
51
53
  &__name {
52
- width: fit-content;
53
54
  outline: none;
54
55
 
55
56
  #{$self}--size-xs & {
56
57
  @include lumx-typography("body1");
57
58
  }
58
59
 
59
-
60
60
  @include lumx-typography("subtitle1");
61
61
 
62
62
  #{$self}--orientation-vertical & {