react-better-html 1.1.118 → 1.1.120

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
@@ -3016,7 +3016,7 @@ var ModalComponent = forwardRef6(function Modal({
3016
3016
  document.body
3017
3017
  );
3018
3018
  });
3019
- ModalComponent.confirmation = forwardRef6(function Confirmation({ continueButtonLoaderName, onContinue, onCancel, ...props }, ref) {
3019
+ ModalComponent.confirmation = forwardRef6(function Confirmation({ message, continueButtonLoaderName, onContinue, onCancel, ...props }, ref) {
3020
3020
  const theme2 = useTheme();
3021
3021
  const modalRef = useRef2(null);
3022
3022
  const onCancelElement = useCallback5(() => {
@@ -3029,7 +3029,7 @@ ModalComponent.confirmation = forwardRef6(function Confirmation({ continueButton
3029
3029
  }, [onContinue]);
3030
3030
  useImperativeHandle(ref, () => modalRef.current, []);
3031
3031
  return /* @__PURE__ */ jsxs5(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3032
- /* @__PURE__ */ jsx9(Text_default, { color: theme2.colors.textSecondary, children: "Do you really want to continue? This action may be irreversible." }),
3032
+ /* @__PURE__ */ jsx9(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue? This action may be irreversible." }),
3033
3033
  /* @__PURE__ */ jsxs5(
3034
3034
  Div_default.row,
3035
3035
  {
@@ -3045,7 +3045,7 @@ ModalComponent.confirmation = forwardRef6(function Confirmation({ continueButton
3045
3045
  )
3046
3046
  ] });
3047
3047
  });
3048
- ModalComponent.destructive = forwardRef6(function Destructive2({ deleteButtonLoaderName, onDelete, onCancel, ...props }, ref) {
3048
+ ModalComponent.destructive = forwardRef6(function Destructive2({ message, deleteButtonLoaderName, onDelete, onCancel, ...props }, ref) {
3049
3049
  const theme2 = useTheme();
3050
3050
  const modalRef = useRef2(null);
3051
3051
  const onCancelElement = useCallback5(() => {
@@ -3058,7 +3058,7 @@ ModalComponent.destructive = forwardRef6(function Destructive2({ deleteButtonLoa
3058
3058
  }, [onDelete]);
3059
3059
  useImperativeHandle(ref, () => modalRef.current, []);
3060
3060
  return /* @__PURE__ */ jsxs5(ModalComponent, { title: "Are you sure?", maxWidth: 660, ...props, ref: modalRef, children: [
3061
- /* @__PURE__ */ jsx9(Text_default, { color: theme2.colors.textSecondary, children: "Do you really want to continue with the deleting of the item? This action may be irreversible." }),
3061
+ /* @__PURE__ */ jsx9(Text_default, { color: theme2.colors.textSecondary, children: message ?? "Do you really want to continue with the deleting of the item? This action may be irreversible." }),
3062
3062
  /* @__PURE__ */ jsxs5(
3063
3063
  Div_default.row,
3064
3064
  {
@@ -6927,6 +6927,7 @@ var TdStyledComponent = styled10.td.withConfig({
6927
6927
  var filterPresetsText = {
6928
6928
  today: "Today",
6929
6929
  yesterday: "Yesterday",
6930
+ tomorrow: "Tomorrow",
6930
6931
  thisWeek: "This week",
6931
6932
  thisMonth: "This month",
6932
6933
  thisYear: "This year",
@@ -7121,6 +7122,12 @@ var TableComponent = forwardRef15(function Table({
7121
7122
  max: getValueForDate(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() - 1)))
7122
7123
  });
7123
7124
  break;
7125
+ case "tomorrow":
7126
+ filterForm.setFieldsValue({
7127
+ min: getValueForDate(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1))),
7128
+ max: getValueForDate(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)))
7129
+ });
7130
+ break;
7124
7131
  case "thisWeek":
7125
7132
  filterForm.setFieldsValue({
7126
7133
  min: getValueForDate(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() - 7))),
@@ -7493,10 +7500,13 @@ var TableComponent = forwardRef15(function Table({
7493
7500
  cancelButtonText: "Clear",
7494
7501
  onClickCancel: openedFilterData ? onClickCancelFormFilter : void 0,
7495
7502
  children: [
7496
- /* @__PURE__ */ jsxs16(FormRow_default, { children: [
7503
+ /* @__PURE__ */ jsx20(FormRow_default, { children: openedFilterColumn.filter === "date" ? /* @__PURE__ */ jsxs16(Fragment6, { children: [
7497
7504
  /* @__PURE__ */ jsx20(InputField_default.date, { label: "Min", ...filterForm.getInputFieldProps("min") }),
7498
7505
  /* @__PURE__ */ jsx20(InputField_default.date, { label: "Max", ...filterForm.getInputFieldProps("max") })
7499
- ] }),
7506
+ ] }) : /* @__PURE__ */ jsxs16(Fragment6, { children: [
7507
+ /* @__PURE__ */ jsx20(InputField_default.dateTime, { label: "Min", ...filterForm.getInputFieldProps("min") }),
7508
+ /* @__PURE__ */ jsx20(InputField_default.dateTime, { label: "Max", ...filterForm.getInputFieldProps("max") })
7509
+ ] }) }),
7500
7510
  openedFilterColumn.presets && /* @__PURE__ */ jsxs16(Div_default.column, { gap: theme2.styles.gap / 2, children: [
7501
7511
  /* @__PURE__ */ jsx20(Label_default, { text: "Presets" }),
7502
7512
  /* @__PURE__ */ jsx20(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: openedFilterColumn.presets.map((preset) => {
@@ -7885,6 +7895,7 @@ TooltipComponent.item = forwardRef16(function Item({ icon, text, description, is
7885
7895
  paddingBlock: theme2.styles.gap,
7886
7896
  paddingInline: theme2.styles.space,
7887
7897
  cursor: "pointer",
7898
+ isTabAccessed: true,
7888
7899
  id,
7889
7900
  value,
7890
7901
  onClick,