@lumx/core 4.16.0-alpha.3 → 4.16.0-alpha.4

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.
@@ -1,6 +1,6 @@
1
1
  import type { LumxClassName } from '../../types';
2
2
  import type { ComboboxButtonLabelDisplayMode } from '../Combobox/ComboboxButton';
3
- import { BaseSelectComponents, BaseSelectProps, SelectButtonTranslations, SelectTextFieldStatus } from '../../utils/select/types';
3
+ import { BaseSelectComponents, BaseSelectProps, SelectButtonTranslations, SelectListStatus } from '../../utils/select/types';
4
4
  /**
5
5
  * Defines the props for the core SelectButton template.
6
6
  */
@@ -42,7 +42,7 @@ export interface SelectButtonProps<O> extends BaseSelectProps<O> {
42
42
  * - `'error'` — Error state: shows an error message in the dropdown.
43
43
  * @default 'idle'
44
44
  */
45
- listStatus?: SelectTextFieldStatus;
45
+ listStatus?: SelectListStatus;
46
46
  /** Optional translations for screen-reader announcements (loading/empty/error/option count). */
47
47
  translations?: SelectButtonTranslations;
48
48
  /** Callback fired when the dropdown open state changes. */
@@ -1,5 +1,5 @@
1
1
  import type { JSXElement, LumxClassName } from '../../types';
2
- import { BaseSelectComponents, BaseSelectProps, SelectTextFieldStatus } from '../../utils/select/types';
2
+ import { BaseSelectComponents, BaseSelectProps, SelectListStatus } from '../../utils/select/types';
3
3
  /**
4
4
  * Defines the props for the core SelectTextField template.
5
5
  */
@@ -24,7 +24,7 @@ export interface SelectTextFieldProps<O = any> extends BaseSelectProps<O> {
24
24
  * - `'error'` — Error state: shows an error message in the dropdown.
25
25
  * @default 'idle'
26
26
  */
27
- listStatus?: SelectTextFieldStatus;
27
+ listStatus?: SelectListStatus;
28
28
  /** Screen reader loading announcement (e.g. "Loading…"). */
29
29
  loadingMessage?: string;
30
30
  /**
@@ -2,14 +2,14 @@ import type { HasAriaDisabled } from '../../types/HasAriaDisabled';
2
2
  import type { HasTheme } from '../../types/HasTheme';
3
3
  import type { JSXElement, Selector } from '../../types';
4
4
  /**
5
- * Status of the SelectTextField dropdown list.
5
+ * Status of the select dropdown list.
6
6
  *
7
7
  * - `'idle'` — Default state, no loading indicators.
8
8
  * - `'loading'` — Full loading: shows skeleton placeholders, hides real options.
9
9
  * - `'loadingMore'` — Paginated loading: appends a skeleton after existing options.
10
10
  * - `'error'` — Error state: shows an error message in the dropdown.
11
11
  */
12
- export type SelectTextFieldStatus = 'idle' | 'loading' | 'loadingMore' | 'error';
12
+ export type SelectListStatus = 'idle' | 'loading' | 'loadingMore' | 'error';
13
13
  /**
14
14
  * Context passed to the `renderOption` callback alongside the option object.
15
15
  * Contains core-computed values that the consumer should forward to `<Combobox.Option>`.
@@ -54,13 +54,13 @@ export interface BaseSelectProps<O> {
54
54
  * section id are grouped together. The id is also used as the default displayed
55
55
  * label unless `renderSectionTitle` is provided.
56
56
  */
57
- getSectionId?: Selector<O, string>;
57
+ getSectionId?: Selector<O, string | undefined>;
58
58
  /**
59
59
  * Custom section title render function. Receives the section id and the options
60
60
  * in that section. Returns custom JSX to display as the section header.
61
61
  * When not provided, the section id is used as a plain text label.
62
62
  */
63
- renderSectionTitle?: (sectionId: string, options: O[]) => JSXElement;
63
+ renderSectionTitle?: (sectionId: string | undefined, options: O[]) => JSXElement;
64
64
  }
65
65
  export interface BaseSelectComponents {
66
66
  /** Combobox compound component. */
@@ -159,7 +159,7 @@ export interface BaseSelectButtonWrapperProps<O> extends Pick<BaseSelectProps<O>
159
159
  * Status of the dropdown list.
160
160
  * @default 'idle'
161
161
  */
162
- listStatus?: SelectTextFieldStatus;
162
+ listStatus?: SelectListStatus;
163
163
  /** Optional translations for screen-reader announcements (loading/empty/error/option count). */
164
164
  translations?: SelectButtonTranslations;
165
165
  }
@@ -175,7 +175,7 @@ export interface BaseSelectTextFieldWrapperProps<O> extends Pick<BaseSelectProps
175
175
  * Status of the dropdown list.
176
176
  * @default 'idle'
177
177
  */
178
- listStatus?: SelectTextFieldStatus;
178
+ listStatus?: SelectListStatus;
179
179
  /**
180
180
  * Controls how the combobox filters options as the user types.
181
181
  *
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.16.0-alpha.3",
10
+ "@lumx/icons": "^4.16.0-alpha.4",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.18.1",
@@ -69,7 +69,7 @@
69
69
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
70
70
  },
71
71
  "sideEffects": false,
72
- "version": "4.16.0-alpha.3",
72
+ "version": "4.16.0-alpha.4",
73
73
  "devDependencies": {
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
75
  "@testing-library/dom": "^10.4.1",