@lettuceai/crisp 1.5.0 → 1.6.1

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.
@@ -0,0 +1,3 @@
1
+ /** A local date for any year, including years before 100 that `new Date(y, m, d)` maps into the 1900s. */
2
+ export declare function calendarDate(year: number, month: number, day: number): Date;
3
+ export declare function daysInMonth(year: number, month: number): number;
@@ -0,0 +1,13 @@
1
+ /** Puts an overlay on top of the stack and returns the function that takes it off. */
2
+ export declare function pushLayer(dismiss: () => void): () => void;
3
+ /**
4
+ * Registers an open overlay on a shared stack, so a platform back gesture (Android's
5
+ * back button and swipe) can close the topmost one, the way Escape does on a keyboard.
6
+ */
7
+ export declare function useDismissLayer(open: boolean, dismiss: () => void): void;
8
+ /**
9
+ * Closes the most recently opened overlay and returns true, or returns false when none
10
+ * is open. A sheet that is not dismissible still counts: the press is used up and it
11
+ * stays open.
12
+ */
13
+ export declare function dismissTopLayer(): boolean;
@@ -65,6 +65,10 @@ export interface CrispStrings {
65
65
  datePickerPlaceholder: string;
66
66
  datePickerPreviousMonth: string;
67
67
  datePickerNextMonth: string;
68
+ datePickerChooseMonth: string;
69
+ datePickerPreviousYear: string;
70
+ datePickerNextYear: string;
71
+ datePickerYear: string;
68
72
  datePickerTime: string;
69
73
  dialogClose: string;
70
74
  diffBefore: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lettuceai/crisp",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "React components, design tokens and motion for LettuceAI.",
5
5
  "keywords": [
6
6
  "react",