@lumx/core 4.18.0 → 4.18.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.
@@ -1,6 +1,7 @@
1
1
  import type { GenericProps, HasClassName, HasTheme, LumxClassName } from '../../types';
2
2
  import type { TimeOfDay } from '../../utils/time';
3
3
  import type { SelectTextFieldTranslations } from '../../utils/select/types';
4
+ import type { ComboboxOptionProps } from '../Combobox/ComboboxOption';
4
5
  /**
5
6
  * Component display name.
6
7
  */
@@ -63,6 +64,17 @@ export interface TimePickerFieldWrapperProps {
63
64
  * Translation labels for clear and show suggestions buttons.
64
65
  */
65
66
  translations: TimePickerFieldTranslations;
67
+ /**
68
+ * Callback to customize individual option props.
69
+ * Called for each time option with the hour and minute.
70
+ * Return partial `ComboboxOptionProps` to override default option rendering
71
+ * (e.g. `before`, `after`, `children`, `tooltipProps`, `actionProps`).
72
+ * `isDisabled` is merged with the out-of-range state using `||`.
73
+ */
74
+ getOptionProps?: ({ hour, minute }: {
75
+ hour: number;
76
+ minute: number;
77
+ }) => Partial<ComboboxOptionProps>;
66
78
  }
67
79
  /**
68
80
  * `SelectTextField` props managed internally by the `TimePickerField` wrappers
@@ -88,6 +100,14 @@ export interface TimePickerFieldProps extends HasTheme, HasClassName, GenericPro
88
100
  handleSearch(typed: string): void;
89
101
  /** Called when the input loses focus — wrappers commit the typed value. */
90
102
  handleBlur(): void;
103
+ /**
104
+ * Callback to customize individual option props.
105
+ * See `TimePickerFieldWrapperProps.getOptionProps`.
106
+ */
107
+ getOptionProps?: ({ hour, minute }: {
108
+ hour: number;
109
+ minute: number;
110
+ }) => Partial<ComboboxOptionProps>;
91
111
  }
92
112
  /**
93
113
  * Injected framework-specific components for TimePickerField rendering.
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.18.0",
10
+ "@lumx/icons": "^4.18.1-alpha.0",
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.18.0",
69
+ "version": "4.18.1-alpha.0",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",
@@ -89,5 +89,6 @@
89
89
  "vite": "^7.3.5",
90
90
  "vite-tsconfig-paths": "^5.1.4",
91
91
  "vitest": "^4.0.18"
92
- }
92
+ },
93
+ "stableVersion": "4.18.0"
93
94
  }