@apexcura/ui-components 0.0.11-Beta174 → 0.0.11-Beta176

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.js CHANGED
@@ -666,20 +666,20 @@ var DatePickerElement = (props) => {
666
666
  }
667
667
  };
668
668
  const onHandleDecrement = () => {
669
- console.log("incrementdate", date);
670
- const newDate = (0, import_moment.default)(date).subtract(1, "days");
669
+ const currentDate = date || (0, import_moment.default)();
670
+ console.log("currentDate------------", currentDate);
671
+ const newDate = (0, import_moment.default)(currentDate).subtract(1, "days");
671
672
  setDate(newDate);
672
673
  if (props.onChange) {
673
674
  props.onChange(newDate.format("lll"));
674
675
  }
675
676
  };
676
677
  const onHandleIncrement = () => {
677
- if (date) {
678
- const newDate = (0, import_moment.default)(date).add(1, "days");
679
- setDate(newDate);
680
- if (props.onChange) {
681
- props.onChange(newDate.format("lll"));
682
- }
678
+ const currentDate = date || (0, import_moment.default)();
679
+ const newDate = (0, import_moment.default)(currentDate).add(1, "days");
680
+ setDate(newDate);
681
+ if (props.onChange) {
682
+ props.onChange(newDate.format("lll"));
683
683
  }
684
684
  };
685
685
  return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, null)), /* @__PURE__ */ import_react20.default.createElement(
@@ -687,6 +687,7 @@ var DatePickerElement = (props) => {
687
687
  {
688
688
  placeholder: props.placeholder,
689
689
  value: date,
690
+ variant: "borderless",
690
691
  onChange: handleChange
691
692
  }
692
693
  ), /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null)));
package/dist/index.mjs CHANGED
@@ -615,20 +615,20 @@ var DatePickerElement = (props) => {
615
615
  }
616
616
  };
617
617
  const onHandleDecrement = () => {
618
- console.log("incrementdate", date);
619
- const newDate = moment(date).subtract(1, "days");
618
+ const currentDate = date || moment();
619
+ console.log("currentDate------------", currentDate);
620
+ const newDate = moment(currentDate).subtract(1, "days");
620
621
  setDate(newDate);
621
622
  if (props.onChange) {
622
623
  props.onChange(newDate.format("lll"));
623
624
  }
624
625
  };
625
626
  const onHandleIncrement = () => {
626
- if (date) {
627
- const newDate = moment(date).add(1, "days");
628
- setDate(newDate);
629
- if (props.onChange) {
630
- props.onChange(newDate.format("lll"));
631
- }
627
+ const currentDate = date || moment();
628
+ const newDate = moment(currentDate).add(1, "days");
629
+ setDate(newDate);
630
+ if (props.onChange) {
631
+ props.onChange(newDate.format("lll"));
632
632
  }
633
633
  };
634
634
  return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ React19.createElement(LeftOutlined, null)), /* @__PURE__ */ React19.createElement(
@@ -636,6 +636,7 @@ var DatePickerElement = (props) => {
636
636
  {
637
637
  placeholder: props.placeholder,
638
638
  value: date,
639
+ variant: "borderless",
639
640
  onChange: handleChange
640
641
  }
641
642
  ), /* @__PURE__ */ React19.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ React19.createElement(RightOutlined, null)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta174",
3
+ "version": "0.0.11-Beta176",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",