@almadar/ui 5.31.0 → 5.32.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.
@@ -2366,6 +2366,7 @@ function NativeSelect({
2366
2366
  placeholder,
2367
2367
  error,
2368
2368
  onChange,
2369
+ onValueChange,
2369
2370
  value,
2370
2371
  ...props
2371
2372
  }) {
@@ -2374,8 +2375,9 @@ function NativeSelect({
2374
2375
  if (typeof onChange === "string") {
2375
2376
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
2376
2377
  } else {
2377
- onChange?.(e.target.value);
2378
+ onChange?.(e);
2378
2379
  }
2380
+ onValueChange?.(e.target.value);
2379
2381
  };
2380
2382
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
2381
2383
  /* @__PURE__ */ jsxs(
@@ -2410,6 +2412,7 @@ function RichSelect({
2410
2412
  placeholder,
2411
2413
  error,
2412
2414
  onChange,
2415
+ onValueChange,
2413
2416
  value,
2414
2417
  multiple,
2415
2418
  searchable,
@@ -2433,18 +2436,16 @@ function RichSelect({
2433
2436
  }
2434
2437
  if (typeof onChange === "string") {
2435
2438
  eventBus.emit(`UI:${onChange}`, { value: next });
2436
- } else {
2437
- onChange?.(next);
2438
2439
  }
2440
+ onValueChange?.(next);
2439
2441
  };
2440
2442
  const clear = (e) => {
2441
2443
  e.stopPropagation();
2442
2444
  const next = multiple ? [] : "";
2443
2445
  if (typeof onChange === "string") {
2444
2446
  eventBus.emit(`UI:${onChange}`, { value: next });
2445
- } else {
2446
- onChange?.(next);
2447
2447
  }
2448
+ onValueChange?.(next);
2448
2449
  };
2449
2450
  useEffect(() => {
2450
2451
  const handler = (e) => {
@@ -2462,6 +2463,7 @@ function RichSelect({
2462
2463
  "button",
2463
2464
  {
2464
2465
  type: "button",
2466
+ dir: opt.dir,
2465
2467
  disabled: opt.disabled,
2466
2468
  onClick: () => !opt.disabled && toggle(opt.value),
2467
2469
  className: cn(
@@ -2471,8 +2473,14 @@ function RichSelect({
2471
2473
  selected.includes(opt.value) && "text-primary font-medium"
2472
2474
  ),
2473
2475
  children: [
2474
- /* @__PURE__ */ jsx("span", { children: opt.label }),
2475
- selected.includes(opt.value) && /* @__PURE__ */ jsx(Icon, { name: "check", className: "h-icon-default w-icon-default" })
2476
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 min-w-0", children: [
2477
+ opt.icon != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 flex items-center", children: opt.icon }),
2478
+ /* @__PURE__ */ jsxs("span", { className: "flex flex-col min-w-0", children: [
2479
+ /* @__PURE__ */ jsx("span", { children: opt.label }),
2480
+ opt.secondaryLabel != null && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-normal", children: opt.secondaryLabel })
2481
+ ] })
2482
+ ] }),
2483
+ selected.includes(opt.value) && /* @__PURE__ */ jsx(Icon, { name: "check", className: "h-icon-default w-icon-default shrink-0" })
2476
2484
  ]
2477
2485
  },
2478
2486
  opt.value
@@ -15251,7 +15259,7 @@ var init_BranchingLogicBuilder = __esm({
15251
15259
  options: sourceOptions,
15252
15260
  value: rule.sourceQuestionId,
15253
15261
  placeholder: t("branchingLogic.selectQuestion"),
15254
- onChange: handleSource,
15262
+ onValueChange: handleSource,
15255
15263
  disabled: readOnly,
15256
15264
  error: broken ? t("branchingLogic.brokenReference") : void 0
15257
15265
  }
@@ -15261,7 +15269,7 @@ var init_BranchingLogicBuilder = __esm({
15261
15269
  {
15262
15270
  options: operatorOptions,
15263
15271
  value: rule.operator,
15264
- onChange: handleOperator,
15272
+ onValueChange: handleOperator,
15265
15273
  disabled: readOnly
15266
15274
  }
15267
15275
  ) }),
@@ -15283,7 +15291,7 @@ var init_BranchingLogicBuilder = __esm({
15283
15291
  options: valueOptions.filter((o) => !chips.includes(o.value)),
15284
15292
  value: "",
15285
15293
  placeholder: t("branchingLogic.addValue"),
15286
- onChange: handleAddChip,
15294
+ onValueChange: handleAddChip,
15287
15295
  disabled: readOnly
15288
15296
  }
15289
15297
  ) }) : /* @__PURE__ */ jsx(
@@ -15309,7 +15317,7 @@ var init_BranchingLogicBuilder = __esm({
15309
15317
  options: valueOptions,
15310
15318
  value: scalarValue,
15311
15319
  placeholder: t("branchingLogic.selectValue"),
15312
- onChange: (v) => onChange({ ...rule, value: v }),
15320
+ onValueChange: (v) => onChange({ ...rule, value: v }),
15313
15321
  disabled: readOnly
15314
15322
  }
15315
15323
  ) : /* @__PURE__ */ jsx(
@@ -15332,7 +15340,7 @@ var init_BranchingLogicBuilder = __esm({
15332
15340
  options: targetOptions,
15333
15341
  value: rule.targetQuestionId,
15334
15342
  placeholder: t("branchingLogic.selectTarget"),
15335
- onChange: handleTarget,
15343
+ onValueChange: handleTarget,
15336
15344
  disabled: readOnly,
15337
15345
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
15338
15346
  }
@@ -17741,7 +17749,7 @@ var init_Pagination = __esm({
17741
17749
  Select,
17742
17750
  {
17743
17751
  value: String(pageSize),
17744
- onChange: (v) => handlePageSizeChange(Number(v)),
17752
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
17745
17753
  options: pageSizeOptions.map((size) => ({
17746
17754
  value: String(size),
17747
17755
  label: String(size)
@@ -23231,7 +23239,7 @@ function FieldControl({
23231
23239
  {
23232
23240
  options: decl.values.map((v) => ({ value: v, label: v })),
23233
23241
  value: typeof value === "string" ? value : "",
23234
- onChange: (v) => onChange(name, v)
23242
+ onValueChange: (v) => onChange(name, v)
23235
23243
  }
23236
23244
  );
23237
23245
  } else if (decl.type === "number") {
@@ -23383,7 +23391,7 @@ var init_NodeSlotEditor = __esm({
23383
23391
  {
23384
23392
  options,
23385
23393
  value: type,
23386
- onChange: (v) => emit(v, props)
23394
+ onValueChange: (v) => emit(v, props)
23387
23395
  }
23388
23396
  ),
23389
23397
  type !== "" && /* @__PURE__ */ jsxs(VStack, { gap: "none", className: "pl-1", children: [
@@ -23837,7 +23845,7 @@ var init_FilterGroup = __esm({
23837
23845
  Select,
23838
23846
  {
23839
23847
  value: selectedValues[filter.field] || "all",
23840
- onChange: (v) => handleFilterSelect(filter.field, v),
23848
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
23841
23849
  options: [
23842
23850
  { value: "all", label: t("filterGroup.all") },
23843
23851
  ...filter.options?.map((opt) => ({
@@ -23920,7 +23928,7 @@ var init_FilterGroup = __esm({
23920
23928
  Select,
23921
23929
  {
23922
23930
  value: selectedValues[filter.field] || "all",
23923
- onChange: (v) => handleFilterSelect(filter.field, v),
23931
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
23924
23932
  options: [
23925
23933
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
23926
23934
  ...filter.options?.map((opt) => ({
@@ -24038,7 +24046,7 @@ var init_FilterGroup = __esm({
24038
24046
  Select,
24039
24047
  {
24040
24048
  value: selectedValues[filter.field] || "all",
24041
- onChange: (v) => handleFilterSelect(filter.field, v),
24049
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24042
24050
  options: [
24043
24051
  { value: "all", label: t("filterGroup.all") },
24044
24052
  ...filter.options?.map((opt) => ({
@@ -34292,7 +34300,7 @@ var init_VersionDiff = __esm({
34292
34300
  {
34293
34301
  options,
34294
34302
  value: activeBeforeId,
34295
- onChange: handleBeforeChange,
34303
+ onValueChange: handleBeforeChange,
34296
34304
  "aria-label": t("versionDiff.beforeRevision")
34297
34305
  }
34298
34306
  ) }),
@@ -34302,7 +34310,7 @@ var init_VersionDiff = __esm({
34302
34310
  {
34303
34311
  options,
34304
34312
  value: activeAfterId,
34305
- onChange: handleAfterChange,
34313
+ onValueChange: handleAfterChange,
34306
34314
  "aria-label": t("versionDiff.afterRevision")
34307
34315
  }
34308
34316
  ) }),
@@ -39105,7 +39113,7 @@ function RuleEditor({
39105
39113
  Select,
39106
39114
  {
39107
39115
  value: rule.whenEvent,
39108
- onChange: handleWhenChange,
39116
+ onValueChange: handleWhenChange,
39109
39117
  options: availableEvents,
39110
39118
  disabled,
39111
39119
  className: "flex-1 min-w-0"
@@ -39116,7 +39124,7 @@ function RuleEditor({
39116
39124
  Select,
39117
39125
  {
39118
39126
  value: rule.thenAction,
39119
- onChange: handleThenChange,
39127
+ onValueChange: handleThenChange,
39120
39128
  options: availableActions,
39121
39129
  disabled,
39122
39130
  className: "flex-1 min-w-0"
@@ -40173,7 +40181,7 @@ var init_Form = __esm({
40173
40181
  ...commonProps,
40174
40182
  options,
40175
40183
  value: String(currentValue2),
40176
- onChange: (v) => handleChange(fieldName, v),
40184
+ onValueChange: (v) => handleChange(fieldName, v),
40177
40185
  placeholder: field.placeholder || `Select ${label}...`
40178
40186
  }
40179
40187
  );
@@ -3704,6 +3704,7 @@ function NativeSelect({
3704
3704
  placeholder,
3705
3705
  error,
3706
3706
  onChange,
3707
+ onValueChange,
3707
3708
  value,
3708
3709
  ...props
3709
3710
  }) {
@@ -3712,8 +3713,9 @@ function NativeSelect({
3712
3713
  if (typeof onChange === "string") {
3713
3714
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
3714
3715
  } else {
3715
- onChange?.(e.target.value);
3716
+ onChange?.(e);
3716
3717
  }
3718
+ onValueChange?.(e.target.value);
3717
3719
  };
3718
3720
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3719
3721
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3748,6 +3750,7 @@ function RichSelect({
3748
3750
  placeholder,
3749
3751
  error,
3750
3752
  onChange,
3753
+ onValueChange,
3751
3754
  value,
3752
3755
  multiple,
3753
3756
  searchable,
@@ -3771,18 +3774,16 @@ function RichSelect({
3771
3774
  }
3772
3775
  if (typeof onChange === "string") {
3773
3776
  eventBus.emit(`UI:${onChange}`, { value: next });
3774
- } else {
3775
- onChange?.(next);
3776
3777
  }
3778
+ onValueChange?.(next);
3777
3779
  };
3778
3780
  const clear = (e) => {
3779
3781
  e.stopPropagation();
3780
3782
  const next = multiple ? [] : "";
3781
3783
  if (typeof onChange === "string") {
3782
3784
  eventBus.emit(`UI:${onChange}`, { value: next });
3783
- } else {
3784
- onChange?.(next);
3785
3785
  }
3786
+ onValueChange?.(next);
3786
3787
  };
3787
3788
  React80.useEffect(() => {
3788
3789
  const handler = (e) => {
@@ -3800,6 +3801,7 @@ function RichSelect({
3800
3801
  "button",
3801
3802
  {
3802
3803
  type: "button",
3804
+ dir: opt.dir,
3803
3805
  disabled: opt.disabled,
3804
3806
  onClick: () => !opt.disabled && toggle(opt.value),
3805
3807
  className: cn(
@@ -3809,8 +3811,14 @@ function RichSelect({
3809
3811
  selected.includes(opt.value) && "text-primary font-medium"
3810
3812
  ),
3811
3813
  children: [
3812
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: opt.label }),
3813
- selected.includes(opt.value) && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "check", className: "h-icon-default w-icon-default" })
3814
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-2 min-w-0", children: [
3815
+ opt.icon != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 flex items-center", children: opt.icon }),
3816
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex flex-col min-w-0", children: [
3817
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: opt.label }),
3818
+ opt.secondaryLabel != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground font-normal", children: opt.secondaryLabel })
3819
+ ] })
3820
+ ] }),
3821
+ selected.includes(opt.value) && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "check", className: "h-icon-default w-icon-default shrink-0" })
3814
3822
  ]
3815
3823
  },
3816
3824
  opt.value
@@ -16743,7 +16751,7 @@ var init_BranchingLogicBuilder = __esm({
16743
16751
  options: sourceOptions,
16744
16752
  value: rule.sourceQuestionId,
16745
16753
  placeholder: t("branchingLogic.selectQuestion"),
16746
- onChange: handleSource,
16754
+ onValueChange: handleSource,
16747
16755
  disabled: readOnly,
16748
16756
  error: broken ? t("branchingLogic.brokenReference") : void 0
16749
16757
  }
@@ -16753,7 +16761,7 @@ var init_BranchingLogicBuilder = __esm({
16753
16761
  {
16754
16762
  options: operatorOptions,
16755
16763
  value: rule.operator,
16756
- onChange: handleOperator,
16764
+ onValueChange: handleOperator,
16757
16765
  disabled: readOnly
16758
16766
  }
16759
16767
  ) }),
@@ -16775,7 +16783,7 @@ var init_BranchingLogicBuilder = __esm({
16775
16783
  options: valueOptions.filter((o) => !chips.includes(o.value)),
16776
16784
  value: "",
16777
16785
  placeholder: t("branchingLogic.addValue"),
16778
- onChange: handleAddChip,
16786
+ onValueChange: handleAddChip,
16779
16787
  disabled: readOnly
16780
16788
  }
16781
16789
  ) }) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -16801,7 +16809,7 @@ var init_BranchingLogicBuilder = __esm({
16801
16809
  options: valueOptions,
16802
16810
  value: scalarValue,
16803
16811
  placeholder: t("branchingLogic.selectValue"),
16804
- onChange: (v) => onChange({ ...rule, value: v }),
16812
+ onValueChange: (v) => onChange({ ...rule, value: v }),
16805
16813
  disabled: readOnly
16806
16814
  }
16807
16815
  ) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -16824,7 +16832,7 @@ var init_BranchingLogicBuilder = __esm({
16824
16832
  options: targetOptions,
16825
16833
  value: rule.targetQuestionId,
16826
16834
  placeholder: t("branchingLogic.selectTarget"),
16827
- onChange: handleTarget,
16835
+ onValueChange: handleTarget,
16828
16836
  disabled: readOnly,
16829
16837
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
16830
16838
  }
@@ -19233,7 +19241,7 @@ var init_Pagination = __esm({
19233
19241
  Select,
19234
19242
  {
19235
19243
  value: String(pageSize),
19236
- onChange: (v) => handlePageSizeChange(Number(v)),
19244
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
19237
19245
  options: pageSizeOptions.map((size) => ({
19238
19246
  value: String(size),
19239
19247
  label: String(size)
@@ -24163,7 +24171,7 @@ var init_FilterGroup = __esm({
24163
24171
  Select,
24164
24172
  {
24165
24173
  value: selectedValues[filter.field] || "all",
24166
- onChange: (v) => handleFilterSelect(filter.field, v),
24174
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24167
24175
  options: [
24168
24176
  { value: "all", label: t("filterGroup.all") },
24169
24177
  ...filter.options?.map((opt) => ({
@@ -24246,7 +24254,7 @@ var init_FilterGroup = __esm({
24246
24254
  Select,
24247
24255
  {
24248
24256
  value: selectedValues[filter.field] || "all",
24249
- onChange: (v) => handleFilterSelect(filter.field, v),
24257
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24250
24258
  options: [
24251
24259
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
24252
24260
  ...filter.options?.map((opt) => ({
@@ -24364,7 +24372,7 @@ var init_FilterGroup = __esm({
24364
24372
  Select,
24365
24373
  {
24366
24374
  value: selectedValues[filter.field] || "all",
24367
- onChange: (v) => handleFilterSelect(filter.field, v),
24375
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24368
24376
  options: [
24369
24377
  { value: "all", label: t("filterGroup.all") },
24370
24378
  ...filter.options?.map((opt) => ({
@@ -34082,7 +34090,7 @@ var init_VersionDiff = __esm({
34082
34090
  {
34083
34091
  options,
34084
34092
  value: activeBeforeId,
34085
- onChange: handleBeforeChange,
34093
+ onValueChange: handleBeforeChange,
34086
34094
  "aria-label": t("versionDiff.beforeRevision")
34087
34095
  }
34088
34096
  ) }),
@@ -34092,7 +34100,7 @@ var init_VersionDiff = __esm({
34092
34100
  {
34093
34101
  options,
34094
34102
  value: activeAfterId,
34095
- onChange: handleAfterChange,
34103
+ onValueChange: handleAfterChange,
34096
34104
  "aria-label": t("versionDiff.afterRevision")
34097
34105
  }
34098
34106
  ) }),
@@ -38675,7 +38683,7 @@ function RuleEditor({
38675
38683
  Select,
38676
38684
  {
38677
38685
  value: rule.whenEvent,
38678
- onChange: handleWhenChange,
38686
+ onValueChange: handleWhenChange,
38679
38687
  options: availableEvents,
38680
38688
  disabled,
38681
38689
  className: "flex-1 min-w-0"
@@ -38686,7 +38694,7 @@ function RuleEditor({
38686
38694
  Select,
38687
38695
  {
38688
38696
  value: rule.thenAction,
38689
- onChange: handleThenChange,
38697
+ onValueChange: handleThenChange,
38690
38698
  options: availableActions,
38691
38699
  disabled,
38692
38700
  className: "flex-1 min-w-0"
@@ -39743,7 +39751,7 @@ var init_Form = __esm({
39743
39751
  ...commonProps,
39744
39752
  options,
39745
39753
  value: String(currentValue),
39746
- onChange: (v) => handleChange(fieldName, v),
39754
+ onValueChange: (v) => handleChange(fieldName, v),
39747
39755
  placeholder: field.placeholder || `Select ${label}...`
39748
39756
  }
39749
39757
  );
@@ -3655,6 +3655,7 @@ function NativeSelect({
3655
3655
  placeholder,
3656
3656
  error,
3657
3657
  onChange,
3658
+ onValueChange,
3658
3659
  value,
3659
3660
  ...props
3660
3661
  }) {
@@ -3663,8 +3664,9 @@ function NativeSelect({
3663
3664
  if (typeof onChange === "string") {
3664
3665
  eventBus.emit(`UI:${onChange}`, { value: e.target.value });
3665
3666
  } else {
3666
- onChange?.(e.target.value);
3667
+ onChange?.(e);
3667
3668
  }
3669
+ onValueChange?.(e.target.value);
3668
3670
  };
3669
3671
  return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
3670
3672
  /* @__PURE__ */ jsxs(
@@ -3699,6 +3701,7 @@ function RichSelect({
3699
3701
  placeholder,
3700
3702
  error,
3701
3703
  onChange,
3704
+ onValueChange,
3702
3705
  value,
3703
3706
  multiple,
3704
3707
  searchable,
@@ -3722,18 +3725,16 @@ function RichSelect({
3722
3725
  }
3723
3726
  if (typeof onChange === "string") {
3724
3727
  eventBus.emit(`UI:${onChange}`, { value: next });
3725
- } else {
3726
- onChange?.(next);
3727
3728
  }
3729
+ onValueChange?.(next);
3728
3730
  };
3729
3731
  const clear = (e) => {
3730
3732
  e.stopPropagation();
3731
3733
  const next = multiple ? [] : "";
3732
3734
  if (typeof onChange === "string") {
3733
3735
  eventBus.emit(`UI:${onChange}`, { value: next });
3734
- } else {
3735
- onChange?.(next);
3736
3736
  }
3737
+ onValueChange?.(next);
3737
3738
  };
3738
3739
  useEffect(() => {
3739
3740
  const handler = (e) => {
@@ -3751,6 +3752,7 @@ function RichSelect({
3751
3752
  "button",
3752
3753
  {
3753
3754
  type: "button",
3755
+ dir: opt.dir,
3754
3756
  disabled: opt.disabled,
3755
3757
  onClick: () => !opt.disabled && toggle(opt.value),
3756
3758
  className: cn(
@@ -3760,8 +3762,14 @@ function RichSelect({
3760
3762
  selected.includes(opt.value) && "text-primary font-medium"
3761
3763
  ),
3762
3764
  children: [
3763
- /* @__PURE__ */ jsx("span", { children: opt.label }),
3764
- selected.includes(opt.value) && /* @__PURE__ */ jsx(Icon, { name: "check", className: "h-icon-default w-icon-default" })
3765
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 min-w-0", children: [
3766
+ opt.icon != null && /* @__PURE__ */ jsx("span", { className: "shrink-0 flex items-center", children: opt.icon }),
3767
+ /* @__PURE__ */ jsxs("span", { className: "flex flex-col min-w-0", children: [
3768
+ /* @__PURE__ */ jsx("span", { children: opt.label }),
3769
+ opt.secondaryLabel != null && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground font-normal", children: opt.secondaryLabel })
3770
+ ] })
3771
+ ] }),
3772
+ selected.includes(opt.value) && /* @__PURE__ */ jsx(Icon, { name: "check", className: "h-icon-default w-icon-default shrink-0" })
3765
3773
  ]
3766
3774
  },
3767
3775
  opt.value
@@ -16694,7 +16702,7 @@ var init_BranchingLogicBuilder = __esm({
16694
16702
  options: sourceOptions,
16695
16703
  value: rule.sourceQuestionId,
16696
16704
  placeholder: t("branchingLogic.selectQuestion"),
16697
- onChange: handleSource,
16705
+ onValueChange: handleSource,
16698
16706
  disabled: readOnly,
16699
16707
  error: broken ? t("branchingLogic.brokenReference") : void 0
16700
16708
  }
@@ -16704,7 +16712,7 @@ var init_BranchingLogicBuilder = __esm({
16704
16712
  {
16705
16713
  options: operatorOptions,
16706
16714
  value: rule.operator,
16707
- onChange: handleOperator,
16715
+ onValueChange: handleOperator,
16708
16716
  disabled: readOnly
16709
16717
  }
16710
16718
  ) }),
@@ -16726,7 +16734,7 @@ var init_BranchingLogicBuilder = __esm({
16726
16734
  options: valueOptions.filter((o) => !chips.includes(o.value)),
16727
16735
  value: "",
16728
16736
  placeholder: t("branchingLogic.addValue"),
16729
- onChange: handleAddChip,
16737
+ onValueChange: handleAddChip,
16730
16738
  disabled: readOnly
16731
16739
  }
16732
16740
  ) }) : /* @__PURE__ */ jsx(
@@ -16752,7 +16760,7 @@ var init_BranchingLogicBuilder = __esm({
16752
16760
  options: valueOptions,
16753
16761
  value: scalarValue,
16754
16762
  placeholder: t("branchingLogic.selectValue"),
16755
- onChange: (v) => onChange({ ...rule, value: v }),
16763
+ onValueChange: (v) => onChange({ ...rule, value: v }),
16756
16764
  disabled: readOnly
16757
16765
  }
16758
16766
  ) : /* @__PURE__ */ jsx(
@@ -16775,7 +16783,7 @@ var init_BranchingLogicBuilder = __esm({
16775
16783
  options: targetOptions,
16776
16784
  value: rule.targetQuestionId,
16777
16785
  placeholder: t("branchingLogic.selectTarget"),
16778
- onChange: handleTarget,
16786
+ onValueChange: handleTarget,
16779
16787
  disabled: readOnly,
16780
16788
  error: broken && rule.targetQuestionId !== END_OF_SURVEY ? t("branchingLogic.brokenReference") : void 0
16781
16789
  }
@@ -19184,7 +19192,7 @@ var init_Pagination = __esm({
19184
19192
  Select,
19185
19193
  {
19186
19194
  value: String(pageSize),
19187
- onChange: (v) => handlePageSizeChange(Number(v)),
19195
+ onValueChange: (v) => handlePageSizeChange(Number(v)),
19188
19196
  options: pageSizeOptions.map((size) => ({
19189
19197
  value: String(size),
19190
19198
  label: String(size)
@@ -24114,7 +24122,7 @@ var init_FilterGroup = __esm({
24114
24122
  Select,
24115
24123
  {
24116
24124
  value: selectedValues[filter.field] || "all",
24117
- onChange: (v) => handleFilterSelect(filter.field, v),
24125
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24118
24126
  options: [
24119
24127
  { value: "all", label: t("filterGroup.all") },
24120
24128
  ...filter.options?.map((opt) => ({
@@ -24197,7 +24205,7 @@ var init_FilterGroup = __esm({
24197
24205
  Select,
24198
24206
  {
24199
24207
  value: selectedValues[filter.field] || "all",
24200
- onChange: (v) => handleFilterSelect(filter.field, v),
24208
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24201
24209
  options: [
24202
24210
  { value: "all", label: t("filterGroup.allOf", { label: filter.label }) },
24203
24211
  ...filter.options?.map((opt) => ({
@@ -24315,7 +24323,7 @@ var init_FilterGroup = __esm({
24315
24323
  Select,
24316
24324
  {
24317
24325
  value: selectedValues[filter.field] || "all",
24318
- onChange: (v) => handleFilterSelect(filter.field, v),
24326
+ onValueChange: (v) => handleFilterSelect(filter.field, v),
24319
24327
  options: [
24320
24328
  { value: "all", label: t("filterGroup.all") },
24321
24329
  ...filter.options?.map((opt) => ({
@@ -34033,7 +34041,7 @@ var init_VersionDiff = __esm({
34033
34041
  {
34034
34042
  options,
34035
34043
  value: activeBeforeId,
34036
- onChange: handleBeforeChange,
34044
+ onValueChange: handleBeforeChange,
34037
34045
  "aria-label": t("versionDiff.beforeRevision")
34038
34046
  }
34039
34047
  ) }),
@@ -34043,7 +34051,7 @@ var init_VersionDiff = __esm({
34043
34051
  {
34044
34052
  options,
34045
34053
  value: activeAfterId,
34046
- onChange: handleAfterChange,
34054
+ onValueChange: handleAfterChange,
34047
34055
  "aria-label": t("versionDiff.afterRevision")
34048
34056
  }
34049
34057
  ) }),
@@ -38626,7 +38634,7 @@ function RuleEditor({
38626
38634
  Select,
38627
38635
  {
38628
38636
  value: rule.whenEvent,
38629
- onChange: handleWhenChange,
38637
+ onValueChange: handleWhenChange,
38630
38638
  options: availableEvents,
38631
38639
  disabled,
38632
38640
  className: "flex-1 min-w-0"
@@ -38637,7 +38645,7 @@ function RuleEditor({
38637
38645
  Select,
38638
38646
  {
38639
38647
  value: rule.thenAction,
38640
- onChange: handleThenChange,
38648
+ onValueChange: handleThenChange,
38641
38649
  options: availableActions,
38642
38650
  disabled,
38643
38651
  className: "flex-1 min-w-0"
@@ -39694,7 +39702,7 @@ var init_Form = __esm({
39694
39702
  ...commonProps,
39695
39703
  options,
39696
39704
  value: String(currentValue),
39697
- onChange: (v) => handleChange(fieldName, v),
39705
+ onValueChange: (v) => handleChange(fieldName, v),
39698
39706
  placeholder: field.placeholder || `Select ${label}...`
39699
39707
  }
39700
39708
  );