@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.
@@ -0,0 +1,7 @@
1
+ export function CalendarHeader({ onMonthClick, onYearClick, next, previous }: {
2
+ onMonthClick: Function;
3
+ onYearClick: Function;
4
+ next: Function;
5
+ previous: Function;
6
+ }): object;
7
+ export default CalendarHeader;
@@ -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,5 @@
1
+ export function MonthSelector({ currentMonth, currentYear, onSelect }: {
2
+ currentMonth: number;
3
+ currentYear: number;
4
+ onSelect: Function;
5
+ }): object;
@@ -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, onClick }: {
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
- onClick: Function;
8
+ click: Function;
9
9
  }): object;
@@ -0,0 +1,4 @@
1
+ export function YearSelector({ currentYear, onSelect }: {
2
+ currentYear: number;
3
+ onSelect: Function;
4
+ }): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/ui",
3
- "version": "1.0.217",
3
+ "version": "1.0.219",
4
4
  "description": "This is a UI package that adds components and atoms that use Tailwind CSS and a theme based on Shadcn.",
5
5
  "main": "./dist/index.es.js",
6
6
  "scripts": {