@lctafrica/ui 1.2.8 → 1.2.10

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
@@ -12098,7 +12098,8 @@ function wp({
12098
12098
  cancelButtonLabel: t,
12099
12099
  onConfirm: r,
12100
12100
  confirmButtonLabel: o,
12101
- variant: n
12101
+ variant: n,
12102
+ isConfirmButtonDisabled: i
12102
12103
  }) {
12103
12104
  return /* @__PURE__ */ fe(ok, { className: "mt-4 gap-15", children: [
12104
12105
  /* @__PURE__ */ v(ek, { asChild: !0, children: /* @__PURE__ */ v(br, { onClick: e, variant: "outline", type: "button", children: t }) }),
@@ -12107,6 +12108,7 @@ function wp({
12107
12108
  {
12108
12109
  variant: n === "destructive" ? "primary-destructive" : n == "success" ? "primary-success" : "primary",
12109
12110
  onClick: r,
12111
+ disabled: i,
12110
12112
  children: o
12111
12113
  }
12112
12114
  )
@@ -12136,20 +12138,21 @@ function rM({
12136
12138
  titleClassName: a,
12137
12139
  descriptionClassName: s,
12138
12140
  className: l,
12139
- variant: c = "informative",
12140
- ...u
12141
+ isConfirmButtonDisabled: c,
12142
+ variant: u = "informative",
12143
+ ...d
12141
12144
  }) {
12142
12145
  return /* @__PURE__ */ fe(
12143
12146
  qc,
12144
12147
  {
12145
- headerLeft: i || /* @__PURE__ */ v(sk, { variant: c }),
12148
+ headerLeft: i || /* @__PURE__ */ v(sk, { variant: u }),
12146
12149
  className: T("min-w-175 pr-10", l),
12147
12150
  titleClassName: T("text-gray-600 font-normal", a),
12148
12151
  descriptionClassName: T(
12149
12152
  "text-lct-medium-text text-base",
12150
12153
  s
12151
12154
  ),
12152
- ...u,
12155
+ ...d,
12153
12156
  children: [
12154
12157
  n,
12155
12158
  /* @__PURE__ */ v(
@@ -12159,7 +12162,8 @@ function rM({
12159
12162
  onConfirm: t,
12160
12163
  confirmButtonLabel: r,
12161
12164
  cancelButtonLabel: o,
12162
- variant: c
12165
+ variant: u,
12166
+ isConfirmButtonDisabled: c
12163
12167
  }
12164
12168
  )
12165
12169
  ]
@@ -15318,6 +15322,10 @@ function lE({
15318
15322
  "text-muted-foreground aria-selected:text-muted-foreground",
15319
15323
  c.outside
15320
15324
  ),
15325
+ day_button: T(
15326
+ "disabled:cursor-not-allowed rounded",
15327
+ c.day_button
15328
+ ),
15321
15329
  disabled: T(
15322
15330
  "text-muted-foreground opacity-50",
15323
15331
  c.disabled
@@ -15409,13 +15417,14 @@ function fE({
15409
15417
  function iM({
15410
15418
  value: e,
15411
15419
  onChange: t,
15412
- placeholder: r = "Pick a date"
15420
+ placeholder: r = "Pick a date",
15421
+ disabled: o
15413
15422
  }) {
15414
- function o() {
15423
+ function n() {
15415
15424
  t && t(void 0);
15416
15425
  }
15417
15426
  return /* @__PURE__ */ fe(uE, { children: [
15418
- /* @__PURE__ */ v(dE, { asChild: !0, children: /* @__PURE__ */ fe(
15427
+ /* @__PURE__ */ v(dE, { disabled: o === !0, asChild: !0, children: /* @__PURE__ */ fe(
15419
15428
  "button",
15420
15429
  {
15421
15430
  className: T(
@@ -15424,11 +15433,19 @@ function iM({
15424
15433
  ),
15425
15434
  children: [
15426
15435
  /* @__PURE__ */ v("span", { className: T("grow text-start", { "text-black": e }), children: e ? Lr(e, "dd/MM/yyyy'") : r }),
15427
- e ? /* @__PURE__ */ v("div", { tabIndex: 0, onClick: o, children: /* @__PURE__ */ v(nm, { className: "w-5 h-5" }) }) : /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(zw, { className: "w-5 h-5" }) })
15436
+ e ? /* @__PURE__ */ v("div", { tabIndex: 0, onClick: n, children: /* @__PURE__ */ v(nm, { className: "w-5 h-5" }) }) : /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(zw, { className: "w-5 h-5" }) })
15428
15437
  ]
15429
15438
  }
15430
15439
  ) }),
15431
- /* @__PURE__ */ v(fE, { className: "w-auto p-0", children: /* @__PURE__ */ v(lE, { mode: "single", selected: e, onSelect: t }) })
15440
+ /* @__PURE__ */ v(fE, { className: "w-auto p-0", children: /* @__PURE__ */ v(
15441
+ lE,
15442
+ {
15443
+ mode: "single",
15444
+ selected: e,
15445
+ onSelect: t,
15446
+ disabled: o
15447
+ }
15448
+ ) })
15432
15449
  ] });
15433
15450
  }
15434
15451
  function mE({ className: e, ...t }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lctafrica/ui",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",