design-zystem 1.0.382 → 1.0.384
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 +11 -0
- package/dist/ui/index.mjs +13 -1
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -2201,6 +2201,7 @@ var Modal = ({
|
|
|
2201
2201
|
RadixDialog.Overlay,
|
|
2202
2202
|
{
|
|
2203
2203
|
ref: overlayRef,
|
|
2204
|
+
onClick: (event) => event.stopPropagation(),
|
|
2204
2205
|
className: cn(
|
|
2205
2206
|
"fixed inset-0 z-40",
|
|
2206
2207
|
draggable ? "bg-transparent" : "bg-black/50"
|
|
@@ -2212,6 +2213,7 @@ var Modal = ({
|
|
|
2212
2213
|
{
|
|
2213
2214
|
ref: contentRef,
|
|
2214
2215
|
onOpenAutoFocus,
|
|
2216
|
+
onClick: (event) => event.stopPropagation(),
|
|
2215
2217
|
className: cn(
|
|
2216
2218
|
"fixed left-1/2 top-1/2 z-50 flex max-h-[90vh] -translate-x-1/2 -translate-y-1/2 flex-col gap-4",
|
|
2217
2219
|
"rounded-xl bg-white p-6 shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),0_4px_6px_-2px_rgba(0,0,0,0.05)] outline-none",
|
|
@@ -4129,6 +4131,7 @@ var Drawer = ({
|
|
|
4129
4131
|
import_vaul.Drawer.Overlay,
|
|
4130
4132
|
{
|
|
4131
4133
|
ref: overlayRef,
|
|
4134
|
+
onClick: (event) => event.stopPropagation(),
|
|
4132
4135
|
className: "fixed inset-0 z-40 bg-black/35"
|
|
4133
4136
|
}
|
|
4134
4137
|
),
|
|
@@ -7399,6 +7402,14 @@ var RadixPopover6 = __toESM(require("@radix-ui/react-popover"));
|
|
|
7399
7402
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
7400
7403
|
var formatMonthCaption = (month) => (0, import_date_fns.format)(month, "MMM yyyy", { locale: import_locale2.fr });
|
|
7401
7404
|
var RANGE_PRESETS = [
|
|
7405
|
+
{
|
|
7406
|
+
label: "Mois pr\xE9c\xE9dent",
|
|
7407
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FaIcon, { name: "calendar-arrow-up", size: 15 }),
|
|
7408
|
+
getValue: () => [
|
|
7409
|
+
(0, import_date_fns.startOfMonth)((0, import_date_fns.subMonths)(/* @__PURE__ */ new Date(), 1)),
|
|
7410
|
+
(0, import_date_fns.endOfMonth)((0, import_date_fns.subMonths)(/* @__PURE__ */ new Date(), 1))
|
|
7411
|
+
]
|
|
7412
|
+
},
|
|
7402
7413
|
{
|
|
7403
7414
|
label: "Ce mois",
|
|
7404
7415
|
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FaIcon, { name: "calendar-days", size: 15 }),
|
package/dist/ui/index.mjs
CHANGED
|
@@ -2018,6 +2018,7 @@ var Modal = ({
|
|
|
2018
2018
|
RadixDialog.Overlay,
|
|
2019
2019
|
{
|
|
2020
2020
|
ref: overlayRef,
|
|
2021
|
+
onClick: (event) => event.stopPropagation(),
|
|
2021
2022
|
className: cn(
|
|
2022
2023
|
"fixed inset-0 z-40",
|
|
2023
2024
|
draggable ? "bg-transparent" : "bg-black/50"
|
|
@@ -2029,6 +2030,7 @@ var Modal = ({
|
|
|
2029
2030
|
{
|
|
2030
2031
|
ref: contentRef,
|
|
2031
2032
|
onOpenAutoFocus,
|
|
2033
|
+
onClick: (event) => event.stopPropagation(),
|
|
2032
2034
|
className: cn(
|
|
2033
2035
|
"fixed left-1/2 top-1/2 z-50 flex max-h-[90vh] -translate-x-1/2 -translate-y-1/2 flex-col gap-4",
|
|
2034
2036
|
"rounded-xl bg-white p-6 shadow-[0_10px_15px_-3px_rgba(0,0,0,0.1),0_4px_6px_-2px_rgba(0,0,0,0.05)] outline-none",
|
|
@@ -3953,6 +3955,7 @@ var Drawer = ({
|
|
|
3953
3955
|
VaulDrawer.Overlay,
|
|
3954
3956
|
{
|
|
3955
3957
|
ref: overlayRef,
|
|
3958
|
+
onClick: (event) => event.stopPropagation(),
|
|
3956
3959
|
className: "fixed inset-0 z-40 bg-black/35"
|
|
3957
3960
|
}
|
|
3958
3961
|
),
|
|
@@ -7236,13 +7239,22 @@ import {
|
|
|
7236
7239
|
endOfQuarter,
|
|
7237
7240
|
startOfYear,
|
|
7238
7241
|
endOfYear,
|
|
7239
|
-
addDays
|
|
7242
|
+
addDays,
|
|
7243
|
+
subMonths
|
|
7240
7244
|
} from "date-fns";
|
|
7241
7245
|
import { fr as dateFnsFr } from "date-fns/locale";
|
|
7242
7246
|
import * as RadixPopover6 from "@radix-ui/react-popover";
|
|
7243
7247
|
import { jsx as jsx87, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7244
7248
|
var formatMonthCaption = (month) => format(month, "MMM yyyy", { locale: dateFnsFr });
|
|
7245
7249
|
var RANGE_PRESETS = [
|
|
7250
|
+
{
|
|
7251
|
+
label: "Mois pr\xE9c\xE9dent",
|
|
7252
|
+
icon: /* @__PURE__ */ jsx87(FaIcon, { name: "calendar-arrow-up", size: 15 }),
|
|
7253
|
+
getValue: () => [
|
|
7254
|
+
startOfMonth(subMonths(/* @__PURE__ */ new Date(), 1)),
|
|
7255
|
+
endOfMonth(subMonths(/* @__PURE__ */ new Date(), 1))
|
|
7256
|
+
]
|
|
7257
|
+
},
|
|
7246
7258
|
{
|
|
7247
7259
|
label: "Ce mois",
|
|
7248
7260
|
icon: /* @__PURE__ */ jsx87(FaIcon, { name: "calendar-days", size: 15 }),
|