@base-framework/ui 1.0.217 → 1.0.219
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.es.js +1 -1
- package/dist/organisms.es.js +1 -1
- package/dist/{signature-panel-Cb3wM-a4.js → signature-panel-MKOoxJSP.js} +384 -279
- package/dist/types/components/organisms/calendar/range/calendar-header.d.ts +7 -0
- package/dist/types/components/organisms/calendar/range/month-calendar.d.ts +12 -0
- package/dist/types/components/organisms/calendar/range/month-selector.d.ts +5 -0
- package/dist/types/components/organisms/calendar/range/navigation-button.d.ts +1 -0
- package/dist/types/components/organisms/calendar/range/range-calendar.d.ts +12 -1
- package/dist/types/components/organisms/calendar/range/range-day-cell.d.ts +2 -2
- package/dist/types/components/organisms/calendar/range/year-selector.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a month calendar component.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {function} props.onMonthClick
|
|
6
|
+
* @param {function} props.onYearClick
|
|
7
|
+
* @param {function} props.next
|
|
8
|
+
* @param {function} props.previous
|
|
9
|
+
* @param {Array} props.cells
|
|
10
|
+
* @returns {object}
|
|
11
|
+
*/
|
|
12
|
+
export const MonthCalendar: Function;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function NavigationButton({ label, click }: object): object;
|
|
@@ -35,9 +35,10 @@ export class RangeCalendar extends Component {
|
|
|
35
35
|
/**
|
|
36
36
|
* Initialize component state.
|
|
37
37
|
*
|
|
38
|
-
* @returns {{selecting:string,start:string|null,end:string|null}}
|
|
38
|
+
* @returns {{view:string,selecting:string,start:string|null,end:string|null}}
|
|
39
39
|
*/
|
|
40
40
|
setupStates(): {
|
|
41
|
+
view: string;
|
|
41
42
|
selecting: string;
|
|
42
43
|
start: string | null;
|
|
43
44
|
end: string | null;
|
|
@@ -49,6 +50,16 @@ export class RangeCalendar extends Component {
|
|
|
49
50
|
* @returns {void}
|
|
50
51
|
*/
|
|
51
52
|
handleClick(isoDate: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* Update current month/year in data.
|
|
55
|
+
*
|
|
56
|
+
* @param {{month:number,year:number}} obj
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
setCurrent({ month, year }: {
|
|
60
|
+
month: number;
|
|
61
|
+
year: number;
|
|
62
|
+
}): void;
|
|
52
63
|
/**
|
|
53
64
|
* Render the range calendar.
|
|
54
65
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween,
|
|
1
|
+
export function RangeDayCell({ day, iso, disabled, isStart, isEnd, isBetween, click }: {
|
|
2
2
|
day: number;
|
|
3
3
|
iso: string;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
isStart: boolean;
|
|
6
6
|
isEnd: boolean;
|
|
7
7
|
isBetween: boolean;
|
|
8
|
-
|
|
8
|
+
click: Function;
|
|
9
9
|
}): object;
|
package/package.json
CHANGED