design-zystem 1.0.382 → 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 +8 -0
- package/dist/ui/index.mjs +10 -1
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -7399,6 +7399,14 @@ var RadixPopover6 = __toESM(require("@radix-ui/react-popover"));
|
|
|
7399
7399
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7400
7400
|
var formatMonthCaption = (month) => (0, import_date_fns.format)(month, "MMM yyyy", { locale: import_locale2.fr });
|
|
7401
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
|
+
},
|
|
7402
7410
|
{
|
|
7403
7411
|
label: "Ce mois",
|
|
7404
7412
|
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FaIcon, { name: "calendar-days", size: 15 }),
|
package/dist/ui/index.mjs
CHANGED
|
@@ -7236,13 +7236,22 @@ import {
|
|
|
7236
7236
|
endOfQuarter,
|
|
7237
7237
|
startOfYear,
|
|
7238
7238
|
endOfYear,
|
|
7239
|
-
addDays
|
|
7239
|
+
addDays,
|
|
7240
|
+
subMonths
|
|
7240
7241
|
} from "date-fns";
|
|
7241
7242
|
import { fr as dateFnsFr } from "date-fns/locale";
|
|
7242
7243
|
import * as RadixPopover6 from "@radix-ui/react-popover";
|
|
7243
7244
|
import { jsx as jsx87, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7244
7245
|
var formatMonthCaption = (month) => format(month, "MMM yyyy", { locale: dateFnsFr });
|
|
7245
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
|
+
},
|
|
7246
7255
|
{
|
|
7247
7256
|
label: "Ce mois",
|
|
7248
7257
|
icon: /* @__PURE__ */ jsx87(FaIcon, { name: "calendar-days", size: 15 }),
|