@ctlyst.id/internal-ui 3.5.5 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -2734,7 +2734,8 @@ var Datepicker = ({
2734
2734
  }) => {
2735
2735
  var _a, _b;
2736
2736
  const selected = value ? new Date(value) : void 0;
2737
- const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? `dd MMM yyyy, HH:mm '${timezoneLabel}'` : "dd MMM yyyy";
2737
+ const timezoneLabelFormat = timezoneLabel ? `${timezoneLabel}` : "";
2738
+ const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? `dd MMM yyyy, HH:mm '${timezoneLabelFormat}` : "dd MMM yyyy";
2738
2739
  const getTimeProps = () => {
2739
2740
  if (!withTime) return {};
2740
2741
  return {
@@ -2773,7 +2774,7 @@ var Datepicker = ({
2773
2774
  isError,
2774
2775
  addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
2775
2776
  /* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
2776
- value && /* @__PURE__ */ jsx27(
2777
+ value && !props.disabled && /* @__PURE__ */ jsx27(
2777
2778
  IconButton4,
2778
2779
  {
2779
2780
  "data-test-id": "H0rseVCzGIaqoLho-EPbu",