@lumx/core 4.25.1-alpha.1 → 4.25.1-alpha.3

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.
@@ -17,6 +17,11 @@ export interface ComboboxListProps extends HasClassName {
17
17
  * Omit (or set to `undefined`) when not loading — the attribute is not rendered as `"false"`.
18
18
  */
19
19
  'aria-busy'?: boolean;
20
+ /**
21
+ * Allow selecting several options (`aria-multiselectable`).
22
+ * Also read by `Combobox.SelectionIcon` to pick the checkbox icons.
23
+ */
24
+ 'aria-multiselectable'?: boolean | 'true' | 'false';
20
25
  /** Content (should be ComboboxOption elements). */
21
26
  children?: JSXElement;
22
27
  /** The ID of the listbox element. */
@@ -9,7 +9,7 @@ type RenderResult = {
9
9
  */
10
10
  export interface ComboboxOptionTestSetup {
11
11
  /** Combobox compound component namespace */
12
- Combobox: Pick<ComboboxNamespace, 'Provider' | 'Input' | 'List' | 'Option'>;
12
+ Combobox: Pick<ComboboxNamespace, 'Provider' | 'Input' | 'List' | 'Option' | 'SelectionIcon'>;
13
13
  /**
14
14
  * Render a JSX template and return a result with a container.
15
15
  * The template is a zero-argument function returning a JSX element.
@@ -1,4 +1,4 @@
1
- export interface SelectionIconProps {
1
+ export interface ComboboxSelectionIconProps {
2
2
  /** Selection type of the select (`undefined` renders nothing). */
3
3
  selectionType: 'single' | 'multiple' | undefined;
4
4
  /** Whether the option is selected. */
@@ -10,4 +10,4 @@ export interface SelectionIconProps {
10
10
  * - `single`: a check circle icon when selected, a blank radio icon otherwise.
11
11
  * - `multiple`: a checkbox icon, marked or blank.
12
12
  */
13
- export declare const SelectionIcon: ({ selectionType, isSelected }: SelectionIconProps) => import("react").JSX.Element | null;
13
+ export declare const ComboboxSelectionIcon: ({ selectionType, isSelected }: ComboboxSelectionIconProps) => import("react").JSX.Element | null;
@@ -9,6 +9,7 @@ export interface ComboboxNamespace {
9
9
  OptionAction: any;
10
10
  OptionMoreInfo: any;
11
11
  OptionSkeleton: any;
12
+ SelectionIcon: any;
12
13
  Popover: any;
13
14
  Section: any;
14
15
  State: any;
@@ -80,6 +80,7 @@ export interface BaseSelectComponents {
80
80
  Option: any;
81
81
  State: any;
82
82
  OptionSkeleton: any;
83
+ SelectionIcon: any;
83
84
  };
84
85
  /** Framework-specific InfiniteScroll component (handles IntersectionObserver lifecycle). */
85
86
  InfiniteScroll?: any;
@@ -90,12 +91,6 @@ export interface BaseSelectComponents {
90
91
  export interface RenderSelectOptionsProps<O> extends BaseSelectProps<O> {
91
92
  /** Selected option (single) or options (multiple). */
92
93
  selected?: O | O[];
93
- /**
94
- * Selection type, drives the selection state icons:
95
- * - `'single'` (default): a check circle icon (selected) or blank radio icon after the label of every option.
96
- * - `'multiple'`: a checkbox icon (marked or blank) after the label of every option.
97
- */
98
- selectionType?: 'single' | 'multiple';
99
94
  }
100
95
  /**
101
96
  * Shared translation labels for SelectTextField wrappers (React and Vue).
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.25.1-alpha.1",
10
+ "@lumx/icons": "^4.25.1-alpha.3",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.18.1",
@@ -66,7 +66,7 @@
66
66
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "4.25.1-alpha.1",
69
+ "version": "4.25.1-alpha.3",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",