@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.js CHANGED
@@ -3080,7 +3080,8 @@ var Datepicker = ({
3080
3080
  }) => {
3081
3081
  var _a, _b;
3082
3082
  const selected = value ? new Date(value) : void 0;
3083
- const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? `dd MMM yyyy, HH:mm '${timezoneLabel}'` : "dd MMM yyyy";
3083
+ const timezoneLabelFormat = timezoneLabel ? `${timezoneLabel}` : "";
3084
+ const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? `dd MMM yyyy, HH:mm '${timezoneLabelFormat}` : "dd MMM yyyy";
3084
3085
  const getTimeProps = () => {
3085
3086
  if (!withTime) return {};
3086
3087
  return {
@@ -3119,7 +3120,7 @@ var Datepicker = ({
3119
3120
  isError,
3120
3121
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
3121
3122
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
3122
- value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3123
+ value && !props.disabled && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3123
3124
  import_react33.IconButton,
3124
3125
  {
3125
3126
  "data-test-id": "H0rseVCzGIaqoLho-EPbu",