@yeverlibs/ds 1.1.0 → 1.1.2

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/index.mjs CHANGED
@@ -5276,6 +5276,7 @@ var Select = dynamic(() => import('react-select'), { ssr: false });
5276
5276
  var DateRangeOptions = [
5277
5277
  { value: "today", label: "Hoje" },
5278
5278
  { value: "yesterday", label: "Ontem" },
5279
+ { value: "current-month", label: "M\xEAs atual" },
5279
5280
  { value: "last-30-days", label: "\xDAltimos 30 dias" },
5280
5281
  { value: "last-month", label: "\xDAltimo m\xEAs" },
5281
5282
  { value: "custom", label: "Data personalizada" }
@@ -5351,6 +5352,9 @@ var Content = ({
5351
5352
  case "yesterday":
5352
5353
  const yesterday = subDays(today, 1);
5353
5354
  return { startDate: yesterday, endDate: yesterday };
5355
+ case "current-month":
5356
+ const firstDayCurrentMonth = startOfMonth(today);
5357
+ return { startDate: firstDayCurrentMonth, endDate: today };
5354
5358
  case "last-30-days":
5355
5359
  return { startDate: subDays(today, 29), endDate: today };
5356
5360
  // 29 + today = 30
@@ -6511,10 +6515,9 @@ var TableContent = ({
6511
6515
  className: "block h-8 w-full cursor-pointer appearance-none rounded border border-gray-300 bg-white p-2 text-sm leading-tight text-gray-700 focus:border-gray-500 focus:bg-white focus:outline-none",
6512
6516
  children: [
6513
6517
  /* @__PURE__ */ jsx("option", { value: 10, children: "10" }),
6514
- /* @__PURE__ */ jsx("option", { value: 20, children: "20" }),
6515
- /* @__PURE__ */ jsx("option", { value: 40, children: "40" }),
6516
- /* @__PURE__ */ jsx("option", { value: 60, children: "60" }),
6517
- /* @__PURE__ */ jsx("option", { value: 80, children: "80" })
6518
+ /* @__PURE__ */ jsx("option", { value: 25, children: "25" }),
6519
+ /* @__PURE__ */ jsx("option", { value: 50, children: "50" }),
6520
+ /* @__PURE__ */ jsx("option", { value: 100, children: "100" })
6518
6521
  ]
6519
6522
  }
6520
6523
  ),
@@ -7014,9 +7017,7 @@ var CustomSelect = ({
7014
7017
  isClearable = true
7015
7018
  }) => {
7016
7019
  const handleChange = (option) => {
7017
- if (option) {
7018
- onSelect(option);
7019
- }
7020
+ onSelect(option);
7020
7021
  };
7021
7022
  const formatOptionLabel = (option) => /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
7022
7023
  option.icon && /* @__PURE__ */ jsx("div", { className: "relative mr-2 flex h-[24px] max-h-[24px] w-[24px] max-w-[24px] items-center justify-center rounded border border-gray-300", children: /* @__PURE__ */ jsx(Image4, { src: option.icon, alt: option.label, fill: true, className: "p-1", quality: 100 }) }),