@lumx/core 4.9.0-next.13 → 4.9.0-next.14

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.
@@ -5008,7 +5008,17 @@ table {
5008
5008
  /* ==========================================================================
5009
5009
  Combobox
5010
5010
  ========================================================================== */
5011
+ .lumx-combobox-input .lumx-text-field__chips {
5012
+ width: -moz-min-content;
5013
+ width: min-content;
5014
+ min-width: 0;
5015
+ }
5016
+
5011
5017
  .lumx-combobox-popover {
5018
+ max-height: 50vh;
5019
+ color: var(--lumx-color-dark-N);
5020
+ }
5021
+ .lumx-combobox-popover__scroll {
5012
5022
  overflow-y: auto;
5013
5023
  }
5014
5024
 
@@ -5031,7 +5041,11 @@ table {
5031
5041
  .lumx-combobox-option-skeleton:nth-child(3n+2) .lumx-skeleton-typography {
5032
5042
  width: min(55%, 170px);
5033
5043
  }
5034
-
5044
+ .lumx-combobox-option .lumx-list-item__content {
5045
+ display: flex;
5046
+ flex-direction: column;
5047
+ justify-items: center;
5048
+ }
5035
5049
  .lumx-combobox-option-more-info__popover {
5036
5050
  max-width: 256px;
5037
5051
  padding: 16px;
@@ -13,6 +13,12 @@ export interface ComboboxOptionSkeletonProps extends HasClassName {
13
13
  children?: JSXElement;
14
14
  /** ref to the root <li> element. */
15
15
  ref?: CommonRef;
16
+ /**
17
+ * Number of skeleton `<li>` elements to render.
18
+ * Each is an independent element with `:nth-child` width cycling applied by SCSS.
19
+ * @default 1
20
+ */
21
+ count?: number;
16
22
  }
17
23
  /**
18
24
  * Props that React/Vue wrappers need to re-declare with framework-specific types.
@@ -35,6 +35,8 @@ export interface ComboboxPopoverProps extends HasClassName {
35
35
  export interface ComboboxPopoverComponents {
36
36
  /** Popover component (framework-specific). */
37
37
  Popover: any;
38
+ /** FlexBox component (framework-specific). */
39
+ FlexBox: any;
38
40
  }
39
41
  /**
40
42
  * ComboboxPopover core template.
@@ -47,4 +49,4 @@ export interface ComboboxPopoverComponents {
47
49
  * @param components Injected framework-specific components.
48
50
  * @return JSX element.
49
51
  */
50
- export declare const ComboboxPopover: (props: ComboboxPopoverProps, { Popover }: ComboboxPopoverComponents) => import("react").JSX.Element;
52
+ export declare const ComboboxPopover: (props: ComboboxPopoverProps, { Popover, FlexBox }: ComboboxPopoverComponents) => import("react").JSX.Element;
package/lumx.css CHANGED
@@ -5689,7 +5689,17 @@ table {
5689
5689
  /* ==========================================================================
5690
5690
  Combobox
5691
5691
  ========================================================================== */
5692
+ .lumx-combobox-input .lumx-text-field__chips {
5693
+ width: -moz-min-content;
5694
+ width: min-content;
5695
+ min-width: 0;
5696
+ }
5697
+
5692
5698
  .lumx-combobox-popover {
5699
+ max-height: 50vh;
5700
+ color: var(--lumx-color-dark-N);
5701
+ }
5702
+ .lumx-combobox-popover__scroll {
5693
5703
  overflow-y: auto;
5694
5704
  }
5695
5705
 
@@ -5712,7 +5722,11 @@ table {
5712
5722
  .lumx-combobox-option-skeleton:nth-child(3n+2) .lumx-skeleton-typography {
5713
5723
  width: min(55%, 170px);
5714
5724
  }
5715
-
5725
+ .lumx-combobox-option .lumx-list-item__content {
5726
+ display: flex;
5727
+ flex-direction: column;
5728
+ justify-items: center;
5729
+ }
5716
5730
  .lumx-combobox-option-more-info__popover {
5717
5731
  max-width: 256px;
5718
5732
  padding: 16px;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@floating-ui/dom": "^1.7.5",
10
- "@lumx/icons": "^4.9.0-next.13",
10
+ "@lumx/icons": "^4.9.0-next.14",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.17.23",
@@ -69,7 +69,7 @@
69
69
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
70
70
  },
71
71
  "sideEffects": false,
72
- "version": "4.9.0-next.13",
72
+ "version": "4.9.0-next.14",
73
73
  "devDependencies": {
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
75
  "@testing-library/dom": "^10.4.1",
@@ -2,8 +2,23 @@
2
2
  Combobox
3
3
  ========================================================================== */
4
4
 
5
+ // ---- Input -----------------------
6
+ .#{$lumx-base-prefix}-combobox-input {
7
+ .#{$lumx-base-prefix}-text-field__chips {
8
+ width: min-content;
9
+ min-width: 0;
10
+ }
11
+ }
12
+
13
+ // ---- Popover -----------------------
14
+
5
15
  .#{$lumx-base-prefix}-combobox-popover {
6
- overflow-y: auto;
16
+ max-height: 50vh;
17
+ color: var(--lumx-color-dark-N);
18
+
19
+ &__scroll {
20
+ overflow-y: auto;
21
+ }
7
22
  }
8
23
 
9
24
  // Hide popover and list when there is no option, no state, and no skeleton
@@ -17,28 +32,42 @@
17
32
  }
18
33
  }
19
34
 
35
+ // ---- State -----------------------
36
+
20
37
  .#{$lumx-base-prefix}-combobox-state {
21
38
  text-align: center;
22
39
  }
23
40
 
24
- // Skeleton option placeholders — width variation via :nth-child cycling
25
- .#{$lumx-base-prefix}-combobox-option-skeleton {
26
- .#{$lumx-base-prefix}-skeleton-typography {
27
- width: min(65%, 200px);
28
- }
41
+ // ---- Option -----------------------
42
+
43
+ .#{$lumx-base-prefix}-combobox-option {
44
+ // Skeleton option placeholders — width variation via :nth-child cycling
45
+ &-skeleton {
46
+ .#{$lumx-base-prefix}-skeleton-typography {
47
+ width: min(65%, 200px);
48
+ }
29
49
 
30
- &:nth-child(3n + 1) .#{$lumx-base-prefix}-skeleton-typography {
31
- width: min(70%, 230px);
50
+ &:nth-child(3n + 1) .#{$lumx-base-prefix}-skeleton-typography {
51
+ width: min(70%, 230px);
52
+ }
53
+
54
+ &:nth-child(3n + 2) .#{$lumx-base-prefix}-skeleton-typography {
55
+ width: min(55%, 170px);
56
+ }
32
57
  }
33
58
 
34
- &:nth-child(3n + 2) .#{$lumx-base-prefix}-skeleton-typography {
35
- width: min(55%, 170px);
59
+ // Center option content
60
+ .#{$lumx-base-prefix}-list-item__content {
61
+ display: flex;
62
+ flex-direction: column;
63
+ justify-items: center;
36
64
  }
37
- }
38
65
 
39
- .#{$lumx-base-prefix}-combobox-option-more-info {
40
- &__popover {
41
- max-width: $lumx-size-xxl;
42
- padding: $lumx-spacing-unit-big;
66
+ // Option more info popover sizing
67
+ &-more-info {
68
+ &__popover {
69
+ max-width: $lumx-size-xxl;
70
+ padding: $lumx-spacing-unit-big;
71
+ }
43
72
  }
44
73
  }