@lumx/core 4.14.0 → 4.15.0-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.
@@ -9,11 +9,57 @@ export declare const COMPONENT_NAME = "TimePickerField";
9
9
  * Component default class name (BEM root).
10
10
  */
11
11
  export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
12
+ /**
13
+ * Default values for `TimePickerFieldWrapperProps`.
14
+ */
15
+ export declare const DEFAULT_PROPS: Partial<TimePickerFieldWrapperProps>;
12
16
  /**
13
17
  * Translations consumed by `TimePickerField` (forwarded as-is to the underlying
14
18
  * `SelectTextField`).
15
19
  */
16
20
  export type TimePickerFieldTranslations = Pick<SelectTextFieldTranslations, 'clearLabel' | 'showSuggestionsLabel'>;
21
+ /**
22
+ * Wrapper-level props shared by React and Vue `TimePickerField`.
23
+ *
24
+ * These represent the public API that framework wrappers expose to consumers
25
+ * (as opposed to the core template props which use pre-computed `TimeOfDay` values).
26
+ */
27
+ export interface TimePickerFieldWrapperProps {
28
+ /**
29
+ * Currently selected time. Only the time-of-day component is consumed; the
30
+ * date part is preserved when emitting change.
31
+ */
32
+ value?: Date;
33
+ /**
34
+ * BCP-47 locale string (e.g. `'en-US'`, `'fr-FR'`).
35
+ */
36
+ locale?: string;
37
+ /**
38
+ * Minute interval between option entries.
39
+ */
40
+ step?: number;
41
+ /**
42
+ * Lower bound. Options strictly before this time remain **visible** in the
43
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
44
+ * below this bound is snapped up to it on blur.
45
+ */
46
+ minTime?: Date;
47
+ /**
48
+ * Upper bound. Options strictly after this time remain **visible** in the
49
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
50
+ * above this bound is snapped down to it on blur.
51
+ */
52
+ maxTime?: Date;
53
+ /**
54
+ * Translations label for clear and show suggestions buttons.
55
+ */
56
+ translations: TimePickerFieldTranslations;
57
+ }
58
+ /**
59
+ * `SelectTextField` props managed internally by the `TimePickerField` wrappers
60
+ * (omitted from the inherited `SelectTextField` props in both React and Vue).
61
+ */
62
+ export type TimePickerFieldOwnedSelectProps = 'value' | 'listStatus' | 'translations' | 'options' | 'getOptionId' | 'getOptionName' | 'getOptionDescription' | 'getSectionId' | 'renderOption' | 'filter' | 'onBlur' | 'onSearch' | 'selectionType' | 'maxLength' | 'searchInputValue' | 'openOnFocus' | 'beforeOptions' | 'popoverProps';
17
63
  /**
18
64
  * Core props for the `TimePickerField` template.
19
65
  */
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.14.0",
10
+ "@lumx/icons": "^4.15.0-alpha.0",
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.14.0",
72
+ "version": "4.15.0-alpha.0",
73
73
  "devDependencies": {
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
75
  "@testing-library/dom": "^10.4.1",
@@ -92,5 +92,6 @@
92
92
  "vite": "^7.3.2",
93
93
  "vite-tsconfig-paths": "^5.1.4",
94
94
  "vitest": "^4.0.18"
95
- }
95
+ },
96
+ "stableVersion": "4.14.0"
96
97
  }