@ensi-platform/admin-ui 0.2.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 +55 -0
- package/README.md +92 -0
- package/dist/Calendar-CK0U0CT7.js +27 -0
- package/dist/Calendar-CK0U0CT7.js.map +1 -0
- package/dist/Check-C17w3R0y.js +27 -0
- package/dist/Check-C17w3R0y.js.map +1 -0
- package/dist/ChevronDown-DLasRilY.js +27 -0
- package/dist/ChevronDown-DLasRilY.js.map +1 -0
- package/dist/Clear-ZjbAACid.js +27 -0
- package/dist/Clear-ZjbAACid.js.map +1 -0
- package/dist/Component-BcDZv2gB.js +107 -0
- package/dist/Component-BcDZv2gB.js.map +1 -0
- package/dist/Component-ChWpvDO4.js +148 -0
- package/dist/Component-ChWpvDO4.js.map +1 -0
- package/dist/Component-DAzAVJfq.js +84 -0
- package/dist/Component-DAzAVJfq.js.map +1 -0
- package/dist/Component-DFKf0A_M.js +82 -0
- package/dist/Component-DFKf0A_M.js.map +1 -0
- package/dist/Component-FRc-jsSm.js +69 -0
- package/dist/Component-FRc-jsSm.js.map +1 -0
- package/dist/Component-Ic6oM3w4.js +176 -0
- package/dist/Component-Ic6oM3w4.js.map +1 -0
- package/dist/Component-pBoxexMV.js +82 -0
- package/dist/Component-pBoxexMV.js.map +1 -0
- package/dist/Component-tnzacgBk.js +114 -0
- package/dist/Component-tnzacgBk.js.map +1 -0
- package/dist/MoreVertical-BURg0vGs.js +71 -0
- package/dist/MoreVertical-BURg0vGs.js.map +1 -0
- package/dist/action-popup/Component.d.ts +6 -0
- package/dist/action-popup/Component.d.ts.map +1 -0
- package/dist/action-popup/ConfirmModal.d.ts +6 -0
- package/dist/action-popup/ConfirmModal.d.ts.map +1 -0
- package/dist/action-popup/DeleteModal.d.ts +6 -0
- package/dist/action-popup/DeleteModal.d.ts.map +1 -0
- package/dist/action-popup/index.d.ts +5 -0
- package/dist/action-popup/index.d.ts.map +1 -0
- package/dist/action-popup/index.js +76 -0
- package/dist/action-popup/index.js.map +1 -0
- package/dist/action-popup/types.d.ts +38 -0
- package/dist/action-popup/types.d.ts.map +1 -0
- package/dist/assets/Component.css +1 -0
- package/dist/assets/Component2.css +1 -0
- package/dist/assets/Component3.css +1 -0
- package/dist/assets/Component4.css +1 -0
- package/dist/assets/Component5.css +1 -0
- package/dist/assets/Component6.css +1 -0
- package/dist/assets/Component7.css +1 -0
- package/dist/assets/Component8.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/utils.css +1 -0
- package/dist/autocomplete/Component.d.ts +6 -0
- package/dist/autocomplete/Component.d.ts.map +1 -0
- package/dist/autocomplete/FormAutocomplete.d.ts +6 -0
- package/dist/autocomplete/FormAutocomplete.d.ts.map +1 -0
- package/dist/autocomplete/index.d.ts +4 -0
- package/dist/autocomplete/index.d.ts.map +1 -0
- package/dist/autocomplete/index.js +54 -0
- package/dist/autocomplete/index.js.map +1 -0
- package/dist/autocomplete/theme.d.ts +4 -0
- package/dist/autocomplete/theme.d.ts.map +1 -0
- package/dist/autocomplete/types.d.ts +66 -0
- package/dist/autocomplete/types.d.ts.map +1 -0
- package/dist/autocomplete/utils.d.ts +6 -0
- package/dist/autocomplete/utils.d.ts.map +1 -0
- package/dist/autocomplete-async/Component.d.ts +6 -0
- package/dist/autocomplete-async/Component.d.ts.map +1 -0
- package/dist/autocomplete-async/FormAutocompleteAsync.d.ts +6 -0
- package/dist/autocomplete-async/FormAutocompleteAsync.d.ts.map +1 -0
- package/dist/autocomplete-async/hooks/useAsyncSuggest.d.ts +14 -0
- package/dist/autocomplete-async/hooks/useAsyncSuggest.d.ts.map +1 -0
- package/dist/autocomplete-async/index.d.ts +4 -0
- package/dist/autocomplete-async/index.d.ts.map +1 -0
- package/dist/autocomplete-async/index.js +113 -0
- package/dist/autocomplete-async/index.js.map +1 -0
- package/dist/autocomplete-async/types.d.ts +67 -0
- package/dist/autocomplete-async/types.d.ts.map +1 -0
- package/dist/autocomplete-async/utils.d.ts +9 -0
- package/dist/autocomplete-async/utils.d.ts.map +1 -0
- package/dist/badge/Component.d.ts +6 -0
- package/dist/badge/Component.d.ts.map +1 -0
- package/dist/badge/index.d.ts +3 -0
- package/dist/badge/index.d.ts.map +1 -0
- package/dist/badge/index.js +44 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/badge/theme.d.ts +5 -0
- package/dist/badge/theme.d.ts.map +1 -0
- package/dist/badge/types.d.ts +21 -0
- package/dist/badge/types.d.ts.map +1 -0
- package/dist/bottom-sheet/Component.d.ts +27 -0
- package/dist/bottom-sheet/Component.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Body/index.d.ts +6 -0
- package/dist/bottom-sheet/components/Body/index.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Body/types.d.ts +5 -0
- package/dist/bottom-sheet/components/Body/types.d.ts.map +1 -0
- package/dist/bottom-sheet/components/CloseButton/index.d.ts +6 -0
- package/dist/bottom-sheet/components/CloseButton/index.d.ts.map +1 -0
- package/dist/bottom-sheet/components/CloseButton/theme.d.ts +4 -0
- package/dist/bottom-sheet/components/CloseButton/theme.d.ts.map +1 -0
- package/dist/bottom-sheet/components/CloseButton/types.d.ts +10 -0
- package/dist/bottom-sheet/components/CloseButton/types.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Footer/index.d.ts +6 -0
- package/dist/bottom-sheet/components/Footer/index.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Footer/types.d.ts +5 -0
- package/dist/bottom-sheet/components/Footer/types.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Header/index.d.ts +6 -0
- package/dist/bottom-sheet/components/Header/index.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Header/types.d.ts +5 -0
- package/dist/bottom-sheet/components/Header/types.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Title/index.d.ts +6 -0
- package/dist/bottom-sheet/components/Title/index.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Title/theme.d.ts +2 -0
- package/dist/bottom-sheet/components/Title/theme.d.ts.map +1 -0
- package/dist/bottom-sheet/components/Title/types.d.ts +6 -0
- package/dist/bottom-sheet/components/Title/types.d.ts.map +1 -0
- package/dist/bottom-sheet/constants.d.ts +13 -0
- package/dist/bottom-sheet/constants.d.ts.map +1 -0
- package/dist/bottom-sheet/context.d.ts +8 -0
- package/dist/bottom-sheet/context.d.ts.map +1 -0
- package/dist/bottom-sheet/hooks/useBottomSheetSwipe.d.ts +18 -0
- package/dist/bottom-sheet/hooks/useBottomSheetSwipe.d.ts.map +1 -0
- package/dist/bottom-sheet/index.d.ts +3 -0
- package/dist/bottom-sheet/index.d.ts.map +1 -0
- package/dist/bottom-sheet/index.js +249 -0
- package/dist/bottom-sheet/index.js.map +1 -0
- package/dist/bottom-sheet/theme.d.ts +6 -0
- package/dist/bottom-sheet/theme.d.ts.map +1 -0
- package/dist/bottom-sheet/types.d.ts +43 -0
- package/dist/bottom-sheet/types.d.ts.map +1 -0
- package/dist/bottom-sheet/utils.d.ts +13 -0
- package/dist/bottom-sheet/utils.d.ts.map +1 -0
- package/dist/button/Component.d.ts +4 -0
- package/dist/button/Component.d.ts.map +1 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button/index.js +5 -0
- package/dist/button/index.js.map +1 -0
- package/dist/button/theme.d.ts +6 -0
- package/dist/button/theme.d.ts.map +1 -0
- package/dist/button/types.d.ts +42 -0
- package/dist/button/types.d.ts.map +1 -0
- package/dist/calendar/components/DayCell/index.d.ts +31 -0
- package/dist/calendar/components/DayCell/index.d.ts.map +1 -0
- package/dist/calendar/components/MonthList/index.d.ts +20 -0
- package/dist/calendar/components/MonthList/index.d.ts.map +1 -0
- package/dist/calendar/components/MonthView/index.d.ts +43 -0
- package/dist/calendar/components/MonthView/index.d.ts.map +1 -0
- package/dist/calendar/components/MonthYearSelect/index.d.ts +26 -0
- package/dist/calendar/components/MonthYearSelect/index.d.ts.map +1 -0
- package/dist/calendar/components/ScrollCalendar/index.d.ts +7 -0
- package/dist/calendar/components/ScrollCalendar/index.d.ts.map +1 -0
- package/dist/calendar/components/ScrollRangeCalendar/index.d.ts +7 -0
- package/dist/calendar/components/ScrollRangeCalendar/index.d.ts.map +1 -0
- package/dist/calendar/constants.d.ts +12 -0
- package/dist/calendar/constants.d.ts.map +1 -0
- package/dist/calendar/hooks/useCalendarGridKeyboard/index.d.ts +52 -0
- package/dist/calendar/hooks/useCalendarGridKeyboard/index.d.ts.map +1 -0
- package/dist/calendar/hooks/useFakeScrollCalendar.d.ts +15 -0
- package/dist/calendar/hooks/useFakeScrollCalendar.d.ts.map +1 -0
- package/dist/calendar/index.d.ts +5 -0
- package/dist/calendar/index.d.ts.map +1 -0
- package/dist/calendar/types.d.ts +10 -0
- package/dist/calendar/types.d.ts.map +1 -0
- package/dist/calendar/utils/date.d.ts +83 -0
- package/dist/calendar/utils/date.d.ts.map +1 -0
- package/dist/calendar/utils/scroll.d.ts +47 -0
- package/dist/calendar/utils/scroll.d.ts.map +1 -0
- package/dist/calendar/utils/sticky.d.ts +12 -0
- package/dist/calendar/utils/sticky.d.ts.map +1 -0
- package/dist/checkbox/Component.d.ts +6 -0
- package/dist/checkbox/Component.d.ts.map +1 -0
- package/dist/checkbox/FormCheckbox.d.ts +6 -0
- package/dist/checkbox/FormCheckbox.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +4 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/index.js +65 -0
- package/dist/checkbox/index.js.map +1 -0
- package/dist/checkbox/theme.d.ts +5 -0
- package/dist/checkbox/theme.d.ts.map +1 -0
- package/dist/checkbox/types.d.ts +49 -0
- package/dist/checkbox/types.d.ts.map +1 -0
- package/dist/checkbox-group/Component.d.ts +6 -0
- package/dist/checkbox-group/Component.d.ts.map +1 -0
- package/dist/checkbox-group/FormCheckboxGroup.d.ts +6 -0
- package/dist/checkbox-group/FormCheckboxGroup.d.ts.map +1 -0
- package/dist/checkbox-group/index.d.ts +4 -0
- package/dist/checkbox-group/index.d.ts.map +1 -0
- package/dist/checkbox-group/index.js +89 -0
- package/dist/checkbox-group/index.js.map +1 -0
- package/dist/checkbox-group/types.d.ts +40 -0
- package/dist/checkbox-group/types.d.ts.map +1 -0
- package/dist/combobox/components/Item/index.d.ts +9 -0
- package/dist/combobox/components/Item/index.d.ts.map +1 -0
- package/dist/combobox/components/Item/theme.d.ts +5 -0
- package/dist/combobox/components/Item/theme.d.ts.map +1 -0
- package/dist/combobox/components/List/index.d.ts +17 -0
- package/dist/combobox/components/List/index.d.ts.map +1 -0
- package/dist/combobox/components/List/theme.d.ts +4 -0
- package/dist/combobox/components/List/theme.d.ts.map +1 -0
- package/dist/combobox/components/ListStatus/index.d.ts +11 -0
- package/dist/combobox/components/ListStatus/index.d.ts.map +1 -0
- package/dist/combobox/components/MultiTrigger/SelectedTags.d.ts +23 -0
- package/dist/combobox/components/MultiTrigger/SelectedTags.d.ts.map +1 -0
- package/dist/combobox/components/MultiTrigger/index.d.ts +22 -0
- package/dist/combobox/components/MultiTrigger/index.d.ts.map +1 -0
- package/dist/combobox/components/MultiTrigger/theme.d.ts +8 -0
- package/dist/combobox/components/MultiTrigger/theme.d.ts.map +1 -0
- package/dist/combobox/components/Popover/index.d.ts +12 -0
- package/dist/combobox/components/Popover/index.d.ts.map +1 -0
- package/dist/combobox/components/Popover/theme.d.ts +4 -0
- package/dist/combobox/components/Popover/theme.d.ts.map +1 -0
- package/dist/combobox/components/Trigger/index.d.ts +22 -0
- package/dist/combobox/components/Trigger/index.d.ts.map +1 -0
- package/dist/combobox/components/Trigger/theme.d.ts +5 -0
- package/dist/combobox/components/Trigger/theme.d.ts.map +1 -0
- package/dist/combobox/hooks/useSelectedOptionsCache.d.ts +8 -0
- package/dist/combobox/hooks/useSelectedOptionsCache.d.ts.map +1 -0
- package/dist/combobox/hooks/useTagOverflow.d.ts +24 -0
- package/dist/combobox/hooks/useTagOverflow.d.ts.map +1 -0
- package/dist/combobox/index.d.ts +11 -0
- package/dist/combobox/index.d.ts.map +1 -0
- package/dist/combobox/index.js +18 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/combobox/types.d.ts +12 -0
- package/dist/combobox/types.d.ts.map +1 -0
- package/dist/combobox/utils.d.ts +12 -0
- package/dist/combobox/utils.d.ts.map +1 -0
- package/dist/date-picker/Component.d.ts +6 -0
- package/dist/date-picker/Component.d.ts.map +1 -0
- package/dist/date-picker/FormDatePicker.d.ts +6 -0
- package/dist/date-picker/FormDatePicker.d.ts.map +1 -0
- package/dist/date-picker/index.d.ts +4 -0
- package/dist/date-picker/index.d.ts.map +1 -0
- package/dist/date-picker/index.js +257 -0
- package/dist/date-picker/index.js.map +1 -0
- package/dist/date-picker/theme.d.ts +6 -0
- package/dist/date-picker/theme.d.ts.map +1 -0
- package/dist/date-picker/types.d.ts +48 -0
- package/dist/date-picker/types.d.ts.map +1 -0
- package/dist/date-range-picker/Component.d.ts +6 -0
- package/dist/date-range-picker/Component.d.ts.map +1 -0
- package/dist/date-range-picker/FormDateRangePicker.d.ts +6 -0
- package/dist/date-range-picker/FormDateRangePicker.d.ts.map +1 -0
- package/dist/date-range-picker/index.d.ts +4 -0
- package/dist/date-range-picker/index.d.ts.map +1 -0
- package/dist/date-range-picker/index.js +269 -0
- package/dist/date-range-picker/index.js.map +1 -0
- package/dist/date-range-picker/theme.d.ts +6 -0
- package/dist/date-range-picker/theme.d.ts.map +1 -0
- package/dist/date-range-picker/types.d.ts +48 -0
- package/dist/date-range-picker/types.d.ts.map +1 -0
- package/dist/drawer/Component.d.ts +27 -0
- package/dist/drawer/Component.d.ts.map +1 -0
- package/dist/drawer/components/Body/index.d.ts +6 -0
- package/dist/drawer/components/Body/index.d.ts.map +1 -0
- package/dist/drawer/components/Body/types.d.ts +5 -0
- package/dist/drawer/components/Body/types.d.ts.map +1 -0
- package/dist/drawer/components/CloseButton/index.d.ts +6 -0
- package/dist/drawer/components/CloseButton/index.d.ts.map +1 -0
- package/dist/drawer/components/CloseButton/theme.d.ts +4 -0
- package/dist/drawer/components/CloseButton/theme.d.ts.map +1 -0
- package/dist/drawer/components/CloseButton/types.d.ts +10 -0
- package/dist/drawer/components/CloseButton/types.d.ts.map +1 -0
- package/dist/drawer/components/Footer/index.d.ts +6 -0
- package/dist/drawer/components/Footer/index.d.ts.map +1 -0
- package/dist/drawer/components/Footer/types.d.ts +5 -0
- package/dist/drawer/components/Footer/types.d.ts.map +1 -0
- package/dist/drawer/components/Header/index.d.ts +6 -0
- package/dist/drawer/components/Header/index.d.ts.map +1 -0
- package/dist/drawer/components/Header/types.d.ts +5 -0
- package/dist/drawer/components/Header/types.d.ts.map +1 -0
- package/dist/drawer/components/Title/index.d.ts +6 -0
- package/dist/drawer/components/Title/index.d.ts.map +1 -0
- package/dist/drawer/components/Title/theme.d.ts +2 -0
- package/dist/drawer/components/Title/theme.d.ts.map +1 -0
- package/dist/drawer/components/Title/types.d.ts +6 -0
- package/dist/drawer/components/Title/types.d.ts.map +1 -0
- package/dist/drawer/index.d.ts +3 -0
- package/dist/drawer/index.d.ts.map +1 -0
- package/dist/drawer/index.js +175 -0
- package/dist/drawer/index.js.map +1 -0
- package/dist/drawer/theme.d.ts +10 -0
- package/dist/drawer/theme.d.ts.map +1 -0
- package/dist/drawer/types.d.ts +49 -0
- package/dist/drawer/types.d.ts.map +1 -0
- package/dist/ds/common/index.d.ts +10 -0
- package/dist/ds/common/index.d.ts.map +1 -0
- package/dist/ds/common/utils.d.ts +2 -0
- package/dist/ds/common/utils.d.ts.map +1 -0
- package/dist/field/Component.d.ts +19 -0
- package/dist/field/Component.d.ts.map +1 -0
- package/dist/field/components/Error/index.d.ts +6 -0
- package/dist/field/components/Error/index.d.ts.map +1 -0
- package/dist/field/components/Error/theme.d.ts +4 -0
- package/dist/field/components/Error/theme.d.ts.map +1 -0
- package/dist/field/components/Error/types.d.ts +5 -0
- package/dist/field/components/Error/types.d.ts.map +1 -0
- package/dist/field/components/Hint/index.d.ts +6 -0
- package/dist/field/components/Hint/index.d.ts.map +1 -0
- package/dist/field/components/Hint/theme.d.ts +5 -0
- package/dist/field/components/Hint/theme.d.ts.map +1 -0
- package/dist/field/components/Hint/types.d.ts +5 -0
- package/dist/field/components/Hint/types.d.ts.map +1 -0
- package/dist/field/components/Label/index.d.ts +6 -0
- package/dist/field/components/Label/index.d.ts.map +1 -0
- package/dist/field/components/Label/theme.d.ts +5 -0
- package/dist/field/components/Label/theme.d.ts.map +1 -0
- package/dist/field/components/Label/types.d.ts +5 -0
- package/dist/field/components/Label/types.d.ts.map +1 -0
- package/dist/field/context.d.ts +4 -0
- package/dist/field/context.d.ts.map +1 -0
- package/dist/field/index.d.ts +4 -0
- package/dist/field/index.d.ts.map +1 -0
- package/dist/field/index.js +7 -0
- package/dist/field/index.js.map +1 -0
- package/dist/field/theme.d.ts +5 -0
- package/dist/field/theme.d.ts.map +1 -0
- package/dist/field/types.d.ts +49 -0
- package/dist/field/types.d.ts.map +1 -0
- package/dist/field-clear-button/Component.d.ts +7 -0
- package/dist/field-clear-button/Component.d.ts.map +1 -0
- package/dist/field-clear-button/adapters.d.ts +28 -0
- package/dist/field-clear-button/adapters.d.ts.map +1 -0
- package/dist/field-clear-button/index.d.ts +4 -0
- package/dist/field-clear-button/index.d.ts.map +1 -0
- package/dist/field-clear-button/theme.d.ts +5 -0
- package/dist/field-clear-button/theme.d.ts.map +1 -0
- package/dist/field-clear-button/types.d.ts +11 -0
- package/dist/field-clear-button/types.d.ts.map +1 -0
- package/dist/form/Component.d.ts +4 -0
- package/dist/form/Component.d.ts.map +1 -0
- package/dist/form/context.d.ts +11 -0
- package/dist/form/context.d.ts.map +1 -0
- package/dist/form/hooks/useFieldHook.d.ts +19 -0
- package/dist/form/hooks/useFieldHook.d.ts.map +1 -0
- package/dist/form/index.d.ts +7 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +90 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/types.d.ts +70 -0
- package/dist/form/types.d.ts.map +1 -0
- package/dist/form/utils.d.ts +3 -0
- package/dist/form/utils.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useOverlayExitComplete.d.ts +7 -0
- package/dist/hooks/useOverlayExitComplete.d.ts.map +1 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks-F-vmcbmx.js +32 -0
- package/dist/hooks-F-vmcbmx.js.map +1 -0
- package/dist/icons/Calendar.d.ts +8 -0
- package/dist/icons/Calendar.d.ts.map +1 -0
- package/dist/icons/Check.d.ts +8 -0
- package/dist/icons/Check.d.ts.map +1 -0
- package/dist/icons/ChevronDown.d.ts +8 -0
- package/dist/icons/ChevronDown.d.ts.map +1 -0
- package/dist/icons/ChevronLeft.d.ts +8 -0
- package/dist/icons/ChevronLeft.d.ts.map +1 -0
- package/dist/icons/ChevronRight.d.ts +8 -0
- package/dist/icons/ChevronRight.d.ts.map +1 -0
- package/dist/icons/Clear.d.ts +8 -0
- package/dist/icons/Clear.d.ts.map +1 -0
- package/dist/icons/MoreVertical.d.ts +8 -0
- package/dist/icons/MoreVertical.d.ts.map +1 -0
- package/dist/icons/index.d.ts +8 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +15 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index-D0q9tzpS.js +85 -0
- package/dist/index-D0q9tzpS.js.map +1 -0
- package/dist/index-kP2CIy4i.js +264 -0
- package/dist/index-kP2CIy4i.js.map +1 -0
- package/dist/index-kZtAof0a.js +716 -0
- package/dist/index-kZtAof0a.js.map +1 -0
- package/dist/input/Component.d.ts +6 -0
- package/dist/input/Component.d.ts.map +1 -0
- package/dist/input/FormInput.d.ts +6 -0
- package/dist/input/FormInput.d.ts.map +1 -0
- package/dist/input/index.d.ts +4 -0
- package/dist/input/index.d.ts.map +1 -0
- package/dist/input/index.js +170 -0
- package/dist/input/index.js.map +1 -0
- package/dist/input/theme.d.ts +6 -0
- package/dist/input/theme.d.ts.map +1 -0
- package/dist/input/types.d.ts +35 -0
- package/dist/input/types.d.ts.map +1 -0
- package/dist/input/utils.d.ts +6 -0
- package/dist/input/utils.d.ts.map +1 -0
- package/dist/loader/Component.d.ts +6 -0
- package/dist/loader/Component.d.ts.map +1 -0
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.d.ts.map +1 -0
- package/dist/loader/index.js +54 -0
- package/dist/loader/index.js.map +1 -0
- package/dist/loader/theme.d.ts +4 -0
- package/dist/loader/theme.d.ts.map +1 -0
- package/dist/loader/types.d.ts +23 -0
- package/dist/loader/types.d.ts.map +1 -0
- package/dist/modal/Component.d.ts +27 -0
- package/dist/modal/Component.d.ts.map +1 -0
- package/dist/modal/components/Body/index.d.ts +6 -0
- package/dist/modal/components/Body/index.d.ts.map +1 -0
- package/dist/modal/components/Body/types.d.ts +5 -0
- package/dist/modal/components/Body/types.d.ts.map +1 -0
- package/dist/modal/components/CloseButton/index.d.ts +6 -0
- package/dist/modal/components/CloseButton/index.d.ts.map +1 -0
- package/dist/modal/components/CloseButton/theme.d.ts +4 -0
- package/dist/modal/components/CloseButton/theme.d.ts.map +1 -0
- package/dist/modal/components/CloseButton/types.d.ts +10 -0
- package/dist/modal/components/CloseButton/types.d.ts.map +1 -0
- package/dist/modal/components/Footer/index.d.ts +6 -0
- package/dist/modal/components/Footer/index.d.ts.map +1 -0
- package/dist/modal/components/Footer/types.d.ts +5 -0
- package/dist/modal/components/Footer/types.d.ts.map +1 -0
- package/dist/modal/components/Header/index.d.ts +6 -0
- package/dist/modal/components/Header/index.d.ts.map +1 -0
- package/dist/modal/components/Header/types.d.ts +5 -0
- package/dist/modal/components/Header/types.d.ts.map +1 -0
- package/dist/modal/components/Title/index.d.ts +6 -0
- package/dist/modal/components/Title/index.d.ts.map +1 -0
- package/dist/modal/components/Title/theme.d.ts +2 -0
- package/dist/modal/components/Title/theme.d.ts.map +1 -0
- package/dist/modal/components/Title/types.d.ts +6 -0
- package/dist/modal/components/Title/types.d.ts.map +1 -0
- package/dist/modal/index.d.ts +3 -0
- package/dist/modal/index.d.ts.map +1 -0
- package/dist/modal/index.js +5 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modal/theme.d.ts +7 -0
- package/dist/modal/theme.d.ts.map +1 -0
- package/dist/modal/types.d.ts +46 -0
- package/dist/modal/types.d.ts.map +1 -0
- package/dist/modal-hub/ModalHub.d.ts +5 -0
- package/dist/modal-hub/ModalHub.d.ts.map +1 -0
- package/dist/modal-hub/ModalProvider.d.ts +7 -0
- package/dist/modal-hub/ModalProvider.d.ts.map +1 -0
- package/dist/modal-hub/context.d.ts +3 -0
- package/dist/modal-hub/context.d.ts.map +1 -0
- package/dist/modal-hub/index.d.ts +6 -0
- package/dist/modal-hub/index.d.ts.map +1 -0
- package/dist/modal-hub/index.js +116 -0
- package/dist/modal-hub/index.js.map +1 -0
- package/dist/modal-hub/types.d.ts +42 -0
- package/dist/modal-hub/types.d.ts.map +1 -0
- package/dist/modal-hub/useModal.d.ts +6 -0
- package/dist/modal-hub/useModal.d.ts.map +1 -0
- package/dist/modal-hub/useModalAsync.d.ts +6 -0
- package/dist/modal-hub/useModalAsync.d.ts.map +1 -0
- package/dist/multi-autocomplete/Component.d.ts +6 -0
- package/dist/multi-autocomplete/Component.d.ts.map +1 -0
- package/dist/multi-autocomplete/FormMultiAutocomplete.d.ts +6 -0
- package/dist/multi-autocomplete/FormMultiAutocomplete.d.ts.map +1 -0
- package/dist/multi-autocomplete/index.d.ts +4 -0
- package/dist/multi-autocomplete/index.d.ts.map +1 -0
- package/dist/multi-autocomplete/index.js +54 -0
- package/dist/multi-autocomplete/index.js.map +1 -0
- package/dist/multi-autocomplete/theme.d.ts +4 -0
- package/dist/multi-autocomplete/theme.d.ts.map +1 -0
- package/dist/multi-autocomplete/types.d.ts +66 -0
- package/dist/multi-autocomplete/types.d.ts.map +1 -0
- package/dist/multi-autocomplete/utils.d.ts +6 -0
- package/dist/multi-autocomplete/utils.d.ts.map +1 -0
- package/dist/multi-autocomplete-async/Component.d.ts +6 -0
- package/dist/multi-autocomplete-async/Component.d.ts.map +1 -0
- package/dist/multi-autocomplete-async/FormMultiAutocompleteAsync.d.ts +6 -0
- package/dist/multi-autocomplete-async/FormMultiAutocompleteAsync.d.ts.map +1 -0
- package/dist/multi-autocomplete-async/index.d.ts +4 -0
- package/dist/multi-autocomplete-async/index.d.ts.map +1 -0
- package/dist/multi-autocomplete-async/index.js +88 -0
- package/dist/multi-autocomplete-async/index.js.map +1 -0
- package/dist/multi-autocomplete-async/types.d.ts +46 -0
- package/dist/multi-autocomplete-async/types.d.ts.map +1 -0
- package/dist/multi-select/Component.d.ts +6 -0
- package/dist/multi-select/Component.d.ts.map +1 -0
- package/dist/multi-select/FormMultiSelect.d.ts +6 -0
- package/dist/multi-select/FormMultiSelect.d.ts.map +1 -0
- package/dist/multi-select/index.d.ts +4 -0
- package/dist/multi-select/index.d.ts.map +1 -0
- package/dist/multi-select/index.js +140 -0
- package/dist/multi-select/index.js.map +1 -0
- package/dist/multi-select/theme.d.ts +4 -0
- package/dist/multi-select/theme.d.ts.map +1 -0
- package/dist/multi-select/types.d.ts +47 -0
- package/dist/multi-select/types.d.ts.map +1 -0
- package/dist/multi-select/utils.d.ts +9 -0
- package/dist/multi-select/utils.d.ts.map +1 -0
- package/dist/number-input/Component.d.ts +6 -0
- package/dist/number-input/Component.d.ts.map +1 -0
- package/dist/number-input/FormNumberInput.d.ts +6 -0
- package/dist/number-input/FormNumberInput.d.ts.map +1 -0
- package/dist/number-input/index.d.ts +4 -0
- package/dist/number-input/index.d.ts.map +1 -0
- package/dist/number-input/index.js +213 -0
- package/dist/number-input/index.js.map +1 -0
- package/dist/number-input/theme.d.ts +6 -0
- package/dist/number-input/theme.d.ts.map +1 -0
- package/dist/number-input/types.d.ts +70 -0
- package/dist/number-input/types.d.ts.map +1 -0
- package/dist/popover/Component.d.ts +15 -0
- package/dist/popover/Component.d.ts.map +1 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.d.ts.map +1 -0
- package/dist/popover/index.js +5 -0
- package/dist/popover/index.js.map +1 -0
- package/dist/popover/theme.d.ts +5 -0
- package/dist/popover/theme.d.ts.map +1 -0
- package/dist/popover/types.d.ts +33 -0
- package/dist/popover/types.d.ts.map +1 -0
- package/dist/provider/Component.d.ts +3 -0
- package/dist/provider/Component.d.ts.map +1 -0
- package/dist/provider/context.d.ts +4 -0
- package/dist/provider/context.d.ts.map +1 -0
- package/dist/provider/hooks.d.ts +5 -0
- package/dist/provider/hooks.d.ts.map +1 -0
- package/dist/provider/index.d.ts +4 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +47 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/types.d.ts +48 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/select/Component.d.ts +6 -0
- package/dist/select/Component.d.ts.map +1 -0
- package/dist/select/FormSelect.d.ts +6 -0
- package/dist/select/FormSelect.d.ts.map +1 -0
- package/dist/select/index.d.ts +4 -0
- package/dist/select/index.d.ts.map +1 -0
- package/dist/select/index.js +54 -0
- package/dist/select/index.js.map +1 -0
- package/dist/select/theme.d.ts +4 -0
- package/dist/select/theme.d.ts.map +1 -0
- package/dist/select/types.d.ts +47 -0
- package/dist/select/types.d.ts.map +1 -0
- package/dist/select/utils.d.ts +6 -0
- package/dist/select/utils.d.ts.map +1 -0
- package/dist/switch/Component.d.ts +6 -0
- package/dist/switch/Component.d.ts.map +1 -0
- package/dist/switch/FormSwitch.d.ts +6 -0
- package/dist/switch/FormSwitch.d.ts.map +1 -0
- package/dist/switch/index.d.ts +4 -0
- package/dist/switch/index.d.ts.map +1 -0
- package/dist/switch/index.js +130 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/switch/theme.d.ts +5 -0
- package/dist/switch/theme.d.ts.map +1 -0
- package/dist/switch/types.d.ts +43 -0
- package/dist/switch/types.d.ts.map +1 -0
- package/dist/table/Component.d.ts +63 -0
- package/dist/table/Component.d.ts.map +1 -0
- package/dist/table/components/ActionBar/index.d.ts +6 -0
- package/dist/table/components/ActionBar/index.d.ts.map +1 -0
- package/dist/table/components/ActionBar/types.d.ts +32 -0
- package/dist/table/components/ActionBar/types.d.ts.map +1 -0
- package/dist/table/components/Body/index.d.ts +6 -0
- package/dist/table/components/Body/index.d.ts.map +1 -0
- package/dist/table/components/Body/types.d.ts +9 -0
- package/dist/table/components/Body/types.d.ts.map +1 -0
- package/dist/table/components/Cell/index.d.ts +6 -0
- package/dist/table/components/Cell/index.d.ts.map +1 -0
- package/dist/table/components/Cell/theme.d.ts +7 -0
- package/dist/table/components/Cell/theme.d.ts.map +1 -0
- package/dist/table/components/Cell/types.d.ts +10 -0
- package/dist/table/components/Cell/types.d.ts.map +1 -0
- package/dist/table/components/CheckboxCell/index.d.ts +6 -0
- package/dist/table/components/CheckboxCell/index.d.ts.map +1 -0
- package/dist/table/components/CheckboxCell/types.d.ts +17 -0
- package/dist/table/components/CheckboxCell/types.d.ts.map +1 -0
- package/dist/table/components/Footer/index.d.ts +6 -0
- package/dist/table/components/Footer/index.d.ts.map +1 -0
- package/dist/table/components/Footer/types.d.ts +11 -0
- package/dist/table/components/Footer/types.d.ts.map +1 -0
- package/dist/table/components/Header/index.d.ts +6 -0
- package/dist/table/components/Header/index.d.ts.map +1 -0
- package/dist/table/components/Header/types.d.ts +11 -0
- package/dist/table/components/Header/types.d.ts.map +1 -0
- package/dist/table/components/HeaderCell/index.d.ts +6 -0
- package/dist/table/components/HeaderCell/index.d.ts.map +1 -0
- package/dist/table/components/HeaderCell/theme.d.ts +7 -0
- package/dist/table/components/HeaderCell/theme.d.ts.map +1 -0
- package/dist/table/components/HeaderCell/types.d.ts +16 -0
- package/dist/table/components/HeaderCell/types.d.ts.map +1 -0
- package/dist/table/components/HeaderCheckboxCell/index.d.ts +6 -0
- package/dist/table/components/HeaderCheckboxCell/index.d.ts.map +1 -0
- package/dist/table/components/HeaderCheckboxCell/types.d.ts +17 -0
- package/dist/table/components/HeaderCheckboxCell/types.d.ts.map +1 -0
- package/dist/table/components/PageSize/index.d.ts +6 -0
- package/dist/table/components/PageSize/index.d.ts.map +1 -0
- package/dist/table/components/PageSize/types.d.ts +20 -0
- package/dist/table/components/PageSize/types.d.ts.map +1 -0
- package/dist/table/components/Pagination/index.d.ts +6 -0
- package/dist/table/components/Pagination/index.d.ts.map +1 -0
- package/dist/table/components/Pagination/types.d.ts +32 -0
- package/dist/table/components/Pagination/types.d.ts.map +1 -0
- package/dist/table/components/Row/index.d.ts +6 -0
- package/dist/table/components/Row/index.d.ts.map +1 -0
- package/dist/table/components/Row/types.d.ts +15 -0
- package/dist/table/components/Row/types.d.ts.map +1 -0
- package/dist/table/components/Scroll/index.d.ts +6 -0
- package/dist/table/components/Scroll/index.d.ts.map +1 -0
- package/dist/table/components/Scroll/types.d.ts +9 -0
- package/dist/table/components/Scroll/types.d.ts.map +1 -0
- package/dist/table/components/SortIndicator/index.d.ts +6 -0
- package/dist/table/components/SortIndicator/index.d.ts.map +1 -0
- package/dist/table/components/SortIndicator/types.d.ts +15 -0
- package/dist/table/components/SortIndicator/types.d.ts.map +1 -0
- package/dist/table/components/TableElement/index.d.ts +6 -0
- package/dist/table/components/TableElement/index.d.ts.map +1 -0
- package/dist/table/components/TableElement/types.d.ts +9 -0
- package/dist/table/components/TableElement/types.d.ts.map +1 -0
- package/dist/table/context.d.ts +4 -0
- package/dist/table/context.d.ts.map +1 -0
- package/dist/table/hooks/useTableRowSelection.d.ts +28 -0
- package/dist/table/hooks/useTableRowSelection.d.ts.map +1 -0
- package/dist/table/index.d.ts +6 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/index.js +634 -0
- package/dist/table/index.js.map +1 -0
- package/dist/table/theme.d.ts +9 -0
- package/dist/table/theme.d.ts.map +1 -0
- package/dist/table/types.d.ts +64 -0
- package/dist/table/types.d.ts.map +1 -0
- package/dist/table/utils.d.ts +4 -0
- package/dist/table/utils.d.ts.map +1 -0
- package/dist/tabs/Component.d.ts +19 -0
- package/dist/tabs/Component.d.ts.map +1 -0
- package/dist/tabs/components/Indicator/index.d.ts +6 -0
- package/dist/tabs/components/Indicator/index.d.ts.map +1 -0
- package/dist/tabs/components/List/index.d.ts +6 -0
- package/dist/tabs/components/List/index.d.ts.map +1 -0
- package/dist/tabs/components/List/theme.d.ts +5 -0
- package/dist/tabs/components/List/theme.d.ts.map +1 -0
- package/dist/tabs/components/Panel/index.d.ts +6 -0
- package/dist/tabs/components/Panel/index.d.ts.map +1 -0
- package/dist/tabs/components/Tab/index.d.ts +6 -0
- package/dist/tabs/components/Tab/index.d.ts.map +1 -0
- package/dist/tabs/components/Tab/theme.d.ts +5 -0
- package/dist/tabs/components/Tab/theme.d.ts.map +1 -0
- package/dist/tabs/context.d.ts +4 -0
- package/dist/tabs/context.d.ts.map +1 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/tabs/index.js +165 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tabs/theme.d.ts +5 -0
- package/dist/tabs/theme.d.ts.map +1 -0
- package/dist/tabs/types.d.ts +76 -0
- package/dist/tabs/types.d.ts.map +1 -0
- package/dist/tag/Component.d.ts +6 -0
- package/dist/tag/Component.d.ts.map +1 -0
- package/dist/tag/index.d.ts +3 -0
- package/dist/tag/index.d.ts.map +1 -0
- package/dist/tag/index.js +74 -0
- package/dist/tag/index.js.map +1 -0
- package/dist/tag/theme.d.ts +5 -0
- package/dist/tag/theme.d.ts.map +1 -0
- package/dist/tag/types.d.ts +25 -0
- package/dist/tag/types.d.ts.map +1 -0
- package/dist/textarea/Component.d.ts +6 -0
- package/dist/textarea/Component.d.ts.map +1 -0
- package/dist/textarea/FormTextArea.d.ts +6 -0
- package/dist/textarea/FormTextArea.d.ts.map +1 -0
- package/dist/textarea/index.d.ts +4 -0
- package/dist/textarea/index.d.ts.map +1 -0
- package/dist/textarea/index.js +170 -0
- package/dist/textarea/index.js.map +1 -0
- package/dist/textarea/theme.d.ts +6 -0
- package/dist/textarea/theme.d.ts.map +1 -0
- package/dist/textarea/types.d.ts +34 -0
- package/dist/textarea/types.d.ts.map +1 -0
- package/dist/textarea/utils.d.ts +6 -0
- package/dist/textarea/utils.d.ts.map +1 -0
- package/dist/time-field/Component.d.ts +6 -0
- package/dist/time-field/Component.d.ts.map +1 -0
- package/dist/time-field/FormTimeField.d.ts +6 -0
- package/dist/time-field/FormTimeField.d.ts.map +1 -0
- package/dist/time-field/index.d.ts +4 -0
- package/dist/time-field/index.d.ts.map +1 -0
- package/dist/time-field/index.js +171 -0
- package/dist/time-field/index.js.map +1 -0
- package/dist/time-field/theme.d.ts +6 -0
- package/dist/time-field/theme.d.ts.map +1 -0
- package/dist/time-field/types.d.ts +47 -0
- package/dist/time-field/types.d.ts.map +1 -0
- package/dist/toast/Component.d.ts +6 -0
- package/dist/toast/Component.d.ts.map +1 -0
- package/dist/toast/ToastProvider.d.ts +6 -0
- package/dist/toast/ToastProvider.d.ts.map +1 -0
- package/dist/toast/components/CloseButton/index.d.ts +9 -0
- package/dist/toast/components/CloseButton/index.d.ts.map +1 -0
- package/dist/toast/components/ToastItem/index.d.ts +11 -0
- package/dist/toast/components/ToastItem/index.d.ts.map +1 -0
- package/dist/toast/constants.d.ts +5 -0
- package/dist/toast/constants.d.ts.map +1 -0
- package/dist/toast/context.d.ts +7 -0
- package/dist/toast/context.d.ts.map +1 -0
- package/dist/toast/index.d.ts +5 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.js +137 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/toast/queue.d.ts +4 -0
- package/dist/toast/queue.d.ts.map +1 -0
- package/dist/toast/theme.d.ts +4 -0
- package/dist/toast/theme.d.ts.map +1 -0
- package/dist/toast/types.d.ts +46 -0
- package/dist/toast/types.d.ts.map +1 -0
- package/dist/toast/useToast.d.ts +3 -0
- package/dist/toast/useToast.d.ts.map +1 -0
- package/dist/tokens/OFL.txt +93 -0
- package/dist/tokens/files/inter-cyrillic-400-normal.woff2 +0 -0
- package/dist/tokens/files/inter-cyrillic-500-normal.woff2 +0 -0
- package/dist/tokens/files/inter-cyrillic-600-normal.woff2 +0 -0
- package/dist/tokens/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/tokens/files/inter-latin-500-normal.woff2 +0 -0
- package/dist/tokens/files/inter-latin-600-normal.woff2 +0 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tooltip/Component.d.ts +15 -0
- package/dist/tooltip/Component.d.ts.map +1 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.d.ts.map +1 -0
- package/dist/tooltip/index.js +66 -0
- package/dist/tooltip/index.js.map +1 -0
- package/dist/tooltip/theme.d.ts +5 -0
- package/dist/tooltip/theme.d.ts.map +1 -0
- package/dist/tooltip/types.d.ts +33 -0
- package/dist/tooltip/types.d.ts.map +1 -0
- package/dist/typography/index.d.ts +3 -0
- package/dist/typography/index.d.ts.map +1 -0
- package/dist/typography/index.js +10 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/useOverlayExitComplete-CwaErLze.js +16 -0
- package/dist/useOverlayExitComplete-CwaErLze.js.map +1 -0
- package/dist/usePrevious-CYpYkXSh.js +11 -0
- package/dist/usePrevious-CYpYkXSh.js.map +1 -0
- package/dist/utils-B6qllQLQ.js +28 -0
- package/dist/utils-B6qllQLQ.js.map +1 -0
- package/dist/utils-CizYZV2a.js +50 -0
- package/dist/utils-CizYZV2a.js.map +1 -0
- package/dist/utils-H1fRkrrY.js +227 -0
- package/dist/utils-H1fRkrrY.js.map +1 -0
- package/docs/README.md +22 -0
- package/docs/ai.md +36 -0
- package/docs/architecture.md +33 -0
- package/docs/skills/SKILL.md +55 -0
- package/docs/skills/evals/evals.json +23 -0
- package/package.json +258 -0
- package/src/action-popup/docs/Description.en.md +40 -0
- package/src/action-popup/docs/Description.ru.md +40 -0
- package/src/action-popup/docs/Example.en.md +14 -0
- package/src/action-popup/docs/Example.ru.md +14 -0
- package/src/action-popup/docs/cssVariables.ts +45 -0
- package/src/action-popup/types.ts +43 -0
- package/src/autocomplete/docs/Description.en.md +51 -0
- package/src/autocomplete/docs/Description.ru.md +51 -0
- package/src/autocomplete/docs/Example.en.md +17 -0
- package/src/autocomplete/docs/Example.ru.md +17 -0
- package/src/autocomplete/docs/cssVariables.ts +98 -0
- package/src/autocomplete/types.ts +95 -0
- package/src/autocomplete-async/docs/Description.en.md +67 -0
- package/src/autocomplete-async/docs/Description.ru.md +67 -0
- package/src/autocomplete-async/docs/Example.en.md +14 -0
- package/src/autocomplete-async/docs/Example.ru.md +14 -0
- package/src/autocomplete-async/docs/cssVariables.ts +98 -0
- package/src/autocomplete-async/types.ts +93 -0
- package/src/badge/docs/Description.en.md +22 -0
- package/src/badge/docs/Description.ru.md +22 -0
- package/src/badge/docs/Example.en.md +8 -0
- package/src/badge/docs/Example.ru.md +8 -0
- package/src/badge/docs/cssVariables.ts +22 -0
- package/src/badge/types.ts +26 -0
- package/src/bottom-sheet/docs/Description.en.md +27 -0
- package/src/bottom-sheet/docs/Description.ru.md +27 -0
- package/src/bottom-sheet/docs/Example.en.md +14 -0
- package/src/bottom-sheet/docs/Example.ru.md +14 -0
- package/src/bottom-sheet/docs/cssVariables.ts +45 -0
- package/src/bottom-sheet/types.ts +52 -0
- package/src/button/docs/Description.en.md +24 -0
- package/src/button/docs/Description.ru.md +24 -0
- package/src/button/docs/Example.en.md +11 -0
- package/src/button/docs/Example.ru.md +11 -0
- package/src/button/docs/cssVariables.ts +41 -0
- package/src/button/types.ts +48 -0
- package/src/calendar/types.ts +10 -0
- package/src/checkbox/docs/Description.en.md +42 -0
- package/src/checkbox/docs/Description.ru.md +42 -0
- package/src/checkbox/docs/Example.en.md +13 -0
- package/src/checkbox/docs/Example.ru.md +13 -0
- package/src/checkbox/docs/cssVariables.ts +26 -0
- package/src/checkbox/types.ts +66 -0
- package/src/checkbox-group/docs/Description.en.md +39 -0
- package/src/checkbox-group/docs/Description.ru.md +39 -0
- package/src/checkbox-group/docs/Example.en.md +17 -0
- package/src/checkbox-group/docs/Example.ru.md +17 -0
- package/src/checkbox-group/docs/cssVariables.ts +26 -0
- package/src/checkbox-group/types.ts +53 -0
- package/src/combobox/types.ts +14 -0
- package/src/date-picker/docs/Description.en.md +43 -0
- package/src/date-picker/docs/Description.ru.md +43 -0
- package/src/date-picker/docs/Example.en.md +15 -0
- package/src/date-picker/docs/Example.ru.md +15 -0
- package/src/date-picker/docs/cssVariables.ts +63 -0
- package/src/date-picker/types.ts +69 -0
- package/src/date-range-picker/docs/Description.en.md +39 -0
- package/src/date-range-picker/docs/Description.ru.md +39 -0
- package/src/date-range-picker/docs/Example.en.md +19 -0
- package/src/date-range-picker/docs/Example.ru.md +19 -0
- package/src/date-range-picker/docs/cssVariables.ts +63 -0
- package/src/date-range-picker/types.ts +75 -0
- package/src/drawer/docs/Description.en.md +28 -0
- package/src/drawer/docs/Description.ru.md +28 -0
- package/src/drawer/docs/Example.en.md +14 -0
- package/src/drawer/docs/Example.ru.md +14 -0
- package/src/drawer/docs/cssVariables.ts +40 -0
- package/src/drawer/types.ts +60 -0
- package/src/ds/typography/docs/Description.en.md +30 -0
- package/src/ds/typography/docs/Description.ru.md +30 -0
- package/src/field/docs/Description.en.md +28 -0
- package/src/field/docs/Description.ru.md +28 -0
- package/src/field/docs/Example.en.md +16 -0
- package/src/field/docs/Example.ru.md +16 -0
- package/src/field/docs/cssVariables.ts +9 -0
- package/src/field/types.ts +57 -0
- package/src/field-clear-button/types.ts +12 -0
- package/src/form/docs/Description.en.md +33 -0
- package/src/form/docs/Description.ru.md +33 -0
- package/src/form/docs/Example.en.md +18 -0
- package/src/form/docs/Example.ru.md +18 -0
- package/src/form/types.ts +112 -0
- package/src/input/docs/Description.en.md +41 -0
- package/src/input/docs/Description.ru.md +41 -0
- package/src/input/docs/Example.en.md +21 -0
- package/src/input/docs/Example.ru.md +21 -0
- package/src/input/docs/cssVariables.ts +24 -0
- package/src/input/types.ts +45 -0
- package/src/loader/docs/Description.en.md +21 -0
- package/src/loader/docs/Description.ru.md +21 -0
- package/src/loader/docs/Example.en.md +10 -0
- package/src/loader/docs/Example.ru.md +10 -0
- package/src/loader/docs/cssVariables.ts +17 -0
- package/src/loader/types.ts +27 -0
- package/src/modal/docs/Description.en.md +25 -0
- package/src/modal/docs/Description.ru.md +25 -0
- package/src/modal/docs/Example.en.md +15 -0
- package/src/modal/docs/Example.ru.md +15 -0
- package/src/modal/docs/cssVariables.ts +45 -0
- package/src/modal/types.ts +56 -0
- package/src/modal-hub/docs/Description.en.md +35 -0
- package/src/modal-hub/docs/Description.ru.md +35 -0
- package/src/modal-hub/docs/Example.en.md +20 -0
- package/src/modal-hub/docs/Example.ru.md +20 -0
- package/src/modal-hub/docs/cssVariables.ts +45 -0
- package/src/modal-hub/types.ts +46 -0
- package/src/multi-autocomplete/docs/Description.en.md +52 -0
- package/src/multi-autocomplete/docs/Description.ru.md +52 -0
- package/src/multi-autocomplete/docs/Example.en.md +12 -0
- package/src/multi-autocomplete/docs/Example.ru.md +12 -0
- package/src/multi-autocomplete/docs/cssVariables.ts +98 -0
- package/src/multi-autocomplete/types.ts +99 -0
- package/src/multi-autocomplete-async/docs/Description.en.md +54 -0
- package/src/multi-autocomplete-async/docs/Description.ru.md +54 -0
- package/src/multi-autocomplete-async/docs/Example.en.md +5 -0
- package/src/multi-autocomplete-async/docs/Example.ru.md +5 -0
- package/src/multi-autocomplete-async/docs/cssVariables.ts +98 -0
- package/src/multi-autocomplete-async/types.ts +72 -0
- package/src/multi-select/docs/Description.en.md +46 -0
- package/src/multi-select/docs/Description.ru.md +46 -0
- package/src/multi-select/docs/Example.en.md +20 -0
- package/src/multi-select/docs/Example.ru.md +20 -0
- package/src/multi-select/docs/cssVariables.ts +98 -0
- package/src/multi-select/types.ts +70 -0
- package/src/number-input/docs/Description.en.md +46 -0
- package/src/number-input/docs/Description.ru.md +46 -0
- package/src/number-input/docs/Example.en.md +19 -0
- package/src/number-input/docs/Example.ru.md +19 -0
- package/src/number-input/docs/cssVariables.ts +25 -0
- package/src/number-input/types.ts +97 -0
- package/src/popover/docs/Description.en.md +33 -0
- package/src/popover/docs/Description.ru.md +33 -0
- package/src/popover/docs/Example.en.md +13 -0
- package/src/popover/docs/Example.ru.md +13 -0
- package/src/popover/docs/cssVariables.ts +23 -0
- package/src/popover/types.ts +44 -0
- package/src/provider/docs/Description.en.md +24 -0
- package/src/provider/docs/Description.ru.md +24 -0
- package/src/provider/docs/Example.en.md +10 -0
- package/src/provider/docs/Example.ru.md +10 -0
- package/src/provider/types.ts +52 -0
- package/src/select/docs/Description.en.md +46 -0
- package/src/select/docs/Description.ru.md +46 -0
- package/src/select/docs/Example.en.md +20 -0
- package/src/select/docs/Example.ru.md +20 -0
- package/src/select/docs/cssVariables.ts +98 -0
- package/src/select/types.ts +67 -0
- package/src/switch/docs/Description.en.md +39 -0
- package/src/switch/docs/Description.ru.md +39 -0
- package/src/switch/docs/Example.en.md +13 -0
- package/src/switch/docs/Example.ru.md +13 -0
- package/src/switch/docs/cssVariables.ts +29 -0
- package/src/switch/types.ts +59 -0
- package/src/table/docs/Description.en.md +31 -0
- package/src/table/docs/Description.ru.md +31 -0
- package/src/table/docs/Example.en.md +71 -0
- package/src/table/docs/Example.ru.md +71 -0
- package/src/table/docs/cssVariables.ts +57 -0
- package/src/table/types.ts +77 -0
- package/src/tabs/docs/Description.en.md +24 -0
- package/src/tabs/docs/Description.ru.md +24 -0
- package/src/tabs/docs/Example.en.md +12 -0
- package/src/tabs/docs/Example.ru.md +12 -0
- package/src/tabs/docs/cssVariables.ts +30 -0
- package/src/tabs/types.ts +94 -0
- package/src/tag/docs/Description.en.md +24 -0
- package/src/tag/docs/Description.ru.md +24 -0
- package/src/tag/docs/Example.en.md +6 -0
- package/src/tag/docs/Example.ru.md +6 -0
- package/src/tag/docs/cssVariables.ts +21 -0
- package/src/tag/types.ts +30 -0
- package/src/textarea/docs/Description.en.md +40 -0
- package/src/textarea/docs/Description.ru.md +40 -0
- package/src/textarea/docs/Example.en.md +21 -0
- package/src/textarea/docs/Example.ru.md +21 -0
- package/src/textarea/docs/cssVariables.ts +27 -0
- package/src/textarea/types.ts +53 -0
- package/src/time-field/docs/Description.en.md +41 -0
- package/src/time-field/docs/Description.ru.md +41 -0
- package/src/time-field/docs/Example.en.md +9 -0
- package/src/time-field/docs/Example.ru.md +9 -0
- package/src/time-field/docs/cssVariables.ts +27 -0
- package/src/time-field/types.ts +67 -0
- package/src/toast/docs/Description.en.md +57 -0
- package/src/toast/docs/Description.ru.md +57 -0
- package/src/toast/docs/Example.en.md +25 -0
- package/src/toast/docs/Example.ru.md +25 -0
- package/src/toast/docs/cssVariables.ts +30 -0
- package/src/toast/types.ts +52 -0
- package/src/tooltip/docs/Description.en.md +34 -0
- package/src/tooltip/docs/Description.ru.md +34 -0
- package/src/tooltip/docs/Example.en.md +10 -0
- package/src/tooltip/docs/Example.ru.md +10 -0
- package/src/tooltip/docs/cssVariables.ts +22 -0
- package/src/tooltip/types.ts +44 -0
|
@@ -0,0 +1,716 @@
|
|
|
1
|
+
import { useState as Z, useRef as R, useEffect as pe, useCallback as re, useLayoutEffect as Te, useMemo as P } from "react";
|
|
2
|
+
import { CalendarDate as De, startOfMonth as W, toCalendarDate as v, endOfMonth as Ze, today as Ee, getLocalTimeZone as Ie } from "@internationalized/date";
|
|
3
|
+
import { jsx as D, jsxs as z, Fragment as _e } from "react/jsx-runtime";
|
|
4
|
+
import me from "classnames";
|
|
5
|
+
import { useLocale as Ke, Select as Xe, Button as Je, SelectValue as Qe, Popover as et, ListBox as tt, ListBoxItem as nt } from "react-aria-components";
|
|
6
|
+
import { typographyStyles as Re } from "./typography/index.js";
|
|
7
|
+
import { C as rt } from "./ChevronDown-DLasRilY.js";
|
|
8
|
+
import './assets/index19.css';const ge = 3, ot = 1900, st = 2100, at = 200, ct = 300, lt = 150, B = {
|
|
9
|
+
cellSize: 32,
|
|
10
|
+
headingHeight: 36,
|
|
11
|
+
monthGap: 8,
|
|
12
|
+
weekdayRowHeight: 32,
|
|
13
|
+
monthBottomGap: 16
|
|
14
|
+
}, it = 320, ut = (e, t) => {
|
|
15
|
+
const n = e != null ? v(e).year : ot, r = t != null ? v(t).year : st;
|
|
16
|
+
return n > r ? { minYear: r, maxYear: n } : { minYear: n, maxYear: r };
|
|
17
|
+
}, Ce = (e, t, n) => {
|
|
18
|
+
let r = 1, o = 12;
|
|
19
|
+
if (t != null) {
|
|
20
|
+
const s = v(t);
|
|
21
|
+
if (e < s.year)
|
|
22
|
+
return { minMonth: 1, maxMonth: 0 };
|
|
23
|
+
e === s.year && (r = s.month);
|
|
24
|
+
}
|
|
25
|
+
if (n != null) {
|
|
26
|
+
const s = v(n);
|
|
27
|
+
if (e > s.year)
|
|
28
|
+
return { minMonth: 1, maxMonth: 0 };
|
|
29
|
+
e === s.year && (o = s.month);
|
|
30
|
+
}
|
|
31
|
+
return r > o ? { minMonth: r, maxMonth: r - 1 } : { minMonth: r, maxMonth: o };
|
|
32
|
+
}, Ue = (e) => {
|
|
33
|
+
const t = new Intl.DateTimeFormat(e, { month: "long" });
|
|
34
|
+
return Array.from({ length: 12 }, (n, r) => t.format(new Date(Date.UTC(2024, r, 1))));
|
|
35
|
+
}, k = (e) => `${e.year}-${String(e.month).padStart(2, "0")}`, U = (e) => {
|
|
36
|
+
const t = /^(\d{4})-(\d{2})$/.exec(e);
|
|
37
|
+
if (!t)
|
|
38
|
+
return null;
|
|
39
|
+
const n = Number(t[1]), r = Number(t[2]);
|
|
40
|
+
return r < 1 || r > 12 ? null : new De(n, r, 1);
|
|
41
|
+
}, We = (e, t = 1) => {
|
|
42
|
+
const n = W(v(e)), r = Ze(n).day, s = (n.toDate("UTC").getDay() - t + 7) % 7;
|
|
43
|
+
return Math.ceil((r + s) / 7);
|
|
44
|
+
}, we = (e, t = B, n = 1) => {
|
|
45
|
+
const r = U(e), o = r ? We(r, n) : 5;
|
|
46
|
+
return t.headingHeight + t.monthGap + t.weekdayRowHeight + o * t.cellSize + t.monthBottomGap;
|
|
47
|
+
}, se = (e = B) => (t) => we(t, e), Be = (e = "UTC") => Ee(e), X = (e = ge) => Math.floor(e / 2), fe = (e, t = "UTC") => W(e ? v(e) : Be(t)), dt = (e, t) => e.year === t.year && e.month === t.month, K = (e, t) => e.year === t.year && e.month === t.month && e.day === t.day, Ne = (e, t, n) => {
|
|
48
|
+
const r = v(t), o = v(n), s = v(e), a = r.compare(o) <= 0 ? r : o, l = r.compare(o) <= 0 ? o : r;
|
|
49
|
+
return s.compare(a) >= 0 && s.compare(l) <= 0;
|
|
50
|
+
}, he = (e, t, n) => {
|
|
51
|
+
const r = v(e);
|
|
52
|
+
return t != null && r.compare(v(t)) < 0 || n != null && r.compare(v(n)) > 0;
|
|
53
|
+
}, ft = (e, t = 1) => {
|
|
54
|
+
const n = W(v(e)), r = We(n, t), s = (n.toDate("UTC").getDay() - t + 7) % 7;
|
|
55
|
+
let a = n.subtract({ days: s });
|
|
56
|
+
const l = [];
|
|
57
|
+
for (let h = 0; h < r; h += 1) {
|
|
58
|
+
const d = [];
|
|
59
|
+
for (let u = 0; u < 7; u += 1)
|
|
60
|
+
d.push(a), a = a.add({ days: 1 });
|
|
61
|
+
l.push(d);
|
|
62
|
+
}
|
|
63
|
+
return l;
|
|
64
|
+
}, ht = (e, t = 1, n = "short") => {
|
|
65
|
+
const r = new Intl.DateTimeFormat(e, { weekday: n }), o = new Date(Date.UTC(2024, 0, 7));
|
|
66
|
+
return Array.from({ length: 7 }, (s, a) => {
|
|
67
|
+
const l = new Date(o);
|
|
68
|
+
return l.setUTCDate(o.getUTCDate() + (t + a) % 7), Array.from(r.format(l)).slice(0, 2).join("");
|
|
69
|
+
});
|
|
70
|
+
}, mt = (e, t = ge) => Array.from({ length: t }, (n, r) => k(W(e).add({ months: r }))), de = (e, t = ge) => {
|
|
71
|
+
const n = W(v(e)), r = X(t);
|
|
72
|
+
return mt(n.subtract({ months: r }), t);
|
|
73
|
+
}, gt = (e, t) => {
|
|
74
|
+
const n = W(v(e)), r = W(v(t));
|
|
75
|
+
return r.year * 12 + r.month - (n.year * 12 + n.month);
|
|
76
|
+
}, Le = 1, yt = /* @__PURE__ */ new Set([
|
|
77
|
+
"ArrowLeft",
|
|
78
|
+
"ArrowRight",
|
|
79
|
+
"ArrowUp",
|
|
80
|
+
"ArrowDown",
|
|
81
|
+
"Home",
|
|
82
|
+
"End",
|
|
83
|
+
"PageUp",
|
|
84
|
+
"PageDown"
|
|
85
|
+
]), oe = (e, t) => he(e, t.minValue, t.maxValue) || !!t.isDateUnavailable?.(e), Oe = (e, t = Le) => (e.toDate("UTC").getDay() - t + 7) % 7, Mt = (e, t, n = Le) => {
|
|
86
|
+
switch (t) {
|
|
87
|
+
case "ArrowLeft":
|
|
88
|
+
return e.subtract({ days: 1 });
|
|
89
|
+
case "ArrowRight":
|
|
90
|
+
return e.add({ days: 1 });
|
|
91
|
+
case "ArrowUp":
|
|
92
|
+
return e.subtract({ days: 7 });
|
|
93
|
+
case "ArrowDown":
|
|
94
|
+
return e.add({ days: 7 });
|
|
95
|
+
case "Home": {
|
|
96
|
+
const r = Oe(e, n);
|
|
97
|
+
return e.subtract({ days: r });
|
|
98
|
+
}
|
|
99
|
+
case "End": {
|
|
100
|
+
const r = Oe(e, n);
|
|
101
|
+
return e.add({ days: 6 - r });
|
|
102
|
+
}
|
|
103
|
+
case "PageUp":
|
|
104
|
+
return e.subtract({ months: 1 });
|
|
105
|
+
case "PageDown":
|
|
106
|
+
return e.add({ months: 1 });
|
|
107
|
+
default:
|
|
108
|
+
return e;
|
|
109
|
+
}
|
|
110
|
+
}, bt = (e) => {
|
|
111
|
+
switch (e) {
|
|
112
|
+
case "ArrowLeft":
|
|
113
|
+
case "ArrowUp":
|
|
114
|
+
case "Home":
|
|
115
|
+
case "PageUp":
|
|
116
|
+
return -1;
|
|
117
|
+
default:
|
|
118
|
+
return 1;
|
|
119
|
+
}
|
|
120
|
+
}, St = (e, t, n = {}) => {
|
|
121
|
+
const r = n.firstDayOfWeek ?? Le;
|
|
122
|
+
let o = Mt(e, t, r);
|
|
123
|
+
if (he(o, n.minValue, n.maxValue) && (n.minValue != null && o.compare(n.minValue) < 0 && (o = n.minValue), n.maxValue != null && o.compare(n.maxValue) > 0 && (o = n.maxValue)), oe(o, n) && o.compare(e) === 0)
|
|
124
|
+
return e;
|
|
125
|
+
const s = bt(t);
|
|
126
|
+
for (let a = 0; a < 366 && oe(o, n); a += 1) {
|
|
127
|
+
const l = o.add({ days: s });
|
|
128
|
+
if (he(l, n.minValue, n.maxValue))
|
|
129
|
+
return e;
|
|
130
|
+
o = l;
|
|
131
|
+
}
|
|
132
|
+
return oe(o, n) ? e : o;
|
|
133
|
+
}, _t = (e, t) => t.minValue != null && e.compare(t.minValue) < 0 ? t.minValue : t.maxValue != null && e.compare(t.maxValue) > 0 ? t.maxValue : e, Ge = (e, t = {}) => {
|
|
134
|
+
const n = Ie(), r = Ee(n), o = _t(e ?? r, t);
|
|
135
|
+
let s = o;
|
|
136
|
+
for (let a = 0; a < 366 * 3; a += 1) {
|
|
137
|
+
if (!oe(s, t))
|
|
138
|
+
return s;
|
|
139
|
+
const l = s.add({ days: 1 });
|
|
140
|
+
if (t.maxValue != null && l.compare(t.maxValue) > 0)
|
|
141
|
+
break;
|
|
142
|
+
s = l;
|
|
143
|
+
}
|
|
144
|
+
s = o;
|
|
145
|
+
for (let a = 0; a < 366 * 3; a += 1) {
|
|
146
|
+
if (!oe(s, t))
|
|
147
|
+
return s;
|
|
148
|
+
const l = s.subtract({ days: 1 });
|
|
149
|
+
if (t.minValue != null && l.compare(t.minValue) < 0)
|
|
150
|
+
break;
|
|
151
|
+
s = l;
|
|
152
|
+
}
|
|
153
|
+
return t.minValue ?? r;
|
|
154
|
+
}, pt = (e, t, n, r = {}) => {
|
|
155
|
+
const o = e.set({ year: t, month: n });
|
|
156
|
+
return Ge(o, r);
|
|
157
|
+
}, Dt = (e, t) => {
|
|
158
|
+
const n = t.toString(), r = e?.querySelector(`[data-date="${n}"]:not([data-outside-month])`) ?? e?.querySelector(`[data-date="${n}"]`);
|
|
159
|
+
return r instanceof HTMLElement ? (r.focus({ preventScroll: !0 }), !0) : !1;
|
|
160
|
+
}, ve = (e, t, n = 12) => {
|
|
161
|
+
Dt(e, t) || n <= 0 || requestAnimationFrame(() => ve(e, t, n - 1));
|
|
162
|
+
}, Qt = ({
|
|
163
|
+
viewportRef: e,
|
|
164
|
+
ensureMonthVisible: t,
|
|
165
|
+
preferredDate: n = null,
|
|
166
|
+
minValue: r = null,
|
|
167
|
+
maxValue: o = null,
|
|
168
|
+
isDateUnavailable: s,
|
|
169
|
+
onSelect: a,
|
|
170
|
+
autoFocusDay: l = !1
|
|
171
|
+
}) => {
|
|
172
|
+
const h = { minValue: r, maxValue: o, isDateUnavailable: s }, [d, u] = Z(() => Ge(n, h)), i = R(d);
|
|
173
|
+
i.current = d;
|
|
174
|
+
const _ = R(!1), [L, w] = Z(l);
|
|
175
|
+
pe(() => {
|
|
176
|
+
if (_.current || (_.current = !0, !l))
|
|
177
|
+
return;
|
|
178
|
+
w(!0);
|
|
179
|
+
const m = requestAnimationFrame(() => {
|
|
180
|
+
ve(e.current, i.current);
|
|
181
|
+
});
|
|
182
|
+
return () => cancelAnimationFrame(m);
|
|
183
|
+
}, [l, e]);
|
|
184
|
+
const x = re(
|
|
185
|
+
(m) => {
|
|
186
|
+
w(!0), u(m), i.current = m, t(m), ve(e.current, m);
|
|
187
|
+
},
|
|
188
|
+
[t, e]
|
|
189
|
+
), T = re((m) => {
|
|
190
|
+
w(!0), u(m), i.current = m;
|
|
191
|
+
}, []), g = re((m) => {
|
|
192
|
+
const E = m.relatedTarget;
|
|
193
|
+
E instanceof Element && E.closest("[data-date]") || w(!1);
|
|
194
|
+
}, []), S = re(
|
|
195
|
+
(m, E) => {
|
|
196
|
+
const M = pt(i.current, m, E, h);
|
|
197
|
+
w(!0), u(M), i.current = M;
|
|
198
|
+
},
|
|
199
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
200
|
+
[s, o, r]
|
|
201
|
+
), Y = re(
|
|
202
|
+
(m) => {
|
|
203
|
+
if (m.key === "Enter" || m.key === " ") {
|
|
204
|
+
m.preventDefault(), a?.(i.current);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
if (!yt.has(m.key))
|
|
208
|
+
return;
|
|
209
|
+
m.preventDefault();
|
|
210
|
+
const E = St(i.current, m.key, h);
|
|
211
|
+
E.compare(i.current) !== 0 && x(E);
|
|
212
|
+
},
|
|
213
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
214
|
+
[s, o, r, x, a]
|
|
215
|
+
);
|
|
216
|
+
return { focusedDate: d, onDayFocus: T, onDayBlur: g, onDayKeyDown: Y, setFocusedDateFromParts: S, isGridEngaged: L };
|
|
217
|
+
}, wt = 6, vt = (e, t, n = wt) => {
|
|
218
|
+
const r = W(v(e));
|
|
219
|
+
let o = gt(r, t), s = 0;
|
|
220
|
+
o > 0 && (s = 1), o < 0 && (s = -1), Math.abs(o) > n && (o = s * n);
|
|
221
|
+
const a = r.add({ months: o }), l = k(r), h = k(a), d = Math.abs(o) + 1, u = o >= 0 ? r : a;
|
|
222
|
+
let i = Array.from({ length: d }, (g, S) => k(u.add({ months: S })));
|
|
223
|
+
const _ = X(ge), L = U(i[0]), w = U(i[i.length - 1]), x = Array.from({ length: _ }, (g, S) => k(L.subtract({ months: _ - S }))), T = Array.from({ length: _ }, (g, S) => k(w.add({ months: S + 1 })));
|
|
224
|
+
return i = [...x, ...i, ...T], { keys: i, fromKey: l, toKey: h };
|
|
225
|
+
}, qe = (e, t, n = se()) => {
|
|
226
|
+
if (e.length === 0)
|
|
227
|
+
return [];
|
|
228
|
+
const r = X(e.length), o = Array.from({ length: e.length }, () => 0);
|
|
229
|
+
o[r] = t;
|
|
230
|
+
for (let s = r - 1; s >= 0; s -= 1)
|
|
231
|
+
o[s] = o[s + 1] - n(e[s]);
|
|
232
|
+
for (let s = r + 1; s < e.length; s += 1)
|
|
233
|
+
o[s] = o[s - 1] + n(e[s - 1]);
|
|
234
|
+
return o;
|
|
235
|
+
}, Fe = (e, t, n = se()) => {
|
|
236
|
+
if (e.length === 0)
|
|
237
|
+
return [];
|
|
238
|
+
const r = Array.from({ length: e.length }, () => 0);
|
|
239
|
+
r[0] = t;
|
|
240
|
+
for (let o = 1; o < e.length; o += 1)
|
|
241
|
+
r[o] = r[o - 1] + n(e[o - 1]);
|
|
242
|
+
return r;
|
|
243
|
+
}, Pe = (e, t, n = se()) => {
|
|
244
|
+
const r = e.indexOf(t);
|
|
245
|
+
if (r <= 0)
|
|
246
|
+
return 0;
|
|
247
|
+
let o = 0;
|
|
248
|
+
for (let s = 0; s < r; s += 1)
|
|
249
|
+
o += n(e[s]);
|
|
250
|
+
return -o;
|
|
251
|
+
}, At = B.headingHeight + B.cellSize, Et = (e, t, n = se(), r = At, o = 0) => {
|
|
252
|
+
if (e.length === 0)
|
|
253
|
+
return t;
|
|
254
|
+
const s = qe(e, t, n);
|
|
255
|
+
let a = 0, l = Math.abs(s[0]);
|
|
256
|
+
for (let u = 1; u < s.length; u += 1) {
|
|
257
|
+
const i = Math.abs(s[u]);
|
|
258
|
+
i < l && (l = i, a = u);
|
|
259
|
+
}
|
|
260
|
+
if (l > r)
|
|
261
|
+
return t;
|
|
262
|
+
const h = X(e.length);
|
|
263
|
+
let d = 0;
|
|
264
|
+
if (a < h)
|
|
265
|
+
for (let u = a; u < h; u += 1)
|
|
266
|
+
d += n(e[u]);
|
|
267
|
+
if (a > h)
|
|
268
|
+
for (let u = h; u < a; u += 1)
|
|
269
|
+
d -= n(e[u]);
|
|
270
|
+
if (o > 0 && l > 0.5 && Math.abs(d - t) < r) {
|
|
271
|
+
const u = B.cellSize, i = d - u;
|
|
272
|
+
if (Math.abs(i - t) < Math.abs(d - t))
|
|
273
|
+
return i;
|
|
274
|
+
}
|
|
275
|
+
return d;
|
|
276
|
+
}, It = (e, t, n, r = se()) => {
|
|
277
|
+
let o = e.length > 0 ? [...e] : de(Be()), s = t - n;
|
|
278
|
+
const a = 24, l = X(o.length);
|
|
279
|
+
if (n < 0)
|
|
280
|
+
for (let d = 0; d < a; d += 1) {
|
|
281
|
+
const u = o[l - 1];
|
|
282
|
+
if (!u || s < r(u))
|
|
283
|
+
break;
|
|
284
|
+
s -= r(u);
|
|
285
|
+
const i = U(o[l]);
|
|
286
|
+
if (!i)
|
|
287
|
+
break;
|
|
288
|
+
o = de(i.subtract({ months: 1 }));
|
|
289
|
+
}
|
|
290
|
+
if (n > 0)
|
|
291
|
+
for (let d = 0; d < a; d += 1) {
|
|
292
|
+
const u = o[l];
|
|
293
|
+
if (!u || s >= 0)
|
|
294
|
+
break;
|
|
295
|
+
s += r(u);
|
|
296
|
+
const i = U(u);
|
|
297
|
+
if (!i)
|
|
298
|
+
break;
|
|
299
|
+
o = de(i.add({ months: 1 }));
|
|
300
|
+
}
|
|
301
|
+
const h = U(o[X(o.length)]) ?? fe(null);
|
|
302
|
+
return { monthKeys: o, scrollPosition: s, centerMonth: h };
|
|
303
|
+
}, Rt = (e) => {
|
|
304
|
+
const { deltaY: t, deltaMode: n } = e;
|
|
305
|
+
return n === 1 ? t * 16 : n === 2 ? t * it : t;
|
|
306
|
+
}, en = (e) => e != null ? v(e) : null, ue = (e, t) => {
|
|
307
|
+
const n = fe(e, t);
|
|
308
|
+
return {
|
|
309
|
+
centerMonth: n,
|
|
310
|
+
monthKeys: de(n),
|
|
311
|
+
scrollPosition: 0,
|
|
312
|
+
layout: "centered"
|
|
313
|
+
};
|
|
314
|
+
}, tn = (e) => {
|
|
315
|
+
const t = Ie(), [n, r] = Z(() => ue(e, t)), [o, s] = Z(() => /* @__PURE__ */ new Map()), a = R(null), l = R(/* @__PURE__ */ new Map()), h = R(/* @__PURE__ */ new Map()), d = R(/* @__PURE__ */ new Map()), u = R(null), i = R(null), _ = R(null), L = R(null), w = R(0), x = R(0), T = R(n);
|
|
316
|
+
T.current = n;
|
|
317
|
+
const g = e ? k(e) : null, S = (c) => h.current.get(c) ?? we(c), Y = (c, f) => {
|
|
318
|
+
f <= 0 || h.current.get(c) === f || (h.current.set(c, f), s(new Map(h.current)));
|
|
319
|
+
}, m = () => {
|
|
320
|
+
_.current != null && (cancelAnimationFrame(_.current), _.current = null);
|
|
321
|
+
}, E = () => {
|
|
322
|
+
L.current != null && (clearTimeout(L.current), L.current = null);
|
|
323
|
+
}, M = (c, f, b, I) => {
|
|
324
|
+
m();
|
|
325
|
+
const N = performance.now(), C = (O) => {
|
|
326
|
+
const p = Math.min(1, (O - N) / b), A = 1 - (1 - p) ** 3, H = c + (f - c) * A;
|
|
327
|
+
if (r((q) => ({ ...q, scrollPosition: H })), p >= 1) {
|
|
328
|
+
_.current = null, I?.();
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
_.current = requestAnimationFrame(C);
|
|
332
|
+
};
|
|
333
|
+
_.current = requestAnimationFrame(C);
|
|
334
|
+
}, J = R(null);
|
|
335
|
+
J.current = () => {
|
|
336
|
+
E(), L.current = setTimeout(() => {
|
|
337
|
+
L.current = null;
|
|
338
|
+
const c = T.current;
|
|
339
|
+
if (c.layout !== "centered")
|
|
340
|
+
return;
|
|
341
|
+
const f = Et(
|
|
342
|
+
c.monthKeys,
|
|
343
|
+
c.scrollPosition,
|
|
344
|
+
S,
|
|
345
|
+
void 0,
|
|
346
|
+
x.current
|
|
347
|
+
);
|
|
348
|
+
Math.abs(f - c.scrollPosition) < 0.5 || M(c.scrollPosition, f, lt);
|
|
349
|
+
}, ct);
|
|
350
|
+
}, pe(
|
|
351
|
+
() => () => {
|
|
352
|
+
m(), E(), i.current != null && cancelAnimationFrame(i.current), d.current.clear();
|
|
353
|
+
},
|
|
354
|
+
[]
|
|
355
|
+
), Te(() => {
|
|
356
|
+
let c = !1;
|
|
357
|
+
Array.from(l.current.entries()).forEach(([f]) => {
|
|
358
|
+
if (!n.monthKeys.includes(f)) {
|
|
359
|
+
l.current.delete(f), h.current.delete(f) && (c = !0);
|
|
360
|
+
const b = d.current.get(f);
|
|
361
|
+
b && (b.disconnect(), d.current.delete(f));
|
|
362
|
+
}
|
|
363
|
+
}), c && s(new Map(h.current));
|
|
364
|
+
}, [n.monthKeys]), Te(() => {
|
|
365
|
+
const c = a.current;
|
|
366
|
+
if (!c)
|
|
367
|
+
return;
|
|
368
|
+
const f = () => {
|
|
369
|
+
i.current = null;
|
|
370
|
+
const p = w.current;
|
|
371
|
+
w.current = 0, p !== 0 && (x.current = p > 0 ? 1 : -1, r((A) => {
|
|
372
|
+
let { monthKeys: H } = A, { scrollPosition: q } = A;
|
|
373
|
+
if (A.layout === "linear") {
|
|
374
|
+
const ee = Fe(A.monthKeys, A.scrollPosition, S);
|
|
375
|
+
let F = 0, y = Math.abs(ee[0]);
|
|
376
|
+
for (let V = 1; V < ee.length; V += 1) {
|
|
377
|
+
const le = Math.abs(ee[V]);
|
|
378
|
+
le < y && (y = le, F = V);
|
|
379
|
+
}
|
|
380
|
+
const j = U(A.monthKeys[F]), ce = ue(j, t);
|
|
381
|
+
H = ce.monthKeys, q = ce.scrollPosition;
|
|
382
|
+
}
|
|
383
|
+
const Q = It(H, q, p, S);
|
|
384
|
+
return {
|
|
385
|
+
centerMonth: Q.centerMonth,
|
|
386
|
+
monthKeys: Q.monthKeys,
|
|
387
|
+
scrollPosition: Q.scrollPosition,
|
|
388
|
+
layout: "centered"
|
|
389
|
+
};
|
|
390
|
+
}));
|
|
391
|
+
}, b = (p) => {
|
|
392
|
+
m(), E(), w.current += p, i.current == null && (i.current = requestAnimationFrame(f)), J.current();
|
|
393
|
+
}, I = (p) => {
|
|
394
|
+
p.preventDefault(), b(Rt(p));
|
|
395
|
+
}, N = (p) => {
|
|
396
|
+
m(), E(), u.current = p.targetTouches[0]?.clientY ?? null;
|
|
397
|
+
}, C = (p) => {
|
|
398
|
+
const A = p.changedTouches[0]?.clientY;
|
|
399
|
+
if (A == null || u.current == null)
|
|
400
|
+
return;
|
|
401
|
+
p.preventDefault();
|
|
402
|
+
const H = u.current - A;
|
|
403
|
+
u.current = A, b(H);
|
|
404
|
+
}, O = () => {
|
|
405
|
+
u.current = null, J.current();
|
|
406
|
+
};
|
|
407
|
+
return c.addEventListener("wheel", I, { passive: !1 }), c.addEventListener("touchstart", N, { passive: !0 }), c.addEventListener("touchmove", C, { passive: !1 }), c.addEventListener("touchend", O), c.addEventListener("touchcancel", O), () => {
|
|
408
|
+
c.removeEventListener("wheel", I), c.removeEventListener("touchstart", N), c.removeEventListener("touchmove", C), c.removeEventListener("touchend", O), c.removeEventListener("touchcancel", O);
|
|
409
|
+
};
|
|
410
|
+
}, [t]);
|
|
411
|
+
const ye = P(() => {
|
|
412
|
+
const c = (b) => o.get(b) ?? we(b), f = n.layout === "linear" ? Fe(n.monthKeys, n.scrollPosition, c) : qe(n.monthKeys, n.scrollPosition, c);
|
|
413
|
+
return n.monthKeys.map((b, I) => ({
|
|
414
|
+
monthKey: b,
|
|
415
|
+
index: I,
|
|
416
|
+
top: f[I],
|
|
417
|
+
height: c(b)
|
|
418
|
+
}));
|
|
419
|
+
}, [n.monthKeys, n.scrollPosition, n.layout, o]), Me = (c, f) => {
|
|
420
|
+
if (!f) {
|
|
421
|
+
l.current.delete(c);
|
|
422
|
+
const C = d.current.get(c);
|
|
423
|
+
C && (C.disconnect(), d.current.delete(c));
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
const b = l.current.get(c);
|
|
427
|
+
if (l.current.set(c, f), Y(c, f.offsetHeight), typeof ResizeObserver > "u" || b === f && d.current.has(c))
|
|
428
|
+
return;
|
|
429
|
+
const I = d.current.get(c);
|
|
430
|
+
I && I.disconnect();
|
|
431
|
+
const N = new ResizeObserver(() => {
|
|
432
|
+
Y(c, f.offsetHeight);
|
|
433
|
+
});
|
|
434
|
+
N.observe(f), d.current.set(c, N);
|
|
435
|
+
}, G = (c) => {
|
|
436
|
+
E(), m();
|
|
437
|
+
const f = fe(c, t), b = T.current;
|
|
438
|
+
if (k(b.centerMonth) === k(f) && b.scrollPosition === 0 && b.layout === "centered")
|
|
439
|
+
return;
|
|
440
|
+
const { keys: I, fromKey: N, toKey: C } = vt(b.centerMonth, f);
|
|
441
|
+
if (N === C) {
|
|
442
|
+
r(ue(f, t));
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
const O = Pe(I, N, S), p = Pe(I, C, S);
|
|
446
|
+
r({
|
|
447
|
+
centerMonth: f,
|
|
448
|
+
monthKeys: I,
|
|
449
|
+
scrollPosition: O,
|
|
450
|
+
layout: "linear"
|
|
451
|
+
}), requestAnimationFrame(() => {
|
|
452
|
+
M(O, p, at, () => {
|
|
453
|
+
r(ue(f, t));
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}, ae = R(G);
|
|
457
|
+
ae.current = G;
|
|
458
|
+
const be = (c) => {
|
|
459
|
+
const f = k(fe(c, t));
|
|
460
|
+
T.current.monthKeys.includes(f) || G(c);
|
|
461
|
+
};
|
|
462
|
+
return pe(() => {
|
|
463
|
+
!g || e == null || v(e).year < 1e3 || ae.current(e);
|
|
464
|
+
}, [e, g]), { months: ye, viewportRef: a, setMonthEl: Me, scrollToMonth: G, ensureMonthVisible: be };
|
|
465
|
+
}, Lt = "aub_styles-module_viewport_d2434", xt = "aub_styles-module_month_e9e87", ke = {
|
|
466
|
+
viewport: Lt,
|
|
467
|
+
month: xt
|
|
468
|
+
}, Tt = ({ months: e, viewportRef: t, setMonthEl: n, className: r, children: o, ...s }) => /* @__PURE__ */ D("div", { ...s, ref: t, className: me(ke.viewport, r), "data-test-id": "calendar-viewport", children: e.map((a) => /* @__PURE__ */ D(
|
|
469
|
+
"div",
|
|
470
|
+
{
|
|
471
|
+
ref: (l) => n(a.monthKey, l),
|
|
472
|
+
className: ke.month,
|
|
473
|
+
"data-month-key": a.monthKey,
|
|
474
|
+
"data-month-offset": a.index,
|
|
475
|
+
style: { top: a.top },
|
|
476
|
+
children: o(a)
|
|
477
|
+
},
|
|
478
|
+
a.monthKey
|
|
479
|
+
)) });
|
|
480
|
+
Tt.displayName = "MonthList";
|
|
481
|
+
const je = (e, t, n = B.headingHeight) => e >= 0 || t <= 0 || n <= 0 ? 0 : Math.min(-e, Math.max(0, t - n)), Ct = 52, Nt = (e, t, n = B.headingHeight) => {
|
|
482
|
+
if (t <= 0)
|
|
483
|
+
return !1;
|
|
484
|
+
const r = je(e, t, n);
|
|
485
|
+
return !(e > Ct || r >= t - n);
|
|
486
|
+
}, Ot = "aub_styles-module_cell_93826", Ft = {
|
|
487
|
+
cell: Ot
|
|
488
|
+
}, Ve = ({
|
|
489
|
+
date: e,
|
|
490
|
+
label: t,
|
|
491
|
+
isOutsideMonth: n = !1,
|
|
492
|
+
isToday: r = !1,
|
|
493
|
+
isSelected: o = !1,
|
|
494
|
+
isDisabled: s = !1,
|
|
495
|
+
isUnavailable: a = !1,
|
|
496
|
+
isSelectionStart: l = !1,
|
|
497
|
+
isSelectionEnd: h = !1,
|
|
498
|
+
isInRange: d = !1,
|
|
499
|
+
isHovered: u = !1,
|
|
500
|
+
isFocused: i = !1,
|
|
501
|
+
tabIndex: _,
|
|
502
|
+
onSelect: L,
|
|
503
|
+
onHoverChange: w,
|
|
504
|
+
onFocusDate: x,
|
|
505
|
+
onBlurDate: T,
|
|
506
|
+
onKeyDown: g
|
|
507
|
+
}) => {
|
|
508
|
+
const S = s || a, Y = () => {
|
|
509
|
+
x?.(e);
|
|
510
|
+
};
|
|
511
|
+
return /* @__PURE__ */ D(
|
|
512
|
+
"button",
|
|
513
|
+
{
|
|
514
|
+
type: "button",
|
|
515
|
+
className: me(Ft.cell, Re.bodyS),
|
|
516
|
+
"aria-label": t,
|
|
517
|
+
"aria-pressed": o || void 0,
|
|
518
|
+
disabled: S,
|
|
519
|
+
tabIndex: _ ?? (i ? 0 : -1),
|
|
520
|
+
"data-date": e.toString(),
|
|
521
|
+
"data-outside-month": n || void 0,
|
|
522
|
+
"data-today": r || void 0,
|
|
523
|
+
"data-selected": o || void 0,
|
|
524
|
+
"data-disabled": s || void 0,
|
|
525
|
+
"data-unavailable": a || void 0,
|
|
526
|
+
"data-selection-start": l || void 0,
|
|
527
|
+
"data-selection-end": h || void 0,
|
|
528
|
+
"data-in-range": d || void 0,
|
|
529
|
+
"data-hovered": u || void 0,
|
|
530
|
+
"data-focused": i || void 0,
|
|
531
|
+
onClick: () => L?.(e),
|
|
532
|
+
onMouseEnter: () => w?.(e),
|
|
533
|
+
onMouseLeave: () => w?.(null),
|
|
534
|
+
onFocus: Y,
|
|
535
|
+
onBlur: T,
|
|
536
|
+
onKeyDown: i ? g : void 0,
|
|
537
|
+
children: e.day
|
|
538
|
+
}
|
|
539
|
+
);
|
|
540
|
+
};
|
|
541
|
+
Ve.displayName = "DayCell";
|
|
542
|
+
const Pt = "aub_styles-module_headingSelectRoot_a680d", kt = "aub_styles-module_headingSelect_426e9", Ht = "aub_styles-module_headingSelectIcon_77351", Yt = "aub_styles-module_headingMenu_858a7", Kt = "aub_styles-module_headingMenuList_fd355", Ut = "aub_styles-module_headingMenuItem_787b1", $ = {
|
|
543
|
+
headingSelectRoot: Pt,
|
|
544
|
+
headingSelect: kt,
|
|
545
|
+
headingSelectIcon: Ht,
|
|
546
|
+
headingMenu: Yt,
|
|
547
|
+
headingMenuList: Kt,
|
|
548
|
+
headingMenuItem: Ut
|
|
549
|
+
}, Wt = (e, t, n, r = []) => n < t ? [] : e === "month" ? Array.from({ length: n - t + 1 }, (o, s) => {
|
|
550
|
+
const a = t + s;
|
|
551
|
+
return { id: String(a), label: r[a - 1] ?? String(a) };
|
|
552
|
+
}) : Array.from({ length: n - t + 1 }, (o, s) => {
|
|
553
|
+
const a = t + s;
|
|
554
|
+
return { id: String(a), label: String(a) };
|
|
555
|
+
}), Ae = ({
|
|
556
|
+
type: e,
|
|
557
|
+
value: t,
|
|
558
|
+
minValue: n,
|
|
559
|
+
maxValue: r,
|
|
560
|
+
onChange: o,
|
|
561
|
+
onOpenChange: s,
|
|
562
|
+
isDisabled: a = !1,
|
|
563
|
+
"aria-label": l
|
|
564
|
+
}) => {
|
|
565
|
+
const { locale: h } = Ke(), d = R(null), u = P(() => Ue(h), [h]), i = P(
|
|
566
|
+
() => Wt(e, n, r, u),
|
|
567
|
+
[e, n, r, u]
|
|
568
|
+
), _ = String(t), L = i.some((g) => g.id === _), w = e === "month" ? u[t - 1] ?? String(t) : String(t), x = e === "month" ? "calendar-month-select" : "calendar-year-select", T = () => {
|
|
569
|
+
requestAnimationFrame(() => {
|
|
570
|
+
const g = d.current?.querySelector("[data-selected]");
|
|
571
|
+
g && typeof g.scrollIntoView == "function" && g.scrollIntoView({ block: "nearest" });
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
return /* @__PURE__ */ z(
|
|
575
|
+
Xe,
|
|
576
|
+
{
|
|
577
|
+
"aria-label": l,
|
|
578
|
+
selectedKey: L ? _ : null,
|
|
579
|
+
isDisabled: a || i.length === 0,
|
|
580
|
+
onOpenChange: (g) => {
|
|
581
|
+
s?.(g), g && T();
|
|
582
|
+
},
|
|
583
|
+
onSelectionChange: (g) => {
|
|
584
|
+
if (g == null)
|
|
585
|
+
return;
|
|
586
|
+
const S = Number(g);
|
|
587
|
+
!Number.isNaN(S) && S !== t && o(S);
|
|
588
|
+
},
|
|
589
|
+
className: $.headingSelectRoot,
|
|
590
|
+
"data-test-id": x,
|
|
591
|
+
children: [
|
|
592
|
+
/* @__PURE__ */ z(Je, { className: me($.headingSelect, Re.bodyS), "data-test-id": `${x}-trigger`, children: [
|
|
593
|
+
/* @__PURE__ */ D(Qe, { children: () => w }),
|
|
594
|
+
/* @__PURE__ */ D(rt, { className: $.headingSelectIcon, "aria-hidden": !0 })
|
|
595
|
+
] }),
|
|
596
|
+
/* @__PURE__ */ D(et, { className: $.headingMenu, placement: "bottom start", children: /* @__PURE__ */ D(tt, { ref: d, className: $.headingMenuList, items: i, children: (g) => /* @__PURE__ */ D(nt, { id: g.id, textValue: g.label, className: $.headingMenuItem, children: g.label }) }) })
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
);
|
|
600
|
+
};
|
|
601
|
+
Ae.displayName = "MonthYearSelect";
|
|
602
|
+
const Bt = "aub_styles-module_heading_7df16", Gt = "aub_styles-module_grid_53e8b", He = {
|
|
603
|
+
heading: Bt,
|
|
604
|
+
grid: Gt
|
|
605
|
+
}, Ye = 1, qt = ({
|
|
606
|
+
monthKey: e,
|
|
607
|
+
monthTop: t = 0,
|
|
608
|
+
monthHeight: n = 0,
|
|
609
|
+
selectedDate: r = null,
|
|
610
|
+
rangeStart: o = null,
|
|
611
|
+
rangeEnd: s = null,
|
|
612
|
+
rangeAnchor: a = null,
|
|
613
|
+
hoveredDate: l = null,
|
|
614
|
+
minValue: h = null,
|
|
615
|
+
maxValue: d = null,
|
|
616
|
+
isDateUnavailable: u,
|
|
617
|
+
isDisabled: i = !1,
|
|
618
|
+
onSelect: _,
|
|
619
|
+
onHoverChange: L,
|
|
620
|
+
onMonthYearChange: w,
|
|
621
|
+
focusedDate: x = null,
|
|
622
|
+
isGridEngaged: T = !0,
|
|
623
|
+
onFocusDate: g,
|
|
624
|
+
onBlurDate: S,
|
|
625
|
+
onDayKeyDown: Y
|
|
626
|
+
}) => {
|
|
627
|
+
const { locale: m } = Ke(), E = Ie(), M = P(() => U(e), [e]), J = P(() => M ? ft(M, Ye) : [], [M]), ye = P(() => ht(m, Ye), [m]), Me = Ee(E), G = je(t, n), ae = !i && Nt(t, n), [be, c] = Z(!1), [f, b] = Z(!1), I = ae || be || f, N = P(() => ut(h, d), [h, d]), C = P(
|
|
628
|
+
() => M ? Ce(M.year, h, d) : { minMonth: 1, maxMonth: 12 },
|
|
629
|
+
[M, h, d]
|
|
630
|
+
), O = P(() => Ue(m), [m]), p = P(
|
|
631
|
+
() => new Intl.DateTimeFormat(m, { weekday: "long", year: "numeric", month: "long", day: "numeric" }),
|
|
632
|
+
[m]
|
|
633
|
+
);
|
|
634
|
+
if (!M)
|
|
635
|
+
return null;
|
|
636
|
+
const A = l ?? s ?? a, H = o != null && s != null, q = a != null && A != null, Q = (F) => {
|
|
637
|
+
w?.(new De(M.year, F, 1));
|
|
638
|
+
}, ee = (F) => {
|
|
639
|
+
const y = Ce(F, h, d), j = Math.min(Math.max(M.month, y.minMonth), y.maxMonth);
|
|
640
|
+
w?.(new De(F, j, 1));
|
|
641
|
+
};
|
|
642
|
+
return /* @__PURE__ */ z(_e, { children: [
|
|
643
|
+
/* @__PURE__ */ D("div", { className: me(He.heading, Re.bodyS), style: { top: G }, children: I ? /* @__PURE__ */ z(_e, { children: [
|
|
644
|
+
/* @__PURE__ */ D(
|
|
645
|
+
Ae,
|
|
646
|
+
{
|
|
647
|
+
type: "month",
|
|
648
|
+
value: M.month,
|
|
649
|
+
minValue: C.minMonth,
|
|
650
|
+
maxValue: C.maxMonth,
|
|
651
|
+
isDisabled: i,
|
|
652
|
+
"aria-label": O[M.month - 1],
|
|
653
|
+
onChange: Q,
|
|
654
|
+
onOpenChange: c
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
/* @__PURE__ */ D(
|
|
658
|
+
Ae,
|
|
659
|
+
{
|
|
660
|
+
type: "year",
|
|
661
|
+
value: M.year,
|
|
662
|
+
minValue: N.minYear,
|
|
663
|
+
maxValue: N.maxYear,
|
|
664
|
+
isDisabled: i,
|
|
665
|
+
"aria-label": String(M.year),
|
|
666
|
+
onChange: ee,
|
|
667
|
+
onOpenChange: b
|
|
668
|
+
}
|
|
669
|
+
)
|
|
670
|
+
] }) : /* @__PURE__ */ z(_e, { children: [
|
|
671
|
+
/* @__PURE__ */ D("span", { children: O[M.month - 1] }),
|
|
672
|
+
/* @__PURE__ */ D("span", { children: M.year })
|
|
673
|
+
] }) }),
|
|
674
|
+
/* @__PURE__ */ z("table", { className: He.grid, role: "grid", children: [
|
|
675
|
+
/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ D("tr", { children: ye.map((F, y) => /* @__PURE__ */ D("th", { scope: "col", children: F }, y)) }) }),
|
|
676
|
+
/* @__PURE__ */ D("tbody", { children: J.map((F) => /* @__PURE__ */ D("tr", { role: "row", children: F.map((y) => {
|
|
677
|
+
const j = !dt(y, M), ce = he(y, h, d), V = !!u?.(y), le = i || ce, $e = K(y, Me), xe = x != null && K(y, x) && !j, ze = xe && T;
|
|
678
|
+
let ie = !1, te = !1, ne = !1, Se = !1;
|
|
679
|
+
return r != null && K(y, r) && (ie = !0), H && o && s && (te = K(y, o), ne = K(y, s), ie = te || ne, Se = Ne(y, o, s)), !H && q && a && A && (te = K(y, a), ne = K(y, A), ie = te || ne, Se = Ne(y, a, A)), /* @__PURE__ */ D("td", { role: "gridcell", children: /* @__PURE__ */ D(
|
|
680
|
+
Ve,
|
|
681
|
+
{
|
|
682
|
+
date: y,
|
|
683
|
+
label: p.format(y.toDate(E)),
|
|
684
|
+
isOutsideMonth: j,
|
|
685
|
+
isToday: $e,
|
|
686
|
+
isSelected: ie,
|
|
687
|
+
isDisabled: le,
|
|
688
|
+
isUnavailable: V,
|
|
689
|
+
isSelectionStart: te,
|
|
690
|
+
isSelectionEnd: ne,
|
|
691
|
+
isInRange: Se,
|
|
692
|
+
isHovered: l != null && K(y, l),
|
|
693
|
+
isFocused: ze,
|
|
694
|
+
tabIndex: xe ? 0 : -1,
|
|
695
|
+
onSelect: _,
|
|
696
|
+
onHoverChange: L,
|
|
697
|
+
onFocusDate: g,
|
|
698
|
+
onBlurDate: S,
|
|
699
|
+
onKeyDown: Y
|
|
700
|
+
}
|
|
701
|
+
) }, y.toString());
|
|
702
|
+
}) }, F[0]?.toString())) })
|
|
703
|
+
] })
|
|
704
|
+
] });
|
|
705
|
+
};
|
|
706
|
+
qt.displayName = "MonthView";
|
|
707
|
+
export {
|
|
708
|
+
ot as D,
|
|
709
|
+
Tt as M,
|
|
710
|
+
Qt as a,
|
|
711
|
+
qt as b,
|
|
712
|
+
st as c,
|
|
713
|
+
en as t,
|
|
714
|
+
tn as u
|
|
715
|
+
};
|
|
716
|
+
//# sourceMappingURL=index-kZtAof0a.js.map
|