@krosoft/react 0.0.208 → 0.0.209

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.
@@ -21,7 +21,7 @@ import { D as ko, T as Ho, a as Ro, b as yo, c as No, d as Oo, e as Vo } from ".
21
21
  import { A as zo, a as Ko, b as jo, c as qo } from "../AppVerticalTabs-Cj66X8_R.js";
22
22
  import { T as _o } from "../ThemeSelector-BFC37dSl.js";
23
23
  import { A as Qo, a as Wo, b as Xo } from "../alert-B9F1N9Qk.js";
24
- import { A as Zo, C as $o, a as as, b as es, R as rs, c as os, d as ss, T as ts, e as ns } from "../toaster-D6OHn49K.js";
24
+ import { A as Zo, C as $o, a as as, b as es, R as rs, c as os, d as ss, T as ts, e as ns } from "../toaster-BkgWp-w-.js";
25
25
  import { B as ls, T as bs, a as ps, b as us, c as Cs, d as gs, e as ds, f as ms } from "../tooltip-DVeqVwqV.js";
26
26
  import { C as Ts, a as cs, b as Ds, c as Ms, d as xs, e as As, f as hs, g as fs, h as Ps, i as Is, j as ws, k as vs } from "../chart-DntJZGxB.js";
27
27
  import { S as Ls, a as Bs, b as Gs, c as ks, d as Hs, e as Rs, f as ys, g as Ns, h as Os, i as Vs } from "../select-BpjFWqAY.js";
@@ -1,6 +1,6 @@
1
1
  import { A as o, a as s, b as r, c as t, d as n, e as i, f as l, g as u, h as b, i as g, j as p, k as C, l as d, m, n as S, o as T, B as c, p as M, q as D, r as x, s as w, t as h, u as I, v as P, C as v, w as A, x as F, y as B, z as L, D as f, E as G, F as R, G as k, H, I as N, J as y, K as O, L as V, M as z, N as j, O as E, Q as q, R as U, S as J, T as K, U as Q, V as W, W as X, X as Y, Y as Z, Z as _, _ as $, $ as aa, a0 as ea, a1 as oa, a2 as sa, a3 as ra, a4 as ta, a5 as na, a6 as ia, a7 as la, a8 as ua, a9 as ba, aa as ga, ab as pa, ac as Ca, ad as da, ae as ma, af as Sa, ag as Ta, ah as ca, ai as Ma, aj as Da, ak as xa, al as wa, am as ha, an as Ia, ao as Pa, ap as va, aq as Aa, ar as Fa, as as Ba, at as La, au as fa, av as Ga, aw as Ra, ax as ka, ay as Ha, az as Na, aA as ya, aB as Oa, aC as Va, aD as za, aE as ja, aF as Ea, aG as qa, aH as Ua, aI as Ja, aJ as Ka, aK as Qa, aL as Wa, aM as Xa, aN as Ya, aO as Za, aP as _a, aQ as $a, aR as ae, aS as ee, aT as oe, aU as se, aV as re, aW as te, aX as ne, aY as ie, aZ as le, a_ as ue, a$ as be, b0 as ge, b1 as pe, b2 as Ce, P as de, b3 as me, b4 as Se, b5 as Te, b6 as ce, b7 as Me, b8 as De, b9 as xe, ba as we, bb as he, bc as Ie, bd as Pe, be as ve, bf as Ae, bg as Fe, bh as Be, bi as Le, bj as fe, bk as Ge, bl as Re, bm as ke, bn as He, bo as Ne, bp as ye, bq as Oe, br as Ve, bs as ze, bt as je, bu as Ee, bv as qe, bw as Ue, bx as Je, by as Ke, bz as Qe, bA as We } from "../../toggle-group-DLLrEwv2.js";
2
2
  import { A as Ye, a as Ze, b as _e } from "../../alert-B9F1N9Qk.js";
3
- import { A as ao, C as eo, a as oo, b as so, R as ro, c as to, d as no, T as io, e as lo } from "../../toaster-D6OHn49K.js";
3
+ import { A as ao, C as eo, a as oo, b as so, R as ro, c as to, d as no, T as io, e as lo } from "../../toaster-BkgWp-w-.js";
4
4
  import { B as bo, T as go, a as po, b as Co, c as mo, d as So, e as To, f as co } from "../../tooltip-DVeqVwqV.js";
5
5
  import { C as Do, a as xo, b as wo, c as ho, d as Io, e as Po, f as vo, g as Ao, h as Fo, i as Bo, j as Lo, k as fo } from "../../chart-DntJZGxB.js";
6
6
  import { C as Ro, j as ko, k as Ho, l as No, m as yo, n as Oo, o as Vo, p as zo, q as jo, D as Eo, a as qo, b as Uo, c as Jo, d as Ko, e as Qo, f as Wo, g as Xo, h as Yo, i as Zo, I as _o, S as $o, r as as, s as es, t as os, u as ss, v as rs, w as ts, x as ns, y as is, z as ls } from "../../sheet-C-QvdRNi.js";
@@ -1 +1 @@
1
- {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAElD,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,gCAkB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAElD,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,gCAyB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import * as u from "@radix-ui/react-aspect-ratio";
2
2
  import * as s from "@radix-ui/react-collapsible";
3
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
4
- import { GripVertical as d } from "lucide-react";
3
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
4
+ import { GripVertical as d, XIcon as f } from "lucide-react";
5
5
  import * as i from "react-resizable-panels";
6
6
  import { c as n } from "./tailwind.helper-B6yFEsav.js";
7
- import { useTheme as f } from "next-themes";
7
+ import { useTheme as g } from "next-themes";
8
8
  import { Toaster as m } from "sonner";
9
- import { u as g } from "./useToast-BFTk4lWz.js";
10
- import { br as b, bn as v, bs as T, bq as h, bp as x, bt as C } from "./toggle-group-DLLrEwv2.js";
11
- const A = u.Root, G = s.Root, B = s.CollapsibleTrigger, V = s.CollapsibleContent, $ = ({ className: e, ...r }) => /* @__PURE__ */ t(i.Group, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...r }), k = i.Panel, q = ({
9
+ import { u as b } from "./useToast-BFTk4lWz.js";
10
+ import { br as v, bn as h, bs as x, bq as T, bp as C, bt as w } from "./toggle-group-DLLrEwv2.js";
11
+ const B = u.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent, k = ({ className: e, ...r }) => /* @__PURE__ */ t(i.Group, { className: n("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), ...r }), q = i.Panel, D = ({
12
12
  withHandle: e,
13
13
  className: r,
14
- ...a
14
+ ...o
15
15
  }) => /* @__PURE__ */ t(
16
16
  i.Separator,
17
17
  {
@@ -19,52 +19,57 @@ const A = u.Root, G = s.Root, B = s.CollapsibleTrigger, V = s.CollapsibleContent
19
19
  "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
20
20
  r
21
21
  ),
22
- ...a,
22
+ ...o,
23
23
  children: e && /* @__PURE__ */ t("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ t(d, { className: "h-2.5 w-2.5" }) })
24
24
  }
25
- ), D = ({ ...e }) => {
26
- const { theme: r = "system" } = f();
25
+ ), H = ({ ...e }) => {
26
+ const { theme: r = "system" } = g();
27
27
  return /* @__PURE__ */ t(
28
28
  m,
29
29
  {
30
30
  theme: r,
31
31
  className: "toaster group",
32
+ icons: { close: /* @__PURE__ */ t(f, { className: "size-4" }) },
32
33
  toastOptions: {
33
34
  classNames: {
34
35
  toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
35
36
  description: "group-[.toast]:text-muted-foreground",
36
37
  actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
37
- cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
38
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
39
+ // Sonner colle par défaut une pastille cerclée en absolu au coin du toast. On la
40
+ // remet dans le flux (`order-last`) pour qu'elle se pose après le bouton d'action.
41
+ // Le `!` est indispensable : les règles de sonner sont plus spécifiques que ces classes.
42
+ closeButton: "!static !order-last !size-6 !transform-none !rounded-control !border-0 !bg-transparent !text-foreground/60 !opacity-100 hover:!bg-muted hover:!text-foreground focus-visible:!ring-2 focus-visible:!ring-ring"
38
43
  }
39
44
  },
40
45
  ...e
41
46
  }
42
47
  );
43
48
  };
44
- function H() {
45
- const { toasts: e } = g();
46
- return /* @__PURE__ */ o(b, { children: [
47
- e.map(function({ id: r, title: a, description: l, action: c, ...p }) {
48
- return /* @__PURE__ */ o(v, { ...p, children: [
49
- /* @__PURE__ */ o("div", { className: "grid gap-1", children: [
50
- a && /* @__PURE__ */ t(T, { children: a }),
51
- l && /* @__PURE__ */ t(h, { children: l })
49
+ function I() {
50
+ const { toasts: e } = b();
51
+ return /* @__PURE__ */ a(v, { children: [
52
+ e.map(function({ id: r, title: o, description: l, action: c, ...p }) {
53
+ return /* @__PURE__ */ a(h, { ...p, children: [
54
+ /* @__PURE__ */ a("div", { className: "grid gap-1", children: [
55
+ o && /* @__PURE__ */ t(x, { children: o }),
56
+ l && /* @__PURE__ */ t(T, { children: l })
52
57
  ] }),
53
58
  c,
54
- /* @__PURE__ */ t(x, {})
59
+ /* @__PURE__ */ t(C, {})
55
60
  ] }, r);
56
61
  }),
57
- /* @__PURE__ */ t(C, {})
62
+ /* @__PURE__ */ t(w, {})
58
63
  ] });
59
64
  }
60
65
  export {
61
- A,
66
+ B as A,
62
67
  G as C,
63
- q as R,
64
- D as T,
65
- V as a,
66
- B as b,
67
- k as c,
68
- $ as d,
69
- H as e
68
+ D as R,
69
+ H as T,
70
+ $ as a,
71
+ V as b,
72
+ q as c,
73
+ k as d,
74
+ I as e
70
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krosoft/react",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
4
4
  "description": "Krosoft shared React package",
5
5
  "type": "module",
6
6
  "scripts": {