@react-typed-forms/schemas-rn 2.0.0 → 2.0.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.
package/lib/index.cjs CHANGED
@@ -482,7 +482,7 @@ function RNDateTimePicker(_ref) {
482
482
  try {
483
483
  switch (mode) {
484
484
  case "date":
485
- return date.parseDate(dateString).toDate(date.getLocalTimeZone());
485
+ return date.parseDate(dateString).toDate("UTC");
486
486
  case "datetime":
487
487
  return date.parseAbsolute(dateString, date.getLocalTimeZone()).toDate();
488
488
  case "time":
@@ -502,7 +502,7 @@ function RNDateTimePicker(_ref) {
502
502
  day: "2-digit",
503
503
  month: "2-digit",
504
504
  year: "numeric",
505
- timeZone: date.getLocalTimeZone()
505
+ timeZone: "UTC"
506
506
  };
507
507
  break;
508
508
  case "datetime":
@@ -813,10 +813,11 @@ function SelectTrigger(_ref2) {
813
813
  props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
814
814
  return jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, _extends({
815
815
  ref: ref,
816
- className: cn("flex flex-row h-10 native:h-12 items-center text-sm justify-between border border-[#E7E7E8] bg-background px-3 py-2 [&>span]:line-clamp-1 min-w-[128px]", props.disabled && "opacity-50", className)
816
+ className: cn("flex flex-row min-h-10 native:min-h-12 items-center text-sm justify-between border border-[#E7E7E8] bg-background px-3 py-2 [&>span]:line-clamp-1 min-w-[128px]", props.disabled && "opacity-50", className)
817
817
  }, props, {
818
818
  children: [jsxRuntime.jsx(reactNative.Pressable, {
819
819
  pointerEvents: "none",
820
+ className: "flex-1",
820
821
  children: children
821
822
  }), jsxRuntime.jsx(Icon, {
822
823
  name: "chevron-down",
@@ -1346,7 +1347,7 @@ function RNCheckButtons(props) {
1346
1347
  return jsxRuntime.jsxs(Button, {
1347
1348
  className: clsx.clsx(schemas.rendererClass(controlClasses == null ? void 0 : controlClasses.entryWrapperClass, classes.entryWrapperClass), selOrUnsel),
1348
1349
  onClick: function onClick() {
1349
- return !readonly && setChecked(control, o, !checked);
1350
+ return !(readonly || disabled) && setChecked(control, o, !checked);
1350
1351
  },
1351
1352
  notWrapInText: true,
1352
1353
  children: [jsxRuntime.jsxs(Div, {
@@ -2250,12 +2251,21 @@ function DefaultDialogRenderer(_ref) {
2250
2251
  })
2251
2252
  })
2252
2253
  })]
2253
- }), allChildren.filter(function (x) {
2254
- return !x.definition.placement || x.definition.placement === "dialog";
2255
- }).map(function (x, i) {
2256
- return props.renderChild(x, {
2257
- actionOnClick: actionOnClick
2258
- });
2254
+ }), jsxRuntime.jsx(reactNative.ScrollView, {
2255
+ persistentScrollbar: true,
2256
+ children: jsxRuntime.jsx(reactNative.View, {
2257
+ className: "flex flex-col gap-[12px]",
2258
+ onStartShouldSetResponder: function onStartShouldSetResponder() {
2259
+ return true;
2260
+ },
2261
+ children: allChildren.filter(function (x) {
2262
+ return !x.definition.placement || x.definition.placement === "dialog";
2263
+ }).map(function (x, i) {
2264
+ return props.renderChild(x, {
2265
+ actionOnClick: actionOnClick
2266
+ });
2267
+ })
2268
+ })
2259
2269
  })]
2260
2270
  })]
2261
2271
  });