@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.d.mts CHANGED
@@ -736,9 +736,9 @@ type SelectProps = {
736
736
  label?: string
737
737
  placeholder?: string
738
738
  options: SelectOption[]
739
- onSelect: (option: SelectOption) => void
739
+ onSelect: (option: SelectOption | null) => void
740
740
  className?: string
741
- value?: SelectOption
741
+ value?: SelectOption | null
742
742
  tooltip?: string
743
743
  isClearable?: boolean
744
744
  }
package/dist/index.d.ts CHANGED
@@ -736,9 +736,9 @@ type SelectProps = {
736
736
  label?: string
737
737
  placeholder?: string
738
738
  options: SelectOption[]
739
- onSelect: (option: SelectOption) => void
739
+ onSelect: (option: SelectOption | null) => void
740
740
  className?: string
741
- value?: SelectOption
741
+ value?: SelectOption | null
742
742
  tooltip?: string
743
743
  isClearable?: boolean
744
744
  }
package/dist/index.js CHANGED
@@ -5306,6 +5306,7 @@ var Select = dynamic__default.default(() => import('react-select'), { ssr: false
5306
5306
  var DateRangeOptions = [
5307
5307
  { value: "today", label: "Hoje" },
5308
5308
  { value: "yesterday", label: "Ontem" },
5309
+ { value: "current-month", label: "M\xEAs atual" },
5309
5310
  { value: "last-30-days", label: "\xDAltimos 30 dias" },
5310
5311
  { value: "last-month", label: "\xDAltimo m\xEAs" },
5311
5312
  { value: "custom", label: "Data personalizada" }
@@ -5381,6 +5382,9 @@ var Content = ({
5381
5382
  case "yesterday":
5382
5383
  const yesterday = dateFns.subDays(today, 1);
5383
5384
  return { startDate: yesterday, endDate: yesterday };
5385
+ case "current-month":
5386
+ const firstDayCurrentMonth = dateFns.startOfMonth(today);
5387
+ return { startDate: firstDayCurrentMonth, endDate: today };
5384
5388
  case "last-30-days":
5385
5389
  return { startDate: dateFns.subDays(today, 29), endDate: today };
5386
5390
  // 29 + today = 30
@@ -6541,10 +6545,9 @@ var TableContent = ({
6541
6545
  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",
6542
6546
  children: [
6543
6547
  /* @__PURE__ */ jsxRuntime.jsx("option", { value: 10, children: "10" }),
6544
- /* @__PURE__ */ jsxRuntime.jsx("option", { value: 20, children: "20" }),
6545
- /* @__PURE__ */ jsxRuntime.jsx("option", { value: 40, children: "40" }),
6546
- /* @__PURE__ */ jsxRuntime.jsx("option", { value: 60, children: "60" }),
6547
- /* @__PURE__ */ jsxRuntime.jsx("option", { value: 80, children: "80" })
6548
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: 25, children: "25" }),
6549
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: 50, children: "50" }),
6550
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: 100, children: "100" })
6548
6551
  ]
6549
6552
  }
6550
6553
  ),
@@ -7044,9 +7047,7 @@ var CustomSelect = ({
7044
7047
  isClearable = true
7045
7048
  }) => {
7046
7049
  const handleChange = (option) => {
7047
- if (option) {
7048
- onSelect(option);
7049
- }
7050
+ onSelect(option);
7050
7051
  };
7051
7052
  const formatOptionLabel = (option) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
7052
7053
  option.icon && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(Image4__default.default, { src: option.icon, alt: option.label, fill: true, className: "p-1", quality: 100 }) }),