@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 @@
|
|
|
1
|
+
{"version":3,"file":"index-kZtAof0a.js","sources":["../src/calendar/constants.ts","../src/calendar/utils/date.ts","../src/calendar/hooks/useCalendarGridKeyboard/index.ts","../src/calendar/utils/scroll.ts","../src/calendar/hooks/useFakeScrollCalendar.ts","../src/calendar/components/MonthList/index.tsx","../src/calendar/utils/sticky.ts","../src/calendar/components/DayCell/index.tsx","../src/calendar/components/MonthYearSelect/index.tsx","../src/calendar/components/MonthView/index.tsx"],"sourcesContent":["/** Visible month window size for vertical scroll calendar. */\nexport const CALENDAR_WINDOW_MONTHS = 3;\n\n/** Fallback year bounds when DatePicker has no min/max. */\nexport const DEFAULT_YEAR_MIN = 1900;\nexport const DEFAULT_YEAR_MAX = 2100;\n\n/** Animated `scrollToMonth` duration. */\nexport const SCROLL_TO_MONTH_MS = 200;\n\n/** Idle delay before week-row snap. */\nexport const WEEK_SNAP_IDLE_MS = 300;\n\n/** Week-row snap animation duration. */\nexport const WEEK_SNAP_DURATION_MS = 150;\n","import { CalendarDate, type DateValue, endOfMonth, startOfMonth, toCalendarDate, today } from '@internationalized/date';\n\nimport { CALENDAR_WINDOW_MONTHS, DEFAULT_YEAR_MAX, DEFAULT_YEAR_MIN } from '../constants';\n\n/** Layout metrics for month height estimates (px, match `--aui-calendar-*`). */\nexport interface IMonthHeightMetrics {\n /** Day / weekday cell size. */\n cellSize: number;\n /** Month title block height (padding + line). */\n headingHeight: number;\n /** Gap between heading and grid. */\n monthGap: number;\n /** Weekday header row height. */\n weekdayRowHeight: number;\n /** Space after the month (former viewport gap). */\n monthBottomGap: number;\n}\n\n/** Defaults aligned with semantic calendar tokens (`space-8/16/32`). */\nexport const DEFAULT_MONTH_HEIGHT_METRICS: IMonthHeightMetrics = {\n cellSize: 32,\n headingHeight: 36,\n monthGap: 8,\n weekdayRowHeight: 32,\n monthBottomGap: 16,\n};\n\n/** Fallback viewport height (matches `--aui-calendar-max-h`). */\nexport const CALENDAR_VIEWPORT_HEIGHT = 320;\n\n/** Year bounds from optional min/max date constraints. */\nexport const getYearRange = (\n minValue?: DateValue | null,\n maxValue?: DateValue | null\n): { minYear: number; maxYear: number } => {\n const minYear = minValue != null ? toCalendarDate(minValue).year : DEFAULT_YEAR_MIN;\n const maxYear = maxValue != null ? toCalendarDate(maxValue).year : DEFAULT_YEAR_MAX;\n\n if (minYear > maxYear) {\n return { minYear: maxYear, maxYear: minYear };\n }\n\n return { minYear, maxYear };\n};\n\n/** Allowed month numbers (1–12) for `year` given optional min/max dates. */\nexport const getMonthRangeForYear = (\n year: number,\n minValue?: DateValue | null,\n maxValue?: DateValue | null\n): { minMonth: number; maxMonth: number } => {\n let minMonth = 1;\n let maxMonth = 12;\n\n if (minValue != null) {\n const min = toCalendarDate(minValue);\n if (year < min.year) {\n return { minMonth: 1, maxMonth: 0 };\n }\n if (year === min.year) {\n minMonth = min.month;\n }\n }\n\n if (maxValue != null) {\n const max = toCalendarDate(maxValue);\n if (year > max.year) {\n return { minMonth: 1, maxMonth: 0 };\n }\n if (year === max.year) {\n maxMonth = max.month;\n }\n }\n\n if (minMonth > maxMonth) {\n return { minMonth, maxMonth: minMonth - 1 };\n }\n\n return { minMonth, maxMonth };\n};\n\n/** Localized long month names (index 0 = January). */\nexport const getMonthLabels = (locale: string): string[] => {\n const formatter = new Intl.DateTimeFormat(locale, { month: 'long' });\n\n return Array.from({ length: 12 }, (_, index) => formatter.format(new Date(Date.UTC(2024, index, 1))));\n};\n\n/** Height resolver: measured DOM height or estimate. */\nexport type TGetMonthHeight = (monthKey: string) => number;\n\n/** Month key for DOM data attributes (`yyyy-mm`). */\nexport const toMonthKey = (date: DateValue): string => `${date.year}-${String(date.month).padStart(2, '0')}`;\n\n/** Parse `yyyy-mm` month key back to the first day of that month. */\nexport const parseMonthKey = (monthKey: string): CalendarDate | null => {\n const match = /^(\\d{4})-(\\d{2})$/.exec(monthKey);\n if (!match) {\n return null;\n }\n\n const year = Number(match[1]);\n const month = Number(match[2]);\n if (month < 1 || month > 12) {\n return null;\n }\n\n return new CalendarDate(year, month, 1);\n};\n\n/**\n * Week rows in a month grid.\n * `firstDayOfWeek`: 0 = Sunday … 6 = Saturday (JS `Date#getDay`).\n */\nexport const getMonthWeekCount = (month: DateValue, firstDayOfWeek = 1): number => {\n const start = startOfMonth(toCalendarDate(month));\n const daysInMonth = endOfMonth(start).day;\n const jsDay = start.toDate('UTC').getDay();\n const offset = (jsDay - firstDayOfWeek + 7) % 7;\n\n return Math.ceil((daysInMonth + offset) / 7);\n};\n\n/** Estimated pixel height of a month block (Kontur-style formula). */\nexport const estimateMonthHeight = (\n monthKey: string,\n metrics: IMonthHeightMetrics = DEFAULT_MONTH_HEIGHT_METRICS,\n firstDayOfWeek = 1\n): number => {\n const month = parseMonthKey(monthKey);\n const weeks = month ? getMonthWeekCount(month, firstDayOfWeek) : 5;\n\n return (\n metrics.headingHeight +\n metrics.monthGap +\n metrics.weekdayRowHeight +\n weeks * metrics.cellSize +\n metrics.monthBottomGap\n );\n};\n\n/** Default height getter via estimate. */\nexport const createEstimateGetHeight =\n (metrics: IMonthHeightMetrics = DEFAULT_MONTH_HEIGHT_METRICS): TGetMonthHeight =>\n monthKey =>\n estimateMonthHeight(monthKey, metrics);\n\n/** Calendar date for “today” in the given time zone. */\nexport const getToday = (timeZone = 'UTC'): CalendarDate => today(timeZone);\n\n/** Index of the pinned month at `scrollPosition === 0`. */\nexport const getCenterIndex = (windowMonths = CALENDAR_WINDOW_MONTHS): number => Math.floor(windowMonths / 2);\n\n/** Months before the center month in the window. */\nexport const getRecenterOffset = (windowMonths = CALENDAR_WINDOW_MONTHS): number => getCenterIndex(windowMonths);\n\n/** First month of the window so `center` sits at `getCenterIndex()`. */\nexport const getRecenterAnchor = (center: DateValue, windowMonths = CALENDAR_WINDOW_MONTHS): CalendarDate =>\n startOfMonth(toCalendarDate(center)).subtract({ months: getRecenterOffset(windowMonths) });\n\n/** First month of the window for `scrollToDate` (or today). */\nexport const getWindowAnchor = (scrollToDate: DateValue | null | undefined, timeZone = 'UTC'): CalendarDate =>\n getRecenterAnchor(scrollToDate ? toCalendarDate(scrollToDate) : getToday(timeZone));\n\n/** Center month (pinned near the top at scrollPosition 0). */\nexport const getCenterMonth = (scrollToDate: DateValue | null | undefined, timeZone = 'UTC'): CalendarDate =>\n startOfMonth(scrollToDate ? toCalendarDate(scrollToDate) : getToday(timeZone));\n\n/** Whether `date` falls in the same calendar month as `month`. */\nexport const isSameMonth = (date: DateValue, month: DateValue): boolean =>\n date.year === month.year && date.month === month.month;\n\n/** Whether two dates are the same calendar day. */\nexport const isSameDay = (a: DateValue, b: DateValue): boolean =>\n a.year === b.year && a.month === b.month && a.day === b.day;\n\n/** Inclusive range check (`start`/`end` order-insensitive). */\nexport const isDateInRange = (date: DateValue, start: DateValue, end: DateValue): boolean => {\n const a = toCalendarDate(start);\n const b = toCalendarDate(end);\n const d = toCalendarDate(date);\n const lo = a.compare(b) <= 0 ? a : b;\n const hi = a.compare(b) <= 0 ? b : a;\n\n return d.compare(lo) >= 0 && d.compare(hi) <= 0;\n};\n\n/** Whether `date` is before `min` or after `max` (when set). */\nexport const isDateOutOfBounds = (\n date: DateValue,\n minValue?: DateValue | null,\n maxValue?: DateValue | null\n): boolean => {\n const d = toCalendarDate(date);\n if (minValue != null && d.compare(toCalendarDate(minValue)) < 0) {\n return true;\n }\n if (maxValue != null && d.compare(toCalendarDate(maxValue)) > 0) {\n return true;\n }\n\n return false;\n};\n\n/**\n * Week rows for a month grid (includes outside-month padding days).\n * `firstDayOfWeek`: 0 = Sunday … 6 = Saturday (JS `Date#getDay`).\n */\nexport const getMonthWeeks = (month: DateValue, firstDayOfWeek = 1): CalendarDate[][] => {\n const start = startOfMonth(toCalendarDate(month));\n const weekCount = getMonthWeekCount(start, firstDayOfWeek);\n const jsDay = start.toDate('UTC').getDay();\n const offset = (jsDay - firstDayOfWeek + 7) % 7;\n let cursor = start.subtract({ days: offset });\n const weeks: CalendarDate[][] = [];\n\n for (let week = 0; week < weekCount; week += 1) {\n const row: CalendarDate[] = [];\n for (let day = 0; day < 7; day += 1) {\n row.push(cursor);\n cursor = cursor.add({ days: 1 });\n }\n weeks.push(row);\n }\n\n return weeks;\n};\n\n/** Weekday labels for the header row, starting at `firstDayOfWeek`. */\nexport const getWeekdayLabels = (\n locale: string,\n firstDayOfWeek = 1,\n weekday: Intl.DateTimeFormatOptions['weekday'] = 'short'\n): string[] => {\n const formatter = new Intl.DateTimeFormat(locale, { weekday });\n // 2024-01-07 is Sunday — walk 7 days from firstDayOfWeek.\n const sunday = new Date(Date.UTC(2024, 0, 7));\n\n return Array.from({ length: 7 }, (_, index) => {\n const day = new Date(sunday);\n day.setUTCDate(sunday.getUTCDate() + ((firstDayOfWeek + index) % 7));\n // Keep 2 chars so en/ru headers share the same visual width in 32px cells.\n return Array.from(formatter.format(day)).slice(0, 2).join('');\n });\n};\n\n/** End of month for height estimates / visibility checks. */\nexport const monthEnd = (date: DateValue): CalendarDate => endOfMonth(toCalendarDate(date));\n\n/** Month keys for a window starting at `anchor`. */\nexport const getWindowMonthKeys = (anchor: CalendarDate, count = CALENDAR_WINDOW_MONTHS): string[] =>\n Array.from({ length: count }, (_, index) => toMonthKey(startOfMonth(anchor).add({ months: index })));\n\n/** Centered window keys around `center` (`[c-k … c … c+k]` for odd N). */\nexport const getCenteredMonthKeys = (center: DateValue, count = CALENDAR_WINDOW_MONTHS): string[] => {\n const month = startOfMonth(toCalendarDate(center));\n const offset = getCenterIndex(count);\n\n return getWindowMonthKeys(month.subtract({ months: offset }), count);\n};\n\n/** @deprecated Use `getCenteredMonthKeys`. */\nexport const getTripleMonthKeys = (center: DateValue): string[] => getCenteredMonthKeys(center);\n\n/** Signed month distance `to - from` (year*12 + month). */\nexport const monthIndexDelta = (from: DateValue, to: DateValue): number => {\n const a = startOfMonth(toCalendarDate(from));\n const b = startOfMonth(toCalendarDate(to));\n\n return b.year * 12 + b.month - (a.year * 12 + a.month);\n};\n","import { useCallback, useEffect, useRef, useState, type FocusEvent, type KeyboardEvent, type RefObject } from 'react';\n\nimport { type CalendarDate, getLocalTimeZone, today } from '@internationalized/date';\n\nimport { isDateOutOfBounds, toMonthKey } from '../../utils/date';\n\n/** Week starts Monday (aligned with MonthView). */\nexport const CALENDAR_GRID_FIRST_DAY_OF_WEEK = 1;\n\nexport type TCalendarGridNavKey =\n 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Home' | 'End' | 'PageUp' | 'PageDown';\n\nconst NAV_KEYS = new Set<string>([\n 'ArrowLeft',\n 'ArrowRight',\n 'ArrowUp',\n 'ArrowDown',\n 'Home',\n 'End',\n 'PageUp',\n 'PageDown',\n]);\n\n/** Options for grid keyboard movement. */\nexport interface IMoveFocusedDateOptions {\n minValue?: CalendarDate | null;\n maxValue?: CalendarDate | null;\n isDateUnavailable?: (date: CalendarDate) => boolean;\n firstDayOfWeek?: number;\n}\n\nconst isBlocked = (date: CalendarDate, options: IMoveFocusedDateOptions) =>\n isDateOutOfBounds(date, options.minValue, options.maxValue) || Boolean(options.isDateUnavailable?.(date));\n\n/** Day-of-week index relative to `firstDayOfWeek` (0 = start of week). */\nexport const getWeekdayOffset = (date: CalendarDate, firstDayOfWeek = CALENDAR_GRID_FIRST_DAY_OF_WEEK) => {\n const jsDay = date.toDate('UTC').getDay();\n\n return (jsDay - firstDayOfWeek + 7) % 7;\n};\n\n/** One navigation step before skipping blocked days. */\nexport const stepFocusedDate = (\n date: CalendarDate,\n key: TCalendarGridNavKey,\n firstDayOfWeek = CALENDAR_GRID_FIRST_DAY_OF_WEEK\n): CalendarDate => {\n switch (key) {\n case 'ArrowLeft':\n return date.subtract({ days: 1 });\n case 'ArrowRight':\n return date.add({ days: 1 });\n case 'ArrowUp':\n return date.subtract({ days: 7 });\n case 'ArrowDown':\n return date.add({ days: 7 });\n case 'Home': {\n const offset = getWeekdayOffset(date, firstDayOfWeek);\n\n return date.subtract({ days: offset });\n }\n case 'End': {\n const offset = getWeekdayOffset(date, firstDayOfWeek);\n\n return date.add({ days: 6 - offset });\n }\n case 'PageUp':\n return date.subtract({ months: 1 });\n case 'PageDown':\n return date.add({ months: 1 });\n default:\n return date;\n }\n};\n\n/** Direction used when skipping blocked days after a step. */\nexport const getSkipDayDelta = (key: TCalendarGridNavKey): 1 | -1 => {\n switch (key) {\n case 'ArrowLeft':\n case 'ArrowUp':\n case 'Home':\n case 'PageUp':\n return -1;\n default:\n return 1;\n }\n};\n\n/**\n * Move focus by key; skip unavailable / out-of-bounds days in the same direction.\n * Returns `date` unchanged when no valid target exists.\n */\nexport const moveFocusedDate = (\n date: CalendarDate,\n key: TCalendarGridNavKey,\n options: IMoveFocusedDateOptions = {}\n): CalendarDate => {\n const firstDayOfWeek = options.firstDayOfWeek ?? CALENDAR_GRID_FIRST_DAY_OF_WEEK;\n let next = stepFocusedDate(date, key, firstDayOfWeek);\n\n if (isDateOutOfBounds(next, options.minValue, options.maxValue)) {\n if (options.minValue != null && next.compare(options.minValue) < 0) {\n next = options.minValue;\n }\n if (options.maxValue != null && next.compare(options.maxValue) > 0) {\n next = options.maxValue;\n }\n }\n\n if (isBlocked(next, options) && next.compare(date) === 0) {\n return date;\n }\n\n const delta = getSkipDayDelta(key);\n\n for (let guard = 0; guard < 366 && isBlocked(next, options); guard += 1) {\n const candidate = next.add({ days: delta });\n if (isDateOutOfBounds(candidate, options.minValue, options.maxValue)) {\n return date;\n }\n next = candidate;\n }\n\n return isBlocked(next, options) ? date : next;\n};\n\nconst clampIntoBounds = (date: CalendarDate, options: IMoveFocusedDateOptions): CalendarDate => {\n if (options.minValue != null && date.compare(options.minValue) < 0) {\n return options.minValue;\n }\n if (options.maxValue != null && date.compare(options.maxValue) > 0) {\n return options.maxValue;\n }\n\n return date;\n};\n\n/** Initial focus: preferred (clamped) → today → walk to first available. */\nexport const getInitialFocusedDate = (\n preferred: CalendarDate | null | undefined,\n options: IMoveFocusedDateOptions = {}\n): CalendarDate => {\n const timeZone = getLocalTimeZone();\n const todayDate = today(timeZone);\n const start = clampIntoBounds(preferred ?? todayDate, options);\n\n let cursor = start;\n for (let guard = 0; guard < 366 * 3; guard += 1) {\n if (!isBlocked(cursor, options)) {\n return cursor;\n }\n const next = cursor.add({ days: 1 });\n if (options.maxValue != null && next.compare(options.maxValue) > 0) {\n break;\n }\n cursor = next;\n }\n\n cursor = start;\n for (let guard = 0; guard < 366 * 3; guard += 1) {\n if (!isBlocked(cursor, options)) {\n return cursor;\n }\n const prev = cursor.subtract({ days: 1 });\n if (options.minValue != null && prev.compare(options.minValue) < 0) {\n break;\n }\n cursor = prev;\n }\n\n return options.minValue ?? todayDate;\n};\n\n/** Whether `date`'s month is already rendered in the scroll window. */\nexport const shouldScrollToMonth = (monthKeys: readonly string[], date: CalendarDate) =>\n !monthKeys.includes(toMonthKey(date));\n\n/** Move focused day into `year`/`month`, clamping day to month length / bounds. */\nexport const focusedDateInMonth = (\n focusedDate: CalendarDate,\n year: number,\n month: number,\n options: IMoveFocusedDateOptions = {}\n): CalendarDate => {\n const next = focusedDate.set({ year, month });\n const available = getInitialFocusedDate(next, options);\n\n return available;\n};\n\nconst focusDateButton = (viewport: HTMLElement | null, date: CalendarDate) => {\n const iso = date.toString();\n const button =\n viewport?.querySelector(`[data-date=\"${iso}\"]:not([data-outside-month])`) ??\n viewport?.querySelector(`[data-date=\"${iso}\"]`);\n if (button instanceof HTMLElement) {\n button.focus({ preventScroll: true });\n\n return true;\n }\n\n return false;\n};\n\nconst focusDateButtonWhenReady = (viewport: HTMLElement | null, date: CalendarDate, attempts = 12) => {\n if (focusDateButton(viewport, date) || attempts <= 0) {\n return;\n }\n requestAnimationFrame(() => focusDateButtonWhenReady(viewport, date, attempts - 1));\n};\n\n/** Options for calendar grid keyboard hook. */\nexport interface IUseCalendarGridKeyboardOptions {\n viewportRef: RefObject<HTMLElement | null>;\n /** Sync scroll/center month to the focused date (wired to scrollToMonth in calendars). */\n ensureMonthVisible: (date: CalendarDate) => void;\n preferredDate?: CalendarDate | null;\n minValue?: CalendarDate | null;\n maxValue?: CalendarDate | null;\n isDateUnavailable?: (date: CalendarDate) => boolean;\n onSelect?: (date: CalendarDate) => void;\n /** Focus the day cell on mount (keyboard open only). */\n autoFocusDay?: boolean;\n}\n\n/** Roving focus + arrow navigation for the scroll calendar grid. */\nexport const useCalendarGridKeyboard = ({\n viewportRef,\n ensureMonthVisible,\n preferredDate = null,\n minValue = null,\n maxValue = null,\n isDateUnavailable,\n onSelect,\n autoFocusDay = false,\n}: IUseCalendarGridKeyboardOptions) => {\n const moveOptions: IMoveFocusedDateOptions = { minValue, maxValue, isDateUnavailable };\n const [focusedDate, setFocusedDate] = useState(() => getInitialFocusedDate(preferredDate, moveOptions));\n const focusedDateRef = useRef(focusedDate);\n focusedDateRef.current = focusedDate;\n const didInitialFocusRef = useRef(false);\n const [isGridEngaged, setGridEngaged] = useState(autoFocusDay);\n\n useEffect(() => {\n if (didInitialFocusRef.current) {\n return;\n }\n didInitialFocusRef.current = true;\n if (!autoFocusDay) {\n return;\n }\n setGridEngaged(true);\n const frame = requestAnimationFrame(() => {\n focusDateButtonWhenReady(viewportRef.current, focusedDateRef.current);\n });\n\n return () => cancelAnimationFrame(frame);\n }, [autoFocusDay, viewportRef]);\n\n const moveFocusTo = useCallback(\n (next: CalendarDate) => {\n setGridEngaged(true);\n setFocusedDate(next);\n focusedDateRef.current = next;\n // Sync active/center month even when focusedDate already moved (desync with outside cells).\n ensureMonthVisible(next);\n focusDateButtonWhenReady(viewportRef.current, next);\n },\n [ensureMonthVisible, viewportRef]\n );\n\n const onDayFocus = useCallback((date: CalendarDate) => {\n setGridEngaged(true);\n setFocusedDate(date);\n focusedDateRef.current = date;\n }, []);\n\n const onDayBlur = useCallback((event: FocusEvent<HTMLButtonElement>) => {\n const next = event.relatedTarget;\n if (next instanceof Element && next.closest('[data-date]')) {\n return;\n }\n setGridEngaged(false);\n }, []);\n\n const setFocusedDateFromParts = useCallback(\n (year: number, month: number) => {\n const next = focusedDateInMonth(focusedDateRef.current, year, month, moveOptions);\n setGridEngaged(true);\n setFocusedDate(next);\n focusedDateRef.current = next;\n // Do not focus the day cell here — steals focus from MonthYearSelect and drops its popover.\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [isDateUnavailable, maxValue, minValue]\n );\n\n const onDayKeyDown = useCallback(\n (event: KeyboardEvent<HTMLButtonElement>) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n onSelect?.(focusedDateRef.current);\n\n return;\n }\n\n if (!NAV_KEYS.has(event.key)) {\n return;\n }\n\n event.preventDefault();\n const next = moveFocusedDate(focusedDateRef.current, event.key as TCalendarGridNavKey, moveOptions);\n if (next.compare(focusedDateRef.current) === 0) {\n return;\n }\n moveFocusTo(next);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [isDateUnavailable, maxValue, minValue, moveFocusTo, onSelect]\n );\n\n return { focusedDate, onDayFocus, onDayBlur, onDayKeyDown, setFocusedDateFromParts, isGridEngaged };\n};\n","import { type CalendarDate, type DateValue, startOfMonth, toCalendarDate } from '@internationalized/date';\n\nimport { CALENDAR_WINDOW_MONTHS } from '../constants';\n\nimport {\n CALENDAR_VIEWPORT_HEIGHT,\n DEFAULT_MONTH_HEIGHT_METRICS,\n createEstimateGetHeight,\n getCenterIndex,\n getCenterMonth,\n getCenteredMonthKeys,\n getToday,\n monthIndexDelta,\n parseMonthKey,\n toMonthKey,\n type TGetMonthHeight,\n} from './date';\n\n/** Max months to animate across in `scrollToMonth`. */\nexport const MAX_SCROLL_MONTHS = 6;\n\n/**\n * Contiguous month keys from `from` to `to` (inclusive), direction-aware order.\n * Caps distance to `maxMonths`.\n */\nexport const buildScrollPathKeys = (\n from: DateValue,\n to: DateValue,\n maxMonths = MAX_SCROLL_MONTHS\n): { keys: string[]; fromKey: string; toKey: string } => {\n const start = startOfMonth(toCalendarDate(from));\n let delta = monthIndexDelta(start, to);\n let sign = 0;\n if (delta > 0) {\n sign = 1;\n }\n if (delta < 0) {\n sign = -1;\n }\n if (Math.abs(delta) > maxMonths) {\n delta = sign * maxMonths;\n }\n const end = start.add({ months: delta });\n const fromKey = toMonthKey(start);\n const toKey = toMonthKey(end);\n const count = Math.abs(delta) + 1;\n const first = delta >= 0 ? start : end;\n let keys = Array.from({ length: count }, (_, index) => toMonthKey(first.add({ months: index })));\n\n // Padding so the path covers a center-sized window while animating.\n const pad = getCenterIndex(CALENDAR_WINDOW_MONTHS);\n const pathFirst = parseMonthKey(keys[0])!;\n const pathLast = parseMonthKey(keys[keys.length - 1])!;\n const before = Array.from({ length: pad }, (_, index) => toMonthKey(pathFirst.subtract({ months: pad - index })));\n const after = Array.from({ length: pad }, (_, index) => toMonthKey(pathLast.add({ months: index + 1 })));\n keys = [...before, ...keys, ...after];\n\n return { keys, fromKey, toKey };\n};\n\n/**\n * Absolute `top` for each month given Kontur scrollPosition.\n * At `scrollPosition === 0`, the center month (`getCenterIndex`) sits at the viewport top.\n */\nexport const getMonthPositions = (\n monthKeys: readonly string[],\n scrollPosition: number,\n getHeight: TGetMonthHeight = createEstimateGetHeight()\n): number[] => {\n if (monthKeys.length === 0) {\n return [];\n }\n\n const centerIndex = getCenterIndex(monthKeys.length);\n const positions = Array.from({ length: monthKeys.length }, () => 0);\n positions[centerIndex] = scrollPosition;\n\n for (let index = centerIndex - 1; index >= 0; index -= 1) {\n positions[index] = positions[index + 1] - getHeight(monthKeys[index]);\n }\n\n for (let index = centerIndex + 1; index < monthKeys.length; index += 1) {\n positions[index] = positions[index - 1] + getHeight(monthKeys[index - 1]);\n }\n\n return positions;\n};\n\n/** Whether a month block intersects the viewport. */\nexport const isMonthVisible = (top: number, height: number, viewportHeight: number): boolean =>\n top < viewportHeight && top > -height;\n\n/**\n * Linear tops: `positions[0] = scrollOffset`, then stack downward.\n * Used during animated `scrollToMonth` (not the centered pin model).\n */\nexport const getLinearMonthPositions = (\n monthKeys: readonly string[],\n scrollOffset: number,\n getHeight: TGetMonthHeight = createEstimateGetHeight()\n): number[] => {\n if (monthKeys.length === 0) {\n return [];\n }\n\n const positions = Array.from({ length: monthKeys.length }, () => 0);\n positions[0] = scrollOffset;\n for (let index = 1; index < monthKeys.length; index += 1) {\n positions[index] = positions[index - 1] + getHeight(monthKeys[index - 1]);\n }\n\n return positions;\n};\n\n/** Scroll offset that puts `monthKey` at the viewport top in linear layout. */\nexport const linearScrollOffsetForMonthKey = (\n monthKeys: readonly string[],\n monthKey: string,\n getHeight: TGetMonthHeight = createEstimateGetHeight()\n): number => {\n const index = monthKeys.indexOf(monthKey);\n if (index <= 0) {\n return 0;\n }\n\n let sum = 0;\n for (let i = 0; i < index; i += 1) {\n sum += getHeight(monthKeys[i]);\n }\n\n return -sum;\n};\n\n/** Week-row threshold for Kontur-like near-top snap. */\nexport const WEEK_SNAP_THRESHOLD = DEFAULT_MONTH_HEIGHT_METRICS.headingHeight + DEFAULT_MONTH_HEIGHT_METRICS.cellSize;\n\n/**\n * Soft snap only when a month top is within `threshold` of the viewport top.\n * `scrollDirection`: last wheel sign (<0 up / later content, >0 down / earlier) — Kontur uses\n * negative direction to prefer one week below the title.\n */\nexport const getNearTopSnapScrollPosition = (\n monthKeys: readonly string[],\n scrollPosition: number,\n getHeight: TGetMonthHeight = createEstimateGetHeight(),\n threshold: number = WEEK_SNAP_THRESHOLD,\n scrollDirection = 0\n): number => {\n if (monthKeys.length === 0) {\n return scrollPosition;\n }\n\n const positions = getMonthPositions(monthKeys, scrollPosition, getHeight);\n let bestIndex = 0;\n let bestDist = Math.abs(positions[0]);\n\n for (let index = 1; index < positions.length; index += 1) {\n const dist = Math.abs(positions[index]);\n if (dist < bestDist) {\n bestDist = dist;\n bestIndex = index;\n }\n }\n\n if (bestDist > threshold) {\n return scrollPosition;\n }\n\n const centerIndex = getCenterIndex(monthKeys.length);\n // ScrollPosition that puts bestIndex at top (same math as former scrollPositionForIndex).\n let target = 0;\n if (bestIndex < centerIndex) {\n for (let i = bestIndex; i < centerIndex; i += 1) {\n target += getHeight(monthKeys[i]);\n }\n }\n if (bestIndex > centerIndex) {\n for (let i = centerIndex; i < bestIndex; i += 1) {\n target -= getHeight(monthKeys[i]);\n }\n }\n\n // Kontur: when scrolling toward earlier months near top, prefer one week below title.\n if (scrollDirection > 0 && bestDist > 0.5 && Math.abs(target - scrollPosition) < threshold) {\n const week = DEFAULT_MONTH_HEIGHT_METRICS.cellSize;\n const alt = target - week;\n if (Math.abs(alt - scrollPosition) < Math.abs(target - scrollPosition)) {\n return alt;\n }\n }\n\n return target;\n};\n\n/**\n * Apply wheel/touch delta (Kontur `calculateScrollPosition`).\n * Positive `deltaY` scrolls content up (later months).\n */\nexport const applyScrollDelta = (\n monthKeys: readonly string[],\n scrollPosition: number,\n deltaY: number,\n getHeight: TGetMonthHeight = createEstimateGetHeight()\n): { monthKeys: string[]; scrollPosition: number; centerMonth: CalendarDate } => {\n let nextKeys = monthKeys.length > 0 ? [...monthKeys] : getCenteredMonthKeys(getToday());\n let nextPos = scrollPosition - deltaY;\n const maxShifts = 24;\n const centerIndex = getCenterIndex(nextKeys.length);\n\n if (deltaY < 0) {\n for (let shift = 0; shift < maxShifts; shift += 1) {\n const prevKey = nextKeys[centerIndex - 1];\n if (!prevKey || nextPos < getHeight(prevKey)) {\n break;\n }\n nextPos -= getHeight(prevKey);\n const center = parseMonthKey(nextKeys[centerIndex]);\n if (!center) {\n break;\n }\n nextKeys = getCenteredMonthKeys(center.subtract({ months: 1 }));\n }\n }\n\n if (deltaY > 0) {\n for (let shift = 0; shift < maxShifts; shift += 1) {\n const centerKey = nextKeys[centerIndex];\n if (!centerKey || nextPos >= 0) {\n break;\n }\n nextPos += getHeight(centerKey);\n const center = parseMonthKey(centerKey);\n if (!center) {\n break;\n }\n nextKeys = getCenteredMonthKeys(center.add({ months: 1 }));\n }\n }\n\n const centerMonth = parseMonthKey(nextKeys[getCenterIndex(nextKeys.length)]) ?? getCenterMonth(null);\n\n return { monthKeys: nextKeys, scrollPosition: nextPos, centerMonth };\n};\n\n/** Normalize WheelEvent delta to CSS pixels. */\nexport const wheelDeltaToPixels = (event: Pick<WheelEvent, 'deltaY' | 'deltaMode'>): number => {\n const { deltaY, deltaMode } = event;\n if (deltaMode === 1) {\n return deltaY * 16;\n }\n if (deltaMode === 2) {\n return deltaY * CALENDAR_VIEWPORT_HEIGHT;\n }\n\n return deltaY;\n};\n","import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';\n\nimport { type CalendarDate, type DateValue, getLocalTimeZone, toCalendarDate } from '@internationalized/date';\n\nimport { SCROLL_TO_MONTH_MS, WEEK_SNAP_DURATION_MS, WEEK_SNAP_IDLE_MS } from '../constants';\nimport { estimateMonthHeight, getCenterMonth, getCenteredMonthKeys, parseMonthKey, toMonthKey } from '../utils/date';\nimport {\n applyScrollDelta,\n buildScrollPathKeys,\n getLinearMonthPositions,\n getMonthPositions,\n getNearTopSnapScrollPosition,\n linearScrollOffsetForMonthKey,\n wheelDeltaToPixels,\n} from '../utils/scroll';\n\ntype TScrollLayout = 'centered' | 'linear';\n\ninterface IFakeScrollState {\n centerMonth: CalendarDate;\n monthKeys: string[];\n scrollPosition: number;\n layout: TScrollLayout;\n}\n\nexport const toCal = (value: DateValue | null | undefined): CalendarDate | null =>\n value != null ? toCalendarDate(value) : null;\n\nconst createScrollState = (scrollToDate: DateValue | null | undefined, timeZone: string): IFakeScrollState => {\n const centerMonth = getCenterMonth(scrollToDate, timeZone);\n\n return {\n centerMonth,\n monthKeys: getCenteredMonthKeys(centerMonth),\n scrollPosition: 0,\n layout: 'centered',\n };\n};\n\nexport const useFakeScrollCalendar = (scrollToDate: DateValue | null | undefined) => {\n const timeZone = getLocalTimeZone();\n const [state, setState] = useState<IFakeScrollState>(() => createScrollState(scrollToDate, timeZone));\n const [measuredHeights, setMeasuredHeights] = useState<ReadonlyMap<string, number>>(() => new Map());\n const viewportRef = useRef<HTMLDivElement>(null);\n const monthElsRef = useRef(new Map<string, HTMLElement>());\n const heightsRef = useRef(new Map<string, number>());\n const observersRef = useRef(new Map<string, ResizeObserver>());\n const touchStartYRef = useRef<number | null>(null);\n const rafRef = useRef<number | null>(null);\n const animRafRef = useRef<number | null>(null);\n const snapTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const pendingDeltaRef = useRef(0);\n const lastDeltaSignRef = useRef(0);\n const stateRef = useRef(state);\n stateRef.current = state;\n const scrollToMonthKeyDep = scrollToDate ? toMonthKey(scrollToDate) : null;\n\n const getHeight = (monthKey: string) => heightsRef.current.get(monthKey) ?? estimateMonthHeight(monthKey);\n\n const commitHeight = (monthKey: string, height: number) => {\n if (height <= 0 || heightsRef.current.get(monthKey) === height) {\n return;\n }\n heightsRef.current.set(monthKey, height);\n setMeasuredHeights(new Map(heightsRef.current));\n };\n\n const cancelAnimation = () => {\n if (animRafRef.current != null) {\n cancelAnimationFrame(animRafRef.current);\n animRafRef.current = null;\n }\n };\n\n const cancelSnap = () => {\n if (snapTimeoutRef.current != null) {\n clearTimeout(snapTimeoutRef.current);\n snapTimeoutRef.current = null;\n }\n };\n\n const animateScrollPosition = (from: number, to: number, durationMs: number, onEnd?: () => void) => {\n cancelAnimation();\n const start = performance.now();\n const tick = (now: number) => {\n const t = Math.min(1, (now - start) / durationMs);\n const eased = 1 - (1 - t) ** 3;\n const value = from + (to - from) * eased;\n setState(prev => ({ ...prev, scrollPosition: value }));\n if (t >= 1) {\n animRafRef.current = null;\n onEnd?.();\n return;\n }\n animRafRef.current = requestAnimationFrame(tick);\n };\n animRafRef.current = requestAnimationFrame(tick);\n };\n\n const scheduleWeekSnapRef = useRef<() => void>(null as unknown as () => void);\n scheduleWeekSnapRef.current = () => {\n cancelSnap();\n snapTimeoutRef.current = setTimeout(() => {\n snapTimeoutRef.current = null;\n const prev = stateRef.current;\n if (prev.layout !== 'centered') {\n return;\n }\n const target = getNearTopSnapScrollPosition(\n prev.monthKeys,\n prev.scrollPosition,\n getHeight,\n undefined,\n lastDeltaSignRef.current\n );\n if (Math.abs(target - prev.scrollPosition) < 0.5) {\n return;\n }\n animateScrollPosition(prev.scrollPosition, target, WEEK_SNAP_DURATION_MS);\n }, WEEK_SNAP_IDLE_MS);\n };\n\n useEffect(\n () => () => {\n cancelAnimation();\n cancelSnap();\n if (rafRef.current != null) {\n cancelAnimationFrame(rafRef.current);\n }\n // Month refs call setMonthEl(null) on unmount and disconnect observers there.\n observersRef.current.clear();\n },\n []\n );\n\n useLayoutEffect(() => {\n let changed = false;\n Array.from(monthElsRef.current.entries()).forEach(([key]) => {\n if (!state.monthKeys.includes(key)) {\n monthElsRef.current.delete(key);\n if (heightsRef.current.delete(key)) {\n changed = true;\n }\n const ro = observersRef.current.get(key);\n if (ro) {\n ro.disconnect();\n observersRef.current.delete(key);\n }\n }\n });\n if (changed) {\n setMeasuredHeights(new Map(heightsRef.current));\n }\n }, [state.monthKeys]);\n\n useLayoutEffect(() => {\n const viewport = viewportRef.current;\n if (!viewport) {\n return;\n }\n\n const flushDelta = () => {\n rafRef.current = null;\n const deltaY = pendingDeltaRef.current;\n pendingDeltaRef.current = 0;\n if (deltaY === 0) {\n return;\n }\n\n lastDeltaSignRef.current = deltaY > 0 ? 1 : -1;\n\n setState(prev => {\n let { monthKeys } = prev;\n let { scrollPosition } = prev;\n\n if (prev.layout === 'linear') {\n const positions = getLinearMonthPositions(prev.monthKeys, prev.scrollPosition, getHeight);\n let bestIndex = 0;\n let bestDist = Math.abs(positions[0]);\n for (let index = 1; index < positions.length; index += 1) {\n const dist = Math.abs(positions[index]);\n if (dist < bestDist) {\n bestDist = dist;\n bestIndex = index;\n }\n }\n const nearest = parseMonthKey(prev.monthKeys[bestIndex])!;\n const reset = createScrollState(nearest, timeZone);\n monthKeys = reset.monthKeys;\n scrollPosition = reset.scrollPosition;\n }\n\n const next = applyScrollDelta(monthKeys, scrollPosition, deltaY, getHeight);\n\n return {\n centerMonth: next.centerMonth,\n monthKeys: next.monthKeys,\n scrollPosition: next.scrollPosition,\n layout: 'centered',\n };\n });\n };\n\n const queueDelta = (deltaY: number) => {\n cancelAnimation();\n cancelSnap();\n pendingDeltaRef.current += deltaY;\n if (rafRef.current == null) {\n rafRef.current = requestAnimationFrame(flushDelta);\n }\n scheduleWeekSnapRef.current();\n };\n\n const handleWheel = (event: WheelEvent) => {\n event.preventDefault();\n queueDelta(wheelDeltaToPixels(event));\n };\n\n const handleTouchStart = (event: TouchEvent) => {\n cancelAnimation();\n cancelSnap();\n touchStartYRef.current = event.targetTouches[0]?.clientY ?? null;\n };\n\n const handleTouchMove = (event: TouchEvent) => {\n const clientY = event.changedTouches[0]?.clientY;\n if (clientY == null || touchStartYRef.current == null) {\n return;\n }\n\n event.preventDefault();\n const deltaY = touchStartYRef.current - clientY;\n touchStartYRef.current = clientY;\n queueDelta(deltaY);\n };\n\n const handleTouchEnd = () => {\n touchStartYRef.current = null;\n scheduleWeekSnapRef.current();\n };\n\n viewport.addEventListener('wheel', handleWheel, { passive: false });\n viewport.addEventListener('touchstart', handleTouchStart, { passive: true });\n viewport.addEventListener('touchmove', handleTouchMove, { passive: false });\n viewport.addEventListener('touchend', handleTouchEnd);\n viewport.addEventListener('touchcancel', handleTouchEnd);\n\n return () => {\n viewport.removeEventListener('wheel', handleWheel);\n viewport.removeEventListener('touchstart', handleTouchStart);\n viewport.removeEventListener('touchmove', handleTouchMove);\n viewport.removeEventListener('touchend', handleTouchEnd);\n viewport.removeEventListener('touchcancel', handleTouchEnd);\n };\n }, [timeZone]);\n\n const months = useMemo(() => {\n const getMeasuredHeight = (monthKey: string) => measuredHeights.get(monthKey) ?? estimateMonthHeight(monthKey);\n const positions =\n state.layout === 'linear'\n ? getLinearMonthPositions(state.monthKeys, state.scrollPosition, getMeasuredHeight)\n : getMonthPositions(state.monthKeys, state.scrollPosition, getMeasuredHeight);\n\n return state.monthKeys.map((monthKey, index) => ({\n monthKey,\n index,\n top: positions[index],\n height: getMeasuredHeight(monthKey),\n }));\n }, [state.monthKeys, state.scrollPosition, state.layout, measuredHeights]);\n\n const setMonthEl = (monthKey: string, node: HTMLElement | null) => {\n if (!node) {\n monthElsRef.current.delete(monthKey);\n const ro = observersRef.current.get(monthKey);\n if (ro) {\n ro.disconnect();\n observersRef.current.delete(monthKey);\n }\n return;\n }\n\n const prev = monthElsRef.current.get(monthKey);\n monthElsRef.current.set(monthKey, node);\n commitHeight(monthKey, node.offsetHeight);\n\n if (typeof ResizeObserver === 'undefined') {\n return;\n }\n\n if (prev === node && observersRef.current.has(monthKey)) {\n return;\n }\n\n const existing = observersRef.current.get(monthKey);\n if (existing) {\n existing.disconnect();\n }\n\n const ro = new ResizeObserver(() => {\n commitHeight(monthKey, node.offsetHeight);\n });\n ro.observe(node);\n observersRef.current.set(monthKey, ro);\n };\n\n const scrollToMonth = (date: DateValue) => {\n cancelSnap();\n cancelAnimation();\n\n const target = getCenterMonth(date, timeZone);\n const prev = stateRef.current;\n if (\n toMonthKey(prev.centerMonth) === toMonthKey(target) &&\n prev.scrollPosition === 0 &&\n prev.layout === 'centered'\n ) {\n return;\n }\n\n const { keys, fromKey, toKey } = buildScrollPathKeys(prev.centerMonth, target);\n if (fromKey === toKey) {\n setState(createScrollState(target, timeZone));\n return;\n }\n\n const fromOffset = linearScrollOffsetForMonthKey(keys, fromKey, getHeight);\n const toOffset = linearScrollOffsetForMonthKey(keys, toKey, getHeight);\n\n setState({\n centerMonth: target,\n monthKeys: keys,\n scrollPosition: fromOffset,\n layout: 'linear',\n });\n\n requestAnimationFrame(() => {\n animateScrollPosition(fromOffset, toOffset, SCROLL_TO_MONTH_MS, () => {\n setState(createScrollState(target, timeZone));\n });\n });\n };\n\n const scrollToMonthRef = useRef(scrollToMonth);\n scrollToMonthRef.current = scrollToMonth;\n\n const ensureMonthVisible = (date: DateValue) => {\n const targetKey = toMonthKey(getCenterMonth(date, timeZone));\n if (stateRef.current.monthKeys.includes(targetKey)) {\n return;\n }\n scrollToMonth(date);\n };\n\n useEffect(() => {\n if (!scrollToMonthKeyDep || scrollToDate == null) {\n return;\n }\n\n // Skip partial year commits while typing (e.g. 2 / 20 / 202).\n if (toCalendarDate(scrollToDate).year < 1000) {\n return;\n }\n\n scrollToMonthRef.current(scrollToDate);\n }, [scrollToDate, scrollToMonthKeyDep]);\n\n return { months, viewportRef, setMonthEl, scrollToMonth, ensureMonthVisible };\n};\n","import { type ComponentPropsWithoutRef, type ReactNode, type RefObject } from 'react';\n\nimport cn from 'classnames';\n\nimport styles from '../../styles.module.css';\n\nexport interface IMonthListItem {\n monthKey: string;\n index: number;\n top: number;\n height: number;\n}\n\ninterface IMonthListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n months: IMonthListItem[];\n viewportRef: RefObject<HTMLDivElement | null>;\n setMonthEl: (monthKey: string, node: HTMLDivElement | null) => void;\n children: (item: IMonthListItem) => ReactNode;\n}\n\n/** Absolute-positioned month stack inside the fake-scroll viewport. */\nexport const MonthList = ({ months, viewportRef, setMonthEl, className, children, ...props }: IMonthListProps) => (\n <div {...props} ref={viewportRef} className={cn(styles.viewport, className)} data-test-id=\"calendar-viewport\">\n {months.map(item => (\n <div\n key={item.monthKey}\n ref={node => setMonthEl(item.monthKey, node)}\n className={styles.month}\n data-month-key={item.monthKey}\n data-month-offset={item.index}\n style={{ top: item.top }}\n >\n {children(item)}\n </div>\n ))}\n </div>\n);\n\nMonthList.displayName = 'MonthList';\n","import { DEFAULT_MONTH_HEIGHT_METRICS } from './date';\n\n/**\n * Offset for month heading to stick to the viewport top while the month scrolls under it.\n * Kontur-style (absolute months → not CSS `position: sticky`).\n */\nexport const getStickyHeadingOffset = (\n monthTop: number,\n monthHeight: number,\n headingHeight: number = DEFAULT_MONTH_HEIGHT_METRICS.headingHeight\n): number => {\n if (monthTop >= 0 || monthHeight <= 0 || headingHeight <= 0) {\n return 0;\n }\n\n return Math.min(-monthTop, Math.max(0, monthHeight - headingHeight));\n};\n\n/** Max month `top` still treated as near the viewport top (Kontur ~52). */\nexport const HEADING_INTERACTIVE_TOP = 52;\n\n/**\n * Whether month/year selects should be interactive (Kontur sticky/active heading).\n */\nexport const isMonthHeadingInteractive = (\n monthTop: number,\n monthHeight: number,\n headingHeight: number = DEFAULT_MONTH_HEIGHT_METRICS.headingHeight\n): boolean => {\n if (monthHeight <= 0) {\n return false;\n }\n\n const headingOffset = getStickyHeadingOffset(monthTop, monthHeight, headingHeight);\n if (monthTop > HEADING_INTERACTIVE_TOP) {\n return false;\n }\n if (headingOffset >= monthHeight - headingHeight) {\n return false;\n }\n\n return true;\n};\n","import { type FocusEventHandler, type KeyboardEventHandler } from 'react';\n\nimport { type CalendarDate } from '@internationalized/date';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\n/** Day cell chrome props. */\nexport interface IDayCellProps {\n date: CalendarDate;\n label: string;\n isOutsideMonth?: boolean;\n isToday?: boolean;\n isSelected?: boolean;\n isDisabled?: boolean;\n isUnavailable?: boolean;\n isSelectionStart?: boolean;\n isSelectionEnd?: boolean;\n isInRange?: boolean;\n isHovered?: boolean;\n /** Keyboard-engaged focus ring + arrow keys. */\n isFocused?: boolean;\n /** Tab stop override; defaults to `0` when `isFocused`, else `-1`. */\n tabIndex?: number;\n onSelect?: (date: CalendarDate) => void;\n onHoverChange?: (date: CalendarDate | null) => void;\n onFocusDate?: (date: CalendarDate) => void;\n onBlurDate?: FocusEventHandler<HTMLButtonElement>;\n onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;\n}\n\n/** Day button for custom month grid. */\nexport const DayCell = ({\n date,\n label,\n isOutsideMonth = false,\n isToday = false,\n isSelected = false,\n isDisabled = false,\n isUnavailable = false,\n isSelectionStart = false,\n isSelectionEnd = false,\n isInRange = false,\n isHovered = false,\n isFocused = false,\n tabIndex,\n onSelect,\n onHoverChange,\n onFocusDate,\n onBlurDate,\n onKeyDown,\n}: IDayCellProps) => {\n const blocked = isDisabled || isUnavailable;\n\n const handleFocus: FocusEventHandler<HTMLButtonElement> = () => {\n onFocusDate?.(date);\n };\n\n return (\n <button\n type=\"button\"\n className={cn(styles.cell, typographyStyles.bodyS)}\n aria-label={label}\n aria-pressed={isSelected || undefined}\n disabled={blocked}\n tabIndex={tabIndex ?? (isFocused ? 0 : -1)}\n data-date={date.toString()}\n data-outside-month={isOutsideMonth || undefined}\n data-today={isToday || undefined}\n data-selected={isSelected || undefined}\n data-disabled={isDisabled || undefined}\n data-unavailable={isUnavailable || undefined}\n data-selection-start={isSelectionStart || undefined}\n data-selection-end={isSelectionEnd || undefined}\n data-in-range={isInRange || undefined}\n data-hovered={isHovered || undefined}\n data-focused={isFocused || undefined}\n onClick={() => onSelect?.(date)}\n onMouseEnter={() => onHoverChange?.(date)}\n onMouseLeave={() => onHoverChange?.(null)}\n onFocus={handleFocus}\n onBlur={onBlurDate}\n onKeyDown={isFocused ? onKeyDown : undefined}\n >\n {date.day}\n </button>\n );\n};\n\nDayCell.displayName = 'DayCell';\n","import { useMemo, useRef } from 'react';\n\nimport cn from 'classnames';\nimport { Button, ListBox, ListBoxItem, Popover, Select, SelectValue, useLocale } from 'react-aria-components';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport { ChevronDown } from '@/icons';\n\nimport { getMonthLabels } from '../../utils/date';\n\nimport styles from './styles.module.css';\n\nexport type TMonthYearSelectType = 'month' | 'year';\n\n/** Caption select for calendar heading (Kontur-like). */\nexport interface IMonthYearSelectProps {\n type: TMonthYearSelectType;\n value: number;\n minValue: number;\n maxValue: number;\n onChange: (value: number) => void;\n /** Fires when the menu opens or closes. */\n onOpenChange?: (isOpen: boolean) => void;\n isDisabled?: boolean;\n 'aria-label'?: string;\n}\n\ninterface ISelectItem {\n id: string;\n label: string;\n}\n\n/** Build select items strictly within `minValue…maxValue` (no expand to typed value). */\nexport const buildMonthYearSelectItems = (\n type: TMonthYearSelectType,\n minValue: number,\n maxValue: number,\n monthLabels: readonly string[] = []\n): ISelectItem[] => {\n if (maxValue < minValue) {\n return [];\n }\n\n if (type === 'month') {\n return Array.from({ length: maxValue - minValue + 1 }, (_, index) => {\n const month = minValue + index;\n\n return { id: String(month), label: monthLabels[month - 1] ?? String(month) };\n });\n }\n\n return Array.from({ length: maxValue - minValue + 1 }, (_, index) => {\n const year = minValue + index;\n\n return { id: String(year), label: String(year) };\n });\n};\n\n/** Month or year caption Select for sticky calendar heading. */\nexport const MonthYearSelect = ({\n type,\n value,\n minValue,\n maxValue,\n onChange,\n onOpenChange,\n isDisabled = false,\n 'aria-label': ariaLabel,\n}: IMonthYearSelectProps) => {\n const { locale } = useLocale();\n const listRef = useRef<HTMLDivElement>(null);\n const monthLabels = useMemo(() => getMonthLabels(locale), [locale]);\n\n const items = useMemo(\n () => buildMonthYearSelectItems(type, minValue, maxValue, monthLabels),\n [type, minValue, maxValue, monthLabels]\n );\n\n const selectedKey = String(value);\n const hasSelectedItem = items.some(item => item.id === selectedKey);\n const displayLabel = type === 'month' ? (monthLabels[value - 1] ?? String(value)) : String(value);\n const testId = type === 'month' ? 'calendar-month-select' : 'calendar-year-select';\n\n const scrollSelectedIntoView = () => {\n requestAnimationFrame(() => {\n const selected = listRef.current?.querySelector('[data-selected]');\n if (selected && typeof selected.scrollIntoView === 'function') {\n selected.scrollIntoView({ block: 'nearest' });\n }\n });\n };\n\n return (\n <Select\n aria-label={ariaLabel}\n selectedKey={hasSelectedItem ? selectedKey : null}\n isDisabled={isDisabled || items.length === 0}\n onOpenChange={isOpen => {\n onOpenChange?.(isOpen);\n if (isOpen) {\n scrollSelectedIntoView();\n }\n }}\n onSelectionChange={key => {\n if (key == null) {\n return;\n }\n const next = Number(key);\n if (!Number.isNaN(next) && next !== value) {\n onChange(next);\n }\n }}\n className={styles.headingSelectRoot}\n data-test-id={testId}\n >\n <Button className={cn(styles.headingSelect, typographyStyles.bodyS)} data-test-id={`${testId}-trigger`}>\n <SelectValue>{() => displayLabel}</SelectValue>\n <ChevronDown className={styles.headingSelectIcon} aria-hidden />\n </Button>\n <Popover className={styles.headingMenu} placement=\"bottom start\">\n <ListBox ref={listRef} className={styles.headingMenuList} items={items}>\n {item => (\n <ListBoxItem id={item.id} textValue={item.label} className={styles.headingMenuItem}>\n {item.label}\n </ListBoxItem>\n )}\n </ListBox>\n </Popover>\n </Select>\n );\n};\n\nMonthYearSelect.displayName = 'MonthYearSelect';\n","import { useMemo, useState, type FocusEventHandler, type KeyboardEventHandler } from 'react';\n\nimport { CalendarDate, getLocalTimeZone, today } from '@internationalized/date';\nimport cn from 'classnames';\nimport { useLocale } from 'react-aria-components';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport {\n getMonthLabels,\n getMonthRangeForYear,\n getMonthWeeks,\n getWeekdayLabels,\n getYearRange,\n isDateInRange,\n isDateOutOfBounds,\n isSameDay,\n isSameMonth,\n parseMonthKey,\n} from '../../utils/date';\nimport { getStickyHeadingOffset, isMonthHeadingInteractive } from '../../utils/sticky';\nimport { DayCell } from '../DayCell';\nimport { MonthYearSelect } from '../MonthYearSelect';\n\nimport styles from './styles.module.css';\n\nconst FIRST_DAY_OF_WEEK = 1;\n\n/** Selection / constraint slice for a month grid. */\nexport interface IMonthViewSelection {\n /** Selected single date. */\n selectedDate?: CalendarDate | null;\n /** Selected range start. */\n rangeStart?: CalendarDate | null;\n /** Selected range end. */\n rangeEnd?: CalendarDate | null;\n /** Anchor while picking the second range end. */\n rangeAnchor?: CalendarDate | null;\n /** Hovered date for range preview. */\n hoveredDate?: CalendarDate | null;\n minValue?: CalendarDate | null;\n maxValue?: CalendarDate | null;\n isDateUnavailable?: (date: CalendarDate) => boolean;\n isDisabled?: boolean;\n onSelect?: (date: CalendarDate) => void;\n onHoverChange?: (date: CalendarDate | null) => void;\n /** Jump fake-scroll window to month/year. */\n onMonthYearChange?: (date: CalendarDate) => void;\n /** Roving keyboard focus date. */\n focusedDate?: CalendarDate | null;\n /** When false, day has no focus ring / arrow keys until focused (tab stop still present). */\n isGridEngaged?: boolean;\n onFocusDate?: (date: CalendarDate) => void;\n onBlurDate?: FocusEventHandler<HTMLButtonElement>;\n onDayKeyDown?: KeyboardEventHandler<HTMLButtonElement>;\n}\n\nexport interface IMonthViewProps extends IMonthViewSelection {\n monthKey: string;\n /** Absolute `top` of the month block in the viewport. */\n monthTop?: number;\n /** Measured / estimated month block height. */\n monthHeight?: number;\n}\n\n/** One month: heading + weekday row + day grid. */\nexport const MonthView = ({\n monthKey,\n monthTop = 0,\n monthHeight = 0,\n selectedDate = null,\n rangeStart = null,\n rangeEnd = null,\n rangeAnchor = null,\n hoveredDate = null,\n minValue = null,\n maxValue = null,\n isDateUnavailable,\n isDisabled = false,\n onSelect,\n onHoverChange,\n onMonthYearChange,\n focusedDate = null,\n isGridEngaged = true,\n onFocusDate,\n onBlurDate,\n onDayKeyDown,\n}: IMonthViewProps) => {\n const { locale } = useLocale();\n const timeZone = getLocalTimeZone();\n const month = useMemo(() => parseMonthKey(monthKey), [monthKey]);\n const weeks = useMemo(() => (month ? getMonthWeeks(month, FIRST_DAY_OF_WEEK) : []), [month]);\n const weekdayLabels = useMemo(() => getWeekdayLabels(locale, FIRST_DAY_OF_WEEK), [locale]);\n const todayDate = today(timeZone);\n const headingOffset = getStickyHeadingOffset(monthTop, monthHeight);\n const headingInteractive = !isDisabled && isMonthHeadingInteractive(monthTop, monthHeight);\n const [monthSelectOpen, setMonthSelectOpen] = useState(false);\n const [yearSelectOpen, setYearSelectOpen] = useState(false);\n const showMonthYearSelect = headingInteractive || monthSelectOpen || yearSelectOpen;\n const yearRange = useMemo(() => getYearRange(minValue, maxValue), [minValue, maxValue]);\n const monthRange = useMemo(\n () => (month ? getMonthRangeForYear(month.year, minValue, maxValue) : { minMonth: 1, maxMonth: 12 }),\n [month, minValue, maxValue]\n );\n const monthLabels = useMemo(() => getMonthLabels(locale), [locale]);\n\n const dateFormatter = useMemo(\n () => new Intl.DateTimeFormat(locale, { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }),\n [locale]\n );\n\n if (!month) {\n return null;\n }\n\n const previewEnd = hoveredDate ?? rangeEnd ?? rangeAnchor;\n const hasCompleteRange = rangeStart != null && rangeEnd != null;\n const hasPreviewRange = rangeAnchor != null && previewEnd != null;\n\n const handleMonthChange = (nextMonth: number) => {\n onMonthYearChange?.(new CalendarDate(month.year, nextMonth, 1));\n };\n\n const handleYearChange = (nextYear: number) => {\n const range = getMonthRangeForYear(nextYear, minValue, maxValue);\n const nextMonth = Math.min(Math.max(month.month, range.minMonth), range.maxMonth);\n onMonthYearChange?.(new CalendarDate(nextYear, nextMonth, 1));\n };\n\n return (\n <>\n <div className={cn(styles.heading, typographyStyles.bodyS)} style={{ top: headingOffset }}>\n {showMonthYearSelect ? (\n <>\n <MonthYearSelect\n type=\"month\"\n value={month.month}\n minValue={monthRange.minMonth}\n maxValue={monthRange.maxMonth}\n isDisabled={isDisabled}\n aria-label={monthLabels[month.month - 1]}\n onChange={handleMonthChange}\n onOpenChange={setMonthSelectOpen}\n />\n <MonthYearSelect\n type=\"year\"\n value={month.year}\n minValue={yearRange.minYear}\n maxValue={yearRange.maxYear}\n isDisabled={isDisabled}\n aria-label={String(month.year)}\n onChange={handleYearChange}\n onOpenChange={setYearSelectOpen}\n />\n </>\n ) : (\n <>\n <span>{monthLabels[month.month - 1]}</span>\n <span>{month.year}</span>\n </>\n )}\n </div>\n <table className={styles.grid} role=\"grid\">\n <thead>\n <tr>\n {weekdayLabels.map((label, index) => (\n <th key={index} scope=\"col\">\n {label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {weeks.map(week => (\n <tr key={week[0]?.toString()} role=\"row\">\n {week.map(date => {\n const outside = !isSameMonth(date, month);\n const outOfBounds = isDateOutOfBounds(date, minValue, maxValue);\n const unavailable = Boolean(isDateUnavailable?.(date));\n const disabled = isDisabled || outOfBounds;\n const isToday = isSameDay(date, todayDate);\n const isFocusDate = focusedDate != null && isSameDay(date, focusedDate) && !outside;\n const isRovingTarget = isFocusDate && isGridEngaged;\n\n let isSelected = false;\n let isSelectionStart = false;\n let isSelectionEnd = false;\n let isInRange = false;\n\n if (selectedDate != null && isSameDay(date, selectedDate)) {\n isSelected = true;\n }\n\n if (hasCompleteRange && rangeStart && rangeEnd) {\n isSelectionStart = isSameDay(date, rangeStart);\n isSelectionEnd = isSameDay(date, rangeEnd);\n isSelected = isSelectionStart || isSelectionEnd;\n isInRange = isDateInRange(date, rangeStart, rangeEnd);\n }\n\n if (!hasCompleteRange && hasPreviewRange && rangeAnchor && previewEnd) {\n isSelectionStart = isSameDay(date, rangeAnchor);\n isSelectionEnd = isSameDay(date, previewEnd);\n isSelected = isSelectionStart || isSelectionEnd;\n isInRange = isDateInRange(date, rangeAnchor, previewEnd);\n }\n\n return (\n <td key={date.toString()} role=\"gridcell\">\n <DayCell\n date={date}\n label={dateFormatter.format(date.toDate(timeZone))}\n isOutsideMonth={outside}\n isToday={isToday}\n isSelected={isSelected}\n isDisabled={disabled}\n isUnavailable={unavailable}\n isSelectionStart={isSelectionStart}\n isSelectionEnd={isSelectionEnd}\n isInRange={isInRange}\n isHovered={hoveredDate != null && isSameDay(date, hoveredDate)}\n isFocused={isRovingTarget}\n tabIndex={isFocusDate ? 0 : -1}\n onSelect={onSelect}\n onHoverChange={onHoverChange}\n onFocusDate={onFocusDate}\n onBlurDate={onBlurDate}\n onKeyDown={onDayKeyDown}\n />\n </td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </>\n );\n};\n\nMonthView.displayName = 'MonthView';\n"],"names":["CALENDAR_WINDOW_MONTHS","DEFAULT_YEAR_MIN","DEFAULT_YEAR_MAX","SCROLL_TO_MONTH_MS","WEEK_SNAP_IDLE_MS","WEEK_SNAP_DURATION_MS","DEFAULT_MONTH_HEIGHT_METRICS","CALENDAR_VIEWPORT_HEIGHT","getYearRange","minValue","maxValue","minYear","toCalendarDate","maxYear","getMonthRangeForYear","year","minMonth","maxMonth","min","max","getMonthLabels","locale","formatter","_","index","toMonthKey","date","parseMonthKey","monthKey","match","month","CalendarDate","getMonthWeekCount","firstDayOfWeek","start","startOfMonth","daysInMonth","endOfMonth","offset","estimateMonthHeight","metrics","weeks","createEstimateGetHeight","getToday","timeZone","today","getCenterIndex","windowMonths","getCenterMonth","scrollToDate","isSameMonth","isSameDay","a","b","isDateInRange","end","d","lo","hi","isDateOutOfBounds","getMonthWeeks","weekCount","cursor","week","row","day","getWeekdayLabels","weekday","sunday","getWindowMonthKeys","anchor","count","getCenteredMonthKeys","center","monthIndexDelta","from","to","CALENDAR_GRID_FIRST_DAY_OF_WEEK","NAV_KEYS","isBlocked","options","getWeekdayOffset","stepFocusedDate","key","getSkipDayDelta","moveFocusedDate","next","delta","guard","candidate","clampIntoBounds","getInitialFocusedDate","preferred","getLocalTimeZone","todayDate","prev","focusedDateInMonth","focusedDate","focusDateButton","viewport","iso","button","focusDateButtonWhenReady","attempts","useCalendarGridKeyboard","viewportRef","ensureMonthVisible","preferredDate","isDateUnavailable","onSelect","autoFocusDay","moveOptions","setFocusedDate","useState","focusedDateRef","useRef","didInitialFocusRef","isGridEngaged","setGridEngaged","useEffect","frame","moveFocusTo","useCallback","onDayFocus","onDayBlur","event","setFocusedDateFromParts","onDayKeyDown","MAX_SCROLL_MONTHS","buildScrollPathKeys","maxMonths","sign","fromKey","toKey","first","keys","pad","pathFirst","pathLast","before","after","getMonthPositions","monthKeys","scrollPosition","getHeight","centerIndex","positions","getLinearMonthPositions","scrollOffset","linearScrollOffsetForMonthKey","sum","i","WEEK_SNAP_THRESHOLD","getNearTopSnapScrollPosition","threshold","scrollDirection","bestIndex","bestDist","dist","target","alt","applyScrollDelta","deltaY","nextKeys","nextPos","maxShifts","shift","prevKey","centerKey","centerMonth","wheelDeltaToPixels","deltaMode","toCal","value","createScrollState","useFakeScrollCalendar","state","setState","measuredHeights","setMeasuredHeights","monthElsRef","heightsRef","observersRef","touchStartYRef","rafRef","animRafRef","snapTimeoutRef","pendingDeltaRef","lastDeltaSignRef","stateRef","scrollToMonthKeyDep","commitHeight","height","cancelAnimation","cancelSnap","animateScrollPosition","durationMs","onEnd","tick","now","t","eased","scheduleWeekSnapRef","useLayoutEffect","changed","ro","flushDelta","nearest","reset","queueDelta","handleWheel","handleTouchStart","handleTouchMove","clientY","handleTouchEnd","months","useMemo","getMeasuredHeight","setMonthEl","node","existing","scrollToMonth","fromOffset","toOffset","scrollToMonthRef","targetKey","MonthList","className","children","props","jsx","cn","styles","item","getStickyHeadingOffset","monthTop","monthHeight","headingHeight","HEADING_INTERACTIVE_TOP","isMonthHeadingInteractive","headingOffset","DayCell","label","isOutsideMonth","isToday","isSelected","isDisabled","isUnavailable","isSelectionStart","isSelectionEnd","isInRange","isHovered","isFocused","tabIndex","onHoverChange","onFocusDate","onBlurDate","onKeyDown","blocked","handleFocus","typographyStyles","buildMonthYearSelectItems","type","monthLabels","MonthYearSelect","onChange","onOpenChange","ariaLabel","useLocale","listRef","items","selectedKey","hasSelectedItem","displayLabel","testId","scrollSelectedIntoView","selected","jsxs","Select","isOpen","Button","SelectValue","ChevronDown","Popover","ListBox","ListBoxItem","FIRST_DAY_OF_WEEK","MonthView","selectedDate","rangeStart","rangeEnd","rangeAnchor","hoveredDate","onMonthYearChange","weekdayLabels","headingInteractive","monthSelectOpen","setMonthSelectOpen","yearSelectOpen","setYearSelectOpen","showMonthYearSelect","yearRange","monthRange","dateFormatter","previewEnd","hasCompleteRange","hasPreviewRange","handleMonthChange","nextMonth","handleYearChange","nextYear","range","Fragment","outside","outOfBounds","unavailable","disabled","isFocusDate","isRovingTarget"],"mappings":";;;;;;;AACO,MAAMA,KAAyB,GAGzBC,KAAmB,MACnBC,KAAmB,MAGnBC,KAAqB,KAGrBC,KAAoB,KAGpBC,KAAwB,KCKxBC,IAAoD;AAAA,EAC7D,UAAU;AAAA,EACV,eAAe;AAAA,EACf,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,gBAAgB;AACpB,GAGaC,KAA2B,KAG3BC,KAAe,CACxBC,GACAC,MACuC;AACvC,QAAMC,IAAUF,KAAY,OAAOG,EAAeH,CAAQ,EAAE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AAYpM,GAAc5B,GAAMyQ,GAAaa,CAAU,IAIvD,gBAAA1E,EAAC,MAAA,EAAyB,MAAK,YAC3B,UAAA,gBAAAA;AAAA,UAACW;AAAA,UAAA;AAAA,YACG,MAAAvN;AAAA,YACA,OAAOqR,EAAc,OAAOrR,EAAK,OAAOkB,CAAQ,CAAC;AAAA,YACjD,gBAAgB6Q;AAAA,YAChB,SAAArE;AAAA,YACA,YAAAC;AAAA,YACA,YAAYuE;AAAA,YACZ,eAAeD;AAAA,YACf,kBAAAnE;AAAA,YACA,gBAAAC;AAAA,YACA,WAAAC;AAAA,YACA,WAAW0C,KAAe,QAAQjP,EAAUzB,GAAM0Q,CAAW;AAAA,YAC7D,WAAW0B;AAAA,YACX,UAAUD,KAAc,IAAI;AAAA,YAC5B,UAAAhN;AAAA,YACA,eAAAiJ;AAAA,YACA,aAAAC;AAAA,YACA,YAAAC;AAAA,YACA,WAAWjI;AAAA,UAAA;AAAA,QAAA,KAnBVrG,EAAK,UAqBd;AAAA,MAER,CAAC,KAzDIqC,EAAK,CAAC,GAAG,SAAA,CA0DlB,CACH,EAAA,CACL;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;AAEAgO,GAAU,cAAc;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IInputProps } from './types';
|
|
2
|
+
export declare const Input: {
|
|
3
|
+
({ ref, size, variant, block, invalid, disabled, clear, className, dataTestId, value, defaultValue, onChange, ...props }: IInputProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/input/Component.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAyC3C,eAAO,MAAM,KAAK;8HAcf,WAAW;;CAmDb,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IFormInputProps } from './types';
|
|
2
|
+
export declare const FormInput: {
|
|
3
|
+
({ name, label, hint, size, block, disabled, className, dataTestId, ...inputProps }: IFormInputProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=FormInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../src/input/FormInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAU/C,eAAO,MAAM,SAAS;yFAUnB,eAAe;;CA4BjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsxs as E, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as w, useState as H } from "react";
|
|
3
|
+
import b from "classnames";
|
|
4
|
+
import { Group as B, Input as j } from "react-aria-components";
|
|
5
|
+
import { C as x } from "../Clear-ZjbAACid.js";
|
|
6
|
+
import { a as z } from "../hooks-F-vmcbmx.js";
|
|
7
|
+
import { cva as L } from "class-variance-authority";
|
|
8
|
+
import { typographyStyles as C } from "../typography/index.js";
|
|
9
|
+
import { F as y, u as R } from "../Component-Ic6oM3w4.js";
|
|
10
|
+
import { u as M, g as O } from "../utils-CizYZV2a.js";
|
|
11
|
+
import '../assets/index14.css';const T = "aub_styles-module_root_9598d", A = "aub_styles-module_block_06088", G = "aub_styles-module_sm_33b95", U = "aub_styles-module_md_0df45", $ = "aub_styles-module_lg_0c550", q = "aub_styles-module_fieldInput_4bcd7", J = "aub_styles-module_clearIcon_ea389", K = "aub_styles-module_clear_37bb3", Q = "aub_styles-module_primary_ea589", o = {
|
|
12
|
+
root: T,
|
|
13
|
+
block: A,
|
|
14
|
+
sm: G,
|
|
15
|
+
md: U,
|
|
16
|
+
lg: $,
|
|
17
|
+
fieldInput: q,
|
|
18
|
+
clearIcon: J,
|
|
19
|
+
clear: K,
|
|
20
|
+
primary: Q
|
|
21
|
+
}, W = L(o.root, {
|
|
22
|
+
variants: {
|
|
23
|
+
size: {
|
|
24
|
+
sm: b(o.sm, C.bodyS),
|
|
25
|
+
md: b(o.md, C.bodyS),
|
|
26
|
+
lg: b(o.lg, C.bodyM)
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
primary: o.primary
|
|
30
|
+
},
|
|
31
|
+
block: {
|
|
32
|
+
true: o.block,
|
|
33
|
+
false: null
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
size: "md",
|
|
38
|
+
variant: "primary",
|
|
39
|
+
block: !0
|
|
40
|
+
}
|
|
41
|
+
}), X = (t) => ({
|
|
42
|
+
target: t ?? { value: "" },
|
|
43
|
+
currentTarget: t ?? { value: "" }
|
|
44
|
+
}), Y = (t) => {
|
|
45
|
+
if (!t)
|
|
46
|
+
return;
|
|
47
|
+
Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(t, "");
|
|
48
|
+
}, k = (t) => t == null ? "" : String(t), Z = (t, e) => {
|
|
49
|
+
if (typeof t == "function") {
|
|
50
|
+
t(e);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
t && (t.current = e);
|
|
54
|
+
}, tt = ({ onClear: t }) => {
|
|
55
|
+
const { clear: e } = z();
|
|
56
|
+
return /* @__PURE__ */ n(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
type: "button",
|
|
60
|
+
className: o.clear,
|
|
61
|
+
"aria-label": e,
|
|
62
|
+
onPointerDown: (r) => {
|
|
63
|
+
r.preventDefault(), r.stopPropagation();
|
|
64
|
+
},
|
|
65
|
+
onClick: (r) => {
|
|
66
|
+
r.preventDefault(), r.stopPropagation(), t();
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ n(x, { className: o.clearIcon })
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}, F = ({
|
|
72
|
+
ref: t,
|
|
73
|
+
size: e = "md",
|
|
74
|
+
variant: r = "primary",
|
|
75
|
+
block: i = !0,
|
|
76
|
+
invalid: l = !1,
|
|
77
|
+
disabled: m = !1,
|
|
78
|
+
clear: _ = !1,
|
|
79
|
+
className: g,
|
|
80
|
+
dataTestId: I,
|
|
81
|
+
value: a,
|
|
82
|
+
defaultValue: d,
|
|
83
|
+
onChange: p,
|
|
84
|
+
...h
|
|
85
|
+
}) => {
|
|
86
|
+
const f = w(null), u = a !== void 0, [v, c] = H(() => k(d)), P = u ? k(a) : v, S = _ && !m && P !== "", D = (s) => {
|
|
87
|
+
u || c(s.target.value), p?.(s);
|
|
88
|
+
}, N = () => {
|
|
89
|
+
const s = f.current, V = X(s);
|
|
90
|
+
Y(s), u || c(""), p?.(V);
|
|
91
|
+
};
|
|
92
|
+
return /* @__PURE__ */ E(
|
|
93
|
+
B,
|
|
94
|
+
{
|
|
95
|
+
className: b(W({ size: e, variant: r, block: i }), g),
|
|
96
|
+
"data-test-id": I,
|
|
97
|
+
isInvalid: l,
|
|
98
|
+
isDisabled: m,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ n(
|
|
101
|
+
j,
|
|
102
|
+
{
|
|
103
|
+
...h,
|
|
104
|
+
ref: (s) => {
|
|
105
|
+
f.current = s, Z(t, s);
|
|
106
|
+
},
|
|
107
|
+
value: a,
|
|
108
|
+
defaultValue: d,
|
|
109
|
+
onChange: D,
|
|
110
|
+
disabled: m,
|
|
111
|
+
"aria-invalid": l || void 0,
|
|
112
|
+
className: o.fieldInput
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
S ? /* @__PURE__ */ n(tt, { onClear: N }) : null
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
};
|
|
120
|
+
F.displayName = "Input";
|
|
121
|
+
const et = (t) => {
|
|
122
|
+
const { controlProps: e, size: r, invalid: i, disabled: l } = R();
|
|
123
|
+
return /* @__PURE__ */ n(F, { ...e, size: r, invalid: i, disabled: l, ...t });
|
|
124
|
+
}, rt = ({
|
|
125
|
+
name: t,
|
|
126
|
+
label: e,
|
|
127
|
+
hint: r,
|
|
128
|
+
size: i = "md",
|
|
129
|
+
block: l = !0,
|
|
130
|
+
disabled: m,
|
|
131
|
+
className: _,
|
|
132
|
+
dataTestId: g,
|
|
133
|
+
...I
|
|
134
|
+
}) => {
|
|
135
|
+
const { field: a, fieldState: d, inputProps: p, onChangeHandler: h, onBlurHandler: f } = M({ name: t }), u = O(d.error)?.message, v = m ?? p.disabled;
|
|
136
|
+
return /* @__PURE__ */ E(
|
|
137
|
+
y,
|
|
138
|
+
{
|
|
139
|
+
invalid: !!u,
|
|
140
|
+
disabled: v,
|
|
141
|
+
size: i,
|
|
142
|
+
block: l,
|
|
143
|
+
className: _,
|
|
144
|
+
dataTestId: g,
|
|
145
|
+
children: [
|
|
146
|
+
e ? /* @__PURE__ */ n(y.Label, { children: e }) : null,
|
|
147
|
+
/* @__PURE__ */ n(
|
|
148
|
+
et,
|
|
149
|
+
{
|
|
150
|
+
...I,
|
|
151
|
+
...p,
|
|
152
|
+
block: l,
|
|
153
|
+
ref: a.ref,
|
|
154
|
+
value: a.value ?? "",
|
|
155
|
+
onChange: (c) => h(c),
|
|
156
|
+
onBlur: (c) => f(c)
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
r ? /* @__PURE__ */ n(y.Hint, { children: r }) : null,
|
|
160
|
+
/* @__PURE__ */ n(y.Error, { children: u })
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
rt.displayName = "FormInput";
|
|
166
|
+
export {
|
|
167
|
+
rt as FormInput,
|
|
168
|
+
F as Input
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/input/theme.ts","../../src/input/utils.ts","../../src/input/Component.tsx","../../src/input/FormInput.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const inputVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n block: {\n true: styles.block,\n false: null,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n block: true,\n },\n});\n","import { type ChangeEvent } from 'react';\n\n/** Synthetic change event used by clear control. */\nexport const toEmptyInputChangeEvent = (el: HTMLInputElement | null): ChangeEvent<HTMLInputElement> =>\n ({\n target: el ?? { value: '' },\n currentTarget: el ?? { value: '' },\n }) as ChangeEvent<HTMLInputElement>;\n\n/** Sets native input value via the prototype setter when the node exists. */\nexport const clearInputElementValue = (el: HTMLInputElement | null) => {\n if (!el) {\n return;\n }\n\n const setter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')?.set;\n setter?.call(el, '');\n};\n","import { type ChangeEventHandler, useRef, useState } from 'react';\n\nimport cn from 'classnames';\nimport { Group, Input as RacInput } from 'react-aria-components';\n\nimport { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { inputVariants } from './theme';\nimport { type IInputProps } from './types';\nimport { clearInputElementValue, toEmptyInputChangeEvent } from './utils';\n\nimport styles from './styles.module.css';\n\nconst toStringValue = (value: unknown) => (value == null ? '' : String(value));\n\nconst assignRef = <T,>(ref: IInputProps['ref'], node: T | null) => {\n if (typeof ref === 'function') {\n ref(node as never);\n return;\n }\n\n if (ref) {\n ref.current = node as never;\n }\n};\n\nconst InputClearButton = ({ onClear }: { onClear: () => void }) => {\n const { clear } = useAuiLabels();\n\n return (\n <button\n type=\"button\"\n className={styles.clear}\n aria-label={clear}\n onPointerDown={event => {\n event.preventDefault();\n event.stopPropagation();\n }}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onClear();\n }}\n >\n <Clear className={styles.clearIcon} />\n </button>\n );\n};\n\nexport const Input = ({\n ref,\n size = 'md',\n variant = 'primary',\n block = true,\n invalid = false,\n disabled = false,\n clear = false,\n className,\n dataTestId,\n value,\n defaultValue,\n onChange,\n ...props\n}: IInputProps) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(() => toStringValue(defaultValue));\n const currentValue = isControlled ? toStringValue(value) : uncontrolledValue;\n const showClear = clear && !disabled && currentValue !== '';\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = event => {\n if (!isControlled) {\n setUncontrolledValue(event.target.value);\n }\n\n onChange?.(event);\n };\n\n const emitEmptyChange = () => {\n const el = inputRef.current;\n const event = toEmptyInputChangeEvent(el);\n\n clearInputElementValue(el);\n\n if (!isControlled) {\n setUncontrolledValue('');\n }\n\n onChange?.(event);\n };\n\n return (\n <Group\n className={cn(inputVariants({ size, variant, block }), className)}\n data-test-id={dataTestId}\n isInvalid={invalid}\n isDisabled={disabled}\n >\n <RacInput\n {...props}\n ref={node => {\n inputRef.current = node;\n assignRef(ref, node);\n }}\n value={value}\n defaultValue={defaultValue}\n onChange={handleChange}\n disabled={disabled}\n aria-invalid={invalid || undefined}\n className={styles.fieldInput}\n />\n {showClear ? <InputClearButton onClear={emitEmptyChange} /> : null}\n </Group>\n );\n};\n\nInput.displayName = 'Input';\n","import { type ComponentProps } from 'react';\n\nimport { Field, useField } from '@/field';\nimport { useFieldHook } from '@/form/hooks/useFieldHook';\nimport { getError } from '@/form/utils';\n\nimport { Input } from './Component';\nimport { type IFormInputProps } from './types';\n\ntype TFormInputControlProps = Omit<ComponentProps<typeof Input>, 'size' | 'invalid' | 'disabled'>;\n\nconst FormInputControl = (props: TFormInputControlProps) => {\n const { controlProps, size, invalid, disabled } = useField();\n\n return <Input {...controlProps} size={size} invalid={invalid} disabled={disabled} {...props} />;\n};\n\nexport const FormInput = ({\n name,\n label,\n hint,\n size = 'md',\n block = true,\n disabled,\n className,\n dataTestId,\n ...inputProps\n}: IFormInputProps) => {\n const { field, fieldState, inputProps: rhfInputProps, onChangeHandler, onBlurHandler } = useFieldHook({ name });\n const error = getError(fieldState.error)?.message;\n const isDisabled = disabled ?? rhfInputProps.disabled;\n\n return (\n <Field\n invalid={Boolean(error)}\n disabled={isDisabled}\n size={size}\n block={block}\n className={className}\n dataTestId={dataTestId}\n >\n {label ? <Field.Label>{label}</Field.Label> : null}\n <FormInputControl\n {...inputProps}\n {...rhfInputProps}\n block={block}\n ref={field.ref}\n value={field.value ?? ''}\n onChange={e => onChangeHandler(e)}\n onBlur={e => onBlurHandler(e)}\n />\n {hint ? <Field.Hint>{hint}</Field.Hint> : null}\n <Field.Error>{error}</Field.Error>\n </Field>\n );\n};\n\nFormInput.displayName = 'FormInput';\n"],"names":["inputVariants","cva","styles","cn","typographyStyles","toEmptyInputChangeEvent","el","clearInputElementValue","toStringValue","value","assignRef","ref","node","InputClearButton","onClear","clear","useAuiLabels","jsx","event","Clear","Input","size","variant","block","invalid","disabled","className","dataTestId","defaultValue","onChange","props","inputRef","useRef","isControlled","uncontrolledValue","setUncontrolledValue","useState","currentValue","showClear","handleChange","emitEmptyChange","jsxs","Group","RacInput","FormInputControl","controlProps","useField","FormInput","name","label","hint","inputProps","field","fieldState","rhfInputProps","onChangeHandler","onBlurHandler","useFieldHook","error","getError","isDisabled","Field","e"],"mappings":";;;;;;;;;;;;;;;;;;;;GAOaA,IAAgBC,EAAIC,EAAO,MAAM;AAAA,EAC1C,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,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C;AAAA,UAAC2B;AAAA,UAAA;AAAA,YACI,GAAGO;AAAA,YACH,GAAGG;AAAA,YACJ,OAAA/B;AAAA,YACA,KAAK6B,EAAM;AAAA,YACX,OAAOA,EAAM,SAAS;AAAA,YACtB,UAAU,CAAAU,MAAKP,EAAgBO,CAAC;AAAA,YAChC,QAAQ,CAAAA,MAAKN,EAAcM,CAAC;AAAA,UAAA;AAAA,QAAA;AAAA,QAE/BZ,IAAO,gBAAAjC,EAAC4C,EAAM,MAAN,EAAY,aAAK,IAAgB;AAAA,QAC1C,gBAAA5C,EAAC4C,EAAM,OAAN,EAAa,UAAAH,EAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGhC;AAEAX,GAAU,cAAc;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const inputVariants: (props?: ({
|
|
2
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3
|
+
variant?: "primary" | null | undefined;
|
|
4
|
+
block?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/input/theme.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;8EAoBxB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { InputProps as RacInputProps } from 'react-aria-components';
|
|
3
|
+
import { IDataTestIdProps } from '../ds/common/index.js';
|
|
4
|
+
import { IFieldStateProps } from '../../field/types';
|
|
5
|
+
import { IFormFieldLayoutProps } from '../../form/types';
|
|
6
|
+
export type TInputSize = 'sm' | 'md' | 'lg';
|
|
7
|
+
export type TInputVariant = 'primary';
|
|
8
|
+
/** Theme inputs. */
|
|
9
|
+
export interface IInputThemeProps {
|
|
10
|
+
/** Control size. Inside Field, inherits `Field.size` when omitted. */
|
|
11
|
+
size?: TInputSize;
|
|
12
|
+
/** Visual variant. */
|
|
13
|
+
variant?: TInputVariant;
|
|
14
|
+
}
|
|
15
|
+
/** Own / chrome props (not from RAC). */
|
|
16
|
+
export interface IInputOwnProps extends IDataTestIdProps {
|
|
17
|
+
/** Clear button for the current value. */
|
|
18
|
+
clear?: boolean;
|
|
19
|
+
/** Ref to the native input (React 19 prop). */
|
|
20
|
+
ref?: Ref<HTMLInputElement>;
|
|
21
|
+
}
|
|
22
|
+
export interface IInputBaseProps extends IInputThemeProps, IFieldStateProps, IInputOwnProps {
|
|
23
|
+
}
|
|
24
|
+
/** RAC keys with different names / already in Base. */
|
|
25
|
+
export type TInputRacOmit = 'disabled' | 'size' | 'isDisabled' | 'isInvalid';
|
|
26
|
+
export interface IInputProps extends IInputBaseProps, Omit<RacInputProps, keyof IInputBaseProps | TInputRacOmit> {
|
|
27
|
+
}
|
|
28
|
+
/** Passthrough into FormInput (RAC without RHF/shell/theme). className belongs on the Field shell. */
|
|
29
|
+
export type TInputFormRacOmit = TInputRacOmit | keyof IInputBaseProps | 'value' | 'defaultValue' | 'onChange' | 'onBlur' | 'name' | 'className';
|
|
30
|
+
export interface IInputContentProps extends Omit<RacInputProps, TInputFormRacOmit> {
|
|
31
|
+
clear?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface IFormInputProps extends IFormFieldLayoutProps, Pick<IInputThemeProps, 'variant'>, IInputContentProps {
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,KAAK,UAAU,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC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|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
/** Synthetic change event used by clear control. */
|
|
3
|
+
export declare const toEmptyInputChangeEvent: (el: HTMLInputElement | null) => ChangeEvent<HTMLInputElement>;
|
|
4
|
+
/** Sets native input value via the prototype setter when the node exists. */
|
|
5
|
+
export declare const clearInputElementValue: (el: HTMLInputElement | null) => void;
|
|
6
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/input/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,GAAI,IAAI,gBAAgB,GAAG,IAAI,KAAG,WAAW,CAAC,gBAAgB,CAI3D,CAAC;AAExC,6EAA6E;AAC7E,eAAO,MAAM,sBAAsB,GAAI,IAAI,gBAAgB,GAAG,IAAI,SAOjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/loader/Component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,eAAO,MAAM,MAAM;uEAQhB,YAAY;;CAqBd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import u from "classnames";
|
|
3
|
+
import { a as c } from "../hooks-F-vmcbmx.js";
|
|
4
|
+
import { cva as _ } from "class-variance-authority";
|
|
5
|
+
import '../assets/index5.css';const y = "aub_styles-module_root_82fa0", p = "aub_styles-module_overlay_9529c", v = "aub_styles-module_spinner_fd62a", b = "aub_styles-module_sm_916d6", f = "aub_styles-module_md_98210", g = "aub_styles-module_lg_ce385", s = {
|
|
6
|
+
root: y,
|
|
7
|
+
overlay: p,
|
|
8
|
+
spinner: v,
|
|
9
|
+
sm: b,
|
|
10
|
+
md: f,
|
|
11
|
+
lg: g
|
|
12
|
+
}, N = _(s.root, {
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
sm: s.sm,
|
|
16
|
+
md: s.md,
|
|
17
|
+
lg: s.lg
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
size: "md"
|
|
22
|
+
}
|
|
23
|
+
}), h = ({
|
|
24
|
+
ref: l,
|
|
25
|
+
children: t,
|
|
26
|
+
size: e = "md",
|
|
27
|
+
active: a = !1,
|
|
28
|
+
className: r,
|
|
29
|
+
dataTestId: d,
|
|
30
|
+
...m
|
|
31
|
+
}) => {
|
|
32
|
+
const { loading: i } = c();
|
|
33
|
+
return /* @__PURE__ */ n(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
...m,
|
|
37
|
+
ref: l,
|
|
38
|
+
className: u(N({ size: e }), r),
|
|
39
|
+
"data-size": e,
|
|
40
|
+
"data-active": a || void 0,
|
|
41
|
+
"data-test-id": d,
|
|
42
|
+
"aria-busy": a || void 0,
|
|
43
|
+
children: [
|
|
44
|
+
t,
|
|
45
|
+
a ? /* @__PURE__ */ o("div", { className: s.overlay, role: "status", "aria-live": "polite", "aria-label": i, children: /* @__PURE__ */ o("span", { className: s.spinner, "aria-hidden": !0 }) }) : null
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
h.displayName = "Loader";
|
|
51
|
+
export {
|
|
52
|
+
h as Loader
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/loader/theme.ts","../../src/loader/Component.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const loaderVariants = cva(styles.root, {\n variants: {\n size: {\n sm: styles.sm,\n md: styles.md,\n lg: styles.lg,\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n","import cn from 'classnames';\n\nimport { useAuiLabels } from '@/provider';\n\nimport { loaderVariants } from './theme';\nimport { type ILoaderProps } from './types';\n\nimport styles from './styles.module.css';\n\nexport const Loader = ({\n ref,\n children,\n size = 'md',\n active = false,\n className,\n dataTestId,\n ...props\n}: ILoaderProps) => {\n const { loading } = useAuiLabels();\n\n return (\n <div\n {...props}\n ref={ref}\n className={cn(loaderVariants({ size }), className)}\n data-size={size}\n data-active={active || undefined}\n data-test-id={dataTestId}\n aria-busy={active || undefined}\n >\n {children}\n {active ? (\n <div className={styles.overlay} role=\"status\" aria-live=\"polite\" aria-label={loading}>\n <span className={styles.spinner} aria-hidden />\n </div>\n ) : null}\n </div>\n );\n};\n\nLoader.displayName = 'Loader';\n"],"names":["loaderVariants","cva","styles","Loader","ref","children","size","active","className","dataTestId","props","loading","useAuiLabels","jsxs","cn","jsx"],"mappings":";;;;;;;;;;;GAIaA,IAAiBC,EAAIC,EAAO,MAAM;AAAA,EAC3C,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,EACf;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,EAAA;AAEd,CAAC,GCNYC,IAAS,CAAC;AAAA,EACnB,KAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,QAAAC,IAAS;AAAA,EACT,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,GAAGC;AACP,MAAoB;AAChB,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA;AAEpB,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,KAAAN;AAAA,MACA,WAAWU,EAAGd,EAAe,EAAE,MAAAM,EAAA,CAAM,GAAGE,CAAS;AAAA,MACjD,aAAWF;AAAA,MACX,eAAaC,KAAU;AAAA,MACvB,gBAAcE;AAAA,MACd,aAAWF,KAAU;AAAA,MAEpB,UAAA;AAAA,QAAAF;AAAA,QACAE,sBACI,OAAA,EAAI,WAAWL,EAAO,SAAS,MAAK,UAAS,aAAU,UAAS,cAAYS,GACzE,UAAA,gBAAAI,EAAC,UAAK,WAAWb,EAAO,SAAS,eAAW,GAAA,CAAC,GACjD,IACA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGhB;AAEAC,EAAO,cAAc;"}
|