@dloizides/ui-forms 1.61.0 → 1.62.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.
package/dist/index.mjs CHANGED
@@ -4103,6 +4103,7 @@ function DateRangeControl({
4103
4103
  fromLabel,
4104
4104
  toLabel,
4105
4105
  accessibilityHint,
4106
+ showLabel = true,
4106
4107
  style,
4107
4108
  testID
4108
4109
  }) {
@@ -4112,7 +4113,7 @@ function DateRangeControl({
4112
4113
  if (!IS_WEB9) {
4113
4114
  return /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(NativeDateRange, { fromLabel, hint, style, testID, toLabel, value, onChange, onSubmit }) });
4114
4115
  }
4115
- return /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style, testID: `${testID}-range`, children: /* @__PURE__ */ jsx(Field, { error: typedError, label: `${fromLabel}${labels.rangeSeparator}${toLabel}`, children: (context) => /* @__PURE__ */ jsx(WebDateRange, { context, fromLabel, hint, testID, toLabel, value, onChange, onSubmit, onTypedError: setTypedError }) }) }) });
4116
+ return /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style, testID: `${testID}-range`, children: /* @__PURE__ */ jsx(Field, { error: typedError, label: showLabel ? `${fromLabel}${labels.rangeSeparator}${toLabel}` : void 0, children: (context) => /* @__PURE__ */ jsx(WebDateRange, { context, fromLabel, hint, testID, toLabel, value, onChange, onSubmit, onTypedError: setTypedError }) }) }) });
4116
4117
  }
4117
4118
  function DateTimeField(props) {
4118
4119
  return /* @__PURE__ */ jsx(TemporalField, { fieldProps: props, webInputType: "datetime-local" });