anysystem-design 0.0.56 → 0.0.58

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.
@@ -1,17 +1,17 @@
1
- import { jsx as r, jsxs as o, Fragment as n } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as o, Fragment as s } from "react/jsx-runtime";
2
2
  import { h as m, G as a } from "../../headless-datepicker-DRvAXFm1.js";
3
3
  import { t as l } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import { d as k, e as v } from "../../index-Be1bsSGe.js";
5
5
  import w from "../Label/Label.js";
6
6
  const B = ({
7
7
  name: c,
8
- value: s,
8
+ value: n,
9
9
  showTime: d,
10
10
  onChange: g,
11
11
  readOnly: u,
12
12
  labelProps: y
13
13
  }) => {
14
- const h = () => /* @__PURE__ */ o(n, { children: [
14
+ const h = () => /* @__PURE__ */ o(s, { children: [
15
15
  /* @__PURE__ */ r(
16
16
  "input",
17
17
  {
@@ -20,7 +20,7 @@ const B = ({
20
20
  d === !0 ? "!hidden" : "md:hidden"
21
21
  ),
22
22
  type: d === !0 ? "datetime-local" : "date",
23
- value: m(new Date(+s * 1e3)).format(
23
+ value: m(new Date(+n * 1e3)).format(
24
24
  d === !0 ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD"
25
25
  ),
26
26
  onChange: (i) => g(Math.round(new Date(i.target.value).getTime() / 1e3) + "")
@@ -30,16 +30,17 @@ const B = ({
30
30
  a,
31
31
  {
32
32
  disabledKeyboardNavigation: !0,
33
- value: s ? new Date(+s * 1e3) : /* @__PURE__ */ new Date(),
33
+ value: n ? new Date(+n * 1e3) : /* @__PURE__ */ new Date(),
34
34
  onChange: (i) => g(Math.round(i.getTime() / 1e3) + ""),
35
35
  children: [
36
36
  /* @__PURE__ */ r(
37
37
  a.Input,
38
38
  {
39
39
  name: c,
40
- value: new Date(+s * 1e3).getTime() / 1e3 || "",
40
+ value: new Date(+n * 1e3).getTime() / 1e3 || "",
41
41
  format: d === !0 ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd",
42
- id: c
42
+ id: c,
43
+ className: "dark:bg-gray-950 dark:text-white"
43
44
  }
44
45
  ),
45
46
  /* @__PURE__ */ r(
@@ -99,10 +100,10 @@ const B = ({
99
100
  ...e.type === "minute" && d === !0 && { action: "close" },
100
101
  ...e.type === "month" || e.type === "year" ? { action: "showDay" } : void 0,
101
102
  children: [
102
- e.type === "day" && /* @__PURE__ */ r(n, { children: e.isHeader ? e.text.substring(0, 3) : e.text }),
103
- e.type === "month" && /* @__PURE__ */ r(n, { children: e.text.substring(0, 3) }),
104
- e.type === "year" && /* @__PURE__ */ r(n, { children: e.text }),
105
- e.type === "hour" && /* @__PURE__ */ r(n, { children: e.text })
103
+ e.type === "day" && /* @__PURE__ */ r(s, { children: e.isHeader ? e.text.substring(0, 3) : e.text }),
104
+ e.type === "month" && /* @__PURE__ */ r(s, { children: e.text.substring(0, 3) }),
105
+ e.type === "year" && /* @__PURE__ */ r(s, { children: e.text }),
106
+ e.type === "hour" && /* @__PURE__ */ r(s, { children: e.text })
106
107
  ]
107
108
  },
108
109
  e.key
@@ -1,12 +1,12 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
- import { t as d } from "../../bundle-mjs-SHnj3fHy.js";
2
+ import { t as o } from "../../bundle-mjs-SHnj3fHy.js";
3
3
  import { F as f } from "../../index-CBEJ8A3p.js";
4
- const h = ({
4
+ const g = ({
5
5
  label: l,
6
6
  className: s,
7
7
  htmlFor: i,
8
8
  isError: t = !1,
9
- errorMessage: o,
9
+ errorMessage: d,
10
10
  type: e = "border",
11
11
  variant: m = "md",
12
12
  children: c
@@ -14,7 +14,7 @@ const h = ({
14
14
  /* @__PURE__ */ r(
15
15
  "div",
16
16
  {
17
- className: d(
17
+ className: o(
18
18
  "relative flex w-full flex-col ",
19
19
  e === "border" && "rounded border border-gray-400 dark:border-gray-600 dark:bg-gray-950",
20
20
  e === "horizontal" ? "flex-row gap-2" : "form-group",
@@ -26,8 +26,8 @@ const h = ({
26
26
  l && /* @__PURE__ */ a(
27
27
  "label",
28
28
  {
29
- className: d(
30
- e === "border" && "hidden text-gray-600 opacity-0 dark:text-white",
29
+ className: o(
30
+ e === "border" && "hidden text-gray-600 opacity-0 dark:text-white dark:bg-gray-950",
31
31
  e === "horizontal" && "flex items-center justify-center",
32
32
  "mb-1 text-sm font-semibold"
33
33
  ),
@@ -39,11 +39,11 @@ const h = ({
39
39
  ]
40
40
  }
41
41
  ),
42
- t && o && /* @__PURE__ */ r("span", { className: "flex items-center text-sm text-red-600 gap-1", children: [
42
+ t && d && /* @__PURE__ */ r("span", { className: "flex items-center text-sm text-red-600 gap-1", children: [
43
43
  /* @__PURE__ */ a("div", { className: "w-4", children: /* @__PURE__ */ a(f, {}) }),
44
- o
44
+ d
45
45
  ] })
46
46
  ] });
47
47
  export {
48
- h as default
48
+ g as default
49
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anysystem-design",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",