@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.
- package/dist/core/SousChefProvider/SousChefProvider.d.ts +3 -1
- package/dist/i18n/TranslationsContext.d.ts +7 -0
- package/dist/i18n/locales/en.json +37 -0
- package/dist/i18n/locales/es.json +37 -0
- package/dist/i18n/locales/fr.json +37 -0
- package/dist/i18n/types.d.ts +3 -0
- package/dist/i18n/useTranslation.d.ts +2 -0
- package/dist/index.js +115 -61
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +111 -57
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/date.d.ts +9 -2
- package/package.json +1 -1
- package/dist/utils/i18n.d.ts +0 -1
package/dist/utils/date.d.ts
CHANGED
|
@@ -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
|
-
|
|
12
|
-
|
|
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
package/dist/utils/i18n.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getLocalizedString: (key: string) => string;
|