@react-typed-forms/schemas-rn 2.2.0 → 2.2.2

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.
@@ -0,0 +1,4 @@
1
+ import { HtmlDivProperties } from "@react-typed-forms/schemas";
2
+ export declare function RNDiv({ className, html, children, textClass, text, style, inline, role, selectable, ...props }: HtmlDivProperties & {
3
+ selectable?: boolean;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,6 @@ export type RNHtmlRendererProps = {
4
4
  className?: string;
5
5
  html?: string;
6
6
  style?: React.CSSProperties | undefined;
7
+ noSelection?: boolean | null;
7
8
  } & Pick<RenderHTMLProps, "baseStyle" | "tagsStyles" | "systemFonts" | "contentWidth">;
8
- export declare function RNHtmlRenderer({ className, html, style, contentWidth, ...props }: RNHtmlRendererProps): import("react/jsx-runtime").JSX.Element | undefined;
9
+ export declare function RNHtmlRenderer({ className, html, style, contentWidth, noSelection, ...props }: RNHtmlRendererProps): import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,11 +1,7 @@
1
- import { HtmlDivProperties, HtmlComponents } from "@react-typed-forms/schemas";
2
- import { AdornmentRendererRegistration, DataRendererRegistration, DefaultRenderers, LabelRendererRegistration } from "@react-typed-forms/schemas";
3
- import { DefaultRendererOptions, DefaultDataRendererOptions, DefaultLabelRendererOptions, DefaultAdornmentRendererOptions } from "./rendererOptions";
1
+ import { AdornmentRendererRegistration, DataRendererRegistration, DefaultRenderers, HtmlComponents, LabelRendererRegistration } from "@react-typed-forms/schemas";
2
+ import { DefaultAdornmentRendererOptions, DefaultDataRendererOptions, DefaultLabelRendererOptions, DefaultRendererOptions } from "./rendererOptions";
4
3
  export declare function createDefaultDataRenderer(options?: DefaultDataRendererOptions): DataRendererRegistration;
5
4
  export declare function createDefaultAdornmentRenderer(options?: DefaultAdornmentRendererOptions): AdornmentRendererRegistration;
6
5
  export declare function createDefaultLabelRenderer(options?: DefaultLabelRendererOptions): LabelRendererRegistration;
7
- export declare function RNDiv({ className, html, children, textClass, text, style, inline, role, noSelection, ...props }: HtmlDivProperties & {
8
- noSelection?: boolean | null;
9
- }): import("react/jsx-runtime").JSX.Element;
10
6
  export declare const ReactNativeHtmlComponents: HtmlComponents;
11
7
  export declare function createDefaultRenderers(options?: DefaultRendererOptions): DefaultRenderers;
@@ -33,6 +33,7 @@ export declare const defaultTailwindTheme: {
33
33
  buttonClass: string;
34
34
  primaryClass: string;
35
35
  secondaryClass: string;
36
+ linkTextClass: string;
36
37
  iconBeforeClass: string;
37
38
  iconAfterClass: string;
38
39
  busyIcon: {
package/lib/index.cjs CHANGED
@@ -94,6 +94,7 @@ var defaultTailwindTheme = {
94
94
  buttonClass: "rounded-lg p-3 text-white disabled:opacity-75",
95
95
  primaryClass: "bg-primary-500",
96
96
  secondaryClass: "bg-secondary-500",
97
+ linkTextClass: "text-primary-500 underline",
97
98
  iconBeforeClass: "px-2",
98
99
  iconAfterClass: "px-2",
99
100
  busyIcon: schemas.fontAwesomeIcon("spinner fa-spin")
@@ -106,7 +107,7 @@ var defaultTailwindTheme = {
106
107
  inputClass: "border rounded p-2",
107
108
  displayOnlyClass: "flex flex-row items-center gap-2",
108
109
  checkOptions: {
109
- className: "flex items-center gap-4",
110
+ className: "flex gap-4",
110
111
  entryClass: "flex items-center gap-1"
111
112
  },
112
113
  selectOptions: {
@@ -147,7 +148,7 @@ var defaultRnTailwindTheme = schemas.deepMerge({
147
148
  data: {
148
149
  checkOptions: {
149
150
  entryClass: "flex flex-row items-center gap-[8px]",
150
- labelClass: "flex-1"
151
+ labelClass: "body shrink"
151
152
  },
152
153
  selectOptions: {
153
154
  emptyText: "select"
@@ -205,13 +206,13 @@ function cn() {
205
206
  return tailwindMerge.twMerge(clsx.clsx([].slice.call(arguments)));
206
207
  }
207
208
 
208
- var _excluded$d = ["className", "asChild"];
209
+ var _excluded$e = ["className", "asChild"];
209
210
  var TextClassContext = /*#__PURE__*/React__namespace.createContext(undefined);
210
211
  var RNText = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
211
212
  var className = _ref.className,
212
213
  _ref$asChild = _ref.asChild,
213
214
  asChild = _ref$asChild === void 0 ? false : _ref$asChild,
214
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
215
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
215
216
  var textClass = React__namespace.useContext(TextClassContext);
216
217
  var Component = asChild ? Slot__namespace.Text : reactNative.Text;
217
218
  return jsxRuntime.jsx(Component, _extends({
@@ -221,7 +222,7 @@ var RNText = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
221
222
  });
222
223
  RNText.displayName = "RNText";
223
224
 
224
- var _excluded$c = ["className", "variant", "size"];
225
+ var _excluded$d = ["className", "variant", "size"];
225
226
  var buttonVariants = classVarianceAuthority.cva("group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2", {
226
227
  variants: {
227
228
  variant: {
@@ -270,7 +271,7 @@ var RNButton$1 = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
270
271
  var className = _ref.className,
271
272
  variant = _ref.variant,
272
273
  size = _ref.size,
273
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
274
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
274
275
  return jsxRuntime.jsx(TextClassContext.Provider, {
275
276
  value: buttonTextVariants({
276
277
  variant: variant,
@@ -326,7 +327,7 @@ function Icon(_ref) {
326
327
  }
327
328
  }
328
329
 
329
- var _excluded$b = ["className"];
330
+ var _excluded$c = ["className"];
330
331
  function createRNCheckboxRenderer(options) {
331
332
  if (options === void 0) {
332
333
  options = {};
@@ -382,7 +383,7 @@ function CheckBoxRenderer(_ref) {
382
383
  }
383
384
  var RNCheckbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref2, ref) {
384
385
  var className = _ref2.className,
385
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$b);
386
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$c);
386
387
  return jsxRuntime.jsx(CheckboxPrimitive__namespace.Root, _extends({
387
388
  ref: ref,
388
389
  className: cn("web:peer h-4 w-4 native:h-[24px] native:w-[24px] shrink-0 rounded-sm native:rounded border border-accent web:ring-offset-background web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className)
@@ -401,14 +402,14 @@ var RNCheckbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref2, ref)
401
402
  });
402
403
  RNCheckbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
403
404
 
404
- var _excluded$a = ["renderOptions", "control", "readonly"],
405
+ var _excluded$b = ["renderOptions", "control", "readonly"],
405
406
  _excluded2$5 = ["className", "placeholderClassName"];
406
407
  function createRNTextInputRenderer(inputClass, inputTextClass) {
407
408
  return schemas.createDataRenderer(function (p) {
408
409
  var renderOptions = p.renderOptions,
409
410
  control = p.control,
410
411
  readonly = p.readonly,
411
- rest = _objectWithoutPropertiesLoose(p, _excluded$a);
412
+ rest = _objectWithoutPropertiesLoose(p, _excluded$b);
412
413
  var _formControlProps = core.formControlProps(control),
413
414
  disabled = _formControlProps.disabled;
414
415
  var placeholder = renderOptions.placeholder,
@@ -452,7 +453,7 @@ function RNTextInput(_ref) {
452
453
  }
453
454
  RNTextInput.displayName = "RNInput";
454
455
 
455
- var _excluded$9 = ["control", "mode", "locale", "is24Hour", "className"];
456
+ var _excluded$a = ["control", "mode", "locale", "is24Hour", "className"];
456
457
  function createRNDateTimePickerRenderer(options) {
457
458
  if (options === void 0) {
458
459
  options = {};
@@ -538,7 +539,7 @@ function RNDateTimePicker(_ref) {
538
539
  _ref$is24Hour = _ref.is24Hour,
539
540
  is24Hour = _ref$is24Hour === void 0 ? true : _ref$is24Hour,
540
541
  className = _ref.className,
541
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
542
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
542
543
  var disabled = control.disabled;
543
544
  var maximumDate = props.maximumDate,
544
545
  minimumDate = props.minimumDate;
@@ -601,7 +602,7 @@ function RNDateTimePicker(_ref) {
601
602
  }
602
603
  }
603
604
 
604
- var _excluded$8 = ["className", "html", "style", "contentWidth"];
605
+ var _excluded$9 = ["className", "html", "style", "contentWidth", "noSelection"];
605
606
  function RNHtmlRenderer(_ref) {
606
607
  var _effect = core.useComponentTracking();
607
608
  try {
@@ -609,7 +610,8 @@ function RNHtmlRenderer(_ref) {
609
610
  html = _ref.html,
610
611
  style = _ref.style,
611
612
  contentWidth = _ref.contentWidth,
612
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
613
+ noSelection = _ref.noSelection,
614
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
613
615
  if (!html) return;
614
616
  var source = {
615
617
  html: html
@@ -619,7 +621,7 @@ function RNHtmlRenderer(_ref) {
619
621
  className: className,
620
622
  children: jsxRuntime.jsx(RenderHtml__default["default"], _extends({
621
623
  defaultTextProps: {
622
- selectable: true
624
+ selectable: !noSelection
623
625
  },
624
626
  contentWidth: contentWidth != null ? contentWidth : reactNative.Dimensions.get("window").width,
625
627
  source: source
@@ -630,12 +632,12 @@ function RNHtmlRenderer(_ref) {
630
632
  }
631
633
  }
632
634
 
633
- var _excluded$7 = ["className", "checked", "onChange"];
635
+ var _excluded$8 = ["className", "checked", "onChange"];
634
636
  var RNRadioItem = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
635
637
  var className = _ref.className,
636
638
  checked = _ref.checked,
637
639
  onChange = _ref.onChange,
638
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
640
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
639
641
  return jsxRuntime.jsx(reactNative.Pressable, _extends({
640
642
  ref: ref,
641
643
  onPress: onChange,
@@ -668,10 +670,10 @@ function createSelectConversion(ft) {
668
670
  }
669
671
  }
670
672
 
671
- var _excluded$6 = ["state", "options", "className", "convert", "required", "emptyText", "requiredText", "portalHost", "readonly"],
673
+ var _excluded$7 = ["state", "options", "className", "convert", "required", "emptyText", "requiredText", "portalHost", "readonly"],
672
674
  _excluded2$4 = ["ref", "className", "children"],
673
675
  _excluded3$2 = ["className", "children", "position", "portalHost"],
674
- _excluded4$2 = ["className"],
676
+ _excluded4$1 = ["className"],
675
677
  _excluded5 = ["className", "children"];
676
678
  function createRNSelectRenderer(options) {
677
679
  if (options === void 0) {
@@ -719,7 +721,7 @@ function RNSelectRenderer(_ref) {
719
721
  requiredText = _ref$requiredText === void 0 ? "Please select" : _ref$requiredText,
720
722
  portalHost = _ref.portalHost,
721
723
  readonly = _ref.readonly,
722
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
724
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
723
725
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
724
726
  var contentInsets = {
725
727
  top: insets.top,
@@ -870,7 +872,7 @@ var SelectContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref3, re
870
872
  SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
871
873
  var SelectLabel = /*#__PURE__*/React__namespace.forwardRef(function (_ref4, ref) {
872
874
  var className = _ref4.className,
873
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4$2);
875
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
874
876
  return jsxRuntime.jsx(SelectPrimitive__namespace.Label, _extends({
875
877
  ref: ref,
876
878
  className: cn("py-1.5 native:pb-2 pl-2 native:pl-2 pr-2 text-popover-foreground text-sm native:text-base font-semibold", className)
@@ -899,10 +901,10 @@ var SelectItem = /*#__PURE__*/React__namespace.forwardRef(function (_ref5, ref)
899
901
  });
900
902
  SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
901
903
 
902
- var _excluded$5 = ["className"],
904
+ var _excluded$6 = ["className"],
903
905
  _excluded2$3 = ["className", "children"],
904
906
  _excluded3$1 = ["className", "children", "portalHost", "closeOnOutsidePress"],
905
- _excluded4$1 = ["className"];
907
+ _excluded4 = ["className"];
906
908
  var Dialog = DialogPrimitive__namespace.Root;
907
909
  var DialogTrigger = DialogPrimitive__namespace.Trigger;
908
910
  var DialogPortal = DialogPrimitive__namespace.Portal;
@@ -911,7 +913,7 @@ function DialogOverlayWeb(_ref) {
911
913
  var _effect = core.useComponentTracking();
912
914
  try {
913
915
  var className = _ref.className,
914
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
916
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
915
917
  var _DialogPrimitive$useR = DialogPrimitive__namespace.useRootContext(),
916
918
  open = _DialogPrimitive$useR.open;
917
919
  return jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, _extends({
@@ -969,7 +971,7 @@ var DialogContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref3, re
969
971
  DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
970
972
  var DialogTitle = /*#__PURE__*/React__namespace.forwardRef(function (_ref4, ref) {
971
973
  var className = _ref4.className,
972
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
974
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
973
975
  return jsxRuntime.jsx(DialogPrimitive__namespace.Title, _extends({
974
976
  ref: ref,
975
977
  className: cn(className)
@@ -1147,6 +1149,58 @@ function RNScrollListRenderer(_ref) {
1147
1149
  }
1148
1150
  }
1149
1151
 
1152
+ var _excluded$5 = ["className", "html", "children", "textClass", "text", "style", "inline", "role", "selectable"];
1153
+ function RNDiv(_ref) {
1154
+ var _effect = core.useComponentTracking();
1155
+ try {
1156
+ var className = _ref.className,
1157
+ html = _ref.html,
1158
+ children = _ref.children,
1159
+ textClass = _ref.textClass,
1160
+ text = _ref.text,
1161
+ style = _ref.style,
1162
+ inline = _ref.inline,
1163
+ role = _ref.role,
1164
+ selectable = _ref.selectable,
1165
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1166
+ if (html != null) {
1167
+ return jsxRuntime.jsx(RNHtmlRenderer, _extends({}, props, {
1168
+ html: html,
1169
+ noSelection: !selectable
1170
+ }));
1171
+ }
1172
+ if (inline) {
1173
+ return jsxRuntime.jsx(reactNative.Text, {
1174
+ style: style,
1175
+ className: textClass,
1176
+ selectable: selectable,
1177
+ children: text != null ? text : children
1178
+ });
1179
+ }
1180
+ if (text != null) {
1181
+ return jsxRuntime.jsx(reactNative.View, _extends({
1182
+ className: className,
1183
+ style: style,
1184
+ role: role
1185
+ }, props, {
1186
+ children: jsxRuntime.jsx(reactNative.Text, {
1187
+ className: textClass,
1188
+ selectable: selectable,
1189
+ children: text
1190
+ })
1191
+ }));
1192
+ }
1193
+ return jsxRuntime.jsx(reactNative.View, _extends({
1194
+ className: className,
1195
+ style: style,
1196
+ children: children,
1197
+ role: role
1198
+ }, props));
1199
+ } finally {
1200
+ _effect();
1201
+ }
1202
+ }
1203
+
1150
1204
  var _excluded$4 = ["htmlClassName"];
1151
1205
  function createDefaultDisplayRenderer(options) {
1152
1206
  if (options === void 0) {
@@ -1179,8 +1233,7 @@ function DefaultDisplay(_ref) {
1179
1233
  I = _renderer$html.I,
1180
1234
  Div = _renderer$html.Div,
1181
1235
  B = _renderer$html.B,
1182
- H1 = _renderer$html.H1,
1183
- Span = _renderer$html.Span;
1236
+ H1 = _renderer$html.H1;
1184
1237
  switch (data.type) {
1185
1238
  case schemas.DisplayDataType.Icon:
1186
1239
  var iconDisplay = data;
@@ -1192,12 +1245,13 @@ function DefaultDisplay(_ref) {
1192
1245
  });
1193
1246
  case schemas.DisplayDataType.Text:
1194
1247
  var text = display ? schemas.coerceToString(display.value) : data.text;
1195
- return jsxRuntime.jsx(Div, {
1248
+ return jsxRuntime.jsx(RNDiv, {
1196
1249
  style: style,
1197
1250
  className: schemas.rendererClass(className, options.textClassName),
1198
1251
  textClass: schemas.rendererClass(textClass, options.textTextClass),
1199
1252
  text: text,
1200
- inline: displayProps.inline
1253
+ inline: displayProps.inline,
1254
+ selectable: !displayProps.noSelection
1201
1255
  });
1202
1256
  case schemas.DisplayDataType.Html:
1203
1257
  var htmlClassName = options.htmlClassName,
@@ -1205,6 +1259,7 @@ function DefaultDisplay(_ref) {
1205
1259
  return jsxRuntime.jsx(RNHtmlRenderer, _extends({
1206
1260
  style: style,
1207
1261
  className: schemas.rendererClass(className, htmlClassName),
1262
+ noSelection: displayProps.noSelection,
1208
1263
  html: display ? schemas.coerceToString(display.value) : data.html
1209
1264
  }, props));
1210
1265
  case schemas.DisplayDataType.Custom:
@@ -1375,7 +1430,7 @@ function RNCheckButtons(props) {
1375
1430
  }
1376
1431
  }), jsxRuntime.jsx(Label, {
1377
1432
  className: classes.labelClass,
1378
- textClass: classes.labelClass,
1433
+ textClass: classes.labelTextClass,
1379
1434
  htmlFor: name + "_" + i,
1380
1435
  children: o.name
1381
1436
  })]
@@ -1411,7 +1466,7 @@ function DefaultDisplayOnly(_ref) {
1411
1466
  textClass: textClass,
1412
1467
  text: text,
1413
1468
  inline: inline,
1414
- noSelection: noSelection
1469
+ selectable: !noSelection
1415
1470
  });
1416
1471
  } finally {
1417
1472
  _effect();
@@ -2423,8 +2478,7 @@ function createButtonActionRenderer(actionId, options) {
2423
2478
  var iconPlacement = busyIcon ? busyPlacement : stdIconPlacement;
2424
2479
  var _renderer$html = renderer.html,
2425
2480
  Button = _renderer$html.Button,
2426
- I = _renderer$html.I,
2427
- Span = _renderer$html.Span;
2481
+ I = _renderer$html.I;
2428
2482
  var isLink = actionStyle == schemas.ActionStyle.Link;
2429
2483
  var isGroup = actionStyle == schemas.ActionStyle.Group;
2430
2484
  var classNames = schemas.rendererClass(className, isLink ? options.linkClass : isGroup ? options.groupClass : schemas.rendererClass(options.buttonClass, actionStyle == schemas.ActionStyle.Secondary ? options.secondaryClass : options.primaryClass));
@@ -2434,7 +2488,7 @@ function createButtonActionRenderer(actionId, options) {
2434
2488
  iconLibrary: icon.library,
2435
2489
  className: schemas.rendererClass(textClassNames, iconPlacement == schemas.IconPlacement.BeforeText ? options.iconBeforeClass : options.iconAfterClass)
2436
2490
  });
2437
- var textElement = actionContent != null ? actionContent : actionText && jsxRuntime.jsx(Span, {
2491
+ var textElement = actionContent != null ? actionContent : actionText && jsxRuntime.jsx(reactNative.Text, {
2438
2492
  className: textClassNames,
2439
2493
  children: actionText
2440
2494
  });
@@ -2458,8 +2512,7 @@ function createButtonActionRenderer(actionId, options) {
2458
2512
 
2459
2513
  var _excluded = ["inline", "textClass", "children", "notWrapInText", "androidRippleColor", "nonTextContent", "onClick"],
2460
2514
  _excluded2 = ["className", "html", "children", "textClass", "text", "style", "inline", "role"],
2461
- _excluded3 = ["className", "html", "children", "textClass", "text", "style", "inline", "role", "noSelection"],
2462
- _excluded4 = ["id", "type", "onChangeValue", "onChangeChecked", "checked", "value"];
2515
+ _excluded3 = ["id", "type", "onChangeValue", "onChangeChecked", "checked", "value"];
2463
2516
  function createDefaultDataRenderer(options) {
2464
2517
  var _options$checkboxOpti, _options$checkboxOpti2, _options$radioOptions, _options$checkListOpt;
2465
2518
  if (options === void 0) {
@@ -2518,7 +2571,7 @@ function createDefaultDataRenderer(options) {
2518
2571
  inline: props.inline,
2519
2572
  renderer: renderers,
2520
2573
  emptyText: schemas.isDisplayOnlyRenderer(renderOptions) && renderOptions.emptyText ? renderOptions.emptyText : defaultEmptyText,
2521
- noSelection: schemas.isDisplayOnlyRenderer(renderOptions) ? renderOptions.noSelection : undefined
2574
+ noSelection: props.definition.noSelection
2522
2575
  })
2523
2576
  });
2524
2577
  };
@@ -2796,57 +2849,8 @@ function RNLabel(_ref7) {
2796
2849
  _effect4();
2797
2850
  }
2798
2851
  }
2799
- function RNDiv(_ref8) {
2800
- var _effect5 = core.useComponentTracking();
2801
- try {
2802
- var className = _ref8.className,
2803
- html = _ref8.html,
2804
- children = _ref8.children,
2805
- textClass = _ref8.textClass,
2806
- text = _ref8.text,
2807
- style = _ref8.style,
2808
- inline = _ref8.inline,
2809
- role = _ref8.role,
2810
- noSelection = _ref8.noSelection,
2811
- props = _objectWithoutPropertiesLoose(_ref8, _excluded3);
2812
- if (html != null) {
2813
- return jsxRuntime.jsx(RNHtmlRenderer, _extends({}, props, {
2814
- html: html
2815
- }));
2816
- }
2817
- if (inline) {
2818
- return jsxRuntime.jsx(reactNative.Text, {
2819
- style: style,
2820
- className: textClass,
2821
- selectable: !noSelection,
2822
- children: text != null ? text : children
2823
- });
2824
- }
2825
- if (text != null) {
2826
- return jsxRuntime.jsx(reactNative.View, _extends({
2827
- className: className,
2828
- style: style,
2829
- role: role
2830
- }, props, {
2831
- children: jsxRuntime.jsx(reactNative.Text, {
2832
- className: textClass,
2833
- selectable: !noSelection,
2834
- children: text
2835
- })
2836
- }));
2837
- }
2838
- return jsxRuntime.jsx(reactNative.View, _extends({
2839
- className: className,
2840
- style: style,
2841
- children: children,
2842
- role: role
2843
- }, props));
2844
- } finally {
2845
- _effect5();
2846
- }
2847
- }
2848
2852
  function RNInput(props) {
2849
- var _effect6 = core.useComponentTracking();
2853
+ var _effect5 = core.useComponentTracking();
2850
2854
  try {
2851
2855
  var id = props.id,
2852
2856
  type = props.type,
@@ -2854,7 +2858,7 @@ function RNInput(props) {
2854
2858
  onChangeChecked = props.onChangeChecked,
2855
2859
  checked = props.checked,
2856
2860
  value = props.value,
2857
- rest = _objectWithoutPropertiesLoose(props, _excluded4);
2861
+ rest = _objectWithoutPropertiesLoose(props, _excluded3);
2858
2862
  switch (type) {
2859
2863
  case "radio":
2860
2864
  return jsxRuntime.jsx(RNRadioItem, _extends({}, rest, {
@@ -2879,7 +2883,7 @@ function RNInput(props) {
2879
2883
  }));
2880
2884
  }
2881
2885
  } finally {
2882
- _effect6();
2886
+ _effect5();
2883
2887
  }
2884
2888
  }
2885
2889
  // React Native HTML Components
@@ -2943,7 +2947,6 @@ exports.Icon = Icon;
2943
2947
  exports.RNButton = RNButton$1;
2944
2948
  exports.RNCheckbox = RNCheckbox;
2945
2949
  exports.RNDialog = RNDialog;
2946
- exports.RNDiv = RNDiv;
2947
2950
  exports.RNHtmlRenderer = RNHtmlRenderer;
2948
2951
  exports.RNRadioItem = RNRadioItem;
2949
2952
  exports.RNSelectRenderer = RNSelectRenderer;