@gluestack-ui/core 4.1.0-alpha.1 → 4.1.0-alpha.2
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/bottomsheet/creator.ts +1 -0
- package/calendar/creator.ts +1 -0
- package/date-time-picker/creator.ts +1 -0
- package/lib/esm/accordion/aria/useAccordion.js +5 -0
- package/lib/esm/accordion/aria/useAccordion.js.map +1 -1
- package/lib/esm/accordion/aria/useAccordionItem.js +1 -0
- package/lib/esm/accordion/aria/useAccordionItem.js.map +1 -1
- package/lib/esm/accordion/creator/AccordionContent.jsx +2 -0
- package/lib/esm/accordion/creator/AccordionContent.jsx.map +1 -1
- package/lib/esm/accordion/creator/AccordionTrigger.jsx +10 -2
- package/lib/esm/accordion/creator/AccordionTrigger.jsx.map +1 -1
- package/lib/esm/accordion/creator/AnimatedHeight.jsx +1 -1
- package/lib/esm/accordion/creator/AnimatedHeight.jsx.map +1 -1
- package/lib/esm/accordion/creator/index.jsx +1 -0
- package/lib/esm/accordion/creator/index.jsx.map +1 -1
- package/lib/esm/accordion/creator/types.d.ts +39 -0
- package/lib/esm/accordion/creator/types.d.ts.map +1 -1
- package/lib/esm/actionsheet/creator/Actionsheet.jsx +6 -2
- package/lib/esm/actionsheet/creator/Actionsheet.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.jsx +5 -1
- package/lib/esm/actionsheet/creator/ActionsheetBackdrop.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/ActionsheetContent.jsx +2 -0
- package/lib/esm/actionsheet/creator/ActionsheetContent.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.jsx +1 -0
- package/lib/esm/actionsheet/creator/ActionsheetDragIndicatorWrapper.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/ActionsheetItem.jsx +15 -1
- package/lib/esm/actionsheet/creator/ActionsheetItem.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.jsx +6 -0
- package/lib/esm/actionsheet/creator/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/index.jsx +7 -0
- package/lib/esm/actionsheet/creator/index.jsx.map +1 -1
- package/lib/esm/actionsheet/creator/types.d.ts +23 -0
- package/lib/esm/actionsheet/creator/types.d.ts.map +1 -1
- package/lib/esm/alert-dialog/creator/AlertDialog.jsx +5 -1
- package/lib/esm/alert-dialog/creator/AlertDialog.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.jsx +1 -0
- package/lib/esm/alert-dialog/creator/AlertDialogBackdrop.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.jsx +18 -3
- package/lib/esm/alert-dialog/creator/AlertDialogCloseButton.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/AlertDialogContent.jsx +4 -0
- package/lib/esm/alert-dialog/creator/AlertDialogContent.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.jsx +5 -0
- package/lib/esm/alert-dialog/creator/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/index.jsx +1 -0
- package/lib/esm/alert-dialog/creator/index.jsx.map +1 -1
- package/lib/esm/alert-dialog/creator/types.d.ts +38 -0
- package/lib/esm/alert-dialog/creator/types.d.ts.map +1 -1
- package/lib/esm/avatar/creator/types.d.ts +3 -0
- package/lib/esm/avatar/creator/types.d.ts.map +1 -1
- package/lib/esm/bottomsheet/creator/BottomSheet.d.ts +3 -0
- package/lib/esm/bottomsheet/creator/BottomSheet.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheet.jsx +89 -0
- package/lib/esm/bottomsheet/creator/BottomSheet.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetBackdrop.d.ts +6 -0
- package/lib/esm/bottomsheet/creator/BottomSheetBackdrop.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetBackdrop.jsx +32 -0
- package/lib/esm/bottomsheet/creator/BottomSheetBackdrop.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContent.d.ts +4 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContent.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContent.jsx +154 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContent.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContentContext.d.ts +5 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContentContext.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContentContext.jsx +3 -0
- package/lib/esm/bottomsheet/creator/BottomSheetContentContext.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicator.d.ts +6 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicator.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicator.jsx +22 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicator.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicatorWrapper.d.ts +3 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicatorWrapper.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicatorWrapper.jsx +113 -0
- package/lib/esm/bottomsheet/creator/BottomSheetDragIndicatorWrapper.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetItem.d.ts +4 -0
- package/lib/esm/bottomsheet/creator/BottomSheetItem.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/BottomSheetItem.jsx +43 -0
- package/lib/esm/bottomsheet/creator/BottomSheetItem.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/context.d.ts +16 -0
- package/lib/esm/bottomsheet/creator/context.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/context.js +16 -0
- package/lib/esm/bottomsheet/creator/context.js.map +1 -0
- package/lib/esm/bottomsheet/creator/index.d.ts +16 -0
- package/lib/esm/bottomsheet/creator/index.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/index.jsx +35 -0
- package/lib/esm/bottomsheet/creator/index.jsx.map +1 -0
- package/lib/esm/bottomsheet/creator/types.d.ts +99 -0
- package/lib/esm/bottomsheet/creator/types.d.ts.map +1 -0
- package/lib/esm/bottomsheet/creator/types.js +2 -0
- package/lib/esm/bottomsheet/creator/types.js.map +1 -0
- package/lib/esm/bottomsheet/index.d.ts +3 -0
- package/lib/esm/bottomsheet/index.d.ts.map +1 -0
- package/lib/esm/bottomsheet/index.jsx +3 -0
- package/lib/esm/bottomsheet/index.jsx.map +1 -0
- package/lib/esm/button/aria/useButton.d.ts +4 -0
- package/lib/esm/button/aria/useButton.d.ts.map +1 -1
- package/lib/esm/button/aria/useButton.js +9 -1
- package/lib/esm/button/aria/useButton.js.map +1 -1
- package/lib/esm/button/aria/useToggleButton.d.ts +3 -0
- package/lib/esm/button/aria/useToggleButton.d.ts.map +1 -1
- package/lib/esm/button/aria/useToggleButton.js +1 -0
- package/lib/esm/button/aria/useToggleButton.js.map +1 -1
- package/lib/esm/button/aria/useToggleButton.web.d.ts +4 -0
- package/lib/esm/button/aria/useToggleButton.web.d.ts.map +1 -1
- package/lib/esm/button/aria/useToggleButton.web.js +19 -1
- package/lib/esm/button/aria/useToggleButton.web.js.map +1 -1
- package/lib/esm/button/creator/Button.jsx +14 -2
- package/lib/esm/button/creator/Button.jsx.map +1 -1
- package/lib/esm/button/creator/ButtonSpinner.jsx +5 -1
- package/lib/esm/button/creator/ButtonSpinner.jsx.map +1 -1
- package/lib/esm/button/creator/ButtonText.jsx +5 -1
- package/lib/esm/button/creator/ButtonText.jsx.map +1 -1
- package/lib/esm/button/creator/types.d.ts +28 -0
- package/lib/esm/button/creator/types.d.ts.map +1 -1
- package/lib/esm/calendar/creator/Calendar.d.ts +4 -0
- package/lib/esm/calendar/creator/Calendar.d.ts.map +1 -0
- package/lib/esm/calendar/creator/Calendar.jsx +228 -0
- package/lib/esm/calendar/creator/Calendar.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarBody.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarBody.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarBody.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarBody.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarContext.d.ts +5 -0
- package/lib/esm/calendar/creator/CalendarContext.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarContext.js +10 -0
- package/lib/esm/calendar/creator/CalendarContext.js.map +1 -0
- package/lib/esm/calendar/creator/CalendarDay.d.ts +6 -0
- package/lib/esm/calendar/creator/CalendarDay.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarDay.jsx +74 -0
- package/lib/esm/calendar/creator/CalendarDay.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarDayIndicator.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarDayIndicator.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarDayIndicator.jsx +44 -0
- package/lib/esm/calendar/creator/CalendarDayIndicator.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarDayText.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarDayText.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarDayText.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarDayText.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarFooter.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarFooter.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarFooter.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarFooter.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarGrid.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarGrid.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarGrid.jsx +28 -0
- package/lib/esm/calendar/creator/CalendarGrid.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeader.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeader.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeader.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarHeader.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderMonthSelect.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeaderMonthSelect.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderMonthSelect.jsx +46 -0
- package/lib/esm/calendar/creator/CalendarHeaderMonthSelect.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderNextButton.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeaderNextButton.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderNextButton.jsx +39 -0
- package/lib/esm/calendar/creator/CalendarHeaderNextButton.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderPrevButton.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeaderPrevButton.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderPrevButton.jsx +39 -0
- package/lib/esm/calendar/creator/CalendarHeaderPrevButton.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderTitle.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeaderTitle.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderTitle.jsx +23 -0
- package/lib/esm/calendar/creator/CalendarHeaderTitle.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderYearSelect.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarHeaderYearSelect.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarHeaderYearSelect.jsx +33 -0
- package/lib/esm/calendar/creator/CalendarHeaderYearSelect.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeek.d.ts +10 -0
- package/lib/esm/calendar/creator/CalendarWeek.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeek.jsx +39 -0
- package/lib/esm/calendar/creator/CalendarWeek.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekDay.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarWeekDay.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekDay.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarWeekDay.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekDaysHeader.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarWeekDaysHeader.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekDaysHeader.jsx +35 -0
- package/lib/esm/calendar/creator/CalendarWeekDaysHeader.jsx.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekNumber.d.ts +4 -0
- package/lib/esm/calendar/creator/CalendarWeekNumber.d.ts.map +1 -0
- package/lib/esm/calendar/creator/CalendarWeekNumber.jsx +19 -0
- package/lib/esm/calendar/creator/CalendarWeekNumber.jsx.map +1 -0
- package/lib/esm/calendar/creator/index.d.ts +23 -0
- package/lib/esm/calendar/creator/index.d.ts.map +1 -0
- package/lib/esm/calendar/creator/index.jsx +69 -0
- package/lib/esm/calendar/creator/index.jsx.map +1 -0
- package/lib/esm/calendar/creator/types.d.ts +179 -0
- package/lib/esm/calendar/creator/types.d.ts.map +1 -0
- package/lib/esm/calendar/creator/types.js +2 -0
- package/lib/esm/calendar/creator/types.js.map +1 -0
- package/lib/esm/calendar/creator/utils/dateUtils.d.ts +69 -0
- package/lib/esm/calendar/creator/utils/dateUtils.d.ts.map +1 -0
- package/lib/esm/calendar/creator/utils/dateUtils.js +153 -0
- package/lib/esm/calendar/creator/utils/dateUtils.js.map +1 -0
- package/lib/esm/calendar/index.d.ts +2 -0
- package/lib/esm/calendar/index.d.ts.map +1 -0
- package/lib/esm/calendar/index.jsx +2 -0
- package/lib/esm/calendar/index.jsx.map +1 -0
- package/lib/esm/checkbox/aria/useCheckbox.d.ts +9 -0
- package/lib/esm/checkbox/aria/useCheckbox.d.ts.map +1 -1
- package/lib/esm/checkbox/aria/useCheckbox.js +8 -0
- package/lib/esm/checkbox/aria/useCheckbox.js.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroup.d.ts +8 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.d.ts.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroup.js +6 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.js.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.d.ts +8 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.d.ts.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.js +6 -0
- package/lib/esm/checkbox/aria/useCheckboxGroup.web.js.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.d.ts +7 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.d.ts.map +1 -1
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.js +21 -0
- package/lib/esm/checkbox/aria/useCheckboxGroupItem.js.map +1 -1
- package/lib/esm/checkbox/creator/Checkbox.jsx +30 -7
- package/lib/esm/checkbox/creator/Checkbox.jsx.map +1 -1
- package/lib/esm/checkbox/creator/Checkbox.web.jsx +20 -5
- package/lib/esm/checkbox/creator/Checkbox.web.jsx.map +1 -1
- package/lib/esm/checkbox/creator/CheckboxGroup.jsx +3 -1
- package/lib/esm/checkbox/creator/CheckboxGroup.jsx.map +1 -1
- package/lib/esm/checkbox/creator/CheckboxIndicator.jsx +5 -1
- package/lib/esm/checkbox/creator/CheckboxIndicator.jsx.map +1 -1
- package/lib/esm/checkbox/creator/CheckboxLabel.jsx +5 -1
- package/lib/esm/checkbox/creator/CheckboxLabel.jsx.map +1 -1
- package/lib/esm/checkbox/creator/context.d.ts +7 -0
- package/lib/esm/checkbox/creator/context.d.ts.map +1 -1
- package/lib/esm/checkbox/creator/context.jsx +17 -0
- package/lib/esm/checkbox/creator/context.jsx.map +1 -1
- package/lib/esm/date-time-picker/creator/DateTimePicker.d.ts +3 -0
- package/lib/esm/date-time-picker/creator/DateTimePicker.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePicker.jsx +21 -0
- package/lib/esm/date-time-picker/creator/DateTimePicker.jsx.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerContext.d.ts +35 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerContext.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerContext.jsx +31 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerContext.jsx.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerIcon.d.ts +3 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerIcon.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerIcon.jsx +19 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerIcon.jsx.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerInput.d.ts +3 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerInput.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerInput.jsx +19 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerInput.jsx.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerTrigger.d.ts +3 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerTrigger.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerTrigger.jsx +21 -0
- package/lib/esm/date-time-picker/creator/DateTimePickerTrigger.jsx.map +1 -0
- package/lib/esm/date-time-picker/creator/index.d.ts +10 -0
- package/lib/esm/date-time-picker/creator/index.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/index.js +17 -0
- package/lib/esm/date-time-picker/creator/index.js.map +1 -0
- package/lib/esm/date-time-picker/creator/types.d.ts +7 -0
- package/lib/esm/date-time-picker/creator/types.d.ts.map +1 -0
- package/lib/esm/date-time-picker/creator/types.js +2 -0
- package/lib/esm/date-time-picker/creator/types.js.map +1 -0
- package/lib/esm/date-time-picker/index.d.ts +2 -0
- package/lib/esm/date-time-picker/index.d.ts.map +1 -0
- package/lib/esm/date-time-picker/index.js +2 -0
- package/lib/esm/date-time-picker/index.js.map +1 -0
- package/lib/esm/divider/creator/Divider.jsx +3 -1
- package/lib/esm/divider/creator/Divider.jsx.map +1 -1
- package/lib/esm/fab/creator/Fab.jsx +5 -1
- package/lib/esm/fab/creator/Fab.jsx.map +1 -1
- package/lib/esm/fab/creator/types.d.ts +18 -0
- package/lib/esm/fab/creator/types.d.ts.map +1 -1
- package/lib/esm/form-control/creator/FormControl.jsx +5 -1
- package/lib/esm/form-control/creator/FormControl.jsx.map +1 -1
- package/lib/esm/form-control/creator/FormControlLabel.jsx +1 -0
- package/lib/esm/form-control/creator/FormControlLabel.jsx.map +1 -1
- package/lib/esm/form-control/creator/types.d.ts +15 -0
- package/lib/esm/form-control/creator/types.d.ts.map +1 -1
- package/lib/esm/form-control/creator/useFormControl.d.ts +7 -0
- package/lib/esm/form-control/creator/useFormControl.d.ts.map +1 -1
- package/lib/esm/form-control/creator/useFormControl.jsx +27 -0
- package/lib/esm/form-control/creator/useFormControl.jsx.map +1 -1
- package/lib/esm/icon/creator/createIcon/index.d.ts +17 -0
- package/lib/esm/icon/creator/createIcon/index.d.ts.map +1 -1
- package/lib/esm/icon/creator/createIcon/index.jsx +1 -0
- package/lib/esm/icon/creator/createIcon/index.jsx.map +1 -1
- package/lib/esm/icon/creator/createIcon/index.web.d.ts +17 -0
- package/lib/esm/icon/creator/createIcon/index.web.d.ts.map +1 -1
- package/lib/esm/icon/creator/createIcon/index.web.jsx +1 -0
- package/lib/esm/icon/creator/createIcon/index.web.jsx.map +1 -1
- package/lib/esm/image/creator/Image.jsx +6 -1
- package/lib/esm/image/creator/Image.jsx.map +1 -1
- package/lib/esm/index.d.ts +4 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.jsx +4 -0
- package/lib/esm/index.jsx.map +1 -1
- package/lib/esm/input/creator/Input.jsx +8 -2
- package/lib/esm/input/creator/Input.jsx.map +1 -1
- package/lib/esm/input/creator/InputGroup.jsx +5 -1
- package/lib/esm/input/creator/InputGroup.jsx.map +1 -1
- package/lib/esm/input/creator/InputSlot.jsx +5 -1
- package/lib/esm/input/creator/InputSlot.jsx.map +1 -1
- package/lib/esm/input/creator/types.d.ts +25 -0
- package/lib/esm/input/creator/types.d.ts.map +1 -1
- package/lib/esm/link/creator/Link.jsx +14 -2
- package/lib/esm/link/creator/Link.jsx.map +1 -1
- package/lib/esm/link/creator/LinkText.jsx +5 -1
- package/lib/esm/link/creator/LinkText.jsx.map +1 -1
- package/lib/esm/link/creator/UseLink.js +1 -0
- package/lib/esm/link/creator/UseLink.js.map +1 -1
- package/lib/esm/link/creator/index.jsx +1 -0
- package/lib/esm/link/creator/index.jsx.map +1 -1
- package/lib/esm/link/creator/types.d.ts +9 -0
- package/lib/esm/link/creator/types.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenu.d.ts +12 -0
- package/lib/esm/menu/aria/useMenu.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenu.js +17 -0
- package/lib/esm/menu/aria/useMenu.js.map +1 -1
- package/lib/esm/menu/aria/useMenuItem.d.ts +21 -0
- package/lib/esm/menu/aria/useMenuItem.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenuItem.js +6 -0
- package/lib/esm/menu/aria/useMenuItem.js.map +1 -1
- package/lib/esm/menu/aria/useMenuItem.web.d.ts +21 -0
- package/lib/esm/menu/aria/useMenuItem.web.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenuItem.web.js +20 -0
- package/lib/esm/menu/aria/useMenuItem.web.js.map +1 -1
- package/lib/esm/menu/aria/useMenuSection.d.ts +10 -0
- package/lib/esm/menu/aria/useMenuSection.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenuSection.js +9 -0
- package/lib/esm/menu/aria/useMenuSection.js.map +1 -1
- package/lib/esm/menu/aria/useMenuTrigger.d.ts +8 -0
- package/lib/esm/menu/aria/useMenuTrigger.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenuTrigger.js +5 -0
- package/lib/esm/menu/aria/useMenuTrigger.js.map +1 -1
- package/lib/esm/menu/aria/useMenuTrigger.web.d.ts +8 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.d.ts.map +1 -1
- package/lib/esm/menu/aria/useMenuTrigger.web.js +12 -0
- package/lib/esm/menu/aria/useMenuTrigger.web.js.map +1 -1
- package/lib/esm/menu/creator/Menu.jsx +2 -0
- package/lib/esm/menu/creator/Menu.jsx.map +1 -1
- package/lib/esm/menu/creator/MenuItem.jsx +20 -3
- package/lib/esm/menu/creator/MenuItem.jsx.map +1 -1
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.jsx +3 -0
- package/lib/esm/menu/creator/MenuPopover/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/menu/creator/MenuPopover/Popover.jsx +3 -1
- package/lib/esm/menu/creator/MenuPopover/Popover.jsx.map +1 -1
- package/lib/esm/menu/creator/MenuPopover/Popover.web.jsx +4 -2
- package/lib/esm/menu/creator/MenuPopover/Popover.web.jsx.map +1 -1
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.jsx +3 -1
- package/lib/esm/menu/creator/MenuPopover/PopoverContent.jsx.map +1 -1
- package/lib/esm/menu/creator/index.jsx +1 -0
- package/lib/esm/menu/creator/index.jsx.map +1 -1
- package/lib/esm/menu/creator/types.d.ts +60 -0
- package/lib/esm/menu/creator/types.d.ts.map +1 -1
- package/lib/esm/menu/creator/useTypeSelect.js +4 -0
- package/lib/esm/menu/creator/useTypeSelect.js.map +1 -1
- package/lib/esm/modal/creator/Modal.jsx +2 -0
- package/lib/esm/modal/creator/Modal.jsx.map +1 -1
- package/lib/esm/modal/creator/ModalCloseButton.jsx +17 -3
- package/lib/esm/modal/creator/ModalCloseButton.jsx.map +1 -1
- package/lib/esm/modal/creator/ModalContent.jsx +4 -0
- package/lib/esm/modal/creator/ModalContent.jsx.map +1 -1
- package/lib/esm/modal/creator/OverlayAnimatePresence.jsx +11 -0
- package/lib/esm/modal/creator/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/modal/creator/types.d.ts +42 -0
- package/lib/esm/modal/creator/types.d.ts.map +1 -1
- package/lib/esm/overlay/aria/Portal.jsx +8 -2
- package/lib/esm/overlay/aria/Portal.jsx.map +1 -1
- package/lib/esm/overlay/aria/useOverlay.d.ts +23 -0
- package/lib/esm/overlay/aria/useOverlay.d.ts.map +1 -1
- package/lib/esm/overlay/aria/useOverlay.js +5 -0
- package/lib/esm/overlay/aria/useOverlay.js.map +1 -1
- package/lib/esm/overlay/aria/useOverlay.web.d.ts +23 -0
- package/lib/esm/overlay/aria/useOverlay.web.d.ts.map +1 -1
- package/lib/esm/overlay/aria/useOverlay.web.js +9 -0
- package/lib/esm/overlay/aria/useOverlay.web.js.map +1 -1
- package/lib/esm/overlay/aria/useOverlayPosition.d.ts +20 -0
- package/lib/esm/overlay/aria/useOverlayPosition.d.ts.map +1 -1
- package/lib/esm/overlay/aria/useOverlayPosition.js +27 -7
- package/lib/esm/overlay/aria/useOverlayPosition.js.map +1 -1
- package/lib/esm/overlay/aria/useOverlayTrigger.d.ts +7 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.d.ts.map +1 -1
- package/lib/esm/overlay/aria/useOverlayTrigger.js +15 -0
- package/lib/esm/overlay/aria/useOverlayTrigger.js.map +1 -1
- package/lib/esm/overlay/aria/usePreventScroll.d.ts +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.d.ts.map +1 -1
- package/lib/esm/overlay/aria/usePreventScroll.js +1 -0
- package/lib/esm/overlay/aria/usePreventScroll.js.map +1 -1
- package/lib/esm/overlay/aria/utils.js +9 -1
- package/lib/esm/overlay/aria/utils.js.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/index.js +11 -0
- package/lib/esm/overlay/aria/web/overlays/index.js.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.d.ts +3 -0
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.d.ts.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.js +45 -9
- package/lib/esm/overlay/aria/web/overlays/src/calculatePosition.js.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/index.js +11 -0
- package/lib/esm/overlay/aria/web/overlays/src/index.js.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.d.ts +1 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.d.ts.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.js +19 -0
- package/lib/esm/overlay/aria/web/overlays/src/useCloseOnScroll.js.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.d.ts +29 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.d.ts.map +1 -1
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.js +45 -0
- package/lib/esm/overlay/aria/web/overlays/src/useOverlayPosition.js.map +1 -1
- package/lib/esm/popover/creator/OverlayAnimatePresence.jsx +11 -0
- package/lib/esm/popover/creator/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/popover/creator/Popover.jsx +7 -1
- package/lib/esm/popover/creator/Popover.jsx.map +1 -1
- package/lib/esm/popover/creator/PopoverArrow.jsx +8 -1
- package/lib/esm/popover/creator/PopoverArrow.jsx.map +1 -1
- package/lib/esm/popover/creator/PopoverBackdrop.jsx +3 -1
- package/lib/esm/popover/creator/PopoverBackdrop.jsx.map +1 -1
- package/lib/esm/popover/creator/PopoverCloseButton.jsx +14 -2
- package/lib/esm/popover/creator/PopoverCloseButton.jsx.map +1 -1
- package/lib/esm/popover/creator/PopoverContent.jsx +13 -3
- package/lib/esm/popover/creator/PopoverContent.jsx.map +1 -1
- package/lib/esm/popover/creator/types.d.ts +50 -0
- package/lib/esm/popover/creator/types.d.ts.map +1 -1
- package/lib/esm/pressable/creator/Pressable.jsx +14 -2
- package/lib/esm/pressable/creator/Pressable.jsx.map +1 -1
- package/lib/esm/progress/creator/types.d.ts +16 -0
- package/lib/esm/progress/creator/types.d.ts.map +1 -1
- package/lib/esm/radio/aria/useRadio.d.ts +14 -0
- package/lib/esm/radio/aria/useRadio.d.ts.map +1 -1
- package/lib/esm/radio/aria/useRadio.js +7 -0
- package/lib/esm/radio/aria/useRadio.js.map +1 -1
- package/lib/esm/radio/aria/useRadioGroup.d.ts +8 -0
- package/lib/esm/radio/aria/useRadioGroup.d.ts.map +1 -1
- package/lib/esm/radio/aria/useRadioGroup.js +6 -0
- package/lib/esm/radio/aria/useRadioGroup.js.map +1 -1
- package/lib/esm/radio/aria/useRadioGroup.web.d.ts +8 -0
- package/lib/esm/radio/aria/useRadioGroup.web.d.ts.map +1 -1
- package/lib/esm/radio/aria/useRadioGroup.web.js +6 -0
- package/lib/esm/radio/aria/useRadioGroup.web.js.map +1 -1
- package/lib/esm/radio/creator/Radio.jsx +15 -2
- package/lib/esm/radio/creator/Radio.jsx.map +1 -1
- package/lib/esm/radio/creator/Radio.web.jsx +13 -3
- package/lib/esm/radio/creator/Radio.web.jsx.map +1 -1
- package/lib/esm/radio/creator/RadioIndicator.jsx +5 -1
- package/lib/esm/radio/creator/RadioIndicator.jsx.map +1 -1
- package/lib/esm/radio/creator/RadioLabel.jsx +5 -1
- package/lib/esm/radio/creator/RadioLabel.jsx.map +1 -1
- package/lib/esm/radio/creator/context.d.ts +7 -0
- package/lib/esm/radio/creator/context.d.ts.map +1 -1
- package/lib/esm/radio/creator/context.jsx +17 -0
- package/lib/esm/radio/creator/context.jsx.map +1 -1
- package/lib/esm/select/creator/SelectInput.jsx +8 -2
- package/lib/esm/select/creator/SelectInput.jsx.map +1 -1
- package/lib/esm/select/creator/SelectItem.jsx +12 -2
- package/lib/esm/select/creator/SelectItem.jsx.map +1 -1
- package/lib/esm/select/creator/SelectTrigger.jsx +5 -1
- package/lib/esm/select/creator/SelectTrigger.jsx.map +1 -1
- package/lib/esm/select/creator/index.js +1 -0
- package/lib/esm/select/creator/index.js.map +1 -1
- package/lib/esm/select/creator/types.d.ts +3 -0
- package/lib/esm/select/creator/types.d.ts.map +1 -1
- package/lib/esm/slider/aria/textSelection.js +18 -0
- package/lib/esm/slider/aria/textSelection.js.map +1 -1
- package/lib/esm/slider/aria/useMove.d.ts +6 -0
- package/lib/esm/slider/aria/useMove.d.ts.map +1 -1
- package/lib/esm/slider/aria/useMove.js +16 -0
- package/lib/esm/slider/aria/useMove.js.map +1 -1
- package/lib/esm/slider/aria/useMove.web.d.ts +6 -0
- package/lib/esm/slider/aria/useMove.web.d.ts.map +1 -1
- package/lib/esm/slider/aria/useMove.web.js +31 -2
- package/lib/esm/slider/aria/useMove.web.js.map +1 -1
- package/lib/esm/slider/aria/useSlider.d.ts +14 -0
- package/lib/esm/slider/aria/useSlider.d.ts.map +1 -1
- package/lib/esm/slider/aria/useSlider.js +19 -0
- package/lib/esm/slider/aria/useSlider.js.map +1 -1
- package/lib/esm/slider/aria/useSlider.web.d.ts +2 -0
- package/lib/esm/slider/aria/useSlider.web.d.ts.map +1 -1
- package/lib/esm/slider/aria/useSlider.web.js +28 -0
- package/lib/esm/slider/aria/useSlider.web.js.map +1 -1
- package/lib/esm/slider/aria/useSliderThumb.d.ts +11 -0
- package/lib/esm/slider/aria/useSliderThumb.d.ts.map +1 -1
- package/lib/esm/slider/aria/useSliderThumb.js +6 -0
- package/lib/esm/slider/aria/useSliderThumb.js.map +1 -1
- package/lib/esm/slider/aria/useSliderThumb.web.d.ts +11 -0
- package/lib/esm/slider/aria/useSliderThumb.web.d.ts.map +1 -1
- package/lib/esm/slider/aria/useSliderThumb.web.js +12 -0
- package/lib/esm/slider/aria/useSliderThumb.web.js.map +1 -1
- package/lib/esm/slider/creator/Slider.jsx +14 -3
- package/lib/esm/slider/creator/Slider.jsx.map +1 -1
- package/lib/esm/slider/creator/SliderFilledTrack.jsx +5 -1
- package/lib/esm/slider/creator/SliderFilledTrack.jsx.map +1 -1
- package/lib/esm/slider/creator/SliderThumb.jsx +11 -3
- package/lib/esm/slider/creator/SliderThumb.jsx.map +1 -1
- package/lib/esm/slider/creator/SliderTrack.jsx +5 -1
- package/lib/esm/slider/creator/SliderTrack.jsx.map +1 -1
- package/lib/esm/slider/creator/types.d.ts +35 -0
- package/lib/esm/slider/creator/types.d.ts.map +1 -1
- package/lib/esm/spinner/creator/index.jsx +1 -0
- package/lib/esm/spinner/creator/index.jsx.map +1 -1
- package/lib/esm/switch/aria/useSwitch.d.ts +8 -0
- package/lib/esm/switch/aria/useSwitch.d.ts.map +1 -1
- package/lib/esm/switch/aria/useSwitch.js +18 -0
- package/lib/esm/switch/aria/useSwitch.js.map +1 -1
- package/lib/esm/switch/aria/useSwitch.web.d.ts +8 -0
- package/lib/esm/switch/aria/useSwitch.web.d.ts.map +1 -1
- package/lib/esm/switch/aria/useSwitch.web.js +7 -0
- package/lib/esm/switch/aria/useSwitch.web.js.map +1 -1
- package/lib/esm/switch/creator/Switch.jsx +5 -1
- package/lib/esm/switch/creator/Switch.jsx.map +1 -1
- package/lib/esm/switch/creator/types.d.ts +12 -0
- package/lib/esm/switch/creator/types.d.ts.map +1 -1
- package/lib/esm/tabs/creator/Context.d.ts +7 -0
- package/lib/esm/tabs/creator/Context.d.ts.map +1 -0
- package/lib/esm/tabs/creator/Context.jsx +18 -0
- package/lib/esm/tabs/creator/Context.jsx.map +1 -0
- package/lib/esm/tabs/creator/Tabs.d.ts +3 -0
- package/lib/esm/tabs/creator/Tabs.d.ts.map +1 -0
- package/lib/esm/tabs/creator/Tabs.jsx +97 -0
- package/lib/esm/tabs/creator/Tabs.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsContent.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsContent.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsContent.jsx +40 -0
- package/lib/esm/tabs/creator/TabsContent.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsContentWrapper.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsContentWrapper.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsContentWrapper.jsx +24 -0
- package/lib/esm/tabs/creator/TabsContentWrapper.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsIndicator.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsIndicator.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsIndicator.jsx +26 -0
- package/lib/esm/tabs/creator/TabsIndicator.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsList.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsList.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsList.jsx +103 -0
- package/lib/esm/tabs/creator/TabsList.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsTrigger.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsTrigger.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsTrigger.jsx +188 -0
- package/lib/esm/tabs/creator/TabsTrigger.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsTriggerIcon.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsTriggerIcon.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsTriggerIcon.jsx +24 -0
- package/lib/esm/tabs/creator/TabsTriggerIcon.jsx.map +1 -0
- package/lib/esm/tabs/creator/TabsTriggerText.d.ts +3 -0
- package/lib/esm/tabs/creator/TabsTriggerText.d.ts.map +1 -0
- package/lib/esm/tabs/creator/TabsTriggerText.jsx +26 -0
- package/lib/esm/tabs/creator/TabsTriggerText.jsx.map +1 -0
- package/lib/esm/tabs/creator/index.d.ts +30 -0
- package/lib/esm/tabs/creator/index.d.ts.map +1 -0
- package/lib/esm/tabs/creator/index.jsx +40 -0
- package/lib/esm/tabs/creator/index.jsx.map +1 -0
- package/lib/esm/tabs/creator/types.d.ts +77 -0
- package/lib/esm/tabs/creator/types.d.ts.map +1 -0
- package/lib/esm/tabs/creator/types.js +2 -0
- package/lib/esm/tabs/creator/types.js.map +1 -0
- package/lib/esm/tabs/index.d.ts +2 -0
- package/lib/esm/tabs/index.d.ts.map +1 -0
- package/lib/esm/tabs/index.jsx +2 -0
- package/lib/esm/tabs/index.jsx.map +1 -0
- package/lib/esm/textarea/creator/Textarea.jsx +5 -1
- package/lib/esm/textarea/creator/Textarea.jsx.map +1 -1
- package/lib/esm/textarea/creator/TextareaRoot.jsx +5 -1
- package/lib/esm/textarea/creator/TextareaRoot.jsx.map +1 -1
- package/lib/esm/textarea/creator/index.d.ts +3 -0
- package/lib/esm/textarea/creator/index.d.ts.map +1 -1
- package/lib/esm/textarea/creator/index.jsx +4 -0
- package/lib/esm/textarea/creator/index.jsx.map +1 -1
- package/lib/esm/textarea/creator/types.d.ts +18 -0
- package/lib/esm/textarea/creator/types.d.ts.map +1 -1
- package/lib/esm/toast/creator/ToastList.jsx +6 -1
- package/lib/esm/toast/creator/ToastList.jsx.map +1 -1
- package/lib/esm/toast/creator/ToastTitle.jsx +2 -0
- package/lib/esm/toast/creator/ToastTitle.jsx.map +1 -1
- package/lib/esm/toast/creator/types.d.ts +25 -0
- package/lib/esm/toast/creator/types.d.ts.map +1 -1
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.jsx +11 -0
- package/lib/esm/tooltip/creator/OverlayAnimatePresence.jsx.map +1 -1
- package/lib/esm/tooltip/creator/Tooltip.jsx +25 -8
- package/lib/esm/tooltip/creator/Tooltip.jsx.map +1 -1
- package/lib/esm/tooltip/creator/types.d.ts +59 -0
- package/lib/esm/tooltip/creator/types.d.ts.map +1 -1
- package/package.json +24 -6
- package/tabs/creator.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetContentContext.jsx","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetContentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,GAC9D,aAAa,CAAM,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare function BottomSheetDragIndicator<T>(StyledBottomSheetDragIndicator: React.ComponentType<T>): React.ForwardRefExoticComponent<{
|
|
3
|
+
children?: any;
|
|
4
|
+
} & React.RefAttributes<unknown>>;
|
|
5
|
+
export default BottomSheetDragIndicator;
|
|
6
|
+
//# sourceMappingURL=BottomSheetDragIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetDragIndicator.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetDragIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,iBAAS,wBAAwB,CAAC,CAAC,EACjC,8BAA8B,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eAEE,GAAG;kCAW5D;AACD,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import React, { forwardRef } from 'react';
|
|
13
|
+
function BottomSheetDragIndicator(StyledBottomSheetDragIndicator) {
|
|
14
|
+
return forwardRef((_a, ref) => {
|
|
15
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
16
|
+
return (<StyledBottomSheetDragIndicator ref={ref} {...props} focusable={false}>
|
|
17
|
+
{children}
|
|
18
|
+
</StyledBottomSheetDragIndicator>);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export default BottomSheetDragIndicator;
|
|
22
|
+
//# sourceMappingURL=BottomSheetDragIndicator.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetDragIndicator.jsx","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetDragIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,SAAS,wBAAwB,CAC/B,8BAAsD;IAEtD,OAAO,UAAU,CAAC,CAAC,EAA0C,EAAE,GAAS,EAAE,EAAE;YAAzD,EAAE,QAAQ,OAAgC,EAA3B,KAAK,cAApB,YAAsB,CAAF;QACrC,OAAO,CACL,CAAC,8BAA8B,CAC7B,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAK,KAAW,CAAC,CACjB,SAAS,CAAC,CAAC,KAAK,CAAC,CAEjB;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,8BAA8B,CAAC,CAClC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AACD,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function BottomSheetDragIndicatorWrapper<T>(StyledBottomSheetDragIndicatorWrapper: React.ComponentType<T>): React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
3
|
+
//# sourceMappingURL=BottomSheetDragIndicatorWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetDragIndicatorWrapper.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetDragIndicatorWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,wBAAgB,+BAA+B,CAAC,CAAC,EAC/C,qCAAqC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,oFA2I9D"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Animated, PanResponder } from 'react-native';
|
|
3
|
+
import { useBottomSheetContent } from './BottomSheetContentContext';
|
|
4
|
+
export function BottomSheetDragIndicatorWrapper(StyledBottomSheetDragIndicatorWrapper) {
|
|
5
|
+
return forwardRef((props, ref) => {
|
|
6
|
+
const { pan, handleClose, handleCloseBackdrop, snapPoints, contentSheetHeight, activeSnapIndex, setActiveSnapIndex, maxSnapPoint, windowHeight, } = useBottomSheetContent('BottomSheetContentContext');
|
|
7
|
+
// Keep handleClose ref updated to avoid capturing stale state
|
|
8
|
+
const handleCloseRef = React.useRef(handleClose);
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
handleCloseRef.current = handleClose;
|
|
11
|
+
}, [handleClose]);
|
|
12
|
+
// Store the initial pan.y value when drag starts
|
|
13
|
+
const dragStartY = React.useRef(0);
|
|
14
|
+
const panResponder = React.useRef(PanResponder.create({
|
|
15
|
+
onStartShouldSetPanResponder: () => false,
|
|
16
|
+
onMoveShouldSetPanResponder: (_evt, gestureState) => {
|
|
17
|
+
// Only activate if there's significant vertical movement
|
|
18
|
+
return Math.abs(gestureState.dy) > 8 && Math.abs(gestureState.dy) > Math.abs(gestureState.dx);
|
|
19
|
+
},
|
|
20
|
+
onPanResponderGrant: () => {
|
|
21
|
+
// Store the current pan.y value when drag starts
|
|
22
|
+
dragStartY.current = pan.y._value;
|
|
23
|
+
},
|
|
24
|
+
onPanResponderMove: (e, gestureState) => {
|
|
25
|
+
if (!snapPoints || snapPoints.length === 0) {
|
|
26
|
+
if (gestureState.dy > 0) {
|
|
27
|
+
Animated.event([null, { dy: pan.y }], {
|
|
28
|
+
useNativeDriver: false,
|
|
29
|
+
})(e, gestureState);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
// Calculate new position
|
|
34
|
+
const newY = dragStartY.current + gestureState.dy;
|
|
35
|
+
const maxHeight = (maxSnapPoint * windowHeight) / 100;
|
|
36
|
+
// Constrain movement
|
|
37
|
+
const constrainedY = Math.max(0, Math.min(newY, maxHeight));
|
|
38
|
+
pan.setValue({ x: 0, y: constrainedY });
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
onPanResponderRelease: (_e, gestureState) => {
|
|
42
|
+
if (!snapPoints || snapPoints.length === 0) {
|
|
43
|
+
if (contentSheetHeight.current / 4 < gestureState.dy) {
|
|
44
|
+
handleCloseBackdrop();
|
|
45
|
+
Animated.timing(pan, {
|
|
46
|
+
toValue: { x: 0, y: contentSheetHeight.current },
|
|
47
|
+
duration: 250,
|
|
48
|
+
useNativeDriver: true,
|
|
49
|
+
}).start(() => handleCloseRef.current());
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
Animated.spring(pan, {
|
|
53
|
+
toValue: { x: 0, y: 0 },
|
|
54
|
+
overshootClamping: true,
|
|
55
|
+
useNativeDriver: true,
|
|
56
|
+
}).start();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
const maxHeight = (maxSnapPoint * windowHeight) / 100;
|
|
61
|
+
const currentY = dragStartY.current + gestureState.dy;
|
|
62
|
+
// Calculate which height this corresponds to
|
|
63
|
+
const visibleHeight = maxHeight - currentY;
|
|
64
|
+
const visiblePercentage = (visibleHeight / windowHeight) * 100;
|
|
65
|
+
// Check if should close (dragged down beyond threshold)
|
|
66
|
+
const smallestSnapPoint = Math.min(...snapPoints);
|
|
67
|
+
const closeThreshold = smallestSnapPoint * 0.5;
|
|
68
|
+
if (visiblePercentage < closeThreshold) {
|
|
69
|
+
handleCloseBackdrop();
|
|
70
|
+
Animated.timing(pan, {
|
|
71
|
+
toValue: { x: 0, y: maxHeight + 100 },
|
|
72
|
+
duration: 250,
|
|
73
|
+
useNativeDriver: true,
|
|
74
|
+
}).start(() => {
|
|
75
|
+
handleCloseRef.current();
|
|
76
|
+
});
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// Find the closest snap point based on position only
|
|
80
|
+
const snapPositions = snapPoints.map((point) => {
|
|
81
|
+
const pointHeight = (point * windowHeight) / 100;
|
|
82
|
+
return maxHeight - pointHeight;
|
|
83
|
+
});
|
|
84
|
+
let closestSnapIndex = 0;
|
|
85
|
+
let minDistance = Math.abs(currentY - snapPositions[0]);
|
|
86
|
+
for (let i = 1; i < snapPositions.length; i++) {
|
|
87
|
+
const distance = Math.abs(currentY - snapPositions[i]);
|
|
88
|
+
if (distance < minDistance) {
|
|
89
|
+
minDistance = distance;
|
|
90
|
+
closestSnapIndex = i;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const targetY = snapPositions[closestSnapIndex];
|
|
94
|
+
// Update active snap index if changed
|
|
95
|
+
if (closestSnapIndex !== activeSnapIndex && setActiveSnapIndex) {
|
|
96
|
+
setActiveSnapIndex(closestSnapIndex);
|
|
97
|
+
}
|
|
98
|
+
// Animate to the nearest snap point
|
|
99
|
+
Animated.spring(pan, {
|
|
100
|
+
toValue: { x: 0, y: targetY },
|
|
101
|
+
velocity: { x: 0, y: gestureState.vy },
|
|
102
|
+
damping: 25,
|
|
103
|
+
stiffness: 180,
|
|
104
|
+
mass: 1,
|
|
105
|
+
useNativeDriver: true,
|
|
106
|
+
}).start();
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
})).current;
|
|
110
|
+
return (<StyledBottomSheetDragIndicatorWrapper {...panResponder.panHandlers} {...props} ref={ref}/>);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=BottomSheetDragIndicatorWrapper.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetDragIndicatorWrapper.jsx","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetDragIndicatorWrapper.tsx"],"names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AC,CAAC,KAAK,EAAE,CAAC;gBACb,CAAC;YACH,CAAC;SACF,CAAC,CACH,CAAC,OAAO,CAAC;QAEV,OAAO,CACL,CAAC,qCAAqC,CACpC,IAAI,YAAY,CAAC,WAAW,CAAC,CAC7B,IAAK,KAAW,CAAC,CACjB,GAAG,CAAC,CAAC,GAAG,CAAC,EACT,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { InterfaceBottomSheetItemProps } from './types';
|
|
3
|
+
export declare function BottomSheetItem<T>(StyledBottomSheetItem: React.ComponentType<T>): React.ForwardRefExoticComponent<InterfaceBottomSheetItemProps & React.RefAttributes<unknown>>;
|
|
4
|
+
//# sourceMappingURL=BottomSheetItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,wBAAgB,eAAe,CAAC,CAAC,EAC/B,qBAAqB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,iGAyF9C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { useFocusRing, useFocus } from '@gluestack-ui/utils/aria';
|
|
13
|
+
import React, { forwardRef } from 'react';
|
|
14
|
+
import { composeEventHandlers } from '@gluestack-ui/utils/common';
|
|
15
|
+
import { usePress, useHover } from '@gluestack-ui/utils/aria';
|
|
16
|
+
import { BottomSheetContext } from './context';
|
|
17
|
+
export function BottomSheetItem(StyledBottomSheetItem) {
|
|
18
|
+
return forwardRef((_a, ref) => {
|
|
19
|
+
var _b;
|
|
20
|
+
var { children, isDisabled, isHovered: isHoveredProp, isPressed: isPressedProp, isFocused: isFocusedProp, isFocusVisible: isFocusVisibleProp, closeOnPress = true } = _a, props = __rest(_a, ["children", "isDisabled", "isHovered", "isPressed", "isFocused", "isFocusVisible", "closeOnPress"]);
|
|
21
|
+
const { handleClose } = React.useContext(BottomSheetContext);
|
|
22
|
+
const { isFocusVisible, focusProps: focusRingProps } = useFocusRing();
|
|
23
|
+
const { pressProps, isPressed } = usePress({ isDisabled });
|
|
24
|
+
const { isFocused, focusProps } = useFocus();
|
|
25
|
+
const { isHovered, hoverProps } = useHover();
|
|
26
|
+
return (<StyledBottomSheetItem ref={ref} disabled={isDisabled} onPress={composeEventHandlers(props === null || props === void 0 ? void 0 : props.onPress, closeOnPress ? handleClose : undefined)} onPressIn={composeEventHandlers(props === null || props === void 0 ? void 0 : props.onPressIn, pressProps.onPressIn)} onPressOut={composeEventHandlers(props === null || props === void 0 ? void 0 : props.onPressOut, pressProps.onPressOut)}
|
|
27
|
+
// @ts-ignore - web only
|
|
28
|
+
onHoverIn={composeEventHandlers(props === null || props === void 0 ? void 0 : props.onHoverIn, hoverProps.onHoverIn)}
|
|
29
|
+
// @ts-ignore - web only
|
|
30
|
+
onHoverOut={composeEventHandlers(props === null || props === void 0 ? void 0 : props.onHoverOut, hoverProps.onHoverOut)}
|
|
31
|
+
// @ts-ignore - web only
|
|
32
|
+
onFocus={composeEventHandlers(composeEventHandlers(props === null || props === void 0 ? void 0 : props.onFocus, focusProps.onFocus), focusRingProps.onFocus)}
|
|
33
|
+
// @ts-ignore - web only
|
|
34
|
+
onBlur={composeEventHandlers(composeEventHandlers(props === null || props === void 0 ? void 0 : props.onBlur, focusProps.onBlur), focusRingProps.onBlur)} {...props} states={Object.assign({ hover: isHoveredProp || isHovered, focus: isFocusedProp || isFocused, active: isPressedProp || isPressed, disabled: isDisabled, focusVisible: isFocusVisibleProp || isFocusVisible }, props.states)} dataSet={Object.assign({ hover: isHoveredProp || isHovered ? 'true' : 'false', focus: isFocusedProp || isFocused ? 'true' : 'false', active:
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
isPressedProp || isPressed || ((_b = props === null || props === void 0 ? void 0 : props.states) === null || _b === void 0 ? void 0 : _b.active)
|
|
37
|
+
? 'true'
|
|
38
|
+
: 'false', disabled: isDisabled ? 'true' : 'false', focusVisible: isFocusVisibleProp || isFocusVisible ? 'true' : 'false' }, props.dataSet)}>
|
|
39
|
+
{children}
|
|
40
|
+
</StyledBottomSheetItem>);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=BottomSheetItem.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomSheetItem.jsx","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/BottomSheetItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAG/C,MAAM,UAAU,eAAe,CAC7B,qBAA6C;IAE7C,OAAO,UAAU,CACf,CACE,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CAAC,CAAC,CAAC,OAAO,IAEtD,KAAK,CAAC,OAAO,EAChB,CAEF;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,qBAAqB,CAAC,CACzB,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const BottomSheetContext: React.Context<{
|
|
3
|
+
handleClose: any;
|
|
4
|
+
handleOpen: any;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
backdropVisible: boolean;
|
|
7
|
+
closeOnOverlayClick: boolean;
|
|
8
|
+
snapPoints: Array<number>;
|
|
9
|
+
snapToIndex: number;
|
|
10
|
+
initialFocusRef: React.RefObject<any> | undefined;
|
|
11
|
+
finalFocusRef: React.RefObject<any> | undefined;
|
|
12
|
+
trapFocus: boolean;
|
|
13
|
+
preventScroll: boolean;
|
|
14
|
+
handleCloseBackdrop: any;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,kBAAkB;iBACF,GAAG;gBACJ,GAAG;aACX,OAAO;qBACC,OAAO;yBACJ,OAAO;gBAClB,KAAK,CAAC,MAAM,CAAC;iBACb,MAAM;qBACc,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS;mBAClC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,SAAS;eACjD,OAAO;mBACH,OAAO;yBACK,GAAG;EACtC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const BottomSheetContext = React.createContext({
|
|
3
|
+
handleClose: (() => { }),
|
|
4
|
+
handleOpen: (() => { }),
|
|
5
|
+
visible: false,
|
|
6
|
+
backdropVisible: false,
|
|
7
|
+
closeOnOverlayClick: true,
|
|
8
|
+
snapPoints: [],
|
|
9
|
+
snapToIndex: 0,
|
|
10
|
+
initialFocusRef: { current: null },
|
|
11
|
+
finalFocusRef: { current: null },
|
|
12
|
+
trapFocus: true,
|
|
13
|
+
preventScroll: true,
|
|
14
|
+
handleCloseBackdrop: (() => { }),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC;IACpD,WAAW,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC,CAAQ;IAC9B,UAAU,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC,CAAQ;IAC7B,OAAO,EAAE,KAAgB;IACzB,eAAe,EAAE,KAAgB;IACjC,mBAAmB,EAAE,IAAe;IACpC,UAAU,EAAE,EAAmB;IAC/B,WAAW,EAAE,CAAW;IACxB,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAsC;IACtE,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAsC;IACpE,SAAS,EAAE,IAAe;IAC1B,aAAa,EAAE,IAAe;IAC9B,mBAAmB,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC,CAAQ;CACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IBottomSheetComponentType } from './types';
|
|
2
|
+
export { BottomSheetContext } from './context';
|
|
3
|
+
export declare function createBottomSheet<BottomSheetProps, BackdropProps, ItemProps, ItemTextProps, DragIndicatorProps, IndicatorWrapperProps, ContentProps, ScrollViewProps, FlatListProps, SectionListProps, TextInputProps>({ Root, Backdrop, Item, ItemText, DragIndicator, IndicatorWrapper, Content, ScrollView, FlatList, SectionList, TextInput, }: {
|
|
4
|
+
Root: React.ComponentType<BottomSheetProps>;
|
|
5
|
+
Backdrop: React.ComponentType<BackdropProps>;
|
|
6
|
+
Item: React.ComponentType<ItemProps>;
|
|
7
|
+
ItemText: React.ComponentType<ItemTextProps>;
|
|
8
|
+
DragIndicator: React.ComponentType<DragIndicatorProps>;
|
|
9
|
+
IndicatorWrapper: React.ComponentType<IndicatorWrapperProps>;
|
|
10
|
+
Content: React.ComponentType<ContentProps>;
|
|
11
|
+
ScrollView: React.ComponentType<ScrollViewProps>;
|
|
12
|
+
FlatList: React.ComponentType<FlatListProps>;
|
|
13
|
+
SectionList: React.ComponentType<SectionListProps>;
|
|
14
|
+
TextInput: React.ComponentType<TextInputProps>;
|
|
15
|
+
}): IBottomSheetComponentType<BottomSheetProps, BackdropProps, ItemProps, ItemTextProps, DragIndicatorProps, IndicatorWrapperProps, ContentProps, ScrollViewProps, FlatListProps, SectionListProps, TextInputProps>;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,EACA,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,GACV,EAAE;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC7C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC7C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACvD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAC7D,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAC3C,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC7C,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;CAChD,GA0BuB,yBAAyB,CAC7C,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,cAAc,CACf,CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BottomSheet as BottomSheetMain } from './BottomSheet';
|
|
2
|
+
import BottomSheetContent from './BottomSheetContent';
|
|
3
|
+
import { BottomSheetItem } from './BottomSheetItem';
|
|
4
|
+
import BottomSheetBackdrop from './BottomSheetBackdrop';
|
|
5
|
+
import { BottomSheetDragIndicatorWrapper } from './BottomSheetDragIndicatorWrapper';
|
|
6
|
+
import BottomSheetDragIndicator from './BottomSheetDragIndicator';
|
|
7
|
+
// Export context for use in style files
|
|
8
|
+
export { BottomSheetContext } from './context';
|
|
9
|
+
export function createBottomSheet({ Root, Backdrop, Item, ItemText, DragIndicator, IndicatorWrapper, Content, ScrollView, FlatList, SectionList, TextInput, }) {
|
|
10
|
+
const BottomSheet = BottomSheetMain(Root);
|
|
11
|
+
BottomSheet.Backdrop = BottomSheetBackdrop(Backdrop);
|
|
12
|
+
BottomSheet.Content = BottomSheetContent(Content);
|
|
13
|
+
BottomSheet.DragIndicator = BottomSheetDragIndicator(DragIndicator);
|
|
14
|
+
BottomSheet.DragIndicatorWrapper =
|
|
15
|
+
BottomSheetDragIndicatorWrapper(IndicatorWrapper);
|
|
16
|
+
BottomSheet.Item = BottomSheetItem(Item);
|
|
17
|
+
BottomSheet.ItemText = ItemText;
|
|
18
|
+
BottomSheet.ScrollView = ScrollView;
|
|
19
|
+
BottomSheet.FlatList = FlatList;
|
|
20
|
+
BottomSheet.SectionList = SectionList;
|
|
21
|
+
BottomSheet.TextInput = TextInput;
|
|
22
|
+
BottomSheet.displayName = 'BottomSheet';
|
|
23
|
+
BottomSheet.Content.displayName = 'BottomSheet.Content';
|
|
24
|
+
BottomSheet.Backdrop.displayName = 'BottomSheet.Backdrop';
|
|
25
|
+
BottomSheet.Item.displayName = 'BottomSheet.Item';
|
|
26
|
+
BottomSheet.ItemText.displayName = 'BottomSheet.ItemText';
|
|
27
|
+
BottomSheet.DragIndicator.displayName = 'BottomSheet.DragIndicator';
|
|
28
|
+
BottomSheet.DragIndicatorWrapper.displayName = 'BottomSheet.DragIndicatorWrapper';
|
|
29
|
+
BottomSheet.ScrollView.displayName = 'BottomSheet.ScrollView';
|
|
30
|
+
BottomSheet.FlatList.displayName = 'BottomSheet.FlatList';
|
|
31
|
+
BottomSheet.SectionList.displayName = 'BottomSheet.SectionList';
|
|
32
|
+
BottomSheet.TextInput.displayName = 'BottomSheet.TextInput';
|
|
33
|
+
return BottomSheet;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=index.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.jsx","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/index.tsx"],"names":[],"mappings":"AAAA,O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C,WAAW,GAAG,sBAAsB,CAAC;IAC1D,WAAW,CAAC,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC;IAClD,WAAW,CAAC,QAAQ,CAAC,WAAW,GAAG,sBAAsB,CAAC;IAC1D,WAAW,CAAC,aAAa,CAAC,WAAW,GAAG,2BAA2B,CAAC;IACpE,WAAW,CAAC,oBAAoB,CAAC,WAAW,GAAG,kCAAkC,CAAC;IAClF,WAAW,CAAC,UAAU,CAAC,WAAW,GAAG,wBAAwB,CAAC;IAC9D,WAAW,CAAC,QAAQ,CAAC,WAAW,GAAG,sBAAsB,CAAC;IAC1D,WAAW,CAAC,WAAW,CAAC,WAAW,GAAG,yBAAyB,CAAC;IAChE,WAAW,CAAC,SAAS,CAAC,WAAW,GAAG,uBAAuB,CAAC;IAE5D,OAAO,WAYN,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { PressableProps } from 'react-native';
|
|
2
|
+
export interface InterfaceBottomSheetProps {
|
|
3
|
+
/**
|
|
4
|
+
* If true, the BottomSheet will open. Useful for controllable state behavior.
|
|
5
|
+
*/
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* A callback function that is called when the BottomSheet is closed.
|
|
9
|
+
*/
|
|
10
|
+
onClose?: () => any;
|
|
11
|
+
/**
|
|
12
|
+
* A callback function that is called when the BottomSheet is opened.
|
|
13
|
+
*/
|
|
14
|
+
onOpen?: () => any;
|
|
15
|
+
/**
|
|
16
|
+
* If true, BottomSheet will be opened by default.
|
|
17
|
+
*/
|
|
18
|
+
defaultIsOpen?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* If true, the BottomSheet will close when the overlay is clicked.
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
closeOnOverlayClick?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Array of snap points for the bottom sheet. Values are percentages (0-100).
|
|
26
|
+
* @example [25, 50, 90]
|
|
27
|
+
*/
|
|
28
|
+
snapPoints?: Array<number>;
|
|
29
|
+
/**
|
|
30
|
+
* The index of the snap point to initially snap to.
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
snapToIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The ref of element to receive focus when the BottomSheet opens.
|
|
36
|
+
*/
|
|
37
|
+
initialFocusRef?: React.RefObject<any>;
|
|
38
|
+
/**
|
|
39
|
+
* The ref of element to receive focus when the BottomSheet closes.
|
|
40
|
+
*/
|
|
41
|
+
finalFocusRef?: React.RefObject<any>;
|
|
42
|
+
/**
|
|
43
|
+
* If true, focus will be trapped within the BottomSheet.
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
trapFocus?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If true, keyboard can dismiss the BottomSheet.
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
isKeyboardDismissable?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* If true, renders react-native native modal.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
useRNModal?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* If true, prevent scroll when BottomSheet is open.
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
preventScroll?: boolean;
|
|
62
|
+
children?: any;
|
|
63
|
+
}
|
|
64
|
+
export interface InterfaceBottomSheetItemProps extends PressableProps {
|
|
65
|
+
isDisabled?: boolean;
|
|
66
|
+
isHovered?: boolean;
|
|
67
|
+
isPressed?: boolean;
|
|
68
|
+
isFocused?: boolean;
|
|
69
|
+
isFocusVisible?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* If true, the BottomSheet will close when the item is pressed.
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
closeOnPress?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface InterfaceBottomSheetContentProps {
|
|
77
|
+
children?: any;
|
|
78
|
+
/**
|
|
79
|
+
* If true, BottomSheet Content focusScope will be applied.
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
focusScope?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export type IBottomSheetComponentType<BottomSheetProps, BackdropProps, ItemProps, ItemTextProps, DragIndicatorProps, IndicatorWrapperProps, ContentProps, ScrollViewProps, FlatListProps, SectionListProps, TextInputProps> = React.ForwardRefExoticComponent<React.RefAttributes<BottomSheetProps> & React.PropsWithoutRef<BottomSheetProps & IBottomSheetProps>> & {
|
|
85
|
+
Content: React.ForwardRefExoticComponent<React.PropsWithoutRef<ContentProps & InterfaceBottomSheetContentProps> & React.RefAttributes<ContentProps>>;
|
|
86
|
+
Item: React.ForwardRefExoticComponent<React.PropsWithoutRef<ItemProps & InterfaceBottomSheetItemProps> & React.RefAttributes<ItemProps>>;
|
|
87
|
+
ItemText: React.ForwardRefExoticComponent<React.RefAttributes<ItemTextProps> & React.PropsWithoutRef<ItemTextProps>>;
|
|
88
|
+
DragIndicator: React.ForwardRefExoticComponent<React.RefAttributes<DragIndicatorProps> & React.PropsWithoutRef<DragIndicatorProps>>;
|
|
89
|
+
Backdrop: React.ForwardRefExoticComponent<React.RefAttributes<BackdropProps> & React.PropsWithoutRef<BackdropProps>>;
|
|
90
|
+
DragIndicatorWrapper: React.ForwardRefExoticComponent<React.RefAttributes<IndicatorWrapperProps> & React.PropsWithoutRef<IndicatorWrapperProps>>;
|
|
91
|
+
ScrollView: React.ForwardRefExoticComponent<React.RefAttributes<ScrollViewProps> & React.PropsWithoutRef<ScrollViewProps>>;
|
|
92
|
+
FlatList: React.ForwardRefExoticComponent<React.RefAttributes<FlatListProps> & React.PropsWithoutRef<FlatListProps>>;
|
|
93
|
+
SectionList: React.ForwardRefExoticComponent<React.RefAttributes<SectionListProps> & React.PropsWithoutRef<SectionListProps>>;
|
|
94
|
+
TextInput: React.ForwardRefExoticComponent<React.RefAttributes<TextInputProps> & React.PropsWithoutRef<TextInputProps>>;
|
|
95
|
+
};
|
|
96
|
+
export type IBottomSheetProps = InterfaceBottomSheetProps;
|
|
97
|
+
export type IBottomSheetContentProps = InterfaceBottomSheetContentProps;
|
|
98
|
+
export type IBottomSheetItemProps = InterfaceBottomSheetItemProps;
|
|
99
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC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AC,aAAa,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,aAAa,CAAC,CAC1E,CAAC;IACF,oBAAoB,EAAE,KAAK,CAAC,yBAAyB,CACnD,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,GACxC,KAAK,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAC/C,CAAC;IACF,UAAU,EAAE,KAAK,CAAC,yBAAyB,CACzC,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,GAClC,KAAK,CAAC,eAAe,CAAC,eAAe,CAAC,CACzC,CAAC;IACF,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CACvC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,aAAa,CAAC,CAC1E,CAAC;IACF,WAAW,EAAE,KAAK,CAAC,yBAAyB,CAC1C,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GACnC,KAAK,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAC1C,CAAC;IACF,SAAS,EAAE,KAAK,CAAC,yBAAyB,CACxC,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,GACjC,KAAK,CAAC,eAAe,CAAC,cAAc,CAAC,CACxC,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,MAAM,wBAAwB,GAAG,gCAAgC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/bottomsheet/creator/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bottomsheet/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.jsx","sourceRoot":"","sources":["../../../src/bottomsheet/index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -2,13 +2,17 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { PressEvents } from '@gluestack-ui/utils/aria';
|
|
3
3
|
import { AccessibilityProps, PressableProps } from 'react-native';
|
|
4
4
|
interface ButtonProps extends PressEvents {
|
|
5
|
+
/** Whether the button is disabled. */
|
|
5
6
|
isDisabled?: boolean;
|
|
7
|
+
/** The content to display in the button. */
|
|
6
8
|
children?: ReactNode;
|
|
7
9
|
}
|
|
8
10
|
export interface RNAriaButtonProps extends AccessibilityProps, ButtonProps {
|
|
9
11
|
}
|
|
10
12
|
export interface ButtonAria {
|
|
13
|
+
/** Props for the button element. */
|
|
11
14
|
buttonProps: PressableProps;
|
|
15
|
+
/** Whether the button is currently pressed. */
|
|
12
16
|
isPressed: boolean;
|
|
13
17
|
}
|
|
14
18
|
export declare function useButton(props: RNAriaButtonProps): ButtonAria;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButton.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlE,UAAU,WAAY,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"useButton.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlE,UAAU,WAAY,SAAQ,WAAW;IACvC,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,EAAE,WAAW;CAAG;AAE7E,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,WAAW,EAAE,cAAc,CAAC;IAC5B,+CAA+C;IAC/C,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAgC9D"}
|
|
@@ -12,7 +12,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { usePress } from '@gluestack-ui/utils/aria';
|
|
13
13
|
import { mergeProps } from '@react-aria/utils';
|
|
14
14
|
export function useButton(props) {
|
|
15
|
-
let { isDisabled,
|
|
15
|
+
let { isDisabled,
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
onPress,
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
onPressStart,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
onPressEnd,
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
onPressChange } = props, rest = __rest(props, ["isDisabled", "onPress", "onPressStart", "onPressEnd", "onPressChange"]);
|
|
16
24
|
let { pressProps, isPressed } = usePress({
|
|
17
25
|
onPressStart,
|
|
18
26
|
onPressEnd,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButton.js","sourceRoot":"","sources":["../../../../src/button/aria/useButton.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkB/C,MAAM,UAAU,SAAS,CAAC,KAAwB;IAChD,IAAI,EACF,UAAU,
|
|
1
|
+
{"version":3,"file":"useButton.js","sourceRoot":"","sources":["../../../../src/button/aria/useButton.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkB/C,MAAM,UAAU,SAAS,CAAC,KAAwB;IAChD,IAAI,EACF,UAAU;IACV,aAAa;IACb,OAAO;IACP,aAAa;IACb,YAAY;IACZ,aAAa;IACb,UAAU;IACV,aAAa;IACb,aAAa,KAEX,KAAK,EADJ,IAAI,UACL,KAAK,EAXL,wEAWH,CAAQ,CAAC;IAEV,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC;QACvC,YAAY;QACZ,UAAU;QACV,aAAa;QACb,OAAO;QACP,UAAU;KACX,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,EAAE,IAAI,EAAE;QAC/C,eAAe,EAAE,UAAU;QAC3B,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,OAAO;QACL,SAAS;QACT,WAAW,EAAE,WAAW;KACzB,CAAC;AACJ,CAAC"}
|
|
@@ -6,8 +6,11 @@ export type AriaButtonProps = PressableProps & PressEvents & {
|
|
|
6
6
|
isDisabled: boolean;
|
|
7
7
|
};
|
|
8
8
|
export interface AriaToggleButtonProps extends AriaButtonProps {
|
|
9
|
+
/** Whether the element should be selected (controlled). */
|
|
9
10
|
isSelected?: boolean;
|
|
11
|
+
/** Whether the element should be selected (uncontrolled). */
|
|
10
12
|
defaultSelected?: boolean;
|
|
13
|
+
/** Handler that is called when the element's selection state changes. */
|
|
11
14
|
onChange?: (isSelected: boolean) => void;
|
|
12
15
|
}
|
|
13
16
|
export declare function useToggleButton(props: AriaToggleButtonProps, state: ToggleState): ButtonAria;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,cAAc,GAC1C,WAAW,GAAG;IACZ,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ,MAAM,WAAW,qBAAsB,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"useToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,cAAc,GAC1C,WAAW,GAAG;IACZ,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,qBAAqB,EAC5B,KAAK,EAAE,WAAW,GACjB,UAAU,CAaZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleButton.js","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToggleButton.js","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAc,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkBtD,MAAM,UAAU,eAAe,CAC7B,KAA4B,EAC5B,KAAkB;IAElB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,SAAS,iCACvC,KAAK,KACR,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,IAC3C,CAAC;IAEH,OAAO;QACL,SAAS;QACT,WAAW,EAAE,UAAU,CAAC,WAAW,EAAE;YACnC,eAAe,EAAE,UAAU;SAC5B,CAAC;KACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
2
|
import { AriaToggleButtonProps } from '@react-types/button';
|
|
3
3
|
import { ToggleState } from '@react-stately/toggle';
|
|
4
|
+
/**
|
|
5
|
+
* Provides the behavior and accessibility implementation for a toggle button component.
|
|
6
|
+
* ToggleButtons allow users to toggle a selection on or off, for example switching between two states or modes.
|
|
7
|
+
*/
|
|
4
8
|
export declare function useToggleButton(props: AriaToggleButtonProps<ElementType>, state: ToggleState): any;
|
|
5
9
|
//# sourceMappingURL=useToggleButton.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleButton.web.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.web.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useToggleButton.web.d.ts","sourceRoot":"","sources":["../../../../src/button/aria/useToggleButton.web.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,qBAAqB,CAAC,WAAW,CAAC,EACzC,KAAK,EAAE,WAAW,GACjB,GAAG,CAkBL"}
|