@lctafrica/ui 1.2.9 → 1.2.12

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.d.ts CHANGED
@@ -55,3 +55,4 @@ export type { TableBodyProps, TableDataCellProps, TableHeaderCellProps, TableHea
55
55
  export { Text } from './components/ui/text';
56
56
  export { Textarea } from './components/ui/textarea';
57
57
  export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/ui/tabs';
58
+ export { Calendar } from './components/ui/calender';
package/dist/index.js CHANGED
@@ -11707,7 +11707,7 @@ function tM({
11707
11707
  options: t,
11708
11708
  containerClassName: r,
11709
11709
  value: o,
11710
- orientation: n
11710
+ orientation: n = "horizontal"
11711
11711
  }) {
11712
11712
  const i = n === "horizontal";
11713
11713
  return /* @__PURE__ */ v(
@@ -15322,6 +15322,10 @@ function lE({
15322
15322
  "text-muted-foreground aria-selected:text-muted-foreground",
15323
15323
  c.outside
15324
15324
  ),
15325
+ day_button: T(
15326
+ "disabled:cursor-not-allowed rounded",
15327
+ c.day_button
15328
+ ),
15325
15329
  disabled: T(
15326
15330
  "text-muted-foreground opacity-50",
15327
15331
  c.disabled
@@ -15413,13 +15417,14 @@ function fE({
15413
15417
  function iM({
15414
15418
  value: e,
15415
15419
  onChange: t,
15416
- placeholder: r = "Pick a date"
15420
+ placeholder: r = "Pick a date",
15421
+ disabled: o
15417
15422
  }) {
15418
- function o() {
15423
+ function n() {
15419
15424
  t && t(void 0);
15420
15425
  }
15421
15426
  return /* @__PURE__ */ fe(uE, { children: [
15422
- /* @__PURE__ */ v(dE, { asChild: !0, children: /* @__PURE__ */ fe(
15427
+ /* @__PURE__ */ v(dE, { disabled: o === !0, asChild: !0, children: /* @__PURE__ */ fe(
15423
15428
  "button",
15424
15429
  {
15425
15430
  className: T(
@@ -15428,11 +15433,19 @@ function iM({
15428
15433
  ),
15429
15434
  children: [
15430
15435
  /* @__PURE__ */ v("span", { className: T("grow text-start", { "text-black": e }), children: e ? Lr(e, "dd/MM/yyyy'") : r }),
15431
- 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" }) })
15432
15437
  ]
15433
15438
  }
15434
15439
  ) }),
15435
- /* @__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
+ ) })
15436
15449
  ] });
15437
15450
  }
15438
15451
  function mE({ className: e, ...t }) {
@@ -28068,6 +28081,7 @@ export {
28068
28081
  QT as Badge,
28069
28082
  br as Button,
28070
28083
  tM as ButtonGroup,
28084
+ lE as Calendar,
28071
28085
  Rx as Card,
28072
28086
  Wx as Checkbox,
28073
28087
  nM as CloseButton,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lctafrica/ui",
3
- "version": "1.2.9",
3
+ "version": "1.2.12",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",