UNPKG

react-aria

Version:
1 lines 1.72 kB
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAkBM,SAAS,0CACd,KAA8B,EAC9B,KAAuB;IAEvB,OAAO,CAAA,GAAA,yCAAc,EAAE,OAAO;AAChC","sources":["packages/react-aria/src/calendar/useCalendar.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps} from '@react-types/shared';\nimport {CalendarAria, useCalendarBase} from './useCalendarBase';\nimport {\n CalendarProps,\n CalendarSelectionMode,\n CalendarState,\n DateValue\n} from 'react-stately/useCalendarState';\n\nexport interface AriaCalendarProps<T extends DateValue, M extends CalendarSelectionMode = 'single'>\n extends CalendarProps<T, M>, DOMProps, AriaLabelingProps {}\n\n/**\n * Provides the behavior and accessibility implementation for a calendar component.\n * A calendar displays one or more date grids and allows users to select a single date.\n */\nexport function useCalendar<T extends DateValue, M extends CalendarSelectionMode = 'single'>(\n props: AriaCalendarProps<T, M>,\n state: CalendarState<M>\n): CalendarAria {\n return useCalendarBase(props, state);\n}\n"],"names":[],"version":3,"file":"useCalendar.cjs.map"}