@almadar/ui 5.31.0 → 5.31.1

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.
@@ -7265,6 +7265,7 @@ function NativeSelect({
7265
7265
  placeholder,
7266
7266
  error,
7267
7267
  onChange,
7268
+ onValueChange,
7268
7269
  value,
7269
7270
  ...props
7270
7271
  }) {
@@ -7273,8 +7274,9 @@ function NativeSelect({
7273
7274
  if (typeof onChange === "string") {
7274
7275
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
7275
7276
  } else {
7276
- onChange?.(e.target.value);
7277
+ onChange?.(e);
7277
7278
  }
7279
+ onValueChange?.(e.target.value);
7278
7280
  };
7279
7281
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
7280
7282
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -7309,6 +7311,7 @@ function RichSelect({
7309
7311
  placeholder,
7310
7312
  error,
7311
7313
  onChange,
7314
+ onValueChange,
7312
7315
  value,
7313
7316
  multiple,
7314
7317
  searchable,
@@ -7332,18 +7335,16 @@ function RichSelect({
7332
7335
  }
7333
7336
  if (typeof onChange === "string") {
7334
7337
  eventBus.emit(`UI:${onChange}`, { value: next });
7335
- } else {
7336
- onChange?.(next);
7337
7338
  }
7339
+ onValueChange?.(next);
7338
7340
  };
7339
7341
  const clear = (e) => {
7340
7342
  e.stopPropagation();
7341
7343
  const next = multiple ? [] : "";
7342
7344
  if (typeof onChange === "string") {
7343
7345
  eventBus.emit(`UI:${onChange}`, { value: next });
7344
- } else {
7345
- onChange?.(next);
7346
7346
  }
7347
+ onValueChange?.(next);
7347
7348
  };
7348
7349
  React88.useEffect(() => {
7349
7350
  const handler = (e) => {
@@ -19220,7 +19221,7 @@ var init_BranchingLogicBuilder = __esm({
19220
19221
  options: sourceOptions,
19221
19222
  value: rule.sourceQuestionId,
19222
19223
  placeholder: t("branchingLogic.selectQuestion"),
19223
- onChange: handleSource,
19224
+ onValueChange: handleSource,
19224
19225
  disabled: readOnly,
19225
19226
  error: broken ? t("branchingLogic.brokenReference") : void 0
19226
19227
  }
@@ -19230,7 +19231,7 @@ var init_BranchingLogicBuilder = __esm({
19230
19231
  {
19231
19232
  options: operatorOptions,
19232
19233
  value: rule.operator,
19233
- onChange: handleOperator,
19234
+ onValueChange: handleOperator,
19234
19235
  disabled: readOnly
19235
19236
  }
19236
19237
  ) }),
@@ -19252,7 +19253,7 @@ var init_BranchingLogicBuilder = __esm({
19252
19253
  options: valueOptions.filter((o) => !chips.includes(o.value)),
19253
19254
  value: "",
19254
19255
  placeholder: t("branchingLogic.addValue"),
19255
- onChange: handleAddChip,
19256
+ onValueChange: handleAddChip,
19256
19257
  disabled: readOnly
19257
19258
  }
19258
19259
  ) }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -19278,7 +19279,7 @@ var init_BranchingLogicBuilder = __esm({
19278
19279
  options: valueOptions,
19279
19280
  value: scalarValue,
19280
19281
  placeholder: t("branchingLogic.selectValue"),
19281
- onChange: (v) => onChange({ ...rule, value: v }),
19282
+ onValueChange: (v) => onChange({ ...rule, value: v }),
19282
19283
  disabled: readOnly
19283
19284
  }
19284
19285
  ) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -19301,7 +19302,7 @@ var init_BranchingLogicBuilder = __esm({
19301
19302
  options: targetOptions,
19302
19303
  value: rule.targetQuestionId,
19303
19304
  placeholder: t("branchingLogic.selectTarget"),
19304
- onChange: handleTarget,
19305
+ onValueChange: handleTarget,
19305
19306
  disabled: readOnly,
19306
19307
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
19307
19308
  }
@@ -21710,7 +21711,7 @@ var init_Pagination = __esm({
21710
21711
  Select,
21711
21712
  {
21712
21713
  value: String(pageSize),
21713
- onChange: (v) => handlePageSizeChange(Number(v)),
21714
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
21714
21715
  options: pageSizeOptions.map((size) => ({
21715
21716
  value: String(size),
21716
21717
  label: String(size)
@@ -26640,7 +26641,7 @@ var init_FilterGroup = __esm({
26640
26641
  Select,
26641
26642
  {
26642
26643
  value: selectedValues[filter.field] || "all",
26643
- onChange: (v) => handleFilterSelect(filter.field, v),
26644
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26644
26645
  options: [
26645
26646
  { value: "all", label: t("filterGroup.all") },
26646
26647
  ...filter.options?.map((opt) => ({
@@ -26723,7 +26724,7 @@ var init_FilterGroup = __esm({
26723
26724
  Select,
26724
26725
  {
26725
26726
  value: selectedValues[filter.field] || "all",
26726
- onChange: (v) => handleFilterSelect(filter.field, v),
26727
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26727
26728
  options: [
26728
26729
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
26729
26730
  ...filter.options?.map((opt) => ({
@@ -26841,7 +26842,7 @@ var init_FilterGroup = __esm({
26841
26842
  Select,
26842
26843
  {
26843
26844
  value: selectedValues[filter.field] || "all",
26844
- onChange: (v) => handleFilterSelect(filter.field, v),
26845
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26845
26846
  options: [
26846
26847
  { value: "all", label: t("filterGroup.all") },
26847
26848
  ...filter.options?.map((opt) => ({
@@ -36559,7 +36560,7 @@ var init_VersionDiff = __esm({
36559
36560
  {
36560
36561
  options,
36561
36562
  value: activeBeforeId,
36562
- onChange: handleBeforeChange,
36563
+ onValueChange: handleBeforeChange,
36563
36564
  "aria-label": t("versionDiff.beforeRevision")
36564
36565
  }
36565
36566
  ) }),
@@ -36569,7 +36570,7 @@ var init_VersionDiff = __esm({
36569
36570
  {
36570
36571
  options,
36571
36572
  value: activeAfterId,
36572
- onChange: handleAfterChange,
36573
+ onValueChange: handleAfterChange,
36573
36574
  "aria-label": t("versionDiff.afterRevision")
36574
36575
  }
36575
36576
  ) }),
@@ -40743,7 +40744,7 @@ function RuleEditor({
40743
40744
  Select,
40744
40745
  {
40745
40746
  value: rule.whenEvent,
40746
- onChange: handleWhenChange,
40747
+ onValueChange: handleWhenChange,
40747
40748
  options: availableEvents,
40748
40749
  disabled,
40749
40750
  className: "flex-1 min-w-0"
@@ -40754,7 +40755,7 @@ function RuleEditor({
40754
40755
  Select,
40755
40756
  {
40756
40757
  value: rule.thenAction,
40757
- onChange: handleThenChange,
40758
+ onValueChange: handleThenChange,
40758
40759
  options: availableActions,
40759
40760
  disabled,
40760
40761
  className: "flex-1 min-w-0"
@@ -41811,7 +41812,7 @@ var init_Form = __esm({
41811
41812
  ...commonProps,
41812
41813
  options,
41813
41814
  value: String(currentValue),
41814
- onChange: (v) => handleChange(fieldName, v),
41815
+ onValueChange: (v) => handleChange(fieldName, v),
41815
41816
  placeholder: field.placeholder || `Select ${label}...`
41816
41817
  }
41817
41818
  );
@@ -57184,7 +57185,7 @@ function OrbInspector({ node, schema, editable = false, userType = "builder", th
57184
57185
  {
57185
57186
  value: f3.type,
57186
57187
  options: FIELD_TYPE_OPTIONS,
57187
- onChange: (v) => handleUpdateField(f3.name, { type: v }),
57188
+ onValueChange: (v) => handleUpdateField(f3.name, { type: v }),
57188
57189
  className: "w-20 text-xs h-6"
57189
57190
  }
57190
57191
  ),
package/dist/avl/index.js CHANGED
@@ -7216,6 +7216,7 @@ function NativeSelect({
7216
7216
  placeholder,
7217
7217
  error,
7218
7218
  onChange,
7219
+ onValueChange,
7219
7220
  value,
7220
7221
  ...props
7221
7222
  }) {
@@ -7224,8 +7225,9 @@ function NativeSelect({
7224
7225
  if (typeof onChange === "string") {
7225
7226
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
7226
7227
  } else {
7227
- onChange?.(e.target.value);
7228
+ onChange?.(e);
7228
7229
  }
7230
+ onValueChange?.(e.target.value);
7229
7231
  };
7230
7232
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
7231
7233
  /* @__PURE__ */ jsxs(
@@ -7260,6 +7262,7 @@ function RichSelect({
7260
7262
  placeholder,
7261
7263
  error,
7262
7264
  onChange,
7265
+ onValueChange,
7263
7266
  value,
7264
7267
  multiple,
7265
7268
  searchable,
@@ -7283,18 +7286,16 @@ function RichSelect({
7283
7286
  }
7284
7287
  if (typeof onChange === "string") {
7285
7288
  eventBus.emit(`UI:${onChange}`, { value: next });
7286
- } else {
7287
- onChange?.(next);
7288
7289
  }
7290
+ onValueChange?.(next);
7289
7291
  };
7290
7292
  const clear = (e) => {
7291
7293
  e.stopPropagation();
7292
7294
  const next = multiple ? [] : "";
7293
7295
  if (typeof onChange === "string") {
7294
7296
  eventBus.emit(`UI:${onChange}`, { value: next });
7295
- } else {
7296
- onChange?.(next);
7297
7297
  }
7298
+ onValueChange?.(next);
7298
7299
  };
7299
7300
  useEffect(() => {
7300
7301
  const handler = (e) => {
@@ -19171,7 +19172,7 @@ var init_BranchingLogicBuilder = __esm({
19171
19172
  options: sourceOptions,
19172
19173
  value: rule.sourceQuestionId,
19173
19174
  placeholder: t("branchingLogic.selectQuestion"),
19174
- onChange: handleSource,
19175
+ onValueChange: handleSource,
19175
19176
  disabled: readOnly,
19176
19177
  error: broken ? t("branchingLogic.brokenReference") : void 0
19177
19178
  }
@@ -19181,7 +19182,7 @@ var init_BranchingLogicBuilder = __esm({
19181
19182
  {
19182
19183
  options: operatorOptions,
19183
19184
  value: rule.operator,
19184
- onChange: handleOperator,
19185
+ onValueChange: handleOperator,
19185
19186
  disabled: readOnly
19186
19187
  }
19187
19188
  ) }),
@@ -19203,7 +19204,7 @@ var init_BranchingLogicBuilder = __esm({
19203
19204
  options: valueOptions.filter((o) => !chips.includes(o.value)),
19204
19205
  value: "",
19205
19206
  placeholder: t("branchingLogic.addValue"),
19206
- onChange: handleAddChip,
19207
+ onValueChange: handleAddChip,
19207
19208
  disabled: readOnly
19208
19209
  }
19209
19210
  ) }) : /* @__PURE__ */ jsx(
@@ -19229,7 +19230,7 @@ var init_BranchingLogicBuilder = __esm({
19229
19230
  options: valueOptions,
19230
19231
  value: scalarValue,
19231
19232
  placeholder: t("branchingLogic.selectValue"),
19232
- onChange: (v) => onChange({ ...rule, value: v }),
19233
+ onValueChange: (v) => onChange({ ...rule, value: v }),
19233
19234
  disabled: readOnly
19234
19235
  }
19235
19236
  ) : /* @__PURE__ */ jsx(
@@ -19252,7 +19253,7 @@ var init_BranchingLogicBuilder = __esm({
19252
19253
  options: targetOptions,
19253
19254
  value: rule.targetQuestionId,
19254
19255
  placeholder: t("branchingLogic.selectTarget"),
19255
- onChange: handleTarget,
19256
+ onValueChange: handleTarget,
19256
19257
  disabled: readOnly,
19257
19258
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
19258
19259
  }
@@ -21661,7 +21662,7 @@ var init_Pagination = __esm({
21661
21662
  Select,
21662
21663
  {
21663
21664
  value: String(pageSize),
21664
- onChange: (v) => handlePageSizeChange(Number(v)),
21665
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
21665
21666
  options: pageSizeOptions.map((size) => ({
21666
21667
  value: String(size),
21667
21668
  label: String(size)
@@ -26591,7 +26592,7 @@ var init_FilterGroup = __esm({
26591
26592
  Select,
26592
26593
  {
26593
26594
  value: selectedValues[filter.field] || "all",
26594
- onChange: (v) => handleFilterSelect(filter.field, v),
26595
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26595
26596
  options: [
26596
26597
  { value: "all", label: t("filterGroup.all") },
26597
26598
  ...filter.options?.map((opt) => ({
@@ -26674,7 +26675,7 @@ var init_FilterGroup = __esm({
26674
26675
  Select,
26675
26676
  {
26676
26677
  value: selectedValues[filter.field] || "all",
26677
- onChange: (v) => handleFilterSelect(filter.field, v),
26678
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26678
26679
  options: [
26679
26680
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
26680
26681
  ...filter.options?.map((opt) => ({
@@ -26792,7 +26793,7 @@ var init_FilterGroup = __esm({
26792
26793
  Select,
26793
26794
  {
26794
26795
  value: selectedValues[filter.field] || "all",
26795
- onChange: (v) => handleFilterSelect(filter.field, v),
26796
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
26796
26797
  options: [
26797
26798
  { value: "all", label: t("filterGroup.all") },
26798
26799
  ...filter.options?.map((opt) => ({
@@ -36510,7 +36511,7 @@ var init_VersionDiff = __esm({
36510
36511
  {
36511
36512
  options,
36512
36513
  value: activeBeforeId,
36513
- onChange: handleBeforeChange,
36514
+ onValueChange: handleBeforeChange,
36514
36515
  "aria-label": t("versionDiff.beforeRevision")
36515
36516
  }
36516
36517
  ) }),
@@ -36520,7 +36521,7 @@ var init_VersionDiff = __esm({
36520
36521
  {
36521
36522
  options,
36522
36523
  value: activeAfterId,
36523
- onChange: handleAfterChange,
36524
+ onValueChange: handleAfterChange,
36524
36525
  "aria-label": t("versionDiff.afterRevision")
36525
36526
  }
36526
36527
  ) }),
@@ -40694,7 +40695,7 @@ function RuleEditor({
40694
40695
  Select,
40695
40696
  {
40696
40697
  value: rule.whenEvent,
40697
- onChange: handleWhenChange,
40698
+ onValueChange: handleWhenChange,
40698
40699
  options: availableEvents,
40699
40700
  disabled,
40700
40701
  className: "flex-1 min-w-0"
@@ -40705,7 +40706,7 @@ function RuleEditor({
40705
40706
  Select,
40706
40707
  {
40707
40708
  value: rule.thenAction,
40708
- onChange: handleThenChange,
40709
+ onValueChange: handleThenChange,
40709
40710
  options: availableActions,
40710
40711
  disabled,
40711
40712
  className: "flex-1 min-w-0"
@@ -41762,7 +41763,7 @@ var init_Form = __esm({
41762
41763
  ...commonProps,
41763
41764
  options,
41764
41765
  value: String(currentValue),
41765
- onChange: (v) => handleChange(fieldName, v),
41766
+ onValueChange: (v) => handleChange(fieldName, v),
41766
41767
  placeholder: field.placeholder || `Select ${label}...`
41767
41768
  }
41768
41769
  );
@@ -57135,7 +57136,7 @@ function OrbInspector({ node, schema, editable = false, userType = "builder", th
57135
57136
  {
57136
57137
  value: f3.type,
57137
57138
  options: FIELD_TYPE_OPTIONS,
57138
- onChange: (v) => handleUpdateField(f3.name, { type: v }),
57139
+ onValueChange: (v) => handleUpdateField(f3.name, { type: v }),
57139
57140
  className: "w-20 text-xs h-6"
57140
57141
  }
57141
57142
  ),
@@ -30,7 +30,9 @@ export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectE
30
30
  searchable?: boolean;
31
31
  /** Show a clear button when a value is selected. */
32
32
  clearable?: boolean;
33
- /** onChange handler or declarative event key for trait dispatch */
34
- onChange?: ((value: string | string[]) => void) | EventKey;
33
+ /** onChange handler (native ChangeEvent) or declarative event key for trait dispatch */
34
+ onChange?: React.ChangeEventHandler<HTMLSelectElement> | EventKey;
35
+ /** Value-based callback — receives the selected string (or string[] for multiple). */
36
+ onValueChange?: (value: string | string[]) => void;
35
37
  }
36
38
  export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
@@ -2414,6 +2414,7 @@ function NativeSelect({
2414
2414
  placeholder,
2415
2415
  error,
2416
2416
  onChange,
2417
+ onValueChange,
2417
2418
  value,
2418
2419
  ...props
2419
2420
  }) {
@@ -2422,8 +2423,9 @@ function NativeSelect({
2422
2423
  if (typeof onChange === "string") {
2423
2424
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
2424
2425
  } else {
2425
- onChange?.(e.target.value);
2426
+ onChange?.(e);
2426
2427
  }
2428
+ onValueChange?.(e.target.value);
2427
2429
  };
2428
2430
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
2429
2431
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2458,6 +2460,7 @@ function RichSelect({
2458
2460
  placeholder,
2459
2461
  error,
2460
2462
  onChange,
2463
+ onValueChange,
2461
2464
  value,
2462
2465
  multiple,
2463
2466
  searchable,
@@ -2481,18 +2484,16 @@ function RichSelect({
2481
2484
  }
2482
2485
  if (typeof onChange === "string") {
2483
2486
  eventBus.emit(`UI:${onChange}`, { value: next });
2484
- } else {
2485
- onChange?.(next);
2486
2487
  }
2488
+ onValueChange?.(next);
2487
2489
  };
2488
2490
  const clear = (e) => {
2489
2491
  e.stopPropagation();
2490
2492
  const next = multiple ? [] : "";
2491
2493
  if (typeof onChange === "string") {
2492
2494
  eventBus.emit(`UI:${onChange}`, { value: next });
2493
- } else {
2494
- onChange?.(next);
2495
2495
  }
2496
+ onValueChange?.(next);
2496
2497
  };
2497
2498
  React74.useEffect(() => {
2498
2499
  const handler = (e) => {
@@ -15299,7 +15300,7 @@ var init_BranchingLogicBuilder = __esm({
15299
15300
  options: sourceOptions,
15300
15301
  value: rule.sourceQuestionId,
15301
15302
  placeholder: t("branchingLogic.selectQuestion"),
15302
- onChange: handleSource,
15303
+ onValueChange: handleSource,
15303
15304
  disabled: readOnly,
15304
15305
  error: broken ? t("branchingLogic.brokenReference") : void 0
15305
15306
  }
@@ -15309,7 +15310,7 @@ var init_BranchingLogicBuilder = __esm({
15309
15310
  {
15310
15311
  options: operatorOptions,
15311
15312
  value: rule.operator,
15312
- onChange: handleOperator,
15313
+ onValueChange: handleOperator,
15313
15314
  disabled: readOnly
15314
15315
  }
15315
15316
  ) }),
@@ -15331,7 +15332,7 @@ var init_BranchingLogicBuilder = __esm({
15331
15332
  options: valueOptions.filter((o) => !chips.includes(o.value)),
15332
15333
  value: "",
15333
15334
  placeholder: t("branchingLogic.addValue"),
15334
- onChange: handleAddChip,
15335
+ onValueChange: handleAddChip,
15335
15336
  disabled: readOnly
15336
15337
  }
15337
15338
  ) }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -15357,7 +15358,7 @@ var init_BranchingLogicBuilder = __esm({
15357
15358
  options: valueOptions,
15358
15359
  value: scalarValue,
15359
15360
  placeholder: t("branchingLogic.selectValue"),
15360
- onChange: (v) => onChange({ ...rule, value: v }),
15361
+ onValueChange: (v) => onChange({ ...rule, value: v }),
15361
15362
  disabled: readOnly
15362
15363
  }
15363
15364
  ) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -15380,7 +15381,7 @@ var init_BranchingLogicBuilder = __esm({
15380
15381
  options: targetOptions,
15381
15382
  value: rule.targetQuestionId,
15382
15383
  placeholder: t("branchingLogic.selectTarget"),
15383
- onChange: handleTarget,
15384
+ onValueChange: handleTarget,
15384
15385
  disabled: readOnly,
15385
15386
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
15386
15387
  }
@@ -17789,7 +17790,7 @@ var init_Pagination = __esm({
17789
17790
  exports.Select,
17790
17791
  {
17791
17792
  value: String(pageSize),
17792
- onChange: (v) => handlePageSizeChange(Number(v)),
17793
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
17793
17794
  options: pageSizeOptions.map((size) => ({
17794
17795
  value: String(size),
17795
17796
  label: String(size)
@@ -23279,7 +23280,7 @@ function FieldControl({
23279
23280
  {
23280
23281
  options: decl.values.map((v) => ({ value: v, label: v })),
23281
23282
  value: typeof value === "string" ? value : "",
23282
- onChange: (v) => onChange(name, v)
23283
+ onValueChange: (v) => onChange(name, v)
23283
23284
  }
23284
23285
  );
23285
23286
  } else if (decl.type === "number") {
@@ -23431,7 +23432,7 @@ var init_NodeSlotEditor = __esm({
23431
23432
  {
23432
23433
  options,
23433
23434
  value: type,
23434
- onChange: (v) => emit(v, props)
23435
+ onValueChange: (v) => emit(v, props)
23435
23436
  }
23436
23437
  ),
23437
23438
  type !== "" && /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "none", className: "pl-1", children: [
@@ -23885,7 +23886,7 @@ var init_FilterGroup = __esm({
23885
23886
  exports.Select,
23886
23887
  {
23887
23888
  value: selectedValues[filter.field] || "all",
23888
- onChange: (v) => handleFilterSelect(filter.field, v),
23889
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
23889
23890
  options: [
23890
23891
  { value: "all", label: t("filterGroup.all") },
23891
23892
  ...filter.options?.map((opt) => ({
@@ -23968,7 +23969,7 @@ var init_FilterGroup = __esm({
23968
23969
  exports.Select,
23969
23970
  {
23970
23971
  value: selectedValues[filter.field] || "all",
23971
- onChange: (v) => handleFilterSelect(filter.field, v),
23972
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
23972
23973
  options: [
23973
23974
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
23974
23975
  ...filter.options?.map((opt) => ({
@@ -24086,7 +24087,7 @@ var init_FilterGroup = __esm({
24086
24087
  exports.Select,
24087
24088
  {
24088
24089
  value: selectedValues[filter.field] || "all",
24089
- onChange: (v) => handleFilterSelect(filter.field, v),
24090
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24090
24091
  options: [
24091
24092
  { value: "all", label: t("filterGroup.all") },
24092
24093
  ...filter.options?.map((opt) => ({
@@ -34340,7 +34341,7 @@ var init_VersionDiff = __esm({
34340
34341
  {
34341
34342
  options,
34342
34343
  value: activeBeforeId,
34343
- onChange: handleBeforeChange,
34344
+ onValueChange: handleBeforeChange,
34344
34345
  "aria-label": t("versionDiff.beforeRevision")
34345
34346
  }
34346
34347
  ) }),
@@ -34350,7 +34351,7 @@ var init_VersionDiff = __esm({
34350
34351
  {
34351
34352
  options,
34352
34353
  value: activeAfterId,
34353
- onChange: handleAfterChange,
34354
+ onValueChange: handleAfterChange,
34354
34355
  "aria-label": t("versionDiff.afterRevision")
34355
34356
  }
34356
34357
  ) }),
@@ -39153,7 +39154,7 @@ function RuleEditor({
39153
39154
  exports.Select,
39154
39155
  {
39155
39156
  value: rule.whenEvent,
39156
- onChange: handleWhenChange,
39157
+ onValueChange: handleWhenChange,
39157
39158
  options: availableEvents,
39158
39159
  disabled,
39159
39160
  className: "flex-1 min-w-0"
@@ -39164,7 +39165,7 @@ function RuleEditor({
39164
39165
  exports.Select,
39165
39166
  {
39166
39167
  value: rule.thenAction,
39167
- onChange: handleThenChange,
39168
+ onValueChange: handleThenChange,
39168
39169
  options: availableActions,
39169
39170
  disabled,
39170
39171
  className: "flex-1 min-w-0"
@@ -40221,7 +40222,7 @@ var init_Form = __esm({
40221
40222
  ...commonProps,
40222
40223
  options,
40223
40224
  value: String(currentValue2),
40224
- onChange: (v) => handleChange(fieldName, v),
40225
+ onValueChange: (v) => handleChange(fieldName, v),
40225
40226
  placeholder: field.placeholder || `Select ${label}...`
40226
40227
  }
40227
40228
  );