fina-react-ds 1.0.8 → 1.0.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.
@@ -1,55 +1,56 @@
1
1
  var m = Object.defineProperty;
2
- var c = (i, r) => m(i, "name", { value: r, configurable: !0 });
3
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ var t = (i, r) => m(i, "name", { value: r, configurable: !0 });
3
+ import { jsxs as o, jsx as c } from "react/jsx-runtime";
4
4
  import * as p from "react";
5
5
  import { Calendar as u } from "lucide-react";
6
6
  import { Calendar as x } from "./calendar.js";
7
- import { Popover as b, PopoverTrigger as v, PopoverContent as P } from "./popover.js";
8
- import { Button as g } from "./button.js";
9
- import { format as h } from "date-fns";
7
+ import { Popover as b, PopoverTrigger as v, PopoverContent as h } from "./popover.js";
8
+ import { Button as P } from "./button.js";
9
+ import { format as g } from "date-fns";
10
10
  import { fr as w } from "../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js";
11
- function z({
11
+ function B({
12
12
  placeholder: i = "Choisir une date",
13
13
  onChange: r,
14
14
  value: e,
15
15
  isClearable: a = !1,
16
16
  ...s
17
17
  }) {
18
- const [l, f] = p.useState(!1), d = /* @__PURE__ */ c((n) => {
18
+ const [d, f] = p.useState(!1), l = /* @__PURE__ */ t((n) => {
19
19
  r == null || r(n || null), f(!1);
20
20
  }, "onSelect");
21
- return console.log("DatePicker value", e), /* @__PURE__ */ o(b, { onOpenChange: f, open: l, children: [
22
- /* @__PURE__ */ t(v, { asChild: !0, children: /* @__PURE__ */ o(
21
+ return /* @__PURE__ */ o(b, { onOpenChange: f, open: d, children: [
22
+ /* @__PURE__ */ c(v, { asChild: !0, children: /* @__PURE__ */ o(
23
23
  "button",
24
24
  {
25
25
  "data-empty": !e,
26
26
  ...s,
27
27
  className: "fc:border-input-border fc:flex fc:items-center fc:h-9 fc:w-full fc:min-w-0 fc:rounded-md fc:border fc:bg-input fc:px-3 fc:py-1 fc:text-base fc:shadow-xs fc:focus-visible:border-ring fc:ring-ring/50 fc:focus-visible:ring-[3px] fc:data-[state=open]:ring-[3px] fc:data-[state=open]:border-ring fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive! fc:outline-none fc:md:text-sm",
28
28
  children: [
29
- /* @__PURE__ */ t(u, { className: "fc:mr-2 fc:size-4" }),
30
- e ? /* @__PURE__ */ t("span", { children: h(e, "PPP", { locale: w }) }) : /* @__PURE__ */ t("span", { className: "fc:text-placeholder", children: i })
29
+ /* @__PURE__ */ c(u, { className: "fc:mr-2 fc:size-4" }),
30
+ e ? /* @__PURE__ */ c("span", { children: g(e, "PPP", { locale: w }) }) : /* @__PURE__ */ c("span", { className: "fc:text-placeholder", children: i })
31
31
  ]
32
32
  }
33
33
  ) }),
34
- /* @__PURE__ */ o(P, { align: "start", className: "fc:w-auto fc:p-0", children: [
35
- /* @__PURE__ */ t(
34
+ /* @__PURE__ */ o(h, { align: "start", className: "fc:w-auto fc:p-0", children: [
35
+ /* @__PURE__ */ c(
36
36
  x,
37
37
  {
38
38
  mode: "single",
39
39
  required: !0,
40
40
  selected: e || void 0,
41
- onSelect: d,
41
+ onSelect: l,
42
+ defaultMonth: e || void 0,
42
43
  captionLayout: "dropdown"
43
44
  }
44
45
  ),
45
- e && a && /* @__PURE__ */ t("div", { className: "flex justify-center border-t", children: /* @__PURE__ */ t(
46
- g,
46
+ e && a && /* @__PURE__ */ c("div", { className: "fc:flex fc:justify-center fc:border-t", children: /* @__PURE__ */ c(
47
+ P,
47
48
  {
48
49
  variant: "ghost",
49
50
  color: "dark",
50
- className: "flex w-full",
51
- onClick: /* @__PURE__ */ c(() => {
52
- r == null || r(null);
51
+ className: "fc:flex fc:w-full",
52
+ onClick: /* @__PURE__ */ t(() => {
53
+ r == null || r(null), f(!1);
53
54
  }, "onClick"),
54
55
  children: "Effacer"
55
56
  }
@@ -57,7 +58,7 @@ function z({
57
58
  ] })
58
59
  ] });
59
60
  }
60
- c(z, "DatePicker");
61
+ t(B, "DatePicker");
61
62
  export {
62
- z as DatePicker
63
+ B as DatePicker
63
64
  };
@@ -26,7 +26,7 @@ function y({
26
26
  onChange: a,
27
27
  value: u(),
28
28
  classNames: {
29
- control: /* @__PURE__ */ r(() => "fc:px-3 fc:py-1 fc:border fc:bg-input fc:rounded-md fc:text-base fc:md:text-sm fc:min-h-9 fc:shadow-none fc:border-input-border fc:has-[:focus]:border-ring fc:has-[:focus]:ring-[3px] fc:ring-ring/50 fc:has-aria-invalid:border-destructive! fc:has-aria-invalid:ring-destructive/20! fc:has-aria-invalid:dark:ring-destructive/40!", "control"),
29
+ control: /* @__PURE__ */ r(() => "fc:px-3 fc:py-1 fc:border fc:bg-input fc:rounded-md fc:text-base fc:md:text-sm fc:min-h-9! fc:shadow-none fc:border-input-border fc:has-[:focus]:border-ring fc:has-[:focus]:ring-[3px] fc:ring-ring/50 fc:has-aria-invalid:border-destructive! fc:has-aria-invalid:ring-destructive/20! fc:has-aria-invalid:dark:ring-destructive/40!", "control"),
30
30
  menu: /* @__PURE__ */ r(() => "fc:bg-popover fc:border fc:rounded-md fc:py-0 fc:overflow-hidden fc:shadow-md fc:mt-2", "menu"),
31
31
  menuList: /* @__PURE__ */ r(() => "fc:py-0 fc:bg-popover", "menuList"),
32
32
  option: /* @__PURE__ */ r((c) => m(
@@ -3,9 +3,9 @@ var e = (r, o) => t(r, "name", { value: o, configurable: !0 });
3
3
  import { jsx as s } from "react/jsx-runtime";
4
4
  import { useTheme as a } from "next-themes";
5
5
  import { Toaster as m } from "sonner";
6
- const f = /* @__PURE__ */ e(({ ...r }) => {
6
+ const l = /* @__PURE__ */ e(({ ...r }) => {
7
7
  const { theme: o = "system" } = a();
8
- return console.log(o), /* @__PURE__ */ s(
8
+ return /* @__PURE__ */ s(
9
9
  m,
10
10
  {
11
11
  theme: o,
@@ -20,5 +20,5 @@ const f = /* @__PURE__ */ e(({ ...r }) => {
20
20
  );
21
21
  }, "Toaster");
22
22
  export {
23
- f as Toaster
23
+ l as Toaster
24
24
  };
@@ -423,8 +423,8 @@
423
423
  .fc\:min-h-4 {
424
424
  min-height: calc(var(--fc-spacing) * 4);
425
425
  }
426
- .fc\:min-h-9 {
427
- min-height: calc(var(--fc-spacing) * 9);
426
+ .fc\:min-h-9\! {
427
+ min-height: calc(var(--fc-spacing) * 9) !important;
428
428
  }
429
429
  .fc\:min-h-16 {
430
430
  min-height: calc(var(--fc-spacing) * 16);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "1.0.8",
8
+ "version": "1.0.10",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"
@@ -22,27 +22,24 @@
22
22
  "./*": "./dist/*"
23
23
  },
24
24
  "dependencies": {
25
- "@tailwindcss/cli": "^4.1.10",
26
- "@tailwindcss/vite": "^4.1.10",
27
25
  "class-variance-authority": "^0.7.1",
28
26
  "clsx": "^2.1.1",
29
27
  "date-fns": "^4.0.0",
30
28
  "lucide-react": "^0.525.0",
31
29
  "next-themes": "^0.4.6",
32
30
  "radix-ui": "^1.4.2",
33
- "react": "^19.0.0",
34
31
  "react-colorful": "^5.6.1",
35
32
  "react-day-picker": "9.7.0",
36
- "react-dom": "^19.0.0",
37
33
  "react-select": "^5.10.1",
38
34
  "react-spinners": "^0.17.0",
39
35
  "sonner": "^2.0.5",
40
36
  "tailwind-merge": "^3.3.1",
41
- "tailwindcss": "^4.0.0",
42
37
  "tw-animate-css": "^1.3.5"
43
38
  },
44
39
  "devDependencies": {
45
40
  "@eslint/js": "^9.29.0",
41
+ "@tailwindcss/cli": "^4.1.11",
42
+ "@tailwindcss/vite": "^4.1.11",
46
43
  "@types/node": "^22.15.32",
47
44
  "@types/react": "^19.1.8",
48
45
  "@types/react-dom": "^19.1.6",
@@ -54,8 +51,11 @@
54
51
  "eslint-plugin-react-refresh": "^0.4.20",
55
52
  "eslint-plugin-storybook": "^9.0.16",
56
53
  "globals": "^15.15.0",
54
+ "react": "^19.1.0",
55
+ "react-dom": "^19.1.0",
57
56
  "rimraf": "^6.0.1",
58
57
  "rollup": "^4.43.0",
58
+ "tailwindcss": "^4.1.11",
59
59
  "tsc-alias": "^1.8.16",
60
60
  "typescript": "~5.7.3",
61
61
  "typescript-eslint": "^8.34.1",
@@ -64,21 +64,18 @@
64
64
  "vitest": "^3.2.3"
65
65
  },
66
66
  "peerDependencies": {
67
- "@tailwindcss/cli": "^4.1.10",
68
- "@tailwindcss/vite": "^4.1.10",
69
67
  "class-variance-authority": "^0.7.1",
70
68
  "clsx": "^2.1.1",
71
69
  "date-fns": "^4.0.0",
72
70
  "next-themes": "^0.4.6",
73
71
  "radix-ui": "^1.4.2",
74
- "react": "^19.0.0",
72
+ "react": "^19.1.0",
75
73
  "react-colorful": "^5.6.1",
76
74
  "react-day-picker": "9.7.0",
77
- "react-dom": "^19.0.0",
75
+ "react-dom": "^19.1.0",
78
76
  "react-select": "^5.10.1",
79
77
  "sonner": "^2.0.5",
80
- "tailwind-merge": "^3.3.1",
81
- "tailwindcss": "^4.0.0"
78
+ "tailwind-merge": "^3.3.1"
82
79
  },
83
80
  "sideEffects": [
84
81
  "**/*.css"