rn-grid-date-time-picker 1.0.0 → 1.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/CHANGELOG.md +86 -0
- package/README.md +100 -638
- package/lib/commonjs/adapters/utcMidnight.js +15 -6
- package/lib/commonjs/adapters/utcMidnight.js.map +1 -1
- package/lib/commonjs/components/DateTimePicker.js +484 -85
- package/lib/commonjs/components/DateTimePicker.js.map +1 -1
- package/lib/commonjs/components/calendar/Calendar.js +21 -7
- package/lib/commonjs/components/calendar/Calendar.js.map +1 -1
- package/lib/commonjs/components/calendar/CalendarHeader.js +46 -6
- package/lib/commonjs/components/calendar/CalendarHeader.js.map +1 -1
- package/lib/commonjs/components/calendar/CalendarSwitch.js +150 -0
- package/lib/commonjs/components/calendar/CalendarSwitch.js.map +1 -0
- package/lib/commonjs/components/calendar/DayCell.js +8 -3
- package/lib/commonjs/components/calendar/DayCell.js.map +1 -1
- package/lib/commonjs/components/calendar/DayGrid.js +13 -2
- package/lib/commonjs/components/calendar/DayGrid.js.map +1 -1
- package/lib/commonjs/components/calendar/PeriodGrid.js +3 -1
- package/lib/commonjs/components/calendar/PeriodGrid.js.map +1 -1
- package/lib/commonjs/components/calendar/calendarStyles.js +3 -2
- package/lib/commonjs/components/calendar/calendarStyles.js.map +1 -1
- package/lib/commonjs/components/calendar/localeNames.js +46 -24
- package/lib/commonjs/components/calendar/localeNames.js.map +1 -1
- package/lib/commonjs/components/calendar/selection.js +9 -1
- package/lib/commonjs/components/calendar/selection.js.map +1 -1
- package/lib/commonjs/components/container/DefaultSheet.js +42 -11
- package/lib/commonjs/components/container/DefaultSheet.js.map +1 -1
- package/lib/commonjs/components/container/PickerContainer.js +4 -0
- package/lib/commonjs/components/container/PickerContainer.js.map +1 -1
- package/lib/commonjs/components/container/PickerLayout.js +1 -1
- package/lib/commonjs/components/container/PickerLayout.js.map +1 -1
- package/lib/commonjs/components/container/containerStyles.js +12 -4
- package/lib/commonjs/components/container/containerStyles.js.map +1 -1
- package/lib/commonjs/components/field/RangeFields.js +5 -1
- package/lib/commonjs/components/field/RangeFields.js.map +1 -1
- package/lib/commonjs/components/field/SegmentedInput.js +8 -3
- package/lib/commonjs/components/field/SegmentedInput.js.map +1 -1
- package/lib/commonjs/components/field/ValueField.js +64 -8
- package/lib/commonjs/components/field/ValueField.js.map +1 -1
- package/lib/commonjs/components/field/fieldStyles.js +17 -0
- package/lib/commonjs/components/field/fieldStyles.js.map +1 -1
- package/lib/commonjs/components/field/fieldText.js +29 -13
- package/lib/commonjs/components/field/fieldText.js.map +1 -1
- package/lib/commonjs/components/hooks/useBottomInset.js +32 -0
- package/lib/commonjs/components/hooks/useBottomInset.js.map +1 -0
- package/lib/commonjs/components/hooks/useKeyboardFold.js +36 -13
- package/lib/commonjs/components/hooks/useKeyboardFold.js.map +1 -1
- package/lib/commonjs/components/hooks/useOpenPicker.js +39 -17
- package/lib/commonjs/components/hooks/useOpenPicker.js.map +1 -1
- package/lib/commonjs/components/hooks/useTypedSegments.js +6 -2
- package/lib/commonjs/components/hooks/useTypedSegments.js.map +1 -1
- package/lib/commonjs/components/theme/defaultStrings.js +13 -3
- package/lib/commonjs/components/theme/defaultStrings.js.map +1 -1
- package/lib/commonjs/components/theme/direction.js +17 -0
- package/lib/commonjs/components/theme/direction.js.map +1 -0
- package/lib/commonjs/components/theme/numerals.js +16 -0
- package/lib/commonjs/components/theme/numerals.js.map +1 -0
- package/lib/commonjs/components/theme/styleKeys.js +10 -2
- package/lib/commonjs/components/theme/styleKeys.js.map +1 -1
- package/lib/commonjs/components/theme/tokens.js +4 -0
- package/lib/commonjs/components/theme/tokens.js.map +1 -1
- package/lib/commonjs/components/time/TimeRow.js +10 -2
- package/lib/commonjs/components/time/TimeRow.js.map +1 -1
- package/lib/commonjs/components/time/TypedTime.js +3 -1
- package/lib/commonjs/components/time/TypedTime.js.map +1 -1
- package/lib/commonjs/components/time/Wheel.js +20 -3
- package/lib/commonjs/components/time/Wheel.js.map +1 -1
- package/lib/commonjs/components/time/timeStyles.js +4 -5
- package/lib/commonjs/components/time/timeStyles.js.map +1 -1
- package/lib/commonjs/components/types.js +10 -0
- package/lib/commonjs/components/types.js.map +1 -1
- package/lib/commonjs/core/calendarSystem.js +123 -22
- package/lib/commonjs/core/calendarSystem.js.map +1 -1
- package/lib/commonjs/core/digits.js +25 -0
- package/lib/commonjs/core/digits.js.map +1 -0
- package/lib/commonjs/core/draft.js +31 -10
- package/lib/commonjs/core/draft.js.map +1 -1
- package/lib/commonjs/core/locale.js +20 -4
- package/lib/commonjs/core/locale.js.map +1 -1
- package/lib/commonjs/core/numerals.js +46 -0
- package/lib/commonjs/core/numerals.js.map +1 -0
- package/lib/commonjs/core/segmentEditor.js +9 -0
- package/lib/commonjs/core/segmentEditor.js.map +1 -1
- package/lib/commonjs/core/segments.js +2 -11
- package/lib/commonjs/core/segments.js.map +1 -1
- package/lib/commonjs/core/selectionRules.js +2 -1
- package/lib/commonjs/core/selectionRules.js.map +1 -1
- package/lib/commonjs/core/timeEntry.js +7 -91
- package/lib/commonjs/core/timeEntry.js.map +1 -1
- package/lib/commonjs/icons/index.js +5 -1
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/index.js +20 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/adapters/utcMidnight.js +14 -5
- package/lib/module/adapters/utcMidnight.js.map +1 -1
- package/lib/module/components/DateTimePicker.js +490 -91
- package/lib/module/components/DateTimePicker.js.map +1 -1
- package/lib/module/components/calendar/Calendar.js +25 -11
- package/lib/module/components/calendar/Calendar.js.map +1 -1
- package/lib/module/components/calendar/CalendarHeader.js +47 -7
- package/lib/module/components/calendar/CalendarHeader.js.map +1 -1
- package/lib/module/components/calendar/CalendarSwitch.js +145 -0
- package/lib/module/components/calendar/CalendarSwitch.js.map +1 -0
- package/lib/module/components/calendar/DayCell.js +8 -3
- package/lib/module/components/calendar/DayCell.js.map +1 -1
- package/lib/module/components/calendar/DayGrid.js +14 -3
- package/lib/module/components/calendar/DayGrid.js.map +1 -1
- package/lib/module/components/calendar/PeriodGrid.js +3 -1
- package/lib/module/components/calendar/PeriodGrid.js.map +1 -1
- package/lib/module/components/calendar/calendarStyles.js +3 -2
- package/lib/module/components/calendar/calendarStyles.js.map +1 -1
- package/lib/module/components/calendar/localeNames.js +46 -24
- package/lib/module/components/calendar/localeNames.js.map +1 -1
- package/lib/module/components/calendar/selection.js +7 -0
- package/lib/module/components/calendar/selection.js.map +1 -1
- package/lib/module/components/container/DefaultSheet.js +42 -12
- package/lib/module/components/container/DefaultSheet.js.map +1 -1
- package/lib/module/components/container/PickerContainer.js +4 -0
- package/lib/module/components/container/PickerContainer.js.map +1 -1
- package/lib/module/components/container/PickerLayout.js +1 -1
- package/lib/module/components/container/PickerLayout.js.map +1 -1
- package/lib/module/components/container/containerStyles.js +11 -3
- package/lib/module/components/container/containerStyles.js.map +1 -1
- package/lib/module/components/field/RangeFields.js +5 -1
- package/lib/module/components/field/RangeFields.js.map +1 -1
- package/lib/module/components/field/SegmentedInput.js +8 -3
- package/lib/module/components/field/SegmentedInput.js.map +1 -1
- package/lib/module/components/field/ValueField.js +66 -10
- package/lib/module/components/field/ValueField.js.map +1 -1
- package/lib/module/components/field/fieldStyles.js +17 -0
- package/lib/module/components/field/fieldStyles.js.map +1 -1
- package/lib/module/components/field/fieldText.js +28 -11
- package/lib/module/components/field/fieldText.js.map +1 -1
- package/lib/module/components/hooks/useBottomInset.js +27 -0
- package/lib/module/components/hooks/useBottomInset.js.map +1 -0
- package/lib/module/components/hooks/useKeyboardFold.js +33 -12
- package/lib/module/components/hooks/useKeyboardFold.js.map +1 -1
- package/lib/module/components/hooks/useOpenPicker.js +39 -17
- package/lib/module/components/hooks/useOpenPicker.js.map +1 -1
- package/lib/module/components/hooks/useTypedSegments.js +6 -2
- package/lib/module/components/hooks/useTypedSegments.js.map +1 -1
- package/lib/module/components/theme/defaultStrings.js +11 -2
- package/lib/module/components/theme/defaultStrings.js.map +1 -1
- package/lib/module/components/theme/direction.js +13 -0
- package/lib/module/components/theme/direction.js.map +1 -0
- package/lib/module/components/theme/numerals.js +12 -0
- package/lib/module/components/theme/numerals.js.map +1 -0
- package/lib/module/components/theme/styleKeys.js +10 -2
- package/lib/module/components/theme/styleKeys.js.map +1 -1
- package/lib/module/components/theme/tokens.js +4 -0
- package/lib/module/components/theme/tokens.js.map +1 -1
- package/lib/module/components/time/TimeRow.js +11 -3
- package/lib/module/components/time/TimeRow.js.map +1 -1
- package/lib/module/components/time/TypedTime.js +3 -1
- package/lib/module/components/time/TypedTime.js.map +1 -1
- package/lib/module/components/time/Wheel.js +18 -2
- package/lib/module/components/time/Wheel.js.map +1 -1
- package/lib/module/components/time/timeStyles.js +4 -5
- package/lib/module/components/time/timeStyles.js.map +1 -1
- package/lib/module/components/types.js +10 -0
- package/lib/module/components/types.js.map +1 -1
- package/lib/module/core/calendarSystem.js +118 -19
- package/lib/module/core/calendarSystem.js.map +1 -1
- package/lib/module/core/digits.js +20 -0
- package/lib/module/core/digits.js.map +1 -0
- package/lib/module/core/draft.js +29 -9
- package/lib/module/core/draft.js.map +1 -1
- package/lib/module/core/locale.js +18 -3
- package/lib/module/core/locale.js.map +1 -1
- package/lib/module/core/numerals.js +39 -0
- package/lib/module/core/numerals.js.map +1 -0
- package/lib/module/core/segmentEditor.js +9 -0
- package/lib/module/core/segmentEditor.js.map +1 -1
- package/lib/module/core/segments.js +0 -8
- package/lib/module/core/segments.js.map +1 -1
- package/lib/module/core/selectionRules.js +2 -1
- package/lib/module/core/selectionRules.js.map +1 -1
- package/lib/module/core/timeEntry.js +7 -89
- package/lib/module/core/timeEntry.js.map +1 -1
- package/lib/module/icons/index.js +5 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts +8 -4
- package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/CalendarSwitch.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/calendar/CalendarSwitch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts +8 -3
- package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/calendar/selection.d.ts +2 -0
- package/lib/typescript/commonjs/src/components/calendar/selection.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts +10 -2
- package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts +6 -0
- package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/field/ValueField.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/field/ValueField.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/field/fieldText.d.ts +14 -5
- package/lib/typescript/commonjs/src/components/field/fieldText.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/hooks/useBottomInset.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/hooks/useBottomInset.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts +10 -2
- package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts +3 -2
- package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts +13 -2
- package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/theme/direction.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/theme/direction.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/numerals.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/theme/numerals.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts +1 -1
- package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/theme/tokens.d.ts +3 -1
- package/lib/typescript/commonjs/src/components/theme/tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/time/Wheel.d.ts +5 -0
- package/lib/typescript/commonjs/src/components/time/Wheel.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts +0 -2
- package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/types.d.ts +84 -4
- package/lib/typescript/commonjs/src/components/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/calendarSystem.d.ts +20 -5
- package/lib/typescript/commonjs/src/core/calendarSystem.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/digits.d.ts +3 -0
- package/lib/typescript/commonjs/src/core/digits.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/draft.d.ts +12 -1
- package/lib/typescript/commonjs/src/core/draft.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/locale.d.ts +6 -0
- package/lib/typescript/commonjs/src/core/locale.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/numerals.d.ts +15 -0
- package/lib/typescript/commonjs/src/core/numerals.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/segmentEditor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/segments.d.ts +0 -2
- package/lib/typescript/commonjs/src/core/segments.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/selectionRules.d.ts +3 -2
- package/lib/typescript/commonjs/src/core/selectionRules.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/core/timeEntry.d.ts +4 -24
- package/lib/typescript/commonjs/src/core/timeEntry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/adapters/utcMidnight.d.ts.map +1 -1
- package/lib/typescript/module/src/components/DateTimePicker.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/Calendar.d.ts +8 -4
- package/lib/typescript/module/src/components/calendar/Calendar.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/CalendarSwitch.d.ts +26 -0
- package/lib/typescript/module/src/components/calendar/CalendarSwitch.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/DayCell.d.ts +1 -1
- package/lib/typescript/module/src/components/calendar/DayCell.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/DayGrid.d.ts +2 -0
- package/lib/typescript/module/src/components/calendar/DayGrid.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts +1 -1
- package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/localeNames.d.ts +8 -3
- package/lib/typescript/module/src/components/calendar/localeNames.d.ts.map +1 -1
- package/lib/typescript/module/src/components/calendar/selection.d.ts +2 -0
- package/lib/typescript/module/src/components/calendar/selection.d.ts.map +1 -1
- package/lib/typescript/module/src/components/container/DefaultSheet.d.ts +10 -2
- package/lib/typescript/module/src/components/container/DefaultSheet.d.ts.map +1 -1
- package/lib/typescript/module/src/components/container/PickerContainer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/container/containerStyles.d.ts +6 -0
- package/lib/typescript/module/src/components/container/containerStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/field/RangeFields.d.ts +5 -0
- package/lib/typescript/module/src/components/field/RangeFields.d.ts.map +1 -1
- package/lib/typescript/module/src/components/field/SegmentedInput.d.ts.map +1 -1
- package/lib/typescript/module/src/components/field/ValueField.d.ts +7 -0
- package/lib/typescript/module/src/components/field/ValueField.d.ts.map +1 -1
- package/lib/typescript/module/src/components/field/fieldStyles.d.ts +15 -0
- package/lib/typescript/module/src/components/field/fieldStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/field/fieldText.d.ts +14 -5
- package/lib/typescript/module/src/components/field/fieldText.d.ts.map +1 -1
- package/lib/typescript/module/src/components/hooks/useBottomInset.d.ts +8 -0
- package/lib/typescript/module/src/components/hooks/useBottomInset.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts +10 -2
- package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts.map +1 -1
- package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts +2 -1
- package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts.map +1 -1
- package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts +3 -2
- package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts.map +1 -1
- package/lib/typescript/module/src/components/theme/defaultStrings.d.ts +13 -2
- package/lib/typescript/module/src/components/theme/defaultStrings.d.ts.map +1 -1
- package/lib/typescript/module/src/components/theme/direction.d.ts +8 -0
- package/lib/typescript/module/src/components/theme/direction.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/numerals.d.ts +7 -0
- package/lib/typescript/module/src/components/theme/numerals.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/styleKeys.d.ts +1 -1
- package/lib/typescript/module/src/components/theme/styleKeys.d.ts.map +1 -1
- package/lib/typescript/module/src/components/theme/tokens.d.ts +3 -1
- package/lib/typescript/module/src/components/theme/tokens.d.ts.map +1 -1
- package/lib/typescript/module/src/components/time/TimeRow.d.ts.map +1 -1
- package/lib/typescript/module/src/components/time/TypedTime.d.ts.map +1 -1
- package/lib/typescript/module/src/components/time/Wheel.d.ts +5 -0
- package/lib/typescript/module/src/components/time/Wheel.d.ts.map +1 -1
- package/lib/typescript/module/src/components/time/timeStyles.d.ts +0 -2
- package/lib/typescript/module/src/components/time/timeStyles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/types.d.ts +84 -4
- package/lib/typescript/module/src/components/types.d.ts.map +1 -1
- package/lib/typescript/module/src/core/calendarSystem.d.ts +20 -5
- package/lib/typescript/module/src/core/calendarSystem.d.ts.map +1 -1
- package/lib/typescript/module/src/core/digits.d.ts +3 -0
- package/lib/typescript/module/src/core/digits.d.ts.map +1 -0
- package/lib/typescript/module/src/core/draft.d.ts +12 -1
- package/lib/typescript/module/src/core/draft.d.ts.map +1 -1
- package/lib/typescript/module/src/core/locale.d.ts +6 -0
- package/lib/typescript/module/src/core/locale.d.ts.map +1 -1
- package/lib/typescript/module/src/core/numerals.d.ts +15 -0
- package/lib/typescript/module/src/core/numerals.d.ts.map +1 -0
- package/lib/typescript/module/src/core/segmentEditor.d.ts.map +1 -1
- package/lib/typescript/module/src/core/segments.d.ts +0 -2
- package/lib/typescript/module/src/core/segments.d.ts.map +1 -1
- package/lib/typescript/module/src/core/selectionRules.d.ts +3 -2
- package/lib/typescript/module/src/core/selectionRules.d.ts.map +1 -1
- package/lib/typescript/module/src/core/timeEntry.d.ts +4 -24
- package/lib/typescript/module/src/core/timeEntry.d.ts.map +1 -1
- package/lib/typescript/module/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +22 -7
- package/src/adapters/utcMidnight.ts +14 -5
- package/src/components/DateTimePicker.tsx +607 -108
- package/src/components/calendar/Calendar.tsx +54 -16
- package/src/components/calendar/CalendarHeader.tsx +41 -9
- package/src/components/calendar/CalendarSwitch.tsx +170 -0
- package/src/components/calendar/DayCell.tsx +16 -4
- package/src/components/calendar/DayGrid.tsx +18 -3
- package/src/components/calendar/PeriodGrid.tsx +3 -1
- package/src/components/calendar/calendarStyles.ts +3 -2
- package/src/components/calendar/localeNames.ts +52 -22
- package/src/components/calendar/selection.ts +8 -0
- package/src/components/container/DefaultSheet.tsx +60 -14
- package/src/components/container/PickerContainer.tsx +4 -0
- package/src/components/container/PickerLayout.tsx +1 -1
- package/src/components/container/containerStyles.ts +12 -3
- package/src/components/field/RangeFields.tsx +12 -2
- package/src/components/field/SegmentedInput.tsx +8 -3
- package/src/components/field/ValueField.tsx +94 -18
- package/src/components/field/fieldStyles.ts +6 -0
- package/src/components/field/fieldText.ts +68 -15
- package/src/components/hooks/useBottomInset.ts +33 -0
- package/src/components/hooks/useKeyboardFold.ts +41 -13
- package/src/components/hooks/useOpenPicker.ts +41 -18
- package/src/components/hooks/useTypedSegments.ts +7 -3
- package/src/components/theme/defaultStrings.ts +29 -4
- package/src/components/theme/direction.ts +12 -0
- package/src/components/theme/numerals.ts +11 -0
- package/src/components/theme/styleKeys.ts +18 -1
- package/src/components/theme/tokens.ts +5 -1
- package/src/components/time/TimeRow.tsx +23 -3
- package/src/components/time/TypedTime.tsx +3 -1
- package/src/components/time/Wheel.tsx +19 -5
- package/src/components/time/timeStyles.ts +2 -3
- package/src/components/types.ts +86 -4
- package/src/core/calendarSystem.ts +145 -21
- package/src/core/digits.ts +21 -0
- package/src/core/draft.ts +41 -13
- package/src/core/locale.ts +20 -3
- package/src/core/numerals.ts +35 -0
- package/src/core/segmentEditor.ts +13 -0
- package/src/core/segments.ts +0 -8
- package/src/core/selectionRules.ts +3 -2
- package/src/core/timeEntry.ts +6 -96
- package/src/icons/index.tsx +3 -1
- package/src/index.tsx +12 -2
|
@@ -12,27 +12,6 @@ export interface TimeEntryValues {
|
|
|
12
12
|
minute?: string;
|
|
13
13
|
period?: Period;
|
|
14
14
|
}
|
|
15
|
-
export interface TimeEntryState {
|
|
16
|
-
values: TimeEntryValues;
|
|
17
|
-
focused: TimeKey | null;
|
|
18
|
-
}
|
|
19
|
-
export type TimeEntryAction = {
|
|
20
|
-
type: 'focus';
|
|
21
|
-
key: TimeKey;
|
|
22
|
-
} | {
|
|
23
|
-
type: 'digit';
|
|
24
|
-
digit: string;
|
|
25
|
-
} | {
|
|
26
|
-
type: 'backspace';
|
|
27
|
-
} | {
|
|
28
|
-
type: 'period';
|
|
29
|
-
period: Period;
|
|
30
|
-
} | {
|
|
31
|
-
type: 'blur';
|
|
32
|
-
} | {
|
|
33
|
-
type: 'reset';
|
|
34
|
-
time: Time | null;
|
|
35
|
-
};
|
|
36
15
|
export type TimeEntryIssue = 'INCOMPLETE' | 'INVALID' | 'OFF_STEP' | 'BEFORE_MIN' | 'AFTER_MAX';
|
|
37
16
|
export interface ParsedTime {
|
|
38
17
|
time: Time | null;
|
|
@@ -44,8 +23,6 @@ export interface ParsedTime {
|
|
|
44
23
|
export declare const timeSpecs: (timeFormat: TimeFormat) => Record<TimeKey, SegmentSpec>;
|
|
45
24
|
/** Time → what the boxes show. An empty 12-hour row starts on AM (12:00 AM is the fallback time). */
|
|
46
25
|
export declare const formatTimeEntry: (time: Time | null, timeFormat: TimeFormat) => TimeEntryValues;
|
|
47
|
-
export declare const createTimeEntry: (time: Time | null, timeFormat: TimeFormat) => TimeEntryState;
|
|
48
|
-
export declare const timeEntryReducer: (state: TimeEntryState, action: TimeEntryAction, timeFormat: TimeFormat) => TimeEntryState;
|
|
49
26
|
export declare const parseTimeEntry: (values: TimeEntryValues, timeFormat: TimeFormat) => ParsedTime;
|
|
50
27
|
/**
|
|
51
28
|
* Why a complete time can't be confirmed: off the minute step (never rounded
|
|
@@ -57,7 +34,10 @@ export declare const checkTime: (time: Time, options: {
|
|
|
57
34
|
}) => TimeEntryIssue | null;
|
|
58
35
|
/** Whether any time in that half of the day (AM 00:00–11:59, PM 12:00–23:59) fits the limits. */
|
|
59
36
|
export declare const isPeriodAllowed: (period: Period, bounds?: TimeBounds | null) => boolean;
|
|
60
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Digits only, at most two (what a time box accepts while typing). Digits
|
|
39
|
+
* typed in another script count too ('٠٩' → '09').
|
|
40
|
+
*/
|
|
61
41
|
export declare const cleanBoxText: (raw: string) => string;
|
|
62
42
|
/**
|
|
63
43
|
* The boxes as they are saved when focus leaves them: a one-digit entry gets a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeEntry.d.ts","sourceRoot":"","sources":["../../../../../src/core/timeEntry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timeEntry.d.ts","sourceRoot":"","sources":["../../../../../src/core/timeEntry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,O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KAAK,MAAM,KAAG,MACQ,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,eAAe,EACvB,YAAY,UAAU,KACrB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAQ/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AAEH,MAAM,MAAM,QAAQ,GAClB,UAAU,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,aAAa,CAAC;AAExE,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,8GAA8G;AAC9G,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;AAEjE,8DAA8D;AAC9D,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AAEH,MAAM,MAAM,QAAQ,GAClB,UAAU,GAAG,OAAO,GAAG,aAAa,GA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AM;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EACzD,UAAU,WAAW,KACpB,KAAK,CAAC,SAcR,CAAC"}
|
|
@@ -8,13 +8,17 @@ export { DEFAULT_TOKENS, INTER_FONTS, SYSTEM_FONTS, } from './components/theme/t
|
|
|
8
8
|
export { DEFAULT_YEAR_RANGE } from './components/types';
|
|
9
9
|
export { CalendarIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ClearIcon, } from './icons';
|
|
10
10
|
export { addDays, compareCalendarDates, daysBetween, daysInMonth, fromDateKey, isSameDay, toDateKey, todayIn, weekdayOf, } from './core/calendarDate';
|
|
11
|
+
export { hijriDateText, hijriPeriods } from './core/calendarSystem';
|
|
12
|
+
export { arabicDigits } from './core/numerals';
|
|
11
13
|
export type { AdapterContext, CalendarDate, DateTimeValue, PickerType, PickerValue, RangeValue, SelectionMode, Time, TimeFormat, ValueAdapter, ValueFormat, Weekday, } from './core/types';
|
|
12
14
|
export type { Constraints, CreateConstraintsOptions, DayStatus, DisabledReason, RangeBound, TimeBounds, } from './core/constraints';
|
|
13
|
-
export type { ConstraintContext, DateTimePickerProps, InstructionRenderProps, LabelRenderProps, PickerErrorCode, PickerState, SheetOptions, SheetRenderProps, SheetSize, Slot, } from './components/types';
|
|
15
|
+
export type { CalendarSwitchRenderProps, ChangeInfo, ConstraintContext, DateTimePickerProps, InstructionRenderProps, LabelRenderProps, PickerErrorCode, PickerState, SheetOptions, SheetRenderProps, SheetSize, Slot, } from './components/types';
|
|
16
|
+
export type { CalendarSystem, Periods } from './core/calendarSystem';
|
|
17
|
+
export type { Numerals } from './core/numerals';
|
|
14
18
|
export type { PickerStrings } from './components/theme/defaultStrings';
|
|
15
|
-
export type { PickerStyles } from './components/theme/styleKeys';
|
|
19
|
+
export type { PickerStyles, PickerStyleValue, StyleKey, } from './components/theme/styleKeys';
|
|
16
20
|
export type { ThemeTokens } from './components/theme/tokens';
|
|
17
|
-
export type { DayCellState } from './components/calendar/DayCell';
|
|
21
|
+
export type { DayCellState, RangeRole } from './components/calendar/DayCell';
|
|
18
22
|
export type { PeriodItem } from './components/calendar/PeriodGrid';
|
|
19
23
|
export type { IconComponent, IconName, IconOptions, IconRenderProps, IconSet, } from './icons';
|
|
20
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,eAAe,cAAc,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EACL,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,OAAO,EACP,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAS,GACV,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,eAAe,cAAc,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,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ChB,QAAQ,GACT,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC7E,YAAY,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,YAAY,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,eAAe,EACf,OAAO,GACR,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utcMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/utcMidnight.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EAGb,YAAY,EACb,MAAM,kBAAe,CAAC;AAmBvB,iFAAiF;AACjF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,OACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"utcMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/utcMidnight.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EAGb,YAAY,EACb,MAAM,kBAAe,CAAC;AAmBvB,iFAAiF;AACjF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,OACnB,CAAC;AAQ5B;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,MAAM,MAAM,KACX,aAAa,GAAG,IAUlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,aAAa,GAAG,IAAI,GAAG,SAAS,EACvC,MAAM,MAAM,KACX,MAMF,CAAC;AAyDF,eAAO,MAAM,kBAAkB,EAAE,YAIhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DateTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/DateTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AA2Ef,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,YAAS,CAAC;AA+BjB;;;;;;;;;;GAUG;AAEH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0kDjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type CalendarSystem } from '../../core/calendarSystem.js';
|
|
3
2
|
import type { Constraints } from '../../core/constraints.js';
|
|
4
3
|
import type { CalendarDate, Weekday } from '../../core/types.js';
|
|
5
4
|
import type { IconName, IconOptions, IconSet } from '../../icons/index.js';
|
|
@@ -25,8 +24,8 @@ export interface CalendarProps {
|
|
|
25
24
|
last: number;
|
|
26
25
|
};
|
|
27
26
|
locale: string;
|
|
28
|
-
/**
|
|
29
|
-
calendarSystem?:
|
|
27
|
+
/** The grid on screen (a dual calendar shows one of the two). Default 'gregory'. */
|
|
28
|
+
calendarSystem?: 'gregory' | 'hijri';
|
|
30
29
|
initialView?: CalendarView;
|
|
31
30
|
/** 'month' / 'year': that grid is the last step and a tap picks the period's first day. */
|
|
32
31
|
precision?: 'day' | 'month' | 'year';
|
|
@@ -34,7 +33,12 @@ export interface CalendarProps {
|
|
|
34
33
|
showToday?: boolean;
|
|
35
34
|
/** Gregorian year and month of the first day shown (also in the Hijri grid). */
|
|
36
35
|
onVisibleMonthChange?: (year: number, month: number) => void;
|
|
37
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* A day in the month now shown (today when it's there, else the middle), so
|
|
38
|
+
* the other calendar system can open on the same days.
|
|
39
|
+
*/
|
|
40
|
+
onAnchorChange?: (day: CalendarDate) => void;
|
|
41
|
+
/** A second line under each day. None by default. */
|
|
38
42
|
subLabel?: (day: CalendarDate) => string | null;
|
|
39
43
|
renderDay?: (state: DayCellState, onPress: () => void) => React.ReactNode;
|
|
40
44
|
renderWeekday?: (weekday: Weekday, name: string) => React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAYf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,sBAAa,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAW,CAAC;AAG9C,OAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAc,CAAC;AAC3D,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,gBAAa,CAAC;AAErB,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,YAAY,CAAC;IACpB,wFAAwF;IACxF,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAClC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,WAAW,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,C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C,IAAI,EAAE,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACzC,uDAAuD;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IACnD,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAyED;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqXrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/CalendarHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,sBAAa,CAAC;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAIvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAInD,UAAU,WAAW;IACnB,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,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theme/styleKeys.js';
|
|
3
|
+
import { type ThemeTokens } from '../theme/tokens.js';
|
|
4
|
+
export interface SegmentOption<T extends string> {
|
|
5
|
+
value: T;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
interface Props<T extends string> {
|
|
9
|
+
/** 'switch': segments in a track (the calendar switch). 'tabs': underlined tabs (a dual calendar's). */
|
|
10
|
+
variant: 'switch' | 'tabs';
|
|
11
|
+
options: SegmentOption<T>[];
|
|
12
|
+
selected: T;
|
|
13
|
+
onSelect: (value: T) => void;
|
|
14
|
+
accessibilityLabel: string;
|
|
15
|
+
tokens: ThemeTokens;
|
|
16
|
+
styles?: PickerStyles;
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* One row of choices, one of them selected: the Gregorian / Hijri / Dual
|
|
21
|
+
* switch above the calendar, and the Gregorian / Hijri tabs of a dual calendar.
|
|
22
|
+
* Each part takes its own key from the `styles` prop.
|
|
23
|
+
*/
|
|
24
|
+
declare const CalendarSwitch: <T extends string>({ variant, options, selected, onSelect, accessibilityLabel, tokens, styles, testID, }: Props<T>) => React.ReactElement;
|
|
25
|
+
export default CalendarSwitch;
|
|
26
|
+
//# sourceMappingURL=CalendarSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarSwitch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/CalendarSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AACvD,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAE9D,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,KAAK,CAAC,CAAC,SAAS,MAAM;IAC9B,wGAAwG;IACxG,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3B,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA+ED;;;;GAIG;AACH,QAAA,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,EAAE,uFASvC,KAAK,CAAC,CAAC,CAAC,KAAG,KAAK,CAAC,YAqDnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface DayCellState {
|
|
|
14
14
|
rangeRole: RangeRole;
|
|
15
15
|
/** The number to show, when it isn't the Gregorian day (Hijri grid). */
|
|
16
16
|
label?: number;
|
|
17
|
-
/**
|
|
17
|
+
/** A second line under the day number. Null unless a `subLabel` is given. */
|
|
18
18
|
subLabel?: string | null;
|
|
19
19
|
a11yLabel: string;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayCell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/DayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DayCell.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/DayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAGnD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;AAErE,mEAAmE;AACnE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAM,SAAQ,YAAY;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;;AAgGD,wBAQE"}
|
|
@@ -26,6 +26,8 @@ export interface DayGridProps {
|
|
|
26
26
|
selection: CalendarSelection;
|
|
27
27
|
constraints: Constraints;
|
|
28
28
|
locale: string;
|
|
29
|
+
/** What a screen reader says for a day. Default: the Gregorian date in `locale`. */
|
|
30
|
+
dateLabel?: (day: CalendarDate) => string;
|
|
29
31
|
onSelectDay: (day: CalendarDate) => void;
|
|
30
32
|
/** Swipe left / right to change month. */
|
|
31
33
|
onSwipe?: (step: 1 | -1) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/DayGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAAwB,CAAC;AA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AAY,MAAM,uBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"PeriodGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/PeriodGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAY,MAAM,uBAAoB,CAAC;AAGjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAGnD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,KAAK,CAAC,SAAS,CAAC;IACnD,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA+BD,yDAAyD;AACzD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuD/B,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendarStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/calendarStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAI9D,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B,QAAA,MAAM,MAAM,GAAI,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"calendarStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/calendarStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAI9D,eAAO,MAAM,QAAQ,KAAK,CAAC;AAE3B,QAAA,MAAM,MAAM,GAAI,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyI1B,CAAC;AAEL,mEAAmE;AACnE,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,WAAW,KAClB,UAAU,CAAC,OAAO,MAAM,CAM1B,CAAC"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import type { CalendarDate, Weekday } from '../../core/types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Month and weekday names from
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* Month and weekday names from the platform's Intl, cached per locale. Each
|
|
4
|
+
* name is formatted on its own (not read from formatToParts: iOS labels every
|
|
5
|
+
* part of some locales, such as 'de-DE' and 'ar-SA', as plain text), in the
|
|
6
|
+
* Gregorian calendar. Falls back to 'en-US' when the device's Intl can't name
|
|
7
|
+
* the locale, and to built-in English names after that.
|
|
6
8
|
*/
|
|
7
9
|
interface Names {
|
|
8
10
|
monthsShort: string[];
|
|
9
11
|
monthsLong: string[];
|
|
12
|
+
/** Monday … Sunday, as the weekday row shows them. */
|
|
10
13
|
weekdays: string[];
|
|
14
|
+
/** Monday … Sunday, for screen readers. */
|
|
15
|
+
weekdaysLong: string[];
|
|
11
16
|
}
|
|
12
17
|
export declare const localeNames: (locale: string) => Names;
|
|
13
18
|
/** Weekday name for 1 = Monday … 7 = Sunday. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localeNames.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/localeNames.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"localeNames.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/localeNames.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAkB,CAAC;AAE9D;;;;;;GAMG;AACH,UAAU,KAAK;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAuFD,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,KAM5C,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,SAAS,OAAO,KAAG,MACd,CAAC;AAElD,uEAAuE;AACvE,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,EAAE,KAAK,YAAY,KAAG,MAIjE,CAAC"}
|
|
@@ -15,6 +15,8 @@ export type CalendarSelection = {
|
|
|
15
15
|
};
|
|
16
16
|
/** The first selected day: where the calendar opens. */
|
|
17
17
|
export declare const firstSelectedDay: (sel: CalendarSelection) => CalendarDate | null;
|
|
18
|
+
/** Every selected day. */
|
|
19
|
+
export declare const selectedDays: (sel: CalendarSelection) => CalendarDate[];
|
|
18
20
|
/** Whether a day is selected, and its place in a range band. */
|
|
19
21
|
export declare const selectionOf: (sel: CalendarSelection, day: CalendarDate) => {
|
|
20
22
|
selected: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAW,CAAC;AAE3C,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,YAAY,EAAE,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1E,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,GAC3B,KAAK,iBAAiB,KACrB,YAAY,GAAG,IAIjB,CAAC;AAWF,gEAAgE;AAChE,eAAO,MAAM,WAAW,GACtB,KAAK,iBAAiB,EACtB,KAAK,YAAY,KAChB;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAkCtC,CAAC"}
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/calendar/selection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAW,CAAC;AAE3C,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,YAAY,EAAE,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1E,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,GAC3B,KAAK,iBAAiB,KACrB,YAAY,GAAG,IAIjB,CAAC;AAEF,0BAA0B;AAC1B,eAAO,MAAM,YAAY,GAAI,KAAK,iBAAiB,KAAG,YAAY,EAKjE,CAAC;AAWF,gEAAgE;AAChE,eAAO,MAAM,WAAW,GACtB,KAAK,iBAAiB,EACtB,KAAK,YAAY,KAChB;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAkCtC,CAAC"}
|
|
@@ -5,13 +5,21 @@ import type { SheetRenderProps, SheetSize } from '../types.js';
|
|
|
5
5
|
interface Props extends SheetRenderProps {
|
|
6
6
|
height?: SheetSize;
|
|
7
7
|
maxHeight?: SheetSize;
|
|
8
|
+
keyboardMaxHeight?: SheetSize;
|
|
9
|
+
/** Space kept free below the footer; default: the app's safe-area inset. */
|
|
10
|
+
bottomInset?: number;
|
|
11
|
+
/** The backdrop's screen-reader label. */
|
|
12
|
+
closeLabel: string;
|
|
8
13
|
tokens: ThemeTokens;
|
|
9
14
|
styles?: PickerStyles;
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* The built-in bottom sheet: an RN Modal with a backdrop and a panel pinned to
|
|
13
|
-
* the bottom, up to 90% of the screen (`sheet.height` / `sheet.maxHeight`).
|
|
14
|
-
*
|
|
18
|
+
* the bottom, up to 90% of the screen (`sheet.height` / `sheet.maxHeight`).
|
|
19
|
+
* While the keyboard is up it sits on the keyboard, within `sheet.keyboardMaxHeight`
|
|
20
|
+
* (default `maxHeight`) of the room above it; otherwise it keeps the bottom
|
|
21
|
+
* safe-area inset (`sheet.bottomInset`) free below the footer. Backdrop taps
|
|
22
|
+
* and Android back call onRequestClose. `styles.sheet` styles the panel;
|
|
15
23
|
* `renderSheet` replaces the whole sheet.
|
|
16
24
|
*/
|
|
17
25
|
declare const DefaultSheet: React.FC<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/DefaultSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DefaultSheet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/DefaultSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,aAAU,CAAC;AAK5D,UAAU,KAAM,SAAQ,gBAAgB;IACtC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AASD;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6EjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickerContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/PickerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PickerContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/PickerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAE/D,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,mBAAgB,CAAC;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC;IACvD,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgDnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type ThemeTokens } from '../theme/tokens.js';
|
|
2
|
+
/** Space under the sheet's footer, before any bottom inset. */
|
|
3
|
+
export declare const SHEET_PADDING_BOTTOM = 8;
|
|
2
4
|
declare const create: (t: ThemeTokens) => Readonly<{
|
|
3
5
|
sheetRoot: {
|
|
4
6
|
flex: number;
|
|
7
|
+
};
|
|
8
|
+
sheetRoom: {
|
|
9
|
+
flex: number;
|
|
5
10
|
justifyContent: "flex-end";
|
|
11
|
+
pointerEvents: "box-none";
|
|
6
12
|
};
|
|
7
13
|
sheetBackdrop: {
|
|
8
14
|
backgroundColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/containerStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"containerStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/container/containerStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAG9D,+DAA+D;AAC/D,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAItC,QAAA,MAAM,MAAM,GAAI,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkE1B,CAAC;AAEL,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,WAAW,KAClB,UAAU,CAAC,OAAO,MAAM,CAM1B,CAAC"}
|
|
@@ -6,6 +6,7 @@ import type { PickerStrings } from '../theme/defaultStrings.js';
|
|
|
6
6
|
import type { PickerStyles } from '../theme/styleKeys.js';
|
|
7
7
|
import type { ThemeTokens } from '../theme/tokens.js';
|
|
8
8
|
import type { LabelRenderProps } from '../types.js';
|
|
9
|
+
import { type DateTextFormatter } from './fieldText.js';
|
|
9
10
|
export type RangeEnd = 'from' | 'to';
|
|
10
11
|
interface Props {
|
|
11
12
|
/** 'singleField': one field 'start – end'. 'fromTo': two fields; the active one takes calendar taps. */
|
|
@@ -24,6 +25,8 @@ interface Props {
|
|
|
24
25
|
errorMessage?: string;
|
|
25
26
|
type: PickerType;
|
|
26
27
|
dateFormat: string;
|
|
28
|
+
/** Writes the shown dates another way (as Hijri dates). Not used while typing. */
|
|
29
|
+
dateText?: DateTextFormatter;
|
|
27
30
|
timeFormat: TimeFormat;
|
|
28
31
|
yearRange?: {
|
|
29
32
|
first: number;
|
|
@@ -42,6 +45,8 @@ interface Props {
|
|
|
42
45
|
tokens: ThemeTokens;
|
|
43
46
|
styles?: PickerStyles;
|
|
44
47
|
strings: PickerStrings;
|
|
48
|
+
/** The texts of the typed-input errors. Default `strings`. */
|
|
49
|
+
errorStrings?: PickerStrings;
|
|
45
50
|
testID?: string;
|
|
46
51
|
}
|
|
47
52
|
/** The range fields inside the picker: one 'start – end' field, or From and To side by side. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeFields.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/RangeFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,sBAAa,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"RangeFields.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/RangeFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC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AU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC;IACvD,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IACnD,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,gGAAgG;AAChG,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6GhC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/SegmentedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAU1D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,6BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SegmentedInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/SegmentedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAU1D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,6BAA0B,CAAC;AAGlC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAoB,CAAC;AAGvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAGnD,UAAU,KAAK;IACb,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,kBAAkB,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA4BD,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAC1B,SAAS,MAAM,EACf,MAAM,MAAM,KACX,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,EAwB5D,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4MnC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -6,6 +6,9 @@ import type { PickerStrings } from '../theme/defaultStrings.js';
|
|
|
6
6
|
import type { PickerStyles } from '../theme/styleKeys.js';
|
|
7
7
|
import type { ThemeTokens } from '../theme/tokens.js';
|
|
8
8
|
import type { InstructionRenderProps, LabelRenderProps } from '../types.js';
|
|
9
|
+
import { type DateTextFormatter } from './fieldText.js';
|
|
10
|
+
/** Whether a text reads right to left: its first letter is Hebrew or Arabic. */
|
|
11
|
+
export declare const startsRightToLeft: (text: string) => boolean;
|
|
9
12
|
export interface ValueFieldProps {
|
|
10
13
|
type: PickerType;
|
|
11
14
|
/** The value to show (or to start typing from). */
|
|
@@ -14,6 +17,8 @@ export interface ValueFieldProps {
|
|
|
14
17
|
displayText?: string;
|
|
15
18
|
/** Date format, e.g. 'dd/MM/yyyy'. */
|
|
16
19
|
dateFormat: string;
|
|
20
|
+
/** Writes the shown date another way (as a Hijri date). Not used while typing. */
|
|
21
|
+
dateText?: DateTextFormatter;
|
|
17
22
|
timeFormat: TimeFormat;
|
|
18
23
|
yearRange?: {
|
|
19
24
|
first: number;
|
|
@@ -60,6 +65,8 @@ export interface ValueFieldProps {
|
|
|
60
65
|
tokens: ThemeTokens;
|
|
61
66
|
styles?: PickerStyles;
|
|
62
67
|
strings: PickerStrings;
|
|
68
|
+
/** The texts of its typed-input errors. Default `strings`. */
|
|
69
|
+
errorStrings?: PickerStrings;
|
|
63
70
|
testID?: string;
|
|
64
71
|
}
|
|
65
72
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/ValueField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAkB,CAAC;AAC9E,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,sBAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ValueField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/ValueField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,E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"}
|
|
@@ -59,6 +59,17 @@ declare const create: (t: ThemeTokens) => Readonly<{
|
|
|
59
59
|
fontWeight: "400" | "500" | "600";
|
|
60
60
|
flex: number;
|
|
61
61
|
};
|
|
62
|
+
textScroll: {
|
|
63
|
+
flex: number;
|
|
64
|
+
};
|
|
65
|
+
textScrollContent: {
|
|
66
|
+
flexGrow: number;
|
|
67
|
+
alignItems: "center";
|
|
68
|
+
};
|
|
69
|
+
textScrolled: {
|
|
70
|
+
flex: number;
|
|
71
|
+
flexShrink: number;
|
|
72
|
+
};
|
|
62
73
|
placeholder: {
|
|
63
74
|
color: string;
|
|
64
75
|
};
|
|
@@ -91,6 +102,10 @@ declare const create: (t: ThemeTokens) => Readonly<{
|
|
|
91
102
|
alignItems: "center";
|
|
92
103
|
flexWrap: "nowrap";
|
|
93
104
|
};
|
|
105
|
+
segmentTime: {
|
|
106
|
+
flexGrow: number;
|
|
107
|
+
justifyContent: "center";
|
|
108
|
+
};
|
|
94
109
|
segment: {
|
|
95
110
|
fontSize: number;
|
|
96
111
|
color: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/fieldStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAI9D,QAAA,MAAM,MAAM,GAAI,GAAG,WAAW
|
|
1
|
+
{"version":3,"file":"fieldStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/fieldStyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAI9D,QAAA,MAAM,MAAM,GAAI,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6F1B,CAAC;AAEL,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,WAAW,KAClB,UAAU,CAAC,OAAO,MAAM,CAM1B,CAAC"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SegmentError } from '../../core/segments.js';
|
|
2
2
|
import type { DateTimeValue, PickerType, TimeFormat } from '../../core/types.js';
|
|
3
3
|
import { type PickerStrings } from '../theme/defaultStrings.js';
|
|
4
4
|
/** '21-10-2026' for 'dd-MM-yyyy', '10-21-2026' for 'MM-dd-yyyy'. */
|
|
5
5
|
export declare const formatDateText: (value: DateTimeValue, dateFormat: string) => string;
|
|
6
|
+
/** The AM / PM labels and the date-time separator, from `strings`. */
|
|
7
|
+
export type PeriodLabels = Pick<PickerStrings, 'am' | 'pm' | 'dateTimeSeparator'>;
|
|
6
8
|
/** '03:45 PM' (12-hour) or '15:45' (24-hour). Always shows AM/PM in 12-hour mode. */
|
|
7
|
-
export declare const formatTimeText: (value: DateTimeValue, timeFormat: TimeFormat) => string;
|
|
8
|
-
|
|
9
|
+
export declare const formatTimeText: (value: DateTimeValue, timeFormat: TimeFormat, periods?: PeriodLabels) => string;
|
|
10
|
+
/** Writes a value's date some other way, e.g. as a Hijri date. */
|
|
11
|
+
export type DateTextFormatter = (value: DateTimeValue) => string;
|
|
12
|
+
/** A value's date and time as two texts; the time is '' for a date or a value without one. */
|
|
13
|
+
export declare const formatValueParts: (value: DateTimeValue, type: PickerType, dateFormat: string, timeFormat: TimeFormat, dateText?: DateTextFormatter, periods?: PeriodLabels) => {
|
|
14
|
+
date: string;
|
|
15
|
+
time: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const formatValueText: (value: DateTimeValue | null, type: PickerType, dateFormat: string, timeFormat: TimeFormat, dateText?: DateTextFormatter, periods?: PeriodLabels) => string;
|
|
9
18
|
/** '21-10-2026 – 25-10-2026'; just the start (with the dash) while the end is open. */
|
|
10
|
-
export declare const formatRangeText: (from: DateTimeValue | null, to: DateTimeValue | null, type: PickerType, dateFormat: string, timeFormat: TimeFormat, separator?: string) => string;
|
|
19
|
+
export declare const formatRangeText: (from: DateTimeValue | null, to: DateTimeValue | null, type: PickerType, dateFormat: string, timeFormat: TimeFormat, separator?: string, dateText?: DateTextFormatter, periods?: PeriodLabels) => string;
|
|
11
20
|
/** '21-10-2026, 23-10-2026' (the field shows one line and truncates). */
|
|
12
|
-
export declare const formatMultipleText: (values: (DateTimeValue | null)[], type: PickerType, dateFormat: string, timeFormat: TimeFormat) => string;
|
|
21
|
+
export declare const formatMultipleText: (values: (DateTimeValue | null)[], type: PickerType, dateFormat: string, timeFormat: TimeFormat, dateText?: DateTextFormatter, periods?: PeriodLabels) => string;
|
|
13
22
|
/** 'DD-MM-YYYY' or 'DD-MM-YYYY hh:mm AM', from the placeholder strings. */
|
|
14
23
|
export declare const placeholderText: (type: PickerType, dateFormat: string, timeFormat: TimeFormat, strings?: PickerStrings) => string;
|
|
15
24
|
/** The message shown below the field for the first typed-input problem. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/fieldText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"fieldText.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/fieldText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,wBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAkB,CAAC;AAC9E,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,4BAAyB,CAAC;AAI9E,oEAAoE;AACpE,eAAO,MAAM,cAAc,GACzB,OAAO,aAAa,EACpB,YAAY,MAAM,KACjB,MAIqC,CAAC;AAEzC,sEAAsE;AAC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UAAU,EACtB,UAAS,aAA+B,KACvC,MAaF,CAAC;AAIF,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,YAAY,EAAE,EACtB,SAAS,aAAa,EACtB,YAAY;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAC1C,MAgBF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bottom safe-area inset (the home indicator, or Android's navigation bar
|
|
3
|
+
* in an edge-to-edge app), from the app's SafeAreaProvider; 0 without one.
|
|
4
|
+
* Read through the context rather than `useSafeAreaInsets`, which throws when
|
|
5
|
+
* there's no provider.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useBottomInset: () => number;
|
|
8
|
+
//# sourceMappingURL=useBottomInset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomInset.d.ts","sourceRoot":"","sources":["../../../../../../src/components/hooks/useBottomInset.ts"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,QAAO,MACM,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
interface KeyboardState {
|
|
2
|
+
up: boolean;
|
|
3
|
+
/** The keyboard's height while it's up, 0 when down (or not reported). */
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
/** Whether the keyboard is up, and how tall it is, while `active`. */
|
|
7
|
+
export declare const useKeyboard: (active: boolean) => KeyboardState;
|
|
1
8
|
/**
|
|
2
|
-
* True while the keyboard is up and the picker is open.
|
|
3
|
-
* calendar away then, so the box being typed in (and Confirm) stay visible on
|
|
9
|
+
* True while the keyboard is up and the picker is open. With
|
|
10
|
+
* `hideCalendarOnKeyboard` the picker folds the calendar away then, so the box being typed in (and Confirm) stay visible on
|
|
4
11
|
* small phones; inline, it folds only while one of its own boxes has focus,
|
|
5
12
|
* since another field on the screen can raise the keyboard too.
|
|
6
13
|
*/
|
|
7
14
|
export declare const useKeyboardFold: (active: boolean) => boolean;
|
|
15
|
+
export {};
|
|
8
16
|
//# sourceMappingURL=useKeyboardFold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardFold.d.ts","sourceRoot":"","sources":["../../../../../../src/components/hooks/useKeyboardFold.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"useKeyboardFold.d.ts","sourceRoot":"","sources":["../../../../../../src/components/hooks/useKeyboardFold.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,EAAE,EAAE,OAAO,CAAC;IACZ,0EAA0E;IAC1E,MAAM,EAAE,MAAM,CAAC;CAChB;AAUD,sEAAsE;AACtE,eAAO,MAAM,WAAW,GAAI,QAAQ,OAAO,KAAG,aA+B7C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,OAAO,KAAG,OAC1B,CAAC"}
|