design-zystem 1.0.315 → 1.0.316
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 +6 -2
- package/dist/ui/index.mjs +6 -2
- package/package.json +1 -1
package/dist/ui/index.js
CHANGED
|
@@ -4959,8 +4959,10 @@ var import_react_day_picker = require("react-day-picker");
|
|
|
4959
4959
|
var import_locale = require("react-day-picker/locale");
|
|
4960
4960
|
var import_style2 = require("react-day-picker/style.css");
|
|
4961
4961
|
var import_date_fns = require("date-fns");
|
|
4962
|
+
var import_locale2 = require("date-fns/locale");
|
|
4962
4963
|
var RadixPopover4 = __toESM(require("@radix-ui/react-popover"));
|
|
4963
4964
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4965
|
+
var formatMonthCaption = (month) => (0, import_date_fns.format)(month, "MMM yyyy", { locale: import_locale2.fr });
|
|
4964
4966
|
var RANGE_PRESETS = [
|
|
4965
4967
|
{
|
|
4966
4968
|
label: "Ce mois",
|
|
@@ -5064,7 +5066,8 @@ var DatePicker = ({
|
|
|
5064
5066
|
locale: import_locale.fr,
|
|
5065
5067
|
disabled: dayPickerDisabled,
|
|
5066
5068
|
numberOfMonths: 2,
|
|
5067
|
-
showOutsideDays: true
|
|
5069
|
+
showOutsideDays: true,
|
|
5070
|
+
formatters: { formatCaption: formatMonthCaption }
|
|
5068
5071
|
}
|
|
5069
5072
|
) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5070
5073
|
import_react_day_picker.DayPicker,
|
|
@@ -5078,7 +5081,8 @@ var DatePicker = ({
|
|
|
5078
5081
|
},
|
|
5079
5082
|
locale: import_locale.fr,
|
|
5080
5083
|
disabled: dayPickerDisabled,
|
|
5081
|
-
showOutsideDays: true
|
|
5084
|
+
showOutsideDays: true,
|
|
5085
|
+
formatters: { formatCaption: formatMonthCaption }
|
|
5082
5086
|
}
|
|
5083
5087
|
)
|
|
5084
5088
|
}
|
package/dist/ui/index.mjs
CHANGED
|
@@ -4820,8 +4820,10 @@ import {
|
|
|
4820
4820
|
endOfYear,
|
|
4821
4821
|
addDays
|
|
4822
4822
|
} from "date-fns";
|
|
4823
|
+
import { fr as dateFnsFr } from "date-fns/locale";
|
|
4823
4824
|
import * as RadixPopover4 from "@radix-ui/react-popover";
|
|
4824
4825
|
import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4826
|
+
var formatMonthCaption = (month) => format(month, "MMM yyyy", { locale: dateFnsFr });
|
|
4825
4827
|
var RANGE_PRESETS = [
|
|
4826
4828
|
{
|
|
4827
4829
|
label: "Ce mois",
|
|
@@ -4925,7 +4927,8 @@ var DatePicker = ({
|
|
|
4925
4927
|
locale: fr,
|
|
4926
4928
|
disabled: dayPickerDisabled,
|
|
4927
4929
|
numberOfMonths: 2,
|
|
4928
|
-
showOutsideDays: true
|
|
4930
|
+
showOutsideDays: true,
|
|
4931
|
+
formatters: { formatCaption: formatMonthCaption }
|
|
4929
4932
|
}
|
|
4930
4933
|
) : /* @__PURE__ */ jsx66(
|
|
4931
4934
|
DayPicker,
|
|
@@ -4939,7 +4942,8 @@ var DatePicker = ({
|
|
|
4939
4942
|
},
|
|
4940
4943
|
locale: fr,
|
|
4941
4944
|
disabled: dayPickerDisabled,
|
|
4942
|
-
showOutsideDays: true
|
|
4945
|
+
showOutsideDays: true,
|
|
4946
|
+
formatters: { formatCaption: formatMonthCaption }
|
|
4943
4947
|
}
|
|
4944
4948
|
)
|
|
4945
4949
|
}
|