rn-grid-date-time-picker 0.0.0-stage → 1.0.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 +40 -0
- package/LICENSE +21 -0
- package/README.md +714 -2
- package/lib/commonjs/adapters/index.js +28 -0
- package/lib/commonjs/adapters/index.js.map +1 -0
- package/lib/commonjs/adapters/iso.js +40 -0
- package/lib/commonjs/adapters/iso.js.map +1 -0
- package/lib/commonjs/adapters/utcMidnight.js +116 -0
- package/lib/commonjs/adapters/utcMidnight.js.map +1 -0
- package/lib/commonjs/components/DateTimePicker.js +916 -0
- package/lib/commonjs/components/DateTimePicker.js.map +1 -0
- package/lib/commonjs/components/calendar/Calendar.js +395 -0
- package/lib/commonjs/components/calendar/Calendar.js.map +1 -0
- package/lib/commonjs/components/calendar/CalendarHeader.js +173 -0
- package/lib/commonjs/components/calendar/CalendarHeader.js.map +1 -0
- package/lib/commonjs/components/calendar/DayCell.js +72 -0
- package/lib/commonjs/components/calendar/DayCell.js.map +1 -0
- package/lib/commonjs/components/calendar/DayGrid.js +137 -0
- package/lib/commonjs/components/calendar/DayGrid.js.map +1 -0
- package/lib/commonjs/components/calendar/PeriodGrid.js +69 -0
- package/lib/commonjs/components/calendar/PeriodGrid.js.map +1 -0
- package/lib/commonjs/components/calendar/calendarStyles.js +227 -0
- package/lib/commonjs/components/calendar/calendarStyles.js.map +1 -0
- package/lib/commonjs/components/calendar/localeNames.js +65 -0
- package/lib/commonjs/components/calendar/localeNames.js.map +1 -0
- package/lib/commonjs/components/calendar/selection.js +88 -0
- package/lib/commonjs/components/calendar/selection.js.map +1 -0
- package/lib/commonjs/components/container/DefaultSheet.js +65 -0
- package/lib/commonjs/components/container/DefaultSheet.js.map +1 -0
- package/lib/commonjs/components/container/PickerContainer.js +63 -0
- package/lib/commonjs/components/container/PickerContainer.js.map +1 -0
- package/lib/commonjs/components/container/PickerLayout.js +106 -0
- package/lib/commonjs/components/container/PickerLayout.js.map +1 -0
- package/lib/commonjs/components/container/containerStyles.js +103 -0
- package/lib/commonjs/components/container/containerStyles.js.map +1 -0
- package/lib/commonjs/components/field/FieldMessages.js +48 -0
- package/lib/commonjs/components/field/FieldMessages.js.map +1 -0
- package/lib/commonjs/components/field/RangeFields.js +115 -0
- package/lib/commonjs/components/field/RangeFields.js.map +1 -0
- package/lib/commonjs/components/field/SegmentedInput.js +240 -0
- package/lib/commonjs/components/field/SegmentedInput.js.map +1 -0
- package/lib/commonjs/components/field/ValueField.js +245 -0
- package/lib/commonjs/components/field/ValueField.js.map +1 -0
- package/lib/commonjs/components/field/fieldStyles.js +137 -0
- package/lib/commonjs/components/field/fieldStyles.js.map +1 -0
- package/lib/commonjs/components/field/fieldText.js +78 -0
- package/lib/commonjs/components/field/fieldText.js.map +1 -0
- package/lib/commonjs/components/hooks/useKeyboardFold.js +34 -0
- package/lib/commonjs/components/hooks/useKeyboardFold.js.map +1 -0
- package/lib/commonjs/components/hooks/useOpenPicker.js +77 -0
- package/lib/commonjs/components/hooks/useOpenPicker.js.map +1 -0
- package/lib/commonjs/components/hooks/usePickerDraft.js +60 -0
- package/lib/commonjs/components/hooks/usePickerDraft.js.map +1 -0
- package/lib/commonjs/components/hooks/useReduceMotion.js +32 -0
- package/lib/commonjs/components/hooks/useReduceMotion.js.map +1 -0
- package/lib/commonjs/components/hooks/useTodayTick.js +31 -0
- package/lib/commonjs/components/hooks/useTodayTick.js.map +1 -0
- package/lib/commonjs/components/hooks/useTypedSegments.js +77 -0
- package/lib/commonjs/components/hooks/useTypedSegments.js.map +1 -0
- package/lib/commonjs/components/nativeTypes.js +6 -0
- package/lib/commonjs/components/nativeTypes.js.map +1 -0
- package/lib/commonjs/components/theme/a11y.js +15 -0
- package/lib/commonjs/components/theme/a11y.js.map +1 -0
- package/lib/commonjs/components/theme/defaultStrings.js +74 -0
- package/lib/commonjs/components/theme/defaultStrings.js.map +1 -0
- package/lib/commonjs/components/theme/styleKeys.js +35 -0
- package/lib/commonjs/components/theme/styleKeys.js.map +1 -0
- package/lib/commonjs/components/theme/tokens.js +104 -0
- package/lib/commonjs/components/theme/tokens.js.map +1 -0
- package/lib/commonjs/components/time/TimeRow.js +243 -0
- package/lib/commonjs/components/time/TimeRow.js.map +1 -0
- package/lib/commonjs/components/time/TimeRows.js +152 -0
- package/lib/commonjs/components/time/TimeRows.js.map +1 -0
- package/lib/commonjs/components/time/TypedTime.js +119 -0
- package/lib/commonjs/components/time/TypedTime.js.map +1 -0
- package/lib/commonjs/components/time/Wheel.js +296 -0
- package/lib/commonjs/components/time/Wheel.js.map +1 -0
- package/lib/commonjs/components/time/timeStyles.js +177 -0
- package/lib/commonjs/components/time/timeStyles.js.map +1 -0
- package/lib/commonjs/components/types.js +40 -0
- package/lib/commonjs/components/types.js.map +1 -0
- package/lib/commonjs/core/calendarDate.js +79 -0
- package/lib/commonjs/core/calendarDate.js.map +1 -0
- package/lib/commonjs/core/calendarSystem.js +242 -0
- package/lib/commonjs/core/calendarSystem.js.map +1 -0
- package/lib/commonjs/core/constraints.js +153 -0
- package/lib/commonjs/core/constraints.js.map +1 -0
- package/lib/commonjs/core/draft.js +423 -0
- package/lib/commonjs/core/draft.js.map +1 -0
- package/lib/commonjs/core/locale.js +118 -0
- package/lib/commonjs/core/locale.js.map +1 -0
- package/lib/commonjs/core/monthGrid.js +59 -0
- package/lib/commonjs/core/monthGrid.js.map +1 -0
- package/lib/commonjs/core/segmentEditor.js +139 -0
- package/lib/commonjs/core/segmentEditor.js.map +1 -0
- package/lib/commonjs/core/segments.js +235 -0
- package/lib/commonjs/core/segments.js.map +1 -0
- package/lib/commonjs/core/selectionRules.js +57 -0
- package/lib/commonjs/core/selectionRules.js.map +1 -0
- package/lib/commonjs/core/timeEntry.js +236 -0
- package/lib/commonjs/core/timeEntry.js.map +1 -0
- package/lib/commonjs/core/types.js +2 -0
- package/lib/commonjs/core/types.js.map +1 -0
- package/lib/commonjs/core/zoned.js +33 -0
- package/lib/commonjs/core/zoned.js.map +1 -0
- package/lib/commonjs/icons/index.js +186 -0
- package/lib/commonjs/icons/index.js.map +1 -0
- package/lib/commonjs/index.js +156 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/adapters/index.js +13 -0
- package/lib/module/adapters/index.js.map +1 -0
- package/lib/module/adapters/iso.js +37 -0
- package/lib/module/adapters/iso.js.map +1 -0
- package/lib/module/adapters/utcMidnight.js +109 -0
- package/lib/module/adapters/utcMidnight.js.map +1 -0
- package/lib/module/components/DateTimePicker.js +911 -0
- package/lib/module/components/DateTimePicker.js.map +1 -0
- package/lib/module/components/calendar/Calendar.js +388 -0
- package/lib/module/components/calendar/Calendar.js.map +1 -0
- package/lib/module/components/calendar/CalendarHeader.js +165 -0
- package/lib/module/components/calendar/CalendarHeader.js.map +1 -0
- package/lib/module/components/calendar/DayCell.js +66 -0
- package/lib/module/components/calendar/DayCell.js.map +1 -0
- package/lib/module/components/calendar/DayGrid.js +128 -0
- package/lib/module/components/calendar/DayGrid.js.map +1 -0
- package/lib/module/components/calendar/PeriodGrid.js +64 -0
- package/lib/module/components/calendar/PeriodGrid.js.map +1 -0
- package/lib/module/components/calendar/calendarStyles.js +222 -0
- package/lib/module/components/calendar/calendarStyles.js.map +1 -0
- package/lib/module/components/calendar/localeNames.js +59 -0
- package/lib/module/components/calendar/localeNames.js.map +1 -0
- package/lib/module/components/calendar/selection.js +83 -0
- package/lib/module/components/calendar/selection.js.map +1 -0
- package/lib/module/components/container/DefaultSheet.js +60 -0
- package/lib/module/components/container/DefaultSheet.js.map +1 -0
- package/lib/module/components/container/PickerContainer.js +58 -0
- package/lib/module/components/container/PickerContainer.js.map +1 -0
- package/lib/module/components/container/PickerLayout.js +100 -0
- package/lib/module/components/container/PickerLayout.js.map +1 -0
- package/lib/module/components/container/containerStyles.js +98 -0
- package/lib/module/components/container/containerStyles.js.map +1 -0
- package/lib/module/components/field/FieldMessages.js +42 -0
- package/lib/module/components/field/FieldMessages.js.map +1 -0
- package/lib/module/components/field/RangeFields.js +110 -0
- package/lib/module/components/field/RangeFields.js.map +1 -0
- package/lib/module/components/field/SegmentedInput.js +233 -0
- package/lib/module/components/field/SegmentedInput.js.map +1 -0
- package/lib/module/components/field/ValueField.js +238 -0
- package/lib/module/components/field/ValueField.js.map +1 -0
- package/lib/module/components/field/fieldStyles.js +132 -0
- package/lib/module/components/field/fieldStyles.js.map +1 -0
- package/lib/module/components/field/fieldText.js +67 -0
- package/lib/module/components/field/fieldText.js.map +1 -0
- package/lib/module/components/hooks/useKeyboardFold.js +30 -0
- package/lib/module/components/hooks/useKeyboardFold.js.map +1 -0
- package/lib/module/components/hooks/useOpenPicker.js +73 -0
- package/lib/module/components/hooks/useOpenPicker.js.map +1 -0
- package/lib/module/components/hooks/usePickerDraft.js +55 -0
- package/lib/module/components/hooks/usePickerDraft.js.map +1 -0
- package/lib/module/components/hooks/useReduceMotion.js +28 -0
- package/lib/module/components/hooks/useReduceMotion.js.map +1 -0
- package/lib/module/components/hooks/useTodayTick.js +26 -0
- package/lib/module/components/hooks/useTodayTick.js.map +1 -0
- package/lib/module/components/hooks/useTypedSegments.js +72 -0
- package/lib/module/components/hooks/useTypedSegments.js.map +1 -0
- package/lib/module/components/nativeTypes.js +4 -0
- package/lib/module/components/nativeTypes.js.map +1 -0
- package/lib/module/components/theme/a11y.js +11 -0
- package/lib/module/components/theme/a11y.js.map +1 -0
- package/lib/module/components/theme/defaultStrings.js +69 -0
- package/lib/module/components/theme/defaultStrings.js.map +1 -0
- package/lib/module/components/theme/styleKeys.js +31 -0
- package/lib/module/components/theme/styleKeys.js.map +1 -0
- package/lib/module/components/theme/tokens.js +98 -0
- package/lib/module/components/theme/tokens.js.map +1 -0
- package/lib/module/components/time/TimeRow.js +236 -0
- package/lib/module/components/time/TimeRow.js.map +1 -0
- package/lib/module/components/time/TimeRows.js +145 -0
- package/lib/module/components/time/TimeRows.js.map +1 -0
- package/lib/module/components/time/TypedTime.js +114 -0
- package/lib/module/components/time/TypedTime.js.map +1 -0
- package/lib/module/components/time/Wheel.js +288 -0
- package/lib/module/components/time/Wheel.js.map +1 -0
- package/lib/module/components/time/timeStyles.js +172 -0
- package/lib/module/components/time/timeStyles.js.map +1 -0
- package/lib/module/components/types.js +36 -0
- package/lib/module/components/types.js.map +1 -0
- package/lib/module/core/calendarDate.js +63 -0
- package/lib/module/core/calendarDate.js.map +1 -0
- package/lib/module/core/calendarSystem.js +230 -0
- package/lib/module/core/calendarSystem.js.map +1 -0
- package/lib/module/core/constraints.js +149 -0
- package/lib/module/core/constraints.js.map +1 -0
- package/lib/module/core/draft.js +411 -0
- package/lib/module/core/draft.js.map +1 -0
- package/lib/module/core/locale.js +109 -0
- package/lib/module/core/locale.js.map +1 -0
- package/lib/module/core/monthGrid.js +54 -0
- package/lib/module/core/monthGrid.js.map +1 -0
- package/lib/module/core/segmentEditor.js +134 -0
- package/lib/module/core/segmentEditor.js.map +1 -0
- package/lib/module/core/segments.js +224 -0
- package/lib/module/core/segments.js.map +1 -0
- package/lib/module/core/selectionRules.js +52 -0
- package/lib/module/core/selectionRules.js.map +1 -0
- package/lib/module/core/timeEntry.js +224 -0
- package/lib/module/core/timeEntry.js.map +1 -0
- package/lib/module/core/types.js +2 -0
- package/lib/module/core/types.js.map +1 -0
- package/lib/module/core/zoned.js +27 -0
- package/lib/module/core/zoned.js.map +1 -0
- package/lib/module/icons/index.js +174 -0
- package/lib/module/icons/index.js.map +1 -0
- package/lib/module/index.js +17 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/adapters/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/adapters/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/adapters/iso.d.ts +3 -0
- package/lib/typescript/commonjs/src/adapters/iso.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts +15 -0
- package/lib/typescript/commonjs/src/adapters/utcMidnight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts +64 -0
- package/lib/typescript/commonjs/src/components/calendar/Calendar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts +44 -0
- package/lib/typescript/commonjs/src/components/calendar/CalendarHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts +30 -0
- package/lib/typescript/commonjs/src/components/calendar/DayCell.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts +46 -0
- package/lib/typescript/commonjs/src/components/calendar/DayGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts +25 -0
- package/lib/typescript/commonjs/src/components/calendar/PeriodGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts +297 -0
- package/lib/typescript/commonjs/src/components/calendar/calendarStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts +18 -0
- package/lib/typescript/commonjs/src/components/calendar/localeNames.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/calendar/selection.d.ts +23 -0
- package/lib/typescript/commonjs/src/components/calendar/selection.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/container/DefaultSheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/container/PickerContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/container/PickerLayout.d.ts +38 -0
- package/lib/typescript/commonjs/src/components/container/PickerLayout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts +117 -0
- package/lib/typescript/commonjs/src/components/container/containerStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/FieldMessages.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/field/FieldMessages.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts +50 -0
- package/lib/typescript/commonjs/src/components/field/RangeFields.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/field/SegmentedInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/ValueField.d.ts +72 -0
- package/lib/typescript/commonjs/src/components/field/ValueField.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts +183 -0
- package/lib/typescript/commonjs/src/components/field/fieldStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/field/fieldText.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/field/fieldText.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/hooks/useKeyboardFold.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/hooks/useOpenPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/usePickerDraft.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/hooks/usePickerDraft.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useReduceMotion.d.ts +3 -0
- package/lib/typescript/commonjs/src/components/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useTodayTick.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/hooks/useTodayTick.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/hooks/useTypedSegments.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/nativeTypes.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/nativeTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/a11y.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/theme/a11y.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts +65 -0
- package/lib/typescript/commonjs/src/components/theme/defaultStrings.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/theme/styleKeys.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme/tokens.d.ts +76 -0
- package/lib/typescript/commonjs/src/components/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts +53 -0
- package/lib/typescript/commonjs/src/components/time/TimeRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/time/TimeRows.d.ts +49 -0
- package/lib/typescript/commonjs/src/components/time/TimeRows.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/time/TypedTime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/time/Wheel.d.ts +36 -0
- package/lib/typescript/commonjs/src/components/time/Wheel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts +221 -0
- package/lib/typescript/commonjs/src/components/time/timeStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/types.d.ts +298 -0
- package/lib/typescript/commonjs/src/components/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/calendarDate.d.ts +25 -0
- package/lib/typescript/commonjs/src/core/calendarDate.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/calendarSystem.d.ts +61 -0
- package/lib/typescript/commonjs/src/core/calendarSystem.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/constraints.d.ts +71 -0
- package/lib/typescript/commonjs/src/core/constraints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/draft.d.ts +91 -0
- package/lib/typescript/commonjs/src/core/draft.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/locale.d.ts +26 -0
- package/lib/typescript/commonjs/src/core/locale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/monthGrid.d.ts +23 -0
- package/lib/typescript/commonjs/src/core/monthGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/segmentEditor.d.ts +46 -0
- package/lib/typescript/commonjs/src/core/segmentEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/segments.d.ts +75 -0
- package/lib/typescript/commonjs/src/core/segments.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/selectionRules.d.ts +25 -0
- package/lib/typescript/commonjs/src/core/selectionRules.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/timeEntry.d.ts +71 -0
- package/lib/typescript/commonjs/src/core/timeEntry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/types.d.ts +49 -0
- package/lib/typescript/commonjs/src/core/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/zoned.d.ts +13 -0
- package/lib/typescript/commonjs/src/core/zoned.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/icons/index.d.ts +51 -0
- package/lib/typescript/commonjs/src/icons/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +20 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/adapters/index.d.ts +7 -0
- package/lib/typescript/module/src/adapters/index.d.ts.map +1 -0
- package/lib/typescript/module/src/adapters/iso.d.ts +3 -0
- package/lib/typescript/module/src/adapters/iso.d.ts.map +1 -0
- package/lib/typescript/module/src/adapters/utcMidnight.d.ts +15 -0
- package/lib/typescript/module/src/adapters/utcMidnight.d.ts.map +1 -0
- package/lib/typescript/module/src/components/DateTimePicker.d.ts +16 -0
- package/lib/typescript/module/src/components/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/Calendar.d.ts +64 -0
- package/lib/typescript/module/src/components/calendar/Calendar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts +44 -0
- package/lib/typescript/module/src/components/calendar/CalendarHeader.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/DayCell.d.ts +30 -0
- package/lib/typescript/module/src/components/calendar/DayCell.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/DayGrid.d.ts +46 -0
- package/lib/typescript/module/src/components/calendar/DayGrid.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts +25 -0
- package/lib/typescript/module/src/components/calendar/PeriodGrid.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts +297 -0
- package/lib/typescript/module/src/components/calendar/calendarStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/localeNames.d.ts +18 -0
- package/lib/typescript/module/src/components/calendar/localeNames.d.ts.map +1 -0
- package/lib/typescript/module/src/components/calendar/selection.d.ts +23 -0
- package/lib/typescript/module/src/components/calendar/selection.d.ts.map +1 -0
- package/lib/typescript/module/src/components/container/DefaultSheet.d.ts +19 -0
- package/lib/typescript/module/src/components/container/DefaultSheet.d.ts.map +1 -0
- package/lib/typescript/module/src/components/container/PickerContainer.d.ts +22 -0
- package/lib/typescript/module/src/components/container/PickerContainer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/container/PickerLayout.d.ts +38 -0
- package/lib/typescript/module/src/components/container/PickerLayout.d.ts.map +1 -0
- package/lib/typescript/module/src/components/container/containerStyles.d.ts +117 -0
- package/lib/typescript/module/src/components/container/containerStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/FieldMessages.d.ts +19 -0
- package/lib/typescript/module/src/components/field/FieldMessages.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/RangeFields.d.ts +50 -0
- package/lib/typescript/module/src/components/field/RangeFields.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/SegmentedInput.d.ts +33 -0
- package/lib/typescript/module/src/components/field/SegmentedInput.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/ValueField.d.ts +72 -0
- package/lib/typescript/module/src/components/field/ValueField.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/fieldStyles.d.ts +183 -0
- package/lib/typescript/module/src/components/field/fieldStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/field/fieldText.d.ts +20 -0
- package/lib/typescript/module/src/components/field/fieldText.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts +8 -0
- package/lib/typescript/module/src/components/hooks/useKeyboardFold.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts +26 -0
- package/lib/typescript/module/src/components/hooks/useOpenPicker.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/usePickerDraft.d.ts +21 -0
- package/lib/typescript/module/src/components/hooks/usePickerDraft.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useReduceMotion.d.ts +3 -0
- package/lib/typescript/module/src/components/hooks/useReduceMotion.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useTodayTick.d.ts +7 -0
- package/lib/typescript/module/src/components/hooks/useTodayTick.d.ts.map +1 -0
- package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts +15 -0
- package/lib/typescript/module/src/components/hooks/useTypedSegments.d.ts.map +1 -0
- package/lib/typescript/module/src/components/nativeTypes.d.ts +11 -0
- package/lib/typescript/module/src/components/nativeTypes.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/a11y.d.ts +8 -0
- package/lib/typescript/module/src/components/theme/a11y.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/defaultStrings.d.ts +65 -0
- package/lib/typescript/module/src/components/theme/defaultStrings.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/styleKeys.d.ts +11 -0
- package/lib/typescript/module/src/components/theme/styleKeys.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme/tokens.d.ts +76 -0
- package/lib/typescript/module/src/components/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/module/src/components/time/TimeRow.d.ts +53 -0
- package/lib/typescript/module/src/components/time/TimeRow.d.ts.map +1 -0
- package/lib/typescript/module/src/components/time/TimeRows.d.ts +49 -0
- package/lib/typescript/module/src/components/time/TimeRows.d.ts.map +1 -0
- package/lib/typescript/module/src/components/time/TypedTime.d.ts +35 -0
- package/lib/typescript/module/src/components/time/TypedTime.d.ts.map +1 -0
- package/lib/typescript/module/src/components/time/Wheel.d.ts +36 -0
- package/lib/typescript/module/src/components/time/Wheel.d.ts.map +1 -0
- package/lib/typescript/module/src/components/time/timeStyles.d.ts +221 -0
- package/lib/typescript/module/src/components/time/timeStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/types.d.ts +298 -0
- package/lib/typescript/module/src/components/types.d.ts.map +1 -0
- package/lib/typescript/module/src/core/calendarDate.d.ts +25 -0
- package/lib/typescript/module/src/core/calendarDate.d.ts.map +1 -0
- package/lib/typescript/module/src/core/calendarSystem.d.ts +61 -0
- package/lib/typescript/module/src/core/calendarSystem.d.ts.map +1 -0
- package/lib/typescript/module/src/core/constraints.d.ts +71 -0
- package/lib/typescript/module/src/core/constraints.d.ts.map +1 -0
- package/lib/typescript/module/src/core/draft.d.ts +91 -0
- package/lib/typescript/module/src/core/draft.d.ts.map +1 -0
- package/lib/typescript/module/src/core/locale.d.ts +26 -0
- package/lib/typescript/module/src/core/locale.d.ts.map +1 -0
- package/lib/typescript/module/src/core/monthGrid.d.ts +23 -0
- package/lib/typescript/module/src/core/monthGrid.d.ts.map +1 -0
- package/lib/typescript/module/src/core/segmentEditor.d.ts +46 -0
- package/lib/typescript/module/src/core/segmentEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/core/segments.d.ts +75 -0
- package/lib/typescript/module/src/core/segments.d.ts.map +1 -0
- package/lib/typescript/module/src/core/selectionRules.d.ts +25 -0
- package/lib/typescript/module/src/core/selectionRules.d.ts.map +1 -0
- package/lib/typescript/module/src/core/timeEntry.d.ts +71 -0
- package/lib/typescript/module/src/core/timeEntry.d.ts.map +1 -0
- package/lib/typescript/module/src/core/types.d.ts +49 -0
- package/lib/typescript/module/src/core/types.d.ts.map +1 -0
- package/lib/typescript/module/src/core/zoned.d.ts +13 -0
- package/lib/typescript/module/src/core/zoned.d.ts.map +1 -0
- package/lib/typescript/module/src/icons/index.d.ts +51 -0
- package/lib/typescript/module/src/icons/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +20 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +161 -4
- package/src/adapters/index.ts +14 -0
- package/src/adapters/iso.ts +35 -0
- package/src/adapters/utcMidnight.ts +122 -0
- package/src/components/DateTimePicker.tsx +1242 -0
- package/src/components/calendar/Calendar.tsx +499 -0
- package/src/components/calendar/CalendarHeader.tsx +246 -0
- package/src/components/calendar/DayCell.tsx +127 -0
- package/src/components/calendar/DayGrid.tsx +183 -0
- package/src/components/calendar/PeriodGrid.tsx +114 -0
- package/src/components/calendar/calendarStyles.ts +155 -0
- package/src/components/calendar/localeNames.ts +93 -0
- package/src/components/calendar/selection.ts +67 -0
- package/src/components/container/DefaultSheet.tsx +77 -0
- package/src/components/container/PickerContainer.tsx +71 -0
- package/src/components/container/PickerLayout.tsx +152 -0
- package/src/components/container/containerStyles.ts +78 -0
- package/src/components/field/FieldMessages.tsx +62 -0
- package/src/components/field/RangeFields.tsx +163 -0
- package/src/components/field/SegmentedInput.tsx +300 -0
- package/src/components/field/ValueField.tsx +349 -0
- package/src/components/field/fieldStyles.ts +104 -0
- package/src/components/field/fieldText.ts +113 -0
- package/src/components/hooks/useKeyboardFold.ts +31 -0
- package/src/components/hooks/useOpenPicker.ts +84 -0
- package/src/components/hooks/usePickerDraft.ts +118 -0
- package/src/components/hooks/useReduceMotion.ts +30 -0
- package/src/components/hooks/useTodayTick.ts +30 -0
- package/src/components/hooks/useTypedSegments.ts +100 -0
- package/src/components/nativeTypes.ts +13 -0
- package/src/components/theme/a11y.ts +8 -0
- package/src/components/theme/defaultStrings.ts +117 -0
- package/src/components/theme/styleKeys.ts +126 -0
- package/src/components/theme/tokens.ts +141 -0
- package/src/components/time/TimeRow.tsx +300 -0
- package/src/components/time/TimeRows.tsx +238 -0
- package/src/components/time/TypedTime.tsx +178 -0
- package/src/components/time/Wheel.tsx +358 -0
- package/src/components/time/timeStyles.ts +138 -0
- package/src/components/types.ts +334 -0
- package/src/core/calendarDate.ts +87 -0
- package/src/core/calendarSystem.ts +262 -0
- package/src/core/constraints.ts +241 -0
- package/src/core/draft.ts +449 -0
- package/src/core/locale.ts +120 -0
- package/src/core/monthGrid.ts +73 -0
- package/src/core/segmentEditor.ts +190 -0
- package/src/core/segments.ts +261 -0
- package/src/core/selectionRules.ts +72 -0
- package/src/core/timeEntry.ts +236 -0
- package/src/core/types.ts +60 -0
- package/src/core/zoned.ts +32 -0
- package/src/icons/index.tsx +171 -0
- package/src/index.tsx +81 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses [Semantic Versioning](https://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [1.0.0] - 2026-10-27
|
|
6
|
+
|
|
7
|
+
Initial release.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `DateTimePicker` for dates and date-times, in `single`, `multiple` and `range` modes (one field or From / To), as a bottom sheet or inline. Range lengths (`minDays` / `maxDays`) count calendar days, both ends included.
|
|
12
|
+
- String values in `'iso'` (default) or `'utc-midnight'` format, or through your own `ValueAdapter`.
|
|
13
|
+
- Typed segments in the field, typed time boxes or a wheel, 12- / 24-hour, minute steps that divide the hour.
|
|
14
|
+
- Limits: `minDate` / `maxDate`, `disabledWeekdays`, `disabledDates` / `enabledDates`, `timeBounds`, `holidays` / `loadHolidays` / `disableHolidays`, and `getConstraints` for full control. `createConstraints` is exported.
|
|
15
|
+
- Gregorian, dual and Hijri (Umm al-Qura) calendars, with a Gregorian fallback.
|
|
16
|
+
- Locale-based defaults for the date order and the clock (through `Intl`) and for the first day of the week (from the locale's region).
|
|
17
|
+
- Theme tokens, `styles` keys for every part, `strings` for every text, and render props for the sheet, field, label, instruction, days, cells and time row.
|
|
18
|
+
- The system font by default, so there's nothing to load. `INTER_FONTS` switches to Inter (`Inter-Regular`, `Inter-Medium`, `Inter-SemiBold`, loaded by the app); `SYSTEM_FONTS` switches back.
|
|
19
|
+
- A `fontFamily` token that sets the font for all text, next to the per-weight `fontRegular` / `fontMedium` / `fontSemiBold`.
|
|
20
|
+
- `icons` replaces any icon with your own component or hides it, and `iconProps` sets each icon's colour, disabled colour, size, width and height.
|
|
21
|
+
- `renderField` receives `displayText` and `clear`, so your own input can show the value and clear it. `renderTimeRow` receives `time`, `rangeTimes` and `setTime`, so your own time row can change the time.
|
|
22
|
+
- `initialVisibleDate` opens an empty calendar on a chosen month (e.g. for a date of birth).
|
|
23
|
+
- `sheet` sets the sheet's `height` and `maxHeight`, whether the header and footer stay fixed or scroll with the body, and whether the field above the calendar shows (`showField`, `fieldPlaceholder`), and whether that field shows the calendar icon (`fieldIcon`).
|
|
24
|
+
- Placeholder strings for the typed segments and time boxes (`placeholderDay`, `placeholderMonth`, `placeholderYear`, `placeholderHour`, `placeholderHour24`, `placeholderMinute`).
|
|
25
|
+
- `precision: 'month' | 'year'` picks a whole month or year: the month or year grid is the last step, the saved value is the period's first day, the field shows "March 2026" / "2026", and a period can be picked when any day in it can. The current month or year is outlined (`monthCellCurrent`, `yearCellCurrent`).
|
|
26
|
+
- `strings.rangeSeparator` (default `' – '`) joins the two ends of a range in the field text.
|
|
27
|
+
- `fieldTextDisabled` style key for the value's text while the field is disabled.
|
|
28
|
+
- With `commitMode="instant"`, × in the field above the calendar clears the saved value (`onChange('')`), not just the selection.
|
|
29
|
+
- Text style keys for every text: `yearCellText`, `monthCellText`, `daySubLabel`, `timeBoxText`, `ampmOptionText`, `wheelText`, `todayButtonText`, `fieldPeriodText`.
|
|
30
|
+
- `validate` runs your own check before a value is saved (on Confirm, with `commitMode="instant"`, and when typing in the on-screen field) and shows its message (`styles.validationText`).
|
|
31
|
+
- Times are checked when Confirm is pressed, not while typing; `onError` reports the time problem.
|
|
32
|
+
- Typed segments handle fast input (hardware keyboards, autofill) without dropping or doubling digits, and a full last box can still be corrected.
|
|
33
|
+
- With `allowFieldTyping`, the on-screen field saves once typing pauses (focus leaves it or its last box fills), not on every complete value.
|
|
34
|
+
- A date typed into the field takes the time already entered in the time row, so Confirm works without retyping it.
|
|
35
|
+
- In 12-hour mode a typed time reads as AM until switched; segment boxes grow with the font size and system text size, and the time wraps to a second line instead of overlapping the icons.
|
|
36
|
+
- A bad `minuteStep`, an unknown `timeZone` or a throwing custom `parse` falls back with a development warning instead of crashing.
|
|
37
|
+
- `dateFormat` in any case (`'dd/mm/yyyy'`). A format the picker can't use warns in development and falls back to the locale order.
|
|
38
|
+
- Accessibility labels and states, reduce-motion support, a font-scale cap and RTL mirroring. On iOS every typed box gets a Done button above the number pad, and errors are announced to VoiceOver.
|
|
39
|
+
|
|
40
|
+
[1.0.0]: https://github.com/Bhairavi-ancy/rn-grid-date-time-picker/releases/tag/v1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bhairavi M
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|