@equisoft/design-elements-react 10.4.0 → 10.4.1-snapshot.20260622150103

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.
@@ -64,7 +64,7 @@
64
64
  */
65
65
 
66
66
  /**
67
- * @license lucide-react v1.17.0 - ISC
67
+ * @license lucide-react v1.18.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
@@ -7,7 +7,7 @@ export interface DateRangePanelProps {
7
7
  defaultValue?: NonNullableProperties<FilterDateRangeValue>;
8
8
  firstFocusableRef?: Ref<HTMLDivElement>;
9
9
  locale?: SupportedLocale;
10
- presets: FilterDateRangePreset[];
10
+ presets?: FilterDateRangePreset[];
11
11
  selectedPreset: string | null;
12
12
  value?: FilterDateRangeValue;
13
13
  onApply?(value: FilterDateRangeValue): void;
@@ -2,3 +2,4 @@ import type { FilterDateRangePreset, FilterDateRangeValue } from '../../filter-d
2
2
  import type { ComputedPreset } from './presets';
3
3
  export declare function hasSameRange(range1: FilterDateRangeValue, range2: FilterDateRangeValue): boolean;
4
4
  export declare function getRangeFromPreset(preset: ComputedPreset | FilterDateRangePreset | null): FilterDateRangeValue;
5
+ export declare function isSameDateTime(date1: Date | null, date2: Date | null): boolean;
@@ -5,7 +5,7 @@ export interface PresetsProps {
5
5
  firstFocusableRef?: Ref<HTMLElement>;
6
6
  onCustomPresetClick(): void;
7
7
  onPresetClick(preset: ComputedPreset | null): void;
8
- presets: FilterDateRangePreset[];
8
+ presets?: FilterDateRangePreset[];
9
9
  selectedPreset: string | null;
10
10
  }
11
11
  export declare const CUSTOM_PRESET = "custom";
@@ -19,8 +19,13 @@ export declare const FilterDateRangePresets: {
19
19
  readonly yesterday: () => FilterDateRangePreset;
20
20
  /** From `days` days ago to now, using the current time as boundaries. */
21
21
  readonly lastDays: (days: number) => FilterDateRangePreset;
22
+ /** The full calendar week prior to the current week
23
+ * (from the start of the week at midnight to the end of the week at end of day). */
24
+ readonly lastWeek: () => FilterDateRangePreset;
22
25
  /** From `weeks` weeks ago to now, using the current time as boundaries. */
23
26
  readonly lastWeeks: (weeks: number) => FilterDateRangePreset;
27
+ /** The full calendar month prior to the current month (from the 1st at midnight to the last day at end of day). */
28
+ readonly lastMonth: () => FilterDateRangePreset;
24
29
  /** From `months` months ago to now, using the current time as boundaries. */
25
30
  readonly lastMonths: (months: number) => FilterDateRangePreset;
26
31
  /** The full calendar year prior to the current year (from Jan 1 at midnight to Dec 31 at end of day). */
@@ -29,8 +34,12 @@ export declare const FilterDateRangePresets: {
29
34
  readonly lastYears: (years: number) => FilterDateRangePreset;
30
35
  /** From now to `days` days ahead, using the current time as boundaries. */
31
36
  readonly nextDays: (days: number) => FilterDateRangePreset;
37
+ /** The full calendar week following the current week
38
+ * (from the start of the week at midnight to the end of the week at end of day). */
39
+ readonly nextWeek: () => FilterDateRangePreset;
32
40
  /** From now to `weeks` weeks ahead, using the current time as boundaries. */
33
41
  readonly nextWeeks: (weeks: number) => FilterDateRangePreset;
42
+ readonly nextMonth: () => FilterDateRangePreset;
34
43
  /** From now to `months` months ahead, using the current time as boundaries. */
35
44
  readonly nextMonths: (months: number) => FilterDateRangePreset;
36
45
  /** The full calendar year following the current year (from Jan 1 at midnight to Dec 31 at end of day). */
@@ -68,6 +68,7 @@ export declare const Translations: {
68
68
  presetNextDays_one: string;
69
69
  presetNextWeeks: string;
70
70
  presetNextWeeks_one: string;
71
+ presetNextMonth: string;
71
72
  presetNextMonths: string;
72
73
  presetNextMonths_one: string;
73
74
  presetNextYear: string;
@@ -77,8 +78,10 @@ export declare const Translations: {
77
78
  presetLastDays_one: string;
78
79
  presetLastMonths: string;
79
80
  presetLastMonths_one: string;
81
+ presetLastWeek: string;
80
82
  presetLastWeeks: string;
81
83
  presetLastWeeks_one: string;
84
+ presetLastMonth: string;
82
85
  presetLastYear: string;
83
86
  presetLastYears: string;
84
87
  presetLastYears_one: string;
@@ -259,6 +262,7 @@ export declare const Translations: {
259
262
  presetNextDays_one: string;
260
263
  presetNextWeeks: string;
261
264
  presetNextWeeks_one: string;
265
+ presetNextMonth: string;
262
266
  presetNextMonths: string;
263
267
  presetNextMonths_one: string;
264
268
  presetNextYear: string;
@@ -268,8 +272,10 @@ export declare const Translations: {
268
272
  presetLastDays_one: string;
269
273
  presetLastMonths: string;
270
274
  presetLastMonths_one: string;
275
+ presetLastWeek: string;
271
276
  presetLastWeeks: string;
272
277
  presetLastWeeks_one: string;
278
+ presetLastMonth: string;
273
279
  presetLastYear: string;
274
280
  presetLastYears: string;
275
281
  presetLastYears_one: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/design-elements-react",
3
- "version": "10.4.0",
3
+ "version": "10.4.1-snapshot.20260622150103",
4
4
  "description": "React implementation of the Equisoft design system.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/bundle.js",
@@ -38,7 +38,7 @@
38
38
  "@mui/base": "5.0.0-beta.70",
39
39
  "@tanstack/react-table": "8.21.3",
40
40
  "date-fns": "4.4.0",
41
- "lucide-react": "1.17.0",
41
+ "lucide-react": "1.18.0",
42
42
  "prop-types": "15.8.1",
43
43
  "react-datepicker": "9.1.0",
44
44
  "react-is": "18.3.1",
@@ -62,7 +62,7 @@
62
62
  "@microsoft/eslint-formatter-sarif": "3.1.0",
63
63
  "@stylistic/eslint-plugin": "5.10.0",
64
64
  "@svgr/webpack": "8.1.0",
65
- "@swc/core": "1.15.40",
65
+ "@swc/core": "1.15.41",
66
66
  "@swc/jest": "0.2.39",
67
67
  "@testing-library/dom": "10.4.1",
68
68
  "@testing-library/jest-dom": "6.9.1",
@@ -96,7 +96,7 @@
96
96
  "react-docgen-typescript-plugin": "1.0.8",
97
97
  "react-dom": "18.3.1",
98
98
  "react-router-dom": "6.30.4",
99
- "sass": "1.100.0",
99
+ "sass": "1.101.0",
100
100
  "sass-loader": "17.0.0",
101
101
  "style-loader": "4.0.0",
102
102
  "styled-components": "5.3.11",