@lumx/core 4.17.0-next.3 → 4.18.0-next.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.
@@ -10,11 +10,8 @@ export interface SelectButtonProps<O> extends BaseSelectProps<O> {
10
10
  * The wrapper layer chooses the shape; the core just renders names.
11
11
  */
12
12
  value?: O | O[];
13
- /**
14
- * When `true`, sets `aria-multiselectable="true"` on the listbox so
15
- * the dropdown stays open after each selection (combobox setup detects this attribute).
16
- */
17
- isMultiselectable?: boolean;
13
+ /** Single or multiple selection */
14
+ selectionType?: 'single' | 'multiple';
18
15
  /** Button label (used for ARIA and when no selection). */
19
16
  label: string;
20
17
  /** Controls how the label/value is displayed in the button. */
@@ -68,6 +65,12 @@ export declare const COMPONENT_NAME = "SelectButton";
68
65
  * Component default class name.
69
66
  */
70
67
  export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
68
+ /**
69
+ * Component default props.
70
+ */
71
+ export declare const DEFAULT_PROPS: {
72
+ readonly selectionType: "single";
73
+ };
71
74
  /**
72
75
  * SelectButton core template.
73
76
  * Renders a Combobox with a button trigger and a dropdown list of options.
@@ -48,6 +48,13 @@ export declare function setup({ component: TimePickerField, decorators: { withVa
48
48
  value: Date;
49
49
  };
50
50
  };
51
+ WithBoundsMode: {
52
+ args: {
53
+ value: Date;
54
+ maxTime: Date;
55
+ boundsMode: string;
56
+ };
57
+ };
51
58
  Disabled: {
52
59
  args: {
53
60
  value: Date;
@@ -51,7 +51,16 @@ export interface TimePickerFieldWrapperProps {
51
51
  */
52
52
  maxTime?: Date;
53
53
  /**
54
- * Translations label for clear and show suggestions buttons.
54
+ * Controls how the time value interacts with `[minTime, maxTime]` bounds.
55
+ * Typed input is always snapped to bounds on blur.
56
+ * - `'enforce'`: additionally, the controlled `value` prop is proactively
57
+ * clamped to bounds on mount and whenever bounds change, calling
58
+ * `onChange` when adjusted.
59
+ * - `'on-blur'` (default): only blur snapping applies.
60
+ */
61
+ boundsMode?: 'on-blur' | 'enforce';
62
+ /**
63
+ * Translation labels for clear and show suggestions buttons.
55
64
  */
56
65
  translations: TimePickerFieldTranslations;
57
66
  }
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.17.0-next.3",
10
+ "@lumx/icons": "^4.18.0-next.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.17.0-next.3",
69
+ "version": "4.18.0-next.0",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",
@@ -86,9 +86,9 @@
86
86
  "tinycolor2": "^1.4.1",
87
87
  "typescript": "^5.4.3",
88
88
  "version-changelog": "^3.1.1",
89
- "vite": "^7.3.2",
89
+ "vite": "^7.3.5",
90
90
  "vite-tsconfig-paths": "^5.1.4",
91
91
  "vitest": "^4.0.18"
92
92
  },
93
- "stableVersion": "4.16.0"
93
+ "stableVersion": "4.17.0"
94
94
  }