design-zystem 1.0.381 → 1.0.383

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/ui/index.js CHANGED
@@ -4140,6 +4140,7 @@ var Drawer = ({
4140
4140
  const target = event.target;
4141
4141
  if (target == null ? void 0 : target.closest(KEEP_OPEN_SELECTOR)) event.preventDefault();
4142
4142
  },
4143
+ onClick: (event) => event.stopPropagation(),
4143
4144
  className: cn(
4144
4145
  "fixed z-50 flex flex-col gap-4 bg-white p-6 outline-none",
4145
4146
  // vaul prolonge le panneau d'un ::after opaque de 200% (effet
@@ -7398,6 +7399,14 @@ var RadixPopover6 = __toESM(require("@radix-ui/react-popover"));
7398
7399
  var import_jsx_runtime87 = require("react/jsx-runtime");
7399
7400
  var formatMonthCaption = (month) => (0, import_date_fns.format)(month, "MMM yyyy", { locale: import_locale2.fr });
7400
7401
  var RANGE_PRESETS = [
7402
+ {
7403
+ label: "Mois pr\xE9c\xE9dent",
7404
+ icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FaIcon, { name: "calendar-arrow-up", size: 15 }),
7405
+ getValue: () => [
7406
+ (0, import_date_fns.startOfMonth)((0, import_date_fns.subMonths)(/* @__PURE__ */ new Date(), 1)),
7407
+ (0, import_date_fns.endOfMonth)((0, import_date_fns.subMonths)(/* @__PURE__ */ new Date(), 1))
7408
+ ]
7409
+ },
7401
7410
  {
7402
7411
  label: "Ce mois",
7403
7412
  icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FaIcon, { name: "calendar-days", size: 15 }),
package/dist/ui/index.mjs CHANGED
@@ -3964,6 +3964,7 @@ var Drawer = ({
3964
3964
  const target = event.target;
3965
3965
  if (target == null ? void 0 : target.closest(KEEP_OPEN_SELECTOR)) event.preventDefault();
3966
3966
  },
3967
+ onClick: (event) => event.stopPropagation(),
3967
3968
  className: cn(
3968
3969
  "fixed z-50 flex flex-col gap-4 bg-white p-6 outline-none",
3969
3970
  // vaul prolonge le panneau d'un ::after opaque de 200% (effet
@@ -7235,13 +7236,22 @@ import {
7235
7236
  endOfQuarter,
7236
7237
  startOfYear,
7237
7238
  endOfYear,
7238
- addDays
7239
+ addDays,
7240
+ subMonths
7239
7241
  } from "date-fns";
7240
7242
  import { fr as dateFnsFr } from "date-fns/locale";
7241
7243
  import * as RadixPopover6 from "@radix-ui/react-popover";
7242
7244
  import { jsx as jsx87, jsxs as jsxs51 } from "react/jsx-runtime";
7243
7245
  var formatMonthCaption = (month) => format(month, "MMM yyyy", { locale: dateFnsFr });
7244
7246
  var RANGE_PRESETS = [
7247
+ {
7248
+ label: "Mois pr\xE9c\xE9dent",
7249
+ icon: /* @__PURE__ */ jsx87(FaIcon, { name: "calendar-arrow-up", size: 15 }),
7250
+ getValue: () => [
7251
+ startOfMonth(subMonths(/* @__PURE__ */ new Date(), 1)),
7252
+ endOfMonth(subMonths(/* @__PURE__ */ new Date(), 1))
7253
+ ]
7254
+ },
7245
7255
  {
7246
7256
  label: "Ce mois",
7247
7257
  icon: /* @__PURE__ */ jsx87(FaIcon, { name: "calendar-days", size: 15 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.381",
3
+ "version": "1.0.383",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",