design-zystem 1.0.314 → 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 CHANGED
@@ -1312,6 +1312,7 @@ var InputGroupAddon = (_a) => {
1312
1312
  Layout,
1313
1313
  __spreadValues({
1314
1314
  align: "center",
1315
+ fullWidth: false,
1315
1316
  className: cn(
1316
1317
  "pointer-events-none absolute top-1/2 -translate-y-1/2",
1317
1318
  align === "inline-start" ? "left-2.5" : "right-2.5",
@@ -4958,8 +4959,10 @@ var import_react_day_picker = require("react-day-picker");
4958
4959
  var import_locale = require("react-day-picker/locale");
4959
4960
  var import_style2 = require("react-day-picker/style.css");
4960
4961
  var import_date_fns = require("date-fns");
4962
+ var import_locale2 = require("date-fns/locale");
4961
4963
  var RadixPopover4 = __toESM(require("@radix-ui/react-popover"));
4962
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 });
4963
4966
  var RANGE_PRESETS = [
4964
4967
  {
4965
4968
  label: "Ce mois",
@@ -5063,7 +5066,8 @@ var DatePicker = ({
5063
5066
  locale: import_locale.fr,
5064
5067
  disabled: dayPickerDisabled,
5065
5068
  numberOfMonths: 2,
5066
- showOutsideDays: true
5069
+ showOutsideDays: true,
5070
+ formatters: { formatCaption: formatMonthCaption }
5067
5071
  }
5068
5072
  ) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5069
5073
  import_react_day_picker.DayPicker,
@@ -5077,7 +5081,8 @@ var DatePicker = ({
5077
5081
  },
5078
5082
  locale: import_locale.fr,
5079
5083
  disabled: dayPickerDisabled,
5080
- showOutsideDays: true
5084
+ showOutsideDays: true,
5085
+ formatters: { formatCaption: formatMonthCaption }
5081
5086
  }
5082
5087
  )
5083
5088
  }
package/dist/ui/index.mjs CHANGED
@@ -1143,6 +1143,7 @@ var InputGroupAddon = (_a) => {
1143
1143
  Layout,
1144
1144
  __spreadValues({
1145
1145
  align: "center",
1146
+ fullWidth: false,
1146
1147
  className: cn(
1147
1148
  "pointer-events-none absolute top-1/2 -translate-y-1/2",
1148
1149
  align === "inline-start" ? "left-2.5" : "right-2.5",
@@ -4819,8 +4820,10 @@ import {
4819
4820
  endOfYear,
4820
4821
  addDays
4821
4822
  } from "date-fns";
4823
+ import { fr as dateFnsFr } from "date-fns/locale";
4822
4824
  import * as RadixPopover4 from "@radix-ui/react-popover";
4823
4825
  import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
4826
+ var formatMonthCaption = (month) => format(month, "MMM yyyy", { locale: dateFnsFr });
4824
4827
  var RANGE_PRESETS = [
4825
4828
  {
4826
4829
  label: "Ce mois",
@@ -4924,7 +4927,8 @@ var DatePicker = ({
4924
4927
  locale: fr,
4925
4928
  disabled: dayPickerDisabled,
4926
4929
  numberOfMonths: 2,
4927
- showOutsideDays: true
4930
+ showOutsideDays: true,
4931
+ formatters: { formatCaption: formatMonthCaption }
4928
4932
  }
4929
4933
  ) : /* @__PURE__ */ jsx66(
4930
4934
  DayPicker,
@@ -4938,7 +4942,8 @@ var DatePicker = ({
4938
4942
  },
4939
4943
  locale: fr,
4940
4944
  disabled: dayPickerDisabled,
4941
- showOutsideDays: true
4945
+ showOutsideDays: true,
4946
+ formatters: { formatCaption: formatMonthCaption }
4942
4947
  }
4943
4948
  )
4944
4949
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.314",
3
+ "version": "1.0.316",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",