@react-aria/calendar 3.0.0-nightly.3175 → 3.0.0-rc.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.
- package/dist/main.js +228 -151
- package/dist/main.js.map +1 -1
- package/dist/module.js +226 -136
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +16 -15
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -14
- package/src/index.ts +9 -5
- package/src/useCalendar.ts +1 -2
- package/src/useCalendarBase.ts +40 -14
- package/src/useCalendarCell.ts +64 -20
- package/src/useCalendarGrid.ts +46 -38
- package/src/useRangeCalendar.ts +16 -11
- package/src/utils.ts +81 -14
- package/src/types.ts +0 -40
package/src/types.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
*
|
|
7
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
* governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import {AriaButtonProps} from '@react-types/button';
|
|
14
|
-
import {HTMLAttributes} from 'react';
|
|
15
|
-
|
|
16
|
-
export interface CalendarAria {
|
|
17
|
-
/** Props for the calendar grouping element. */
|
|
18
|
-
calendarProps: HTMLAttributes<HTMLElement>,
|
|
19
|
-
/** Props for the next button. */
|
|
20
|
-
nextButtonProps: AriaButtonProps,
|
|
21
|
-
/** Props for the previous button. */
|
|
22
|
-
prevButtonProps: AriaButtonProps,
|
|
23
|
-
/** A description of the visible date range, for use in the calendar title. */
|
|
24
|
-
title: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export interface CalendarGridAria {
|
|
29
|
-
/** Props for the date grid element (e.g. `<table>`). */
|
|
30
|
-
gridProps: HTMLAttributes<HTMLElement>,
|
|
31
|
-
/** A list of week days formatted for the current locale, typically used in column headers. */
|
|
32
|
-
weekDays: WeekDay[]
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface WeekDay {
|
|
36
|
-
/** A short name (e.g. single letter) for the day. */
|
|
37
|
-
narrow: string,
|
|
38
|
-
/** The full day name. If not displayed visually, it should be used as the accessiblity name. */
|
|
39
|
-
long: string
|
|
40
|
-
}
|