@rupe/v-datepicker 1.0.0-alpha.0
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/LICENSE +21 -0
- package/dist/components/Calendar/CalendarCell.d.ts +17 -0
- package/dist/components/Calendar/CalendarCell.vue.js +34 -0
- package/dist/components/Calendar/CalendarCell.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarCell.vue2.js +5 -0
- package/dist/components/Calendar/CalendarCell.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarCellTrigger.d.ts +72 -0
- package/dist/components/Calendar/CalendarCellTrigger.vue.js +159 -0
- package/dist/components/Calendar/CalendarCellTrigger.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarCellTrigger.vue2.js +5 -0
- package/dist/components/Calendar/CalendarCellTrigger.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarGrid.d.ts +13 -0
- package/dist/components/Calendar/CalendarGrid.vue.js +40 -0
- package/dist/components/Calendar/CalendarGrid.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarGrid.vue2.js +5 -0
- package/dist/components/Calendar/CalendarGrid.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarGridBody.d.ts +13 -0
- package/dist/components/Calendar/CalendarGridBody.vue.js +25 -0
- package/dist/components/Calendar/CalendarGridBody.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarGridBody.vue2.js +5 -0
- package/dist/components/Calendar/CalendarGridBody.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarGridHead.d.ts +13 -0
- package/dist/components/Calendar/CalendarGridHead.vue.js +25 -0
- package/dist/components/Calendar/CalendarGridHead.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarGridHead.vue2.js +5 -0
- package/dist/components/Calendar/CalendarGridHead.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarGridRow.d.ts +13 -0
- package/dist/components/Calendar/CalendarGridRow.vue.js +25 -0
- package/dist/components/Calendar/CalendarGridRow.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarGridRow.vue2.js +5 -0
- package/dist/components/Calendar/CalendarGridRow.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarHeadCell.d.ts +13 -0
- package/dist/components/Calendar/CalendarHeadCell.vue.js +25 -0
- package/dist/components/Calendar/CalendarHeadCell.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarHeadCell.vue2.js +5 -0
- package/dist/components/Calendar/CalendarHeadCell.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarHeader.d.ts +13 -0
- package/dist/components/Calendar/CalendarHeader.vue.js +25 -0
- package/dist/components/Calendar/CalendarHeader.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarHeader.vue2.js +5 -0
- package/dist/components/Calendar/CalendarHeader.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarHeading.d.ts +21 -0
- package/dist/components/Calendar/CalendarHeading.vue.js +33 -0
- package/dist/components/Calendar/CalendarHeading.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarHeading.vue2.js +5 -0
- package/dist/components/Calendar/CalendarHeading.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarMonthHeading.d.ts +22 -0
- package/dist/components/Calendar/CalendarMonthHeading.vue.js +49 -0
- package/dist/components/Calendar/CalendarMonthHeading.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarMonthHeading.vue2.js +5 -0
- package/dist/components/Calendar/CalendarMonthHeading.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarMonthYearOverlay.d.ts +27 -0
- package/dist/components/Calendar/CalendarMonthYearOverlay.vue.js +61 -0
- package/dist/components/Calendar/CalendarMonthYearOverlay.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarMonthYearOverlay.vue2.js +5 -0
- package/dist/components/Calendar/CalendarMonthYearOverlay.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarNext.d.ts +21 -0
- package/dist/components/Calendar/CalendarNext.vue.js +42 -0
- package/dist/components/Calendar/CalendarNext.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarNext.vue2.js +5 -0
- package/dist/components/Calendar/CalendarNext.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarOverlayItem.d.ts +24 -0
- package/dist/components/Calendar/CalendarOverlayItem.vue.js +34 -0
- package/dist/components/Calendar/CalendarOverlayItem.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarOverlayItem.vue2.js +5 -0
- package/dist/components/Calendar/CalendarOverlayItem.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarPrev.d.ts +21 -0
- package/dist/components/Calendar/CalendarPrev.vue.js +42 -0
- package/dist/components/Calendar/CalendarPrev.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarPrev.vue2.js +5 -0
- package/dist/components/Calendar/CalendarPrev.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarRoot.d.ts +210 -0
- package/dist/components/Calendar/CalendarRoot.vue.js +253 -0
- package/dist/components/Calendar/CalendarRoot.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarRoot.vue2.js +8 -0
- package/dist/components/Calendar/CalendarRoot.vue2.js.map +1 -0
- package/dist/components/Calendar/CalendarYearHeading.d.ts +22 -0
- package/dist/components/Calendar/CalendarYearHeading.vue.js +49 -0
- package/dist/components/Calendar/CalendarYearHeading.vue.js.map +1 -0
- package/dist/components/Calendar/CalendarYearHeading.vue2.js +5 -0
- package/dist/components/Calendar/CalendarYearHeading.vue2.js.map +1 -0
- package/dist/components/Calendar/index.d.ts +15 -0
- package/dist/components/Calendar/useCalendar.d.ts +50 -0
- package/dist/components/Calendar/useCalendar.js +317 -0
- package/dist/components/Calendar/useCalendar.js.map +1 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +51 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.js +7 -0
- package/dist/components/ConfigProvider/ConfigProvider.vue.js.map +1 -0
- package/dist/components/ConfigProvider/index.d.ts +1 -0
- package/dist/components/DateField/DateFieldInput.d.ts +15 -0
- package/dist/components/DateField/DateFieldInput.vue.js +70 -0
- package/dist/components/DateField/DateFieldInput.vue.js.map +1 -0
- package/dist/components/DateField/DateFieldInput.vue2.js +5 -0
- package/dist/components/DateField/DateFieldInput.vue2.js.map +1 -0
- package/dist/components/DateField/DateFieldRoot.d.ts +151 -0
- package/dist/components/DateField/DateFieldRoot.vue.js +237 -0
- package/dist/components/DateField/DateFieldRoot.vue.js.map +1 -0
- package/dist/components/DateField/DateFieldRoot.vue2.js +8 -0
- package/dist/components/DateField/DateFieldRoot.vue2.js.map +1 -0
- package/dist/components/DateField/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePickerAnchor.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerAnchor.vue.js +29 -0
- package/dist/components/DatePicker/DatePickerAnchor.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerAnchor.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerAnchor.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerArrow.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerArrow.vue.js +31 -0
- package/dist/components/DatePicker/DatePickerArrow.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerArrow.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerArrow.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCalendar.d.ts +17 -0
- package/dist/components/DatePicker/DatePickerCalendar.vue.js +60 -0
- package/dist/components/DatePicker/DatePickerCalendar.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCalendar.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerCalendar.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCell.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerCell.vue.js +28 -0
- package/dist/components/DatePicker/DatePickerCell.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCell.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerCell.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCellTrigger.d.ts +10 -0
- package/dist/components/DatePicker/DatePickerCellTrigger.vue.js +29 -0
- package/dist/components/DatePicker/DatePickerCellTrigger.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerCellTrigger.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerCellTrigger.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerClose.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerClose.vue.js +28 -0
- package/dist/components/DatePicker/DatePickerClose.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerClose.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerClose.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerContent.d.ts +31 -0
- package/dist/components/DatePicker/DatePickerContent.vue.js +69 -0
- package/dist/components/DatePicker/DatePickerContent.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerContent.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerContent.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerField.d.ts +16 -0
- package/dist/components/DatePicker/DatePickerField.vue.js +55 -0
- package/dist/components/DatePicker/DatePickerField.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerField.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerField.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGrid.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerGrid.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerGrid.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGrid.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerGrid.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridBody.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerGridBody.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerGridBody.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridBody.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerGridBody.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridHead.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerGridHead.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerGridHead.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridHead.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerGridHead.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridRow.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerGridRow.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerGridRow.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerGridRow.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerGridRow.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeadCell.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerHeadCell.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerHeadCell.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeadCell.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerHeadCell.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeader.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerHeader.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerHeader.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeader.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerHeader.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeading.d.ts +19 -0
- package/dist/components/DatePicker/DatePickerHeading.vue.js +29 -0
- package/dist/components/DatePicker/DatePickerHeading.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerHeading.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerHeading.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerInput.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerInput.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerInput.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerInput.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerInput.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerMonthHeading.d.ts +13 -0
- package/dist/components/DatePicker/DatePickerMonthHeading.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerMonthHeading.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerMonthHeading.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerMonthHeading.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerMonthYearOverlay.d.ts +24 -0
- package/dist/components/DatePicker/DatePickerMonthYearOverlay.vue.js +30 -0
- package/dist/components/DatePicker/DatePickerMonthYearOverlay.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerMonthYearOverlay.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerMonthYearOverlay.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerNext.d.ts +10 -0
- package/dist/components/DatePicker/DatePickerNext.vue.js +28 -0
- package/dist/components/DatePicker/DatePickerNext.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerNext.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerNext.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerOverlayItem.d.ts +19 -0
- package/dist/components/DatePicker/DatePickerOverlayItem.vue.js +25 -0
- package/dist/components/DatePicker/DatePickerOverlayItem.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerOverlayItem.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerOverlayItem.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerPrev.d.ts +10 -0
- package/dist/components/DatePicker/DatePickerPrev.vue.js +28 -0
- package/dist/components/DatePicker/DatePickerPrev.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerPrev.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerPrev.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerRoot.d.ts +84 -0
- package/dist/components/DatePicker/DatePickerRoot.vue.js +169 -0
- package/dist/components/DatePicker/DatePickerRoot.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerRoot.vue2.js +8 -0
- package/dist/components/DatePicker/DatePickerRoot.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerTrigger.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerTrigger.vue.js +37 -0
- package/dist/components/DatePicker/DatePickerTrigger.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerTrigger.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerTrigger.vue2.js.map +1 -0
- package/dist/components/DatePicker/DatePickerYearHeading.d.ts +13 -0
- package/dist/components/DatePicker/DatePickerYearHeading.vue.js +27 -0
- package/dist/components/DatePicker/DatePickerYearHeading.vue.js.map +1 -0
- package/dist/components/DatePicker/DatePickerYearHeading.vue2.js +5 -0
- package/dist/components/DatePicker/DatePickerYearHeading.vue2.js.map +1 -0
- package/dist/components/DatePicker/index.d.ts +24 -0
- package/dist/components/DismissableLayer/DismissableLayer.d.ts +67 -0
- package/dist/components/DismissableLayer/DismissableLayer.vue.js +118 -0
- package/dist/components/DismissableLayer/DismissableLayer.vue.js.map +1 -0
- package/dist/components/DismissableLayer/DismissableLayer.vue2.js +7 -0
- package/dist/components/DismissableLayer/DismissableLayer.vue2.js.map +1 -0
- package/dist/components/DismissableLayer/DismissableLayerBranch.d.ts +11 -0
- package/dist/components/DismissableLayer/index.d.ts +3 -0
- package/dist/components/DismissableLayer/utils.d.ts +28 -0
- package/dist/components/DismissableLayer/utils.js +112 -0
- package/dist/components/DismissableLayer/utils.js.map +1 -0
- package/dist/components/FocusScope/FocusScope.d.ts +82 -0
- package/dist/components/FocusScope/FocusScope.test.d.ts +1 -0
- package/dist/components/FocusScope/FocusScope.vue.js +149 -0
- package/dist/components/FocusScope/FocusScope.vue.js.map +1 -0
- package/dist/components/FocusScope/FocusScope.vue2.js +5 -0
- package/dist/components/FocusScope/FocusScope.vue2.js.map +1 -0
- package/dist/components/FocusScope/index.d.ts +1 -0
- package/dist/components/FocusScope/stack.d.ts +12 -0
- package/dist/components/FocusScope/stack.js +38 -0
- package/dist/components/FocusScope/stack.js.map +1 -0
- package/dist/components/FocusScope/utils.d.ts +46 -0
- package/dist/components/FocusScope/utils.js +70 -0
- package/dist/components/FocusScope/utils.js.map +1 -0
- package/dist/components/Popover/PopoverAnchor.d.ts +11 -0
- package/dist/components/Popover/PopoverAnchor.vue.js +37 -0
- package/dist/components/Popover/PopoverAnchor.vue.js.map +1 -0
- package/dist/components/Popover/PopoverAnchor.vue2.js +5 -0
- package/dist/components/Popover/PopoverAnchor.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverArrow.d.ts +15 -0
- package/dist/components/Popover/PopoverArrow.vue.js +31 -0
- package/dist/components/Popover/PopoverArrow.vue.js.map +1 -0
- package/dist/components/Popover/PopoverArrow.vue2.js +5 -0
- package/dist/components/Popover/PopoverArrow.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverClose.d.ts +13 -0
- package/dist/components/Popover/PopoverClose.vue.js +34 -0
- package/dist/components/Popover/PopoverClose.vue.js.map +1 -0
- package/dist/components/Popover/PopoverClose.vue2.js +5 -0
- package/dist/components/Popover/PopoverClose.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverContent.d.ts +32 -0
- package/dist/components/Popover/PopoverContent.vue.js +61 -0
- package/dist/components/Popover/PopoverContent.vue.js.map +1 -0
- package/dist/components/Popover/PopoverContent.vue2.js +5 -0
- package/dist/components/Popover/PopoverContent.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverContentImpl.d.ts +47 -0
- package/dist/components/Popover/PopoverContentImpl.vue.js +97 -0
- package/dist/components/Popover/PopoverContentImpl.vue.js.map +1 -0
- package/dist/components/Popover/PopoverContentImpl.vue2.js +5 -0
- package/dist/components/Popover/PopoverContentImpl.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverContentNonModal.d.ts +32 -0
- package/dist/components/Popover/PopoverContentNonModal.vue.js +78 -0
- package/dist/components/Popover/PopoverContentNonModal.vue.js.map +1 -0
- package/dist/components/Popover/PopoverContentNonModal.vue2.js +5 -0
- package/dist/components/Popover/PopoverContentNonModal.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverPortal.d.ts +11 -0
- package/dist/components/Popover/PopoverPortal.vue.js +26 -0
- package/dist/components/Popover/PopoverPortal.vue.js.map +1 -0
- package/dist/components/Popover/PopoverPortal.vue2.js +5 -0
- package/dist/components/Popover/PopoverPortal.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverRoot.d.ts +55 -0
- package/dist/components/Popover/PopoverRoot.vue.js +55 -0
- package/dist/components/Popover/PopoverRoot.vue.js.map +1 -0
- package/dist/components/Popover/PopoverRoot.vue2.js +8 -0
- package/dist/components/Popover/PopoverRoot.vue2.js.map +1 -0
- package/dist/components/Popover/PopoverTrigger.d.ts +13 -0
- package/dist/components/Popover/PopoverTrigger.vue.js +51 -0
- package/dist/components/Popover/PopoverTrigger.vue.js.map +1 -0
- package/dist/components/Popover/PopoverTrigger.vue2.js +5 -0
- package/dist/components/Popover/PopoverTrigger.vue2.js.map +1 -0
- package/dist/components/Popover/index.d.ts +7 -0
- package/dist/components/Popper/PopperAnchor.d.ts +19 -0
- package/dist/components/Popper/PopperAnchor.vue.js +37 -0
- package/dist/components/Popper/PopperAnchor.vue.js.map +1 -0
- package/dist/components/Popper/PopperAnchor.vue2.js +5 -0
- package/dist/components/Popper/PopperAnchor.vue2.js.map +1 -0
- package/dist/components/Popper/PopperArrow.d.ts +15 -0
- package/dist/components/Popper/PopperArrow.vue.js +76 -0
- package/dist/components/Popper/PopperArrow.vue.js.map +1 -0
- package/dist/components/Popper/PopperArrow.vue2.js +5 -0
- package/dist/components/Popper/PopperArrow.vue2.js.map +1 -0
- package/dist/components/Popper/PopperContent.d.ts +179 -0
- package/dist/components/Popper/PopperContent.vue.js +9 -0
- package/dist/components/Popper/PopperContent.vue.js.map +1 -0
- package/dist/components/Popper/PopperContent.vue2.js +230 -0
- package/dist/components/Popper/PopperContent.vue2.js.map +1 -0
- package/dist/components/Popper/PopperRoot.d.ts +19 -0
- package/dist/components/Popper/PopperRoot.vue.js +25 -0
- package/dist/components/Popper/PopperRoot.vue.js.map +1 -0
- package/dist/components/Popper/PopperRoot.vue2.js +8 -0
- package/dist/components/Popper/PopperRoot.vue2.js.map +1 -0
- package/dist/components/Popper/index.d.ts +5 -0
- package/dist/components/Popper/utils.d.ts +12 -0
- package/dist/components/Popper/utils.js +46 -0
- package/dist/components/Popper/utils.js.map +1 -0
- package/dist/components/Presence/Presence.d.ts +43 -0
- package/dist/components/Presence/Presence.js +61 -0
- package/dist/components/Presence/Presence.js.map +1 -0
- package/dist/components/Presence/index.d.ts +1 -0
- package/dist/components/Presence/usePresence.d.ts +4 -0
- package/dist/components/Presence/usePresence.js +131 -0
- package/dist/components/Presence/usePresence.js.map +1 -0
- package/dist/components/Primitive/Primitive.d.ts +39 -0
- package/dist/components/Primitive/Primitive.js +29 -0
- package/dist/components/Primitive/Primitive.js.map +1 -0
- package/dist/components/Primitive/Slot.d.ts +5 -0
- package/dist/components/Primitive/Slot.js +30 -0
- package/dist/components/Primitive/Slot.js.map +1 -0
- package/dist/components/Primitive/index.d.ts +3 -0
- package/dist/components/Primitive/usePrimitiveElement.d.ts +5 -0
- package/dist/components/Primitive/usePrimitiveElement.js +14 -0
- package/dist/components/Primitive/usePrimitiveElement.js.map +1 -0
- package/dist/components/Teleport/Teleport.d.ts +37 -0
- package/dist/components/Teleport/Teleport.vue.js +28 -0
- package/dist/components/Teleport/Teleport.vue.js.map +1 -0
- package/dist/components/Teleport/Teleport.vue2.js +5 -0
- package/dist/components/Teleport/Teleport.vue2.js.map +1 -0
- package/dist/components/Teleport/index.d.ts +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +16 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.vue.js +49 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.vue.js.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.vue2.js +5 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.vue2.js.map +1 -0
- package/dist/components/VisuallyHidden/VisuallyHiddenInput.d.ts +14 -0
- package/dist/components/VisuallyHidden/VisuallyHiddenInputBubble.d.ts +22 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/date/calendar.d.ts +59 -0
- package/dist/date/calendar.js +90 -0
- package/dist/date/calendar.js.map +1 -0
- package/dist/date/comparators.d.ts +80 -0
- package/dist/date/comparators.js +61 -0
- package/dist/date/comparators.js.map +1 -0
- package/dist/date/index.d.ts +3 -0
- package/dist/date/types.d.ts +28 -0
- package/dist/date/utils.d.ts +12 -0
- package/dist/date/utils.js +10 -0
- package/dist/date/utils.js.map +1 -0
- package/dist/index.cjs +9097 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +722 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +626 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +174 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +155 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_vue@1.1.9_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +180 -0
- package/dist/node_modules/.pnpm/@floating-ui_vue@1.1.9_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/BuddhistCalendar.js +34 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/BuddhistCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/CalendarDate.js +213 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/DateFormatter.js +116 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/DateFormatter.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/EthiopicCalendar.js +129 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/EthiopicCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/GregorianCalendar.js +123 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/GregorianCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/HebrewCalendar.js +114 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/HebrewCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/IndianCalendar.js +77 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/IndianCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/IslamicCalendar.js +141 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/IslamicCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/JapaneseCalendar.js +155 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/JapaneseCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/PersianCalendar.js +59 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/PersianCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/TaiwanCalendar.js +59 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/TaiwanCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/conversion.js +170 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/conversion.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/createCalendar.js +44 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/createCalendar.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/manipulation.js +301 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/manipulation.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/queries.js +141 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/queries.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/string.js +35 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/string.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/utils.js +7 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/weekStartData.js +101 -0
- package/dist/node_modules/.pnpm/@internationalized_date@3.10.1/node_modules/@internationalized/date/dist/weekStartData.js.map +1 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.18/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +9 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.18/node_modules/@swc/helpers/esm/_check_private_redeclaration.js.map +1 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.18/node_modules/@swc/helpers/esm/_class_private_field_init.js +9 -0
- package/dist/node_modules/.pnpm/@swc_helpers@0.5.18/node_modules/@swc/helpers/esm/_class_private_field_init.js.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +140 -0
- package/dist/node_modules/.pnpm/@vueuse_core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +88 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +60 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js.map +1 -0
- package/dist/shared/arrays.d.ts +37 -0
- package/dist/shared/component/Arrow.d.ts +34 -0
- package/dist/shared/component/Arrow.vue.js +45 -0
- package/dist/shared/component/Arrow.vue.js.map +1 -0
- package/dist/shared/component/Arrow.vue2.js +5 -0
- package/dist/shared/component/Arrow.vue2.js.map +1 -0
- package/dist/shared/component/BaseSeparator.d.ts +26 -0
- package/dist/shared/component/index.d.ts +2 -0
- package/dist/shared/constant/countryList.d.ts +1 -0
- package/dist/shared/constant/index.d.ts +1 -0
- package/dist/shared/createContext.d.ts +8 -0
- package/dist/shared/createContext.js +26 -0
- package/dist/shared/createContext.js.map +1 -0
- package/dist/shared/date/comparators.d.ts +27 -0
- package/dist/shared/date/comparators.js +27 -0
- package/dist/shared/date/comparators.js.map +1 -0
- package/dist/shared/date/index.d.ts +8 -0
- package/dist/shared/date/parser.d.ts +37 -0
- package/dist/shared/date/parser.js +161 -0
- package/dist/shared/date/parser.js.map +1 -0
- package/dist/shared/date/parts.d.ts +12 -0
- package/dist/shared/date/parts.js +17 -0
- package/dist/shared/date/parts.js.map +1 -0
- package/dist/shared/date/placeholders.d.ts +8 -0
- package/dist/shared/date/placeholders.js +196 -0
- package/dist/shared/date/placeholders.js.map +1 -0
- package/dist/shared/date/segment.d.ts +5 -0
- package/dist/shared/date/segment.js +44 -0
- package/dist/shared/date/segment.js.map +1 -0
- package/dist/shared/date/types.d.ts +37 -0
- package/dist/shared/date/useDateField.d.ts +142 -0
- package/dist/shared/date/useDateField.js +618 -0
- package/dist/shared/date/useDateField.js.map +1 -0
- package/dist/shared/date/utils.d.ts +11 -0
- package/dist/shared/date/utils.js +76 -0
- package/dist/shared/date/utils.js.map +1 -0
- package/dist/shared/getActiveElement.d.ts +1 -0
- package/dist/shared/getActiveElement.js +14 -0
- package/dist/shared/getActiveElement.js.map +1 -0
- package/dist/shared/handleAndDispatchCustomEvent.d.ts +3 -0
- package/dist/shared/handleAndDispatchCustomEvent.js +15 -0
- package/dist/shared/handleAndDispatchCustomEvent.js.map +1 -0
- package/dist/shared/index.d.ts +22 -0
- package/dist/shared/nullish.d.ts +1 -0
- package/dist/shared/nullish.js +7 -0
- package/dist/shared/nullish.js.map +1 -0
- package/dist/shared/onFocusOutside.d.ts +2 -0
- package/dist/shared/renderSlotFragments.d.ts +2 -0
- package/dist/shared/renderSlotFragments.js +14 -0
- package/dist/shared/renderSlotFragments.js.map +1 -0
- package/dist/shared/trap-focus.d.ts +1 -0
- package/dist/shared/types.d.ts +48 -0
- package/dist/shared/useDateFormatter.d.ts +30 -0
- package/dist/shared/useDateFormatter.js +121 -0
- package/dist/shared/useDateFormatter.js.map +1 -0
- package/dist/shared/useDirection.d.ts +8 -0
- package/dist/shared/useDirection.js +12 -0
- package/dist/shared/useDirection.js.map +1 -0
- package/dist/shared/useEmitAsProps.d.ts +10 -0
- package/dist/shared/useEmitAsProps.js +19 -0
- package/dist/shared/useEmitAsProps.js.map +1 -0
- package/dist/shared/useFocusGuards.d.ts +5 -0
- package/dist/shared/useFocusGuards.js +39 -0
- package/dist/shared/useFocusGuards.js.map +1 -0
- package/dist/shared/useForwardExpose.d.ts +6 -0
- package/dist/shared/useForwardExpose.js +49 -0
- package/dist/shared/useForwardExpose.js.map +1 -0
- package/dist/shared/useForwardProps.d.ts +9 -0
- package/dist/shared/useForwardProps.js +27 -0
- package/dist/shared/useForwardProps.js.map +1 -0
- package/dist/shared/useForwardPropsEmits.d.ts +14 -0
- package/dist/shared/useForwardPropsEmits.js +15 -0
- package/dist/shared/useForwardPropsEmits.js.map +1 -0
- package/dist/shared/useId.d.ts +9 -0
- package/dist/shared/useId.js +19 -0
- package/dist/shared/useId.js.map +1 -0
- package/dist/shared/useIsUsingKeyboard.d.ts +3 -0
- package/dist/shared/useKbd.d.ts +78 -0
- package/dist/shared/useKbd.js +42 -0
- package/dist/shared/useKbd.js.map +1 -0
- package/dist/shared/useLocale.d.ts +7 -0
- package/dist/shared/useLocale.js +12 -0
- package/dist/shared/useLocale.js.map +1 -0
- package/dist/shared/useNonce.d.ts +2 -0
- package/dist/shared/useSize.d.ts +5 -0
- package/dist/shared/useSize.js +44 -0
- package/dist/shared/useSize.js.map +1 -0
- package/dist/shared/useStateMachine.d.ts +25 -0
- package/dist/shared/useStateMachine.js +19 -0
- package/dist/shared/useStateMachine.js.map +1 -0
- package/dist/shared/withDefault.d.ts +22 -0
- package/package.json +72 -0
- package/src/components/Calendar/CalendarCell.vue +39 -0
- package/src/components/Calendar/CalendarCellTrigger.vue +206 -0
- package/src/components/Calendar/CalendarGrid.vue +35 -0
- package/src/components/Calendar/CalendarGridBody.vue +19 -0
- package/src/components/Calendar/CalendarGridHead.vue +19 -0
- package/src/components/Calendar/CalendarGridRow.vue +17 -0
- package/src/components/Calendar/CalendarHeadCell.vue +17 -0
- package/src/components/Calendar/CalendarHeader.vue +17 -0
- package/src/components/Calendar/CalendarHeading.vue +32 -0
- package/src/components/Calendar/CalendarMonthHeading.vue +65 -0
- package/src/components/Calendar/CalendarMonthYearOverlay.vue +48 -0
- package/src/components/Calendar/CalendarNext.vue +51 -0
- package/src/components/Calendar/CalendarOverlayItem.vue +30 -0
- package/src/components/Calendar/CalendarPrev.vue +51 -0
- package/src/components/Calendar/CalendarRoot.vue +394 -0
- package/src/components/Calendar/CalendarYearHeading.vue +63 -0
- package/src/components/Calendar/index.ts +63 -0
- package/src/components/Calendar/useCalendar.ts +453 -0
- package/src/components/ConfigProvider/ConfigProvider.vue +73 -0
- package/src/components/ConfigProvider/index.ts +5 -0
- package/src/components/DateField/DateFieldInput.vue +72 -0
- package/src/components/DateField/DateFieldRoot.vue +359 -0
- package/src/components/DateField/index.ts +10 -0
- package/src/components/DatePicker/DatePickerAnchor.vue +16 -0
- package/src/components/DatePicker/DatePickerArrow.vue +16 -0
- package/src/components/DatePicker/DatePickerCalendar.vue +62 -0
- package/src/components/DatePicker/DatePickerCell.vue +16 -0
- package/src/components/DatePicker/DatePickerCellTrigger.vue +18 -0
- package/src/components/DatePicker/DatePickerClose.vue +16 -0
- package/src/components/DatePicker/DatePickerContent.vue +50 -0
- package/src/components/DatePicker/DatePickerField.vue +53 -0
- package/src/components/DatePicker/DatePickerGrid.vue +16 -0
- package/src/components/DatePicker/DatePickerGridBody.vue +16 -0
- package/src/components/DatePicker/DatePickerGridHead.vue +16 -0
- package/src/components/DatePicker/DatePickerGridRow.vue +16 -0
- package/src/components/DatePicker/DatePickerHeadCell.vue +16 -0
- package/src/components/DatePicker/DatePickerHeader.vue +16 -0
- package/src/components/DatePicker/DatePickerHeading.vue +24 -0
- package/src/components/DatePicker/DatePickerInput.vue +16 -0
- package/src/components/DatePicker/DatePickerMonthHeading.vue +19 -0
- package/src/components/DatePicker/DatePickerMonthYearOverlay.vue +13 -0
- package/src/components/DatePicker/DatePickerNext.vue +19 -0
- package/src/components/DatePicker/DatePickerOverlayItem.vue +16 -0
- package/src/components/DatePicker/DatePickerPrev.vue +18 -0
- package/src/components/DatePicker/DatePickerRoot.vue +216 -0
- package/src/components/DatePicker/DatePickerTrigger.vue +29 -0
- package/src/components/DatePicker/DatePickerYearHeading.vue +19 -0
- package/src/components/DatePicker/index.ts +92 -0
- package/src/components/DismissableLayer/DismissableLayer.vue +175 -0
- package/src/components/DismissableLayer/DismissableLayerBranch.vue +28 -0
- package/src/components/DismissableLayer/index.ts +7 -0
- package/src/components/DismissableLayer/utils.ts +194 -0
- package/src/components/FocusScope/FocusScope.vue +220 -0
- package/src/components/FocusScope/index.ts +5 -0
- package/src/components/FocusScope/stack.ts +49 -0
- package/src/components/FocusScope/utils.ts +108 -0
- package/src/components/Popover/PopoverAnchor.vue +30 -0
- package/src/components/Popover/PopoverArrow.vue +23 -0
- package/src/components/Popover/PopoverClose.vue +29 -0
- package/src/components/Popover/PopoverContent.vue +41 -0
- package/src/components/Popover/PopoverContentImpl.vue +97 -0
- package/src/components/Popover/PopoverContentNonModal.vue +74 -0
- package/src/components/Popover/PopoverPortal.vue +17 -0
- package/src/components/Popover/PopoverRoot.vue +83 -0
- package/src/components/Popover/PopoverTrigger.vue +48 -0
- package/src/components/Popover/index.ts +31 -0
- package/src/components/Popper/PopperAnchor.vue +36 -0
- package/src/components/Popper/PopperArrow.vue +81 -0
- package/src/components/Popper/PopperContent.vue +399 -0
- package/src/components/Popper/PopperRoot.vue +36 -0
- package/src/components/Popper/index.ts +15 -0
- package/src/components/Popper/utils.ts +63 -0
- package/src/components/Presence/Presence.ts +91 -0
- package/src/components/Presence/index.ts +1 -0
- package/src/components/Presence/usePresence.ts +175 -0
- package/src/components/Primitive/Primitive.ts +66 -0
- package/src/components/Primitive/Slot.ts +40 -0
- package/src/components/Primitive/index.ts +3 -0
- package/src/components/Primitive/usePrimitiveElement.ts +13 -0
- package/src/components/Teleport/Teleport.vue +49 -0
- package/src/components/Teleport/index.ts +1 -0
- package/src/components/VisuallyHidden/VisuallyHidden.vue +47 -0
- package/src/components/VisuallyHidden/VisuallyHiddenInput.vue +67 -0
- package/src/components/VisuallyHidden/VisuallyHiddenInputBubble.vue +56 -0
- package/src/components/VisuallyHidden/index.ts +2 -0
- package/src/date/calendar.ts +242 -0
- package/src/date/comparators.ts +199 -0
- package/src/date/index.ts +3 -0
- package/src/date/types.ts +37 -0
- package/src/date/utils.ts +18 -0
- package/src/index.ts +78 -0
- package/src/shared/arrays.ts +66 -0
- package/src/shared/component/Arrow.vue +55 -0
- package/src/shared/component/BaseSeparator.vue +57 -0
- package/src/shared/component/index.ts +2 -0
- package/src/shared/constant/countryList.ts +251 -0
- package/src/shared/constant/index.ts +1 -0
- package/src/shared/createContext.ts +57 -0
- package/src/shared/date/comparators.ts +74 -0
- package/src/shared/date/index.ts +42 -0
- package/src/shared/date/parser.ts +252 -0
- package/src/shared/date/parts.ts +32 -0
- package/src/shared/date/placeholders.ts +221 -0
- package/src/shared/date/segment.ts +50 -0
- package/src/shared/date/types.ts +50 -0
- package/src/shared/date/useDateField.ts +998 -0
- package/src/shared/date/utils.ts +84 -0
- package/src/shared/getActiveElement.ts +12 -0
- package/src/shared/handleAndDispatchCustomEvent.ts +21 -0
- package/src/shared/index.ts +27 -0
- package/src/shared/nullish.ts +3 -0
- package/src/shared/onFocusOutside.ts +29 -0
- package/src/shared/renderSlotFragments.ts +13 -0
- package/src/shared/trap-focus.ts +45 -0
- package/src/shared/types.ts +64 -0
- package/src/shared/useDateFormatter.ts +186 -0
- package/src/shared/useDirection.ts +16 -0
- package/src/shared/useEmitAsProps.ts +32 -0
- package/src/shared/useFocusGuards.ts +46 -0
- package/src/shared/useForwardExpose.ts +66 -0
- package/src/shared/useForwardProps.ts +43 -0
- package/src/shared/useForwardPropsEmits.ts +26 -0
- package/src/shared/useId.ts +34 -0
- package/src/shared/useIsUsingKeyboard.ts +22 -0
- package/src/shared/useKbd.ts +58 -0
- package/src/shared/useLocale.ts +15 -0
- package/src/shared/useNonce.ts +10 -0
- package/src/shared/useSize.ts +64 -0
- package/src/shared/useStateMachine.ts +48 -0
- package/src/shared/withDefault.ts +61 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ref, watch, nextTick, onUnmounted, computed } from "vue";
|
|
2
|
+
import { defaultWindow } from "../../node_modules/.pnpm/@vueuse_core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js";
|
|
3
|
+
import { isClient } from "../../node_modules/.pnpm/@vueuse_shared@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
4
|
+
import { useStateMachine } from "../../shared/useStateMachine.js";
|
|
5
|
+
function usePresence(present, node) {
|
|
6
|
+
const stylesRef = ref({});
|
|
7
|
+
const prevAnimationNameRef = ref("none");
|
|
8
|
+
const prevPresentRef = ref(present);
|
|
9
|
+
const initialState = present.value ? "mounted" : "unmounted";
|
|
10
|
+
let timeoutId;
|
|
11
|
+
const ownerWindow = node.value?.ownerDocument.defaultView ?? defaultWindow;
|
|
12
|
+
const { state, dispatch } = useStateMachine(initialState, {
|
|
13
|
+
mounted: {
|
|
14
|
+
UNMOUNT: "unmounted",
|
|
15
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
16
|
+
},
|
|
17
|
+
unmountSuspended: {
|
|
18
|
+
MOUNT: "mounted",
|
|
19
|
+
ANIMATION_END: "unmounted"
|
|
20
|
+
},
|
|
21
|
+
unmounted: {
|
|
22
|
+
MOUNT: "mounted"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const dispatchCustomEvent = (name) => {
|
|
26
|
+
if (isClient) {
|
|
27
|
+
const customEvent = new CustomEvent(name, {
|
|
28
|
+
bubbles: false,
|
|
29
|
+
cancelable: false
|
|
30
|
+
});
|
|
31
|
+
node.value?.dispatchEvent(customEvent);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
watch(
|
|
35
|
+
present,
|
|
36
|
+
async (currentPresent, prevPresent) => {
|
|
37
|
+
const hasPresentChanged = prevPresent !== currentPresent;
|
|
38
|
+
await nextTick();
|
|
39
|
+
if (hasPresentChanged) {
|
|
40
|
+
const prevAnimationName = prevAnimationNameRef.value;
|
|
41
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
42
|
+
if (currentPresent) {
|
|
43
|
+
dispatch("MOUNT");
|
|
44
|
+
dispatchCustomEvent("enter");
|
|
45
|
+
if (currentAnimationName === "none")
|
|
46
|
+
dispatchCustomEvent("after-enter");
|
|
47
|
+
} else if (currentAnimationName === "none" || currentAnimationName === "undefined" || stylesRef.value?.display === "none") {
|
|
48
|
+
dispatch("UNMOUNT");
|
|
49
|
+
dispatchCustomEvent("leave");
|
|
50
|
+
dispatchCustomEvent("after-leave");
|
|
51
|
+
} else {
|
|
52
|
+
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
53
|
+
if (prevPresent && isAnimating) {
|
|
54
|
+
dispatch("ANIMATION_OUT");
|
|
55
|
+
dispatchCustomEvent("leave");
|
|
56
|
+
} else {
|
|
57
|
+
dispatch("UNMOUNT");
|
|
58
|
+
dispatchCustomEvent("after-leave");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{ immediate: true }
|
|
64
|
+
);
|
|
65
|
+
const handleAnimationEnd = (event) => {
|
|
66
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
67
|
+
const isCurrentAnimation = currentAnimationName.includes(
|
|
68
|
+
CSS.escape(event.animationName)
|
|
69
|
+
);
|
|
70
|
+
const directionName = state.value === "mounted" ? "enter" : "leave";
|
|
71
|
+
if (event.target === node.value && isCurrentAnimation) {
|
|
72
|
+
dispatchCustomEvent(`after-${directionName}`);
|
|
73
|
+
dispatch("ANIMATION_END");
|
|
74
|
+
if (!prevPresentRef.value) {
|
|
75
|
+
const currentFillMode = node.value.style.animationFillMode;
|
|
76
|
+
node.value.style.animationFillMode = "forwards";
|
|
77
|
+
timeoutId = ownerWindow?.setTimeout(() => {
|
|
78
|
+
if (node.value?.style.animationFillMode === "forwards") {
|
|
79
|
+
node.value.style.animationFillMode = currentFillMode;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (event.target === node.value && currentAnimationName === "none")
|
|
85
|
+
dispatch("ANIMATION_END");
|
|
86
|
+
};
|
|
87
|
+
const handleAnimationStart = (event) => {
|
|
88
|
+
if (event.target === node.value) {
|
|
89
|
+
prevAnimationNameRef.value = getAnimationName(node.value);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const watcher = watch(
|
|
93
|
+
node,
|
|
94
|
+
(newNode, oldNode) => {
|
|
95
|
+
if (newNode) {
|
|
96
|
+
stylesRef.value = getComputedStyle(newNode);
|
|
97
|
+
newNode.addEventListener("animationstart", handleAnimationStart);
|
|
98
|
+
newNode.addEventListener("animationcancel", handleAnimationEnd);
|
|
99
|
+
newNode.addEventListener("animationend", handleAnimationEnd);
|
|
100
|
+
} else {
|
|
101
|
+
dispatch("ANIMATION_END");
|
|
102
|
+
if (timeoutId !== void 0) ownerWindow?.clearTimeout(timeoutId);
|
|
103
|
+
oldNode?.removeEventListener("animationstart", handleAnimationStart);
|
|
104
|
+
oldNode?.removeEventListener("animationcancel", handleAnimationEnd);
|
|
105
|
+
oldNode?.removeEventListener("animationend", handleAnimationEnd);
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{ immediate: true }
|
|
109
|
+
);
|
|
110
|
+
const stateWatcher = watch(state, () => {
|
|
111
|
+
const currentAnimationName = getAnimationName(node.value);
|
|
112
|
+
prevAnimationNameRef.value = state.value === "mounted" ? currentAnimationName : "none";
|
|
113
|
+
});
|
|
114
|
+
onUnmounted(() => {
|
|
115
|
+
watcher();
|
|
116
|
+
stateWatcher();
|
|
117
|
+
});
|
|
118
|
+
const isPresent = computed(
|
|
119
|
+
() => ["mounted", "unmountSuspended"].includes(state.value)
|
|
120
|
+
);
|
|
121
|
+
return {
|
|
122
|
+
isPresent
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function getAnimationName(node) {
|
|
126
|
+
return node ? getComputedStyle(node).animationName || "none" : "none";
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
usePresence
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=usePresence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePresence.js","sources":["../../../src/components/Presence/usePresence.ts"],"sourcesContent":["import type { Ref } from \"vue\";\nimport { useStateMachine } from \"../../shared\";\nimport { defaultWindow } from \"@vueuse/core\";\nimport { isClient } from \"@vueuse/shared\";\nimport { computed, nextTick, onUnmounted, ref, watch } from \"vue\";\n\nexport function usePresence(\n present: Ref<boolean>,\n node: Ref<HTMLElement | undefined>,\n) {\n const stylesRef = ref<CSSStyleDeclaration>({} as any);\n const prevAnimationNameRef = ref<string>(\"none\");\n const prevPresentRef = ref(present);\n const initialState = present.value ? \"mounted\" : \"unmounted\";\n let timeoutId: number | undefined;\n const ownerWindow = node.value?.ownerDocument.defaultView ?? defaultWindow;\n\n const { state, dispatch } = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\",\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\",\n },\n unmounted: {\n MOUNT: \"mounted\",\n },\n });\n\n const dispatchCustomEvent = (\n name: \"enter\" | \"after-enter\" | \"leave\" | \"after-leave\",\n ) => {\n // We only dispatch this event because CustomEvent is not available in Node18\n // https://github.com/unovue/reka-ui/issues/930\n if (isClient) {\n const customEvent = new CustomEvent(name, {\n bubbles: false,\n cancelable: false,\n });\n node.value?.dispatchEvent(customEvent);\n }\n };\n\n watch(\n present,\n async (currentPresent, prevPresent) => {\n const hasPresentChanged = prevPresent !== currentPresent;\n await nextTick();\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.value;\n const currentAnimationName = getAnimationName(node.value);\n\n if (currentPresent) {\n dispatch(\"MOUNT\");\n dispatchCustomEvent(\"enter\");\n if (currentAnimationName === \"none\")\n dispatchCustomEvent(\"after-enter\");\n } else if (\n currentAnimationName === \"none\" ||\n currentAnimationName === \"undefined\" ||\n stylesRef.value?.display === \"none\"\n ) {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly rv\n dispatch(\"UNMOUNT\");\n dispatchCustomEvent(\"leave\");\n dispatchCustomEvent(\"after-leave\");\n } else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (prevPresent && isAnimating) {\n dispatch(\"ANIMATION_OUT\");\n dispatchCustomEvent(\"leave\");\n } else {\n dispatch(\"UNMOUNT\");\n dispatchCustomEvent(\"after-leave\");\n }\n }\n }\n },\n { immediate: true },\n );\n\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n const handleAnimationEnd = (event: AnimationEvent) => {\n const currentAnimationName = getAnimationName(node.value);\n const isCurrentAnimation = currentAnimationName.includes(\n CSS.escape(event.animationName),\n );\n const directionName = state.value === \"mounted\" ? \"enter\" : \"leave\";\n if (event.target === node.value && isCurrentAnimation) {\n dispatchCustomEvent(`after-${directionName}`);\n dispatch(\"ANIMATION_END\");\n\n if (!prevPresentRef.value) {\n const currentFillMode = node.value.style.animationFillMode;\n node.value.style.animationFillMode = \"forwards\";\n // Reset the style after the node had time to unmount (for cases\n // where the component chooses not to unmount). Doing this any\n // sooner than `setTimeout` (e.g. with `requestAnimationFrame`)\n // still causes a flash.\n timeoutId = ownerWindow?.setTimeout(() => {\n if (node.value?.style.animationFillMode === \"forwards\") {\n node.value.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n // if no animation, immediately trigger 'ANIMATION_END'\n if (event.target === node.value && currentAnimationName === \"none\")\n dispatch(\"ANIMATION_END\");\n };\n const handleAnimationStart = (event: AnimationEvent) => {\n if (event.target === node.value) {\n // if animation occurred, store its name as the previous animation.\n prevAnimationNameRef.value = getAnimationName(node.value);\n }\n };\n\n const watcher = watch(\n node,\n (newNode, oldNode) => {\n if (newNode) {\n stylesRef.value = getComputedStyle(newNode);\n newNode.addEventListener(\"animationstart\", handleAnimationStart);\n newNode.addEventListener(\"animationcancel\", handleAnimationEnd);\n newNode.addEventListener(\"animationend\", handleAnimationEnd);\n } else {\n // Transition to the unmounted state if the node is removed prematurely.\n // We avoid doing so during cleanup as the node may change but still exist.\n dispatch(\"ANIMATION_END\");\n\n if (timeoutId !== undefined) ownerWindow?.clearTimeout(timeoutId);\n oldNode?.removeEventListener(\"animationstart\", handleAnimationStart);\n oldNode?.removeEventListener(\"animationcancel\", handleAnimationEnd);\n oldNode?.removeEventListener(\"animationend\", handleAnimationEnd);\n }\n },\n { immediate: true },\n );\n\n const stateWatcher = watch(state, () => {\n const currentAnimationName = getAnimationName(node.value);\n prevAnimationNameRef.value =\n state.value === \"mounted\" ? currentAnimationName : \"none\";\n });\n\n onUnmounted(() => {\n watcher();\n stateWatcher();\n });\n\n const isPresent = computed(() =>\n [\"mounted\", \"unmountSuspended\"].includes(state.value),\n );\n\n return {\n isPresent,\n };\n}\n\nfunction getAnimationName(node?: HTMLElement) {\n return node ? getComputedStyle(node).animationName || \"none\" : \"none\";\n}\n"],"names":[],"mappings":";;;;AAMO,SAAS,YACd,SACA,MACA;AACA,QAAM,YAAY,IAAyB,EAAS;AACpD,QAAM,uBAAuB,IAAY,MAAM;AAC/C,QAAM,iBAAiB,IAAI,OAAO;AAClC,QAAM,eAAe,QAAQ,QAAQ,YAAY;AACjD,MAAI;AACJ,QAAM,cAAc,KAAK,OAAO,cAAc,eAAe;AAE7D,QAAM,EAAE,OAAO,aAAa,gBAAgB,cAAc;AAAA,IACxD,SAAS;AAAA,MACP,SAAS;AAAA,MACT,eAAe;AAAA,IAAA;AAAA,IAEjB,kBAAkB;AAAA,MAChB,OAAO;AAAA,MACP,eAAe;AAAA,IAAA;AAAA,IAEjB,WAAW;AAAA,MACT,OAAO;AAAA,IAAA;AAAA,EACT,CACD;AAED,QAAM,sBAAsB,CAC1B,SACG;AAGH,QAAI,UAAU;AACZ,YAAM,cAAc,IAAI,YAAY,MAAM;AAAA,QACxC,SAAS;AAAA,QACT,YAAY;AAAA,MAAA,CACb;AACD,WAAK,OAAO,cAAc,WAAW;AAAA,IACvC;AAAA,EACF;AAEA;AAAA,IACE;AAAA,IACA,OAAO,gBAAgB,gBAAgB;AACrC,YAAM,oBAAoB,gBAAgB;AAC1C,YAAM,SAAA;AACN,UAAI,mBAAmB;AACrB,cAAM,oBAAoB,qBAAqB;AAC/C,cAAM,uBAAuB,iBAAiB,KAAK,KAAK;AAExD,YAAI,gBAAgB;AAClB,mBAAS,OAAO;AAChB,8BAAoB,OAAO;AAC3B,cAAI,yBAAyB;AAC3B,gCAAoB,aAAa;AAAA,QACrC,WACE,yBAAyB,UACzB,yBAAyB,eACzB,UAAU,OAAO,YAAY,QAC7B;AAGA,mBAAS,SAAS;AAClB,8BAAoB,OAAO;AAC3B,8BAAoB,aAAa;AAAA,QACnC,OAAO;AAOL,gBAAM,cAAc,sBAAsB;AAC1C,cAAI,eAAe,aAAa;AAC9B,qBAAS,eAAe;AACxB,gCAAoB,OAAO;AAAA,UAC7B,OAAO;AACL,qBAAS,SAAS;AAClB,gCAAoB,aAAa;AAAA,UACnC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA,EAAE,WAAW,KAAA;AAAA,EAAK;AAQpB,QAAM,qBAAqB,CAAC,UAA0B;AACpD,UAAM,uBAAuB,iBAAiB,KAAK,KAAK;AACxD,UAAM,qBAAqB,qBAAqB;AAAA,MAC9C,IAAI,OAAO,MAAM,aAAa;AAAA,IAAA;AAEhC,UAAM,gBAAgB,MAAM,UAAU,YAAY,UAAU;AAC5D,QAAI,MAAM,WAAW,KAAK,SAAS,oBAAoB;AACrD,0BAAoB,SAAS,aAAa,EAAE;AAC5C,eAAS,eAAe;AAExB,UAAI,CAAC,eAAe,OAAO;AACzB,cAAM,kBAAkB,KAAK,MAAM,MAAM;AACzC,aAAK,MAAM,MAAM,oBAAoB;AAKrC,oBAAY,aAAa,WAAW,MAAM;AACxC,cAAI,KAAK,OAAO,MAAM,sBAAsB,YAAY;AACtD,iBAAK,MAAM,MAAM,oBAAoB;AAAA,UACvC;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAEA,QAAI,MAAM,WAAW,KAAK,SAAS,yBAAyB;AAC1D,eAAS,eAAe;AAAA,EAC5B;AACA,QAAM,uBAAuB,CAAC,UAA0B;AACtD,QAAI,MAAM,WAAW,KAAK,OAAO;AAE/B,2BAAqB,QAAQ,iBAAiB,KAAK,KAAK;AAAA,IAC1D;AAAA,EACF;AAEA,QAAM,UAAU;AAAA,IACd;AAAA,IACA,CAAC,SAAS,YAAY;AACpB,UAAI,SAAS;AACX,kBAAU,QAAQ,iBAAiB,OAAO;AAC1C,gBAAQ,iBAAiB,kBAAkB,oBAAoB;AAC/D,gBAAQ,iBAAiB,mBAAmB,kBAAkB;AAC9D,gBAAQ,iBAAiB,gBAAgB,kBAAkB;AAAA,MAC7D,OAAO;AAGL,iBAAS,eAAe;AAExB,YAAI,cAAc,OAAW,cAAa,aAAa,SAAS;AAChE,iBAAS,oBAAoB,kBAAkB,oBAAoB;AACnE,iBAAS,oBAAoB,mBAAmB,kBAAkB;AAClE,iBAAS,oBAAoB,gBAAgB,kBAAkB;AAAA,MACjE;AAAA,IACF;AAAA,IACA,EAAE,WAAW,KAAA;AAAA,EAAK;AAGpB,QAAM,eAAe,MAAM,OAAO,MAAM;AACtC,UAAM,uBAAuB,iBAAiB,KAAK,KAAK;AACxD,yBAAqB,QACnB,MAAM,UAAU,YAAY,uBAAuB;AAAA,EACvD,CAAC;AAED,cAAY,MAAM;AAChB,YAAA;AACA,iBAAA;AAAA,EACF,CAAC;AAED,QAAM,YAAY;AAAA,IAAS,MACzB,CAAC,WAAW,kBAAkB,EAAE,SAAS,MAAM,KAAK;AAAA,EAAA;AAGtD,SAAO;AAAA,IACL;AAAA,EAAA;AAEJ;AAEA,SAAS,iBAAiB,MAAoB;AAC5C,SAAO,OAAO,iBAAiB,IAAI,EAAE,iBAAiB,SAAS;AACjE;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component, PropType } from 'vue';
|
|
2
|
+
export type AsTag = 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | ({} & string);
|
|
3
|
+
export interface PrimitiveProps {
|
|
4
|
+
/**
|
|
5
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
6
|
+
*
|
|
7
|
+
* Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details.
|
|
8
|
+
*/
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The element or component this component should render as. Can be overwritten by `asChild`.
|
|
12
|
+
* @defaultValue "div"
|
|
13
|
+
*/
|
|
14
|
+
as?: AsTag | Component;
|
|
15
|
+
}
|
|
16
|
+
export declare const Primitive: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
asChild: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
as: {
|
|
22
|
+
type: PropType<AsTag | Component>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
asChild: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
as: {
|
|
33
|
+
type: PropType<AsTag | Component>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{}>, {
|
|
37
|
+
asChild: boolean;
|
|
38
|
+
as: AsTag | Component;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { Slot } from "./Slot.js";
|
|
3
|
+
const SELF_CLOSING_TAGS = ["area", "img", "input"];
|
|
4
|
+
const Primitive = defineComponent({
|
|
5
|
+
name: "Primitive",
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
props: {
|
|
8
|
+
asChild: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
},
|
|
12
|
+
as: {
|
|
13
|
+
type: [String, Object],
|
|
14
|
+
default: "div"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(props, { attrs, slots }) {
|
|
18
|
+
const asTag = props.asChild ? "template" : props.as;
|
|
19
|
+
if (typeof asTag === "string" && SELF_CLOSING_TAGS.includes(asTag))
|
|
20
|
+
return () => h(asTag, attrs);
|
|
21
|
+
if (asTag !== "template")
|
|
22
|
+
return () => h(props.as, attrs, { default: slots.default });
|
|
23
|
+
return () => h(Slot, attrs, { default: slots.default });
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
Primitive
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Primitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Primitive.js","sources":["../../../src/components/Primitive/Primitive.ts"],"sourcesContent":["import type { Component, PropType } from 'vue'\nimport { defineComponent, h } from 'vue'\nimport { Slot } from './Slot'\n\nexport type AsTag =\n | 'a'\n | 'button'\n | 'div'\n | 'form'\n | 'h2'\n | 'h3'\n | 'img'\n | 'input'\n | 'label'\n | 'li'\n | 'nav'\n | 'ol'\n | 'p'\n | 'span'\n | 'svg'\n | 'ul'\n | 'template'\n | ({} & string) // any other string\n\nexport interface PrimitiveProps {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * Read our [Composition](https://www.reka-ui.com/docs/guides/composition) guide for more details.\n */\n asChild?: boolean\n /**\n * The element or component this component should render as. Can be overwritten by `asChild`.\n * @defaultValue \"div\"\n */\n as?: AsTag | Component\n}\n\n// For self closing tags, don't provide default slots because of hydration issue\nconst SELF_CLOSING_TAGS = ['area', 'img', 'input']\n\nexport const Primitive = defineComponent({\n name: 'Primitive',\n inheritAttrs: false,\n props: {\n asChild: {\n type: Boolean,\n default: false,\n },\n as: {\n type: [String, Object] as PropType<AsTag | Component>,\n default: 'div',\n },\n },\n setup(props, { attrs, slots }) {\n const asTag = props.asChild ? 'template' : props.as\n\n if (typeof asTag === 'string' && SELF_CLOSING_TAGS.includes(asTag))\n return () => h(asTag, attrs)\n\n if (asTag !== 'template')\n return () => h(props.as, attrs, { default: slots.default })\n\n return () => h(Slot, attrs, { default: slots.default })\n },\n})\n"],"names":[],"mappings":";;AAuCA,MAAM,oBAAoB,CAAC,QAAQ,OAAO,OAAO;AAE1C,MAAM,YAAY,gBAAgB;AAAA,EACvC,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,IAEX,IAAI;AAAA,MACF,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,MAAM,OAAO,EAAE,OAAO,SAAS;AAC7B,UAAM,QAAQ,MAAM,UAAU,aAAa,MAAM;AAEjD,QAAI,OAAO,UAAU,YAAY,kBAAkB,SAAS,KAAK;AAC/D,aAAO,MAAM,EAAE,OAAO,KAAK;AAE7B,QAAI,UAAU;AACZ,aAAO,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,SAAS,MAAM,SAAS;AAE5D,WAAO,MAAM,EAAE,MAAM,OAAO,EAAE,SAAS,MAAM,SAAS;AAAA,EACxD;AACF,CAAC;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Slot: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>[] | import('vue').VNode<import('vue').RendererNode | undefined, import('vue').RendererElement | undefined, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, Comment, mergeProps, cloneVNode } from "vue";
|
|
2
|
+
import { renderSlotFragments } from "../../shared/renderSlotFragments.js";
|
|
3
|
+
const Slot = defineComponent({
|
|
4
|
+
name: "PrimitiveSlot",
|
|
5
|
+
inheritAttrs: false,
|
|
6
|
+
setup(_, { attrs, slots }) {
|
|
7
|
+
return () => {
|
|
8
|
+
if (!slots.default) return null;
|
|
9
|
+
const children = renderSlotFragments(slots.default());
|
|
10
|
+
const firstNonCommentChildrenIndex = children.findIndex(
|
|
11
|
+
(child) => child.type !== Comment
|
|
12
|
+
);
|
|
13
|
+
if (firstNonCommentChildrenIndex === -1) return children;
|
|
14
|
+
const firstNonCommentChildren = children[firstNonCommentChildrenIndex];
|
|
15
|
+
delete firstNonCommentChildren.props?.ref;
|
|
16
|
+
const mergedProps = firstNonCommentChildren.props ? mergeProps(attrs, firstNonCommentChildren.props) : attrs;
|
|
17
|
+
const cloned = cloneVNode(
|
|
18
|
+
{ ...firstNonCommentChildren, props: {} },
|
|
19
|
+
mergedProps
|
|
20
|
+
);
|
|
21
|
+
if (children.length === 1) return cloned;
|
|
22
|
+
children[firstNonCommentChildrenIndex] = cloned;
|
|
23
|
+
return children;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
Slot
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=Slot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slot.js","sources":["../../../src/components/Primitive/Slot.ts"],"sourcesContent":["import { cloneVNode, Comment, defineComponent, mergeProps } from \"vue\";\nimport { renderSlotFragments } from \"../../shared\";\n\nexport const Slot = defineComponent({\n name: \"PrimitiveSlot\",\n inheritAttrs: false,\n setup(_, { attrs, slots }) {\n return () => {\n if (!slots.default) return null;\n\n const children = renderSlotFragments(slots.default());\n const firstNonCommentChildrenIndex = children.findIndex(\n (child) => child.type !== Comment,\n );\n if (firstNonCommentChildrenIndex === -1) return children;\n\n const firstNonCommentChildren = children[firstNonCommentChildrenIndex];\n\n // Remove props ref from being inferred\n delete firstNonCommentChildren.props?.ref;\n\n // Manually merge props to ensure `firstNonCommentChildren.props`\n // has higher priority than `attrs` and can override `attrs`.\n // Otherwise `cloneVNode(firstNonCommentChildren, attrs)` will\n // prioritize `attrs` and override `firstNonCommentChildren.props`.\n const mergedProps = firstNonCommentChildren.props\n ? mergeProps(attrs, firstNonCommentChildren.props)\n : attrs;\n const cloned = cloneVNode(\n { ...firstNonCommentChildren, props: {} },\n mergedProps,\n );\n\n if (children.length === 1) return cloned;\n\n children[firstNonCommentChildrenIndex] = cloned;\n return children;\n };\n },\n});\n"],"names":[],"mappings":";;AAGO,MAAM,OAAO,gBAAgB;AAAA,EAClC,MAAM;AAAA,EACN,cAAc;AAAA,EACd,MAAM,GAAG,EAAE,OAAO,SAAS;AACzB,WAAO,MAAM;AACX,UAAI,CAAC,MAAM,QAAS,QAAO;AAE3B,YAAM,WAAW,oBAAoB,MAAM,QAAA,CAAS;AACpD,YAAM,+BAA+B,SAAS;AAAA,QAC5C,CAAC,UAAU,MAAM,SAAS;AAAA,MAAA;AAE5B,UAAI,iCAAiC,GAAI,QAAO;AAEhD,YAAM,0BAA0B,SAAS,4BAA4B;AAGrE,aAAO,wBAAwB,OAAO;AAMtC,YAAM,cAAc,wBAAwB,QACxC,WAAW,OAAO,wBAAwB,KAAK,IAC/C;AACJ,YAAM,SAAS;AAAA,QACb,EAAE,GAAG,yBAAyB,OAAO,GAAC;AAAA,QACtC;AAAA,MAAA;AAGF,UAAI,SAAS,WAAW,EAAG,QAAO;AAElC,eAAS,4BAA4B,IAAI;AACzC,aAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { unrefElement } from "../../node_modules/.pnpm/@vueuse_core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js";
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
function usePrimitiveElement() {
|
|
4
|
+
const primitiveElement = ref();
|
|
5
|
+
const currentElement = computed(() => ["#text", "#comment"].includes(primitiveElement.value?.$el.nodeName) ? primitiveElement.value?.$el.nextElementSibling : unrefElement(primitiveElement));
|
|
6
|
+
return {
|
|
7
|
+
primitiveElement,
|
|
8
|
+
currentElement
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
usePrimitiveElement
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=usePrimitiveElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePrimitiveElement.js","sources":["../../../src/components/Primitive/usePrimitiveElement.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\nimport { unrefElement } from '@vueuse/core'\nimport { computed, ref } from 'vue'\n\nexport function usePrimitiveElement<T extends ComponentPublicInstance>() {\n const primitiveElement = ref<T>()\n const currentElement = computed<HTMLElement>(() => ['#text', '#comment'].includes(primitiveElement.value?.$el.nodeName) ? primitiveElement.value?.$el.nextElementSibling : unrefElement(primitiveElement))\n\n return {\n primitiveElement,\n currentElement,\n }\n}\n"],"names":[],"mappings":";;AAIO,SAAS,sBAAyD;AACvE,QAAM,mBAAmB,IAAA;AACzB,QAAM,iBAAiB,SAAsB,MAAM,CAAC,SAAS,UAAU,EAAE,SAAS,iBAAiB,OAAO,IAAI,QAAQ,IAAI,iBAAiB,OAAO,IAAI,qBAAqB,aAAa,gBAAgB,CAAC;AAEzM,SAAO;AAAA,IACL;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface TeleportProps {
|
|
2
|
+
/**
|
|
3
|
+
* Vue native teleport component prop `:to`
|
|
4
|
+
*
|
|
5
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#basic-usage}
|
|
6
|
+
*/
|
|
7
|
+
to?: string | HTMLElement;
|
|
8
|
+
/**
|
|
9
|
+
* Disable teleport and render the component inline
|
|
10
|
+
*
|
|
11
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#disabling-teleport}
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Defer the resolving of a Teleport target until other parts of the
|
|
16
|
+
* application have mounted (requires Vue 3.5.0+)
|
|
17
|
+
*
|
|
18
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#deferred-teleport}
|
|
19
|
+
*/
|
|
20
|
+
defer?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Used to force mounting when more control is needed. Useful when
|
|
23
|
+
* controlling animation with Vue animation libraries.
|
|
24
|
+
*/
|
|
25
|
+
forceMount?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<TeleportProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TeleportProps> & Readonly<{}>, {
|
|
28
|
+
to: string | HTMLElement;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
30
|
+
default?(_: {}): any;
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent, createBlock, createCommentVNode, unref, openBlock, Teleport, renderSlot } from "vue";
|
|
2
|
+
import { useMounted } from "../../node_modules/.pnpm/@vueuse_core@14.1.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Teleport",
|
|
5
|
+
props: {
|
|
6
|
+
to: { default: "body" },
|
|
7
|
+
disabled: { type: Boolean },
|
|
8
|
+
defer: { type: Boolean },
|
|
9
|
+
forceMount: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const isMounted = useMounted();
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return unref(isMounted) || __props.forceMount ? (openBlock(), createBlock(Teleport, {
|
|
15
|
+
key: 0,
|
|
16
|
+
to: __props.to,
|
|
17
|
+
disabled: __props.disabled,
|
|
18
|
+
defer: __props.defer
|
|
19
|
+
}, [
|
|
20
|
+
renderSlot(_ctx.$slots, "default")
|
|
21
|
+
], 8, ["to", "disabled", "defer"])) : createCommentVNode("", true);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
_sfc_main as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Teleport.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Teleport.vue.js","sources":["../../../src/components/Teleport/Teleport.vue"],"sourcesContent":["<script lang=\"ts\">\nexport interface TeleportProps {\n /**\n * Vue native teleport component prop `:to`\n *\n * {@link https://vuejs.org/guide/built-ins/teleport.html#basic-usage}\n */\n to?: string | HTMLElement\n /**\n * Disable teleport and render the component inline\n *\n * {@link https://vuejs.org/guide/built-ins/teleport.html#disabling-teleport}\n */\n disabled?: boolean\n /**\n * Defer the resolving of a Teleport target until other parts of the\n * application have mounted (requires Vue 3.5.0+)\n *\n * {@link https://vuejs.org/guide/built-ins/teleport.html#deferred-teleport}\n */\n defer?: boolean\n /**\n * Used to force mounting when more control is needed. Useful when\n * controlling animation with Vue animation libraries.\n */\n forceMount?: boolean\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useMounted } from '@vueuse/core'\n\nwithDefaults(defineProps<TeleportProps>(), {\n to: 'body',\n})\n\nconst isMounted = useMounted()\n</script>\n\n<template>\n <Teleport\n v-if=\"isMounted || forceMount\"\n :to=\"to\"\n :disabled=\"disabled\"\n :defer=\"defer\"\n >\n <slot />\n </Teleport>\n</template>\n"],"names":["_unref","_createBlock","_Teleport","_renderSlot"],"mappings":";;;;;;;;;;;AAoCA,UAAM,YAAY,WAAA;;AAKR,aAAAA,MAAA,SAAA,KAAa,QAAA,2BADrBC,YAOWC,UAAA;AAAA;QALR,IAAI,QAAA;AAAA,QACJ,UAAU,QAAA;AAAA,QACV,OAAO,QAAA;AAAA,MAAA;QAERC,WAAQ,KAAA,QAAA,SAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Teleport.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TeleportPrimitive, type TeleportProps } from './Teleport';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PrimitiveProps } from '../Primitive';
|
|
2
|
+
export interface VisuallyHiddenProps extends PrimitiveProps {
|
|
3
|
+
feature?: "focusable" | "fully-hidden";
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<VisuallyHiddenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VisuallyHiddenProps> & Readonly<{}>, {
|
|
6
|
+
as: import('../Primitive').AsTag | import('vue').Component;
|
|
7
|
+
feature: "focusable" | "fully-hidden";
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, withCtx, renderSlot } from "vue";
|
|
2
|
+
import { Primitive } from "../Primitive/Primitive.js";
|
|
3
|
+
import "../Primitive/Slot.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "VisuallyHidden",
|
|
6
|
+
props: {
|
|
7
|
+
feature: { default: "focusable" },
|
|
8
|
+
asChild: { type: Boolean },
|
|
9
|
+
as: { default: "span" }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
14
|
+
as: __props.as,
|
|
15
|
+
"as-child": __props.asChild,
|
|
16
|
+
"aria-hidden": __props.feature === "focusable" ? "true" : void 0,
|
|
17
|
+
"data-hidden": __props.feature === "fully-hidden" ? "" : void 0,
|
|
18
|
+
tabindex: __props.feature === "fully-hidden" ? "-1" : void 0,
|
|
19
|
+
style: {
|
|
20
|
+
// See: https://github.com/twbs/bootstrap/blob/a360960b8dfdb4bf48f87539c2243458fa0366f7/scss/mixins/_visually-hidden.scss
|
|
21
|
+
position: "absolute",
|
|
22
|
+
border: 0,
|
|
23
|
+
width: "1px",
|
|
24
|
+
height: "1px",
|
|
25
|
+
padding: 0,
|
|
26
|
+
margin: "-1px",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
clip: "rect(0, 0, 0, 0)",
|
|
29
|
+
clipPath: "inset(50%)",
|
|
30
|
+
whiteSpace: "nowrap",
|
|
31
|
+
wordWrap: "normal",
|
|
32
|
+
// Prevent causing unnecessary container scroll
|
|
33
|
+
// @see https://github.com/unovue/reka-ui/issues/2127
|
|
34
|
+
top: "-1px",
|
|
35
|
+
left: "-1px"
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
renderSlot(_ctx.$slots, "default")
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
}, 8, ["as", "as-child", "aria-hidden", "data-hidden", "tabindex"]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
_sfc_main as default
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=VisuallyHidden.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.vue.js","sources":["../../../src/components/VisuallyHidden/VisuallyHidden.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { PrimitiveProps } from \"../Primitive\";\n\nexport interface VisuallyHiddenProps extends PrimitiveProps {\n feature?: \"focusable\" | \"fully-hidden\";\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { Primitive } from \"../Primitive\";\n\nwithDefaults(defineProps<VisuallyHiddenProps>(), {\n as: \"span\",\n feature: \"focusable\",\n});\n</script>\n\n<template>\n <Primitive\n :as=\"as\"\n :as-child=\"asChild\"\n :aria-hidden=\"feature === 'focusable' ? 'true' : undefined\"\n :data-hidden=\"feature === 'fully-hidden' ? '' : undefined\"\n :tabindex=\"feature === 'fully-hidden' ? '-1' : undefined\"\n :style=\"{\n // See: https://github.com/twbs/bootstrap/blob/a360960b8dfdb4bf48f87539c2243458fa0366f7/scss/mixins/_visually-hidden.scss\n position: 'absolute',\n border: 0,\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n clipPath: 'inset(50%)',\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n\n // Prevent causing unnecessary container scroll\n // @see https://github.com/unovue/reka-ui/issues/2127\n top: '-1px',\n left: '-1px',\n }\"\n >\n <slot />\n </Primitive>\n</template>\n"],"names":["_createBlock","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;0BAkBEA,YA2BYC,MAAA,SAAA,GAAA;AAAA,QA1BT,IAAI,QAAA;AAAA,QACJ,YAAU,QAAA;AAAA,QACV,eAAa,QAAA,YAAO,cAAA,SAA4B;AAAA,QAChD,eAAa,QAAA,YAAO,iBAAA,KAA2B;AAAA,QAC/C,UAAU,QAAA,YAAO,iBAAA,OAA6B;AAAA,QAC9C,OAAO;AAAA;AAAA;;;;;;;;;;;;;;;;MAkBP;yBAED,MAAQ;AAAA,UAARC,WAAQ,KAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VisuallyHiddenInputBubbleProps } from './VisuallyHiddenInputBubble';
|
|
2
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & VisuallyHiddenInputBubbleProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
4
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
5
|
+
attrs: any;
|
|
6
|
+
slots: {};
|
|
7
|
+
emit: {};
|
|
8
|
+
}>) => import('vue').VNode & {
|
|
9
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_PrettifyLocal<T> = {
|
|
13
|
+
[K in keyof T]: T[K];
|
|
14
|
+
} & {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VisuallyHiddenProps } from './VisuallyHidden';
|
|
2
|
+
export interface VisuallyHiddenInputBubbleProps<T> {
|
|
3
|
+
name: string;
|
|
4
|
+
value: T;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
feature?: VisuallyHiddenProps["feature"];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & VisuallyHiddenInputBubbleProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
12
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {};
|
|
15
|
+
emit: {};
|
|
16
|
+
}>) => import('vue').VNode & {
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} & {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { DateValue, DayOfWeek } from '@internationalized/date';
|
|
2
|
+
import { Grid } from './types';
|
|
3
|
+
import { DateRange } from '../shared';
|
|
4
|
+
export type WeekDayFormat = 'narrow' | 'short' | 'long';
|
|
5
|
+
export type CreateSelectProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The date object representing the date (usually the first day of the month/year).
|
|
8
|
+
*/
|
|
9
|
+
dateObj: DateValue;
|
|
10
|
+
};
|
|
11
|
+
export type CreateMonthProps = {
|
|
12
|
+
/**
|
|
13
|
+
* The date object representing the month's date (usually the first day of the month).
|
|
14
|
+
*/
|
|
15
|
+
dateObj: DateValue;
|
|
16
|
+
/**
|
|
17
|
+
* The day of the week to start the calendar on (0 for Sunday, 1 for Monday, etc.).
|
|
18
|
+
*/
|
|
19
|
+
weekStartsOn: number;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to always render 6 weeks in the calendar, even if the month doesn't
|
|
22
|
+
* span 6 weeks.
|
|
23
|
+
*/
|
|
24
|
+
fixedWeeks: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The locale to use when creating the calendar month.
|
|
27
|
+
*/
|
|
28
|
+
locale: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves an array of date values representing the days between
|
|
32
|
+
* the provided start and end dates.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getDaysBetween(start: DateValue, end: DateValue): DateValue[];
|
|
35
|
+
export declare function createMonth(props: CreateMonthProps): Grid<DateValue>;
|
|
36
|
+
type SetMonthProps = CreateMonthProps & {
|
|
37
|
+
numberOfMonths: number | undefined;
|
|
38
|
+
currentMonths?: Grid<DateValue>[];
|
|
39
|
+
};
|
|
40
|
+
type SetYearProps = CreateSelectProps & {
|
|
41
|
+
numberOfMonths?: number;
|
|
42
|
+
pagedNavigation?: boolean;
|
|
43
|
+
};
|
|
44
|
+
type SetDecadeProps = CreateSelectProps & {
|
|
45
|
+
startIndex?: number;
|
|
46
|
+
endIndex: number;
|
|
47
|
+
};
|
|
48
|
+
export declare function startOfDecade(dateObj: DateValue): DateValue;
|
|
49
|
+
export declare function endOfDecade(dateObj: DateValue): DateValue;
|
|
50
|
+
export declare function createDecade(props: SetDecadeProps): DateValue[];
|
|
51
|
+
export declare function createYear(props: SetYearProps): DateValue[];
|
|
52
|
+
export declare function createMonths(props: SetMonthProps): Grid<DateValue>[];
|
|
53
|
+
export declare function createYearRange({ start, end }: DateRange): DateValue[];
|
|
54
|
+
export declare function createDateRange({ start, end }: DateRange): DateValue[];
|
|
55
|
+
/**
|
|
56
|
+
* Returns the locale-specific week number
|
|
57
|
+
*/
|
|
58
|
+
export declare function getWeekNumber(date: DateValue, locale?: string, firstDayOfWeek?: DayOfWeek): number;
|
|
59
|
+
export {};
|