@7shifts/sous-chef 3.35.0 → 3.36.0

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.
@@ -1,4 +1,5 @@
1
1
  import { Matcher } from 'react-day-picker';
2
+ import { TranslateFunction } from '../i18n/types';
2
3
  type Locale = any;
3
4
  export declare function parseDate(str: string, format: string, locale?: Locale): Date | undefined;
4
5
  export declare function formatDate(date: Date, format: string, locale?: Locale): string;
@@ -8,8 +9,14 @@ export declare function setToMidnight(date: Date): Date;
8
9
  export declare function getStartOfWeek(date: Date, weekIndex: number): Date;
9
10
  export declare function getEndOfWeek(date: Date, weekIndex: number): Date;
10
11
  export declare function createWeekRange(date: Date, weekStart: WeekStart): FullDateRange;
11
- export declare const getDays: () => string[];
12
- export declare const getMonths: () => string[];
12
+ /**
13
+ * @param translate pass the translation function returned from the `useTranslate` hook
14
+ */
15
+ export declare const getDays: (translate: TranslateFunction) => string[];
16
+ /**
17
+ * @param translate pass the translation function returned from the `useTranslate` hook
18
+ */
19
+ export declare const getMonths: (translate: TranslateFunction) => string[];
13
20
  export type WeekStart = 0 | 1 | 2 | 3 | 4 | 5 | 6;
14
21
  export type TimeInterval = 15 | 30;
15
22
  export type FullDateRange = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.35.0",
3
+ "version": "3.36.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- export declare const getLocalizedString: (key: string) => string;