@izonnet-web-solution/react-native-date-time-picker-kit 0.0.0-stage → 1.0.1
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/DateTimePickerKit.podspec +22 -0
- package/LICENSE +20 -0
- package/README.md +652 -2
- package/android/build.gradle +36 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/datetimepickerkit/DatePickerHelper.kt +185 -0
- package/android/src/main/java/com/datetimepickerkit/DateTimePickerHelper.kt +214 -0
- package/android/src/main/java/com/datetimepickerkit/DateTimePickerKitModule.kt +258 -0
- package/android/src/main/java/com/datetimepickerkit/DateTimePickerKitPackage.kt +30 -0
- package/android/src/main/java/com/datetimepickerkit/TimePickerHelper.kt +208 -0
- package/ios/DateTimePickerKit.h +11 -0
- package/ios/DateTimePickerKit.mm +84 -0
- package/ios/DateTimePickerModule.swift +474 -0
- package/lib/module/NativeDateTimePickerKit.js +5 -0
- package/lib/module/NativeDateTimePickerKit.js.map +1 -0
- package/lib/module/components/CalendarPicker.js +419 -0
- package/lib/module/components/CalendarPicker.js.map +1 -0
- package/lib/module/components/ClockPicker.js +273 -0
- package/lib/module/components/ClockPicker.js.map +1 -0
- package/lib/module/components/DatePicker.js +181 -0
- package/lib/module/components/DatePicker.js.map +1 -0
- package/lib/module/components/DateRangePicker.js +158 -0
- package/lib/module/components/DateRangePicker.js.map +1 -0
- package/lib/module/components/DateTimePicker.js +674 -0
- package/lib/module/components/DateTimePicker.js.map +1 -0
- package/lib/module/components/MonthPicker.js +145 -0
- package/lib/module/components/MonthPicker.js.map +1 -0
- package/lib/module/components/TimePicker.js +142 -0
- package/lib/module/components/TimePicker.js.map +1 -0
- package/lib/module/components/TimeSlotPicker.js +118 -0
- package/lib/module/components/TimeSlotPicker.js.map +1 -0
- package/lib/module/components/WheelPicker.js +159 -0
- package/lib/module/components/WheelPicker.js.map +1 -0
- package/lib/module/components/YearPicker.js +151 -0
- package/lib/module/components/YearPicker.js.map +1 -0
- package/lib/module/components/common/ModalWrapper.js +136 -0
- package/lib/module/components/common/ModalWrapper.js.map +1 -0
- package/lib/module/components/common/PickerHeader.js +82 -0
- package/lib/module/components/common/PickerHeader.js.map +1 -0
- package/lib/module/components/common/PresetsBar.js +66 -0
- package/lib/module/components/common/PresetsBar.js.map +1 -0
- package/lib/module/errors/DateTimePickerError.js +12 -0
- package/lib/module/errors/DateTimePickerError.js.map +1 -0
- package/lib/module/hooks/useDateTimePicker.js +73 -0
- package/lib/module/hooks/useDateTimePicker.js.map +1 -0
- package/lib/module/index.js +40 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/localization/index.js +6 -0
- package/lib/module/localization/index.js.map +1 -0
- package/lib/module/localization/locales.js +186 -0
- package/lib/module/localization/locales.js.map +1 -0
- package/lib/module/localization/types.js +2 -0
- package/lib/module/localization/types.js.map +1 -0
- package/lib/module/localization/useLocale.js +176 -0
- package/lib/module/localization/useLocale.js.map +1 -0
- package/lib/module/native/NativeDateTimePicker.js +110 -0
- package/lib/module/native/NativeDateTimePicker.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/presets/datePresets.js +75 -0
- package/lib/module/presets/datePresets.js.map +1 -0
- package/lib/module/presets/index.js +4 -0
- package/lib/module/presets/index.js.map +1 -0
- package/lib/module/slots/index.js +4 -0
- package/lib/module/slots/index.js.map +1 -0
- package/lib/module/slots/timeSlots.js +59 -0
- package/lib/module/slots/timeSlots.js.map +1 -0
- package/lib/module/theme/defaultTheme.js +91 -0
- package/lib/module/theme/defaultTheme.js.map +1 -0
- package/lib/module/theme/index.js +6 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/types.js +2 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/theme/useTheme.js +81 -0
- package/lib/module/theme/useTheme.js.map +1 -0
- package/lib/module/types/events.js +4 -0
- package/lib/module/types/events.js.map +1 -0
- package/lib/module/types/index.js +7 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/native.js +2 -0
- package/lib/module/types/native.js.map +1 -0
- package/lib/module/types/presentation.js +2 -0
- package/lib/module/types/presentation.js.map +1 -0
- package/lib/module/types/props.js +4 -0
- package/lib/module/types/props.js.map +1 -0
- package/lib/module/utils/constants.js +14 -0
- package/lib/module/utils/constants.js.map +1 -0
- package/lib/module/utils/dateConversion.js +224 -0
- package/lib/module/utils/dateConversion.js.map +1 -0
- package/lib/module/utils/dateFormatting.js +102 -0
- package/lib/module/utils/dateFormatting.js.map +1 -0
- package/lib/module/utils/dateValidation.js +161 -0
- package/lib/module/utils/dateValidation.js.map +1 -0
- package/lib/module/utils/index.js +7 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeDateTimePickerKit.d.ts +17 -0
- package/lib/typescript/src/NativeDateTimePickerKit.d.ts.map +1 -0
- package/lib/typescript/src/components/CalendarPicker.d.ts +51 -0
- package/lib/typescript/src/components/CalendarPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/ClockPicker.d.ts +22 -0
- package/lib/typescript/src/components/ClockPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DatePicker.d.ts +44 -0
- package/lib/typescript/src/components/DatePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DateRangePicker.d.ts +56 -0
- package/lib/typescript/src/components/DateRangePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/DateTimePicker.d.ts +7 -0
- package/lib/typescript/src/components/DateTimePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/MonthPicker.d.ts +21 -0
- package/lib/typescript/src/components/MonthPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/TimePicker.d.ts +31 -0
- package/lib/typescript/src/components/TimePicker.d.ts.map +1 -0
- package/lib/typescript/src/components/TimeSlotPicker.d.ts +18 -0
- package/lib/typescript/src/components/TimeSlotPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/WheelPicker.d.ts +17 -0
- package/lib/typescript/src/components/WheelPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/YearPicker.d.ts +14 -0
- package/lib/typescript/src/components/YearPicker.d.ts.map +1 -0
- package/lib/typescript/src/components/common/ModalWrapper.d.ts +11 -0
- package/lib/typescript/src/components/common/ModalWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/common/PickerHeader.d.ts +13 -0
- package/lib/typescript/src/components/common/PickerHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/common/PresetsBar.d.ts +12 -0
- package/lib/typescript/src/components/common/PresetsBar.d.ts.map +1 -0
- package/lib/typescript/src/errors/DateTimePickerError.d.ts +7 -0
- package/lib/typescript/src/errors/DateTimePickerError.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDateTimePicker.d.ts +17 -0
- package/lib/typescript/src/hooks/useDateTimePicker.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +23 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/localization/index.d.ts +4 -0
- package/lib/typescript/src/localization/index.d.ts.map +1 -0
- package/lib/typescript/src/localization/locales.d.ts +12 -0
- package/lib/typescript/src/localization/locales.d.ts.map +1 -0
- package/lib/typescript/src/localization/types.d.ts +23 -0
- package/lib/typescript/src/localization/types.d.ts.map +1 -0
- package/lib/typescript/src/localization/useLocale.d.ts +31 -0
- package/lib/typescript/src/localization/useLocale.d.ts.map +1 -0
- package/lib/typescript/src/native/NativeDateTimePicker.d.ts +14 -0
- package/lib/typescript/src/native/NativeDateTimePicker.d.ts.map +1 -0
- package/lib/typescript/src/presets/datePresets.d.ts +8 -0
- package/lib/typescript/src/presets/datePresets.d.ts.map +1 -0
- package/lib/typescript/src/presets/index.d.ts +2 -0
- package/lib/typescript/src/presets/index.d.ts.map +1 -0
- package/lib/typescript/src/slots/index.d.ts +2 -0
- package/lib/typescript/src/slots/index.d.ts.map +1 -0
- package/lib/typescript/src/slots/timeSlots.d.ts +18 -0
- package/lib/typescript/src/slots/timeSlots.d.ts.map +1 -0
- package/lib/typescript/src/theme/defaultTheme.d.ts +9 -0
- package/lib/typescript/src/theme/defaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +4 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/types.d.ts +76 -0
- package/lib/typescript/src/theme/types.d.ts.map +1 -0
- package/lib/typescript/src/theme/useTheme.d.ts +4 -0
- package/lib/typescript/src/theme/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/types/events.d.ts +8 -0
- package/lib/typescript/src/types/events.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +5 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/types/native.d.ts +26 -0
- package/lib/typescript/src/types/native.d.ts.map +1 -0
- package/lib/typescript/src/types/presentation.d.ts +26 -0
- package/lib/typescript/src/types/presentation.d.ts.map +1 -0
- package/lib/typescript/src/types/props.d.ts +221 -0
- package/lib/typescript/src/types/props.d.ts.map +1 -0
- package/lib/typescript/src/utils/constants.d.ts +12 -0
- package/lib/typescript/src/utils/constants.d.ts.map +1 -0
- package/lib/typescript/src/utils/dateConversion.d.ts +46 -0
- package/lib/typescript/src/utils/dateConversion.d.ts.map +1 -0
- package/lib/typescript/src/utils/dateFormatting.d.ts +8 -0
- package/lib/typescript/src/utils/dateFormatting.d.ts.map +1 -0
- package/lib/typescript/src/utils/dateValidation.d.ts +46 -0
- package/lib/typescript/src/utils/dateValidation.d.ts.map +1 -0
- package/lib/typescript/src/utils/index.d.ts +5 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/package.json +191 -4
- package/src/NativeDateTimePickerKit.ts +19 -0
- package/src/components/CalendarPicker.tsx +623 -0
- package/src/components/ClockPicker.tsx +403 -0
- package/src/components/DatePicker.tsx +276 -0
- package/src/components/DateRangePicker.tsx +251 -0
- package/src/components/DateTimePicker.tsx +1028 -0
- package/src/components/MonthPicker.tsx +216 -0
- package/src/components/TimePicker.tsx +203 -0
- package/src/components/TimeSlotPicker.tsx +163 -0
- package/src/components/WheelPicker.tsx +229 -0
- package/src/components/YearPicker.tsx +228 -0
- package/src/components/common/ModalWrapper.tsx +192 -0
- package/src/components/common/PickerHeader.tsx +121 -0
- package/src/components/common/PresetsBar.tsx +104 -0
- package/src/errors/DateTimePickerError.ts +29 -0
- package/src/hooks/useDateTimePicker.ts +100 -0
- package/src/index.tsx +92 -0
- package/src/localization/index.ts +3 -0
- package/src/localization/locales.ts +499 -0
- package/src/localization/types.ts +21 -0
- package/src/localization/useLocale.ts +197 -0
- package/src/native/NativeDateTimePicker.ts +154 -0
- package/src/presets/datePresets.ts +97 -0
- package/src/presets/index.ts +1 -0
- package/src/slots/index.ts +1 -0
- package/src/slots/timeSlots.ts +89 -0
- package/src/theme/defaultTheme.ts +102 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/types.ts +82 -0
- package/src/theme/useTheme.ts +98 -0
- package/src/types/events.ts +8 -0
- package/src/types/index.ts +4 -0
- package/src/types/native.ts +28 -0
- package/src/types/presentation.ts +28 -0
- package/src/types/props.ts +291 -0
- package/src/utils/constants.ts +15 -0
- package/src/utils/dateConversion.ts +273 -0
- package/src/utils/dateFormatting.ts +166 -0
- package/src/utils/dateValidation.ts +178 -0
- package/src/utils/index.ts +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PartialLocaleData } from '../localization/types.js';
|
|
3
|
+
import type { ThemeConfig, ThemeMode } from '../theme/types.js';
|
|
4
|
+
export interface YearPickerProps {
|
|
5
|
+
value?: number | Date;
|
|
6
|
+
onChange?: (year: number) => void;
|
|
7
|
+
minYear?: number;
|
|
8
|
+
maxYear?: number;
|
|
9
|
+
locale?: string | PartialLocaleData;
|
|
10
|
+
theme?: ThemeMode | ThemeConfig;
|
|
11
|
+
testID?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const YearPicker: React.FC<YearPickerProps>;
|
|
14
|
+
//# sourceMappingURL=YearPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YearPicker.d.ts","sourceRoot":"","sources":["../../../../src/components/YearPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAgB,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0KhD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ResolvedTheme } from '../../theme/index.js';
|
|
3
|
+
import type { BaseModalProps, PresentationMode } from '../../types/presentation.js';
|
|
4
|
+
export interface ModalWrapperProps extends BaseModalProps {
|
|
5
|
+
presentation?: PresentationMode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
theme: ResolvedTheme;
|
|
8
|
+
isVisible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ModalWrapper: React.FC<ModalWrapperProps>;
|
|
11
|
+
//# sourceMappingURL=ModalWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/ModalWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAa,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA0B,CAAC;AAElC,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoHpD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ResolvedTheme } from '../../theme/index.js';
|
|
3
|
+
export interface PickerHeaderProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
cancelText?: string;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
onConfirm?: () => void;
|
|
9
|
+
theme: ResolvedTheme;
|
|
10
|
+
isRTL?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const PickerHeader: React.FC<PickerHeaderProps>;
|
|
13
|
+
//# sourceMappingURL=PickerHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickerHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/PickerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAa,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoFpD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DatePreset } from '../../presets/index.js';
|
|
3
|
+
import type { ResolvedTheme } from '../../theme/index.js';
|
|
4
|
+
export interface PresetsBarProps {
|
|
5
|
+
presets: DatePreset[];
|
|
6
|
+
activePresetId?: string;
|
|
7
|
+
onSelectPreset: (preset: DatePreset) => void;
|
|
8
|
+
theme: ResolvedTheme;
|
|
9
|
+
isRTL?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const PresetsBar: React.FC<PresetsBarProps>;
|
|
12
|
+
//# sourceMappingURL=PresetsBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresetsBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/common/PresetsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAe,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAa,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAkEhD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DateTimePickerErrorCode = 'NATIVE_MODULE_NOT_FOUND' | 'PICKER_ALREADY_OPEN' | 'PICKER_NOT_OPEN' | 'INVALID_DATE' | 'INVALID_MODE' | 'INVALID_MINUTE_INTERVAL' | 'DATE_OUT_OF_RANGE' | 'UNSUPPORTED_FEATURE' | 'ACTIVITY_UNAVAILABLE' | 'PRESENTATION_FAILED' | 'UNKNOWN_ERROR';
|
|
2
|
+
export declare class DateTimePickerError extends Error {
|
|
3
|
+
readonly code: DateTimePickerErrorCode;
|
|
4
|
+
readonly details?: unknown;
|
|
5
|
+
constructor(code: DateTimePickerErrorCode, message: string, details?: unknown);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=DateTimePickerError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimePickerError.d.ts","sourceRoot":"","sources":["../../../../src/errors/DateTimePickerError.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAC/B,yBAAyB,GACzB,qBAAqB,GACrB,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,yBAAyB,GACzB,mBAAmB,GACnB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,GACrB,eAAe,CAAC;AAEpB,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;gBAGzB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO;CAQpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DateTimePickerProps, DateTimePickerRef } from '../types/index.js';
|
|
2
|
+
import type { DateTimePickerError } from '../errors/DateTimePickerError.js';
|
|
3
|
+
export interface UseDateTimePickerResult {
|
|
4
|
+
ref: React.RefObject<DateTimePickerRef | null>;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
value: Date;
|
|
7
|
+
error: DateTimePickerError | null;
|
|
8
|
+
open: () => Promise<Date | null>;
|
|
9
|
+
close: () => Promise<boolean>;
|
|
10
|
+
confirm: () => Promise<Date | null>;
|
|
11
|
+
cancel: () => Promise<boolean>;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
getValue: () => Date | null;
|
|
14
|
+
setValue: (date: Date | number | string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function useDateTimePicker(options?: Partial<DateTimePickerProps>): UseDateTimePickerResult;
|
|
17
|
+
//# sourceMappingURL=useDateTimePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDateTimePicker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAU,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAA+B,CAAC;AAGzE,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAClD;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,GACzC,uBAAuB,CA8EzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { DateTimePicker, openDateTimePickerModal, } from './components/DateTimePicker.js';
|
|
2
|
+
export { DatePicker, type DatePickerProps, type DatePickerRef, } from './components/DatePicker.js';
|
|
3
|
+
export { TimePicker, type TimePickerProps, type TimePickerRef, } from './components/TimePicker.js';
|
|
4
|
+
export { DateRangePicker, type DateRange, type DateRangePickerProps, type DateRangePickerRef, } from './components/DateRangePicker.js';
|
|
5
|
+
export { CalendarPicker, type CalendarPickerProps, type MarkedDateConfig, type MarkedDatesMap, } from './components/CalendarPicker.js';
|
|
6
|
+
export { MonthPicker, type MonthPickerProps } from './components/MonthPicker.js';
|
|
7
|
+
export { YearPicker, type YearPickerProps } from './components/YearPicker.js';
|
|
8
|
+
export { WheelPicker, type WheelPickerItem, type WheelPickerProps, } from './components/WheelPicker.js';
|
|
9
|
+
export { ClockPicker, type ClockPickerProps } from './components/ClockPicker.js';
|
|
10
|
+
export { TimeSlotPicker, type TimeSlotPickerProps, } from './components/TimeSlotPicker.js';
|
|
11
|
+
export { ModalWrapper, type ModalWrapperProps, } from './components/common/ModalWrapper.js';
|
|
12
|
+
export { PickerHeader, type PickerHeaderProps, } from './components/common/PickerHeader.js';
|
|
13
|
+
export { PresetsBar, type PresetsBarProps, } from './components/common/PresetsBar.js';
|
|
14
|
+
export { useDateTimePicker, type UseDateTimePickerResult, } from './hooks/useDateTimePicker.js';
|
|
15
|
+
export * from './theme/index.js';
|
|
16
|
+
export * from './localization/index.js';
|
|
17
|
+
export * from './presets/index.js';
|
|
18
|
+
export * from './slots/index.js';
|
|
19
|
+
export { NativeDateTimePicker } from './native/NativeDateTimePicker.js';
|
|
20
|
+
export { DateTimePickerError, type DateTimePickerErrorCode, } from './errors/DateTimePickerError.js';
|
|
21
|
+
export * from './types/index.js';
|
|
22
|
+
export * from './utils/index.js';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,uBAAuB,GACxB,MAAM,gCAA6B,CAAC;AAErC,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,4BAAyB,CAAC;AAEjC,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,4BAAyB,CAAC;AAEjC,OAAO,EACL,eAAe,EACf,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,iCAA8B,CAAC;AAEtC,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,gCAA6B,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,6BAA0B,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAE3E,OAAO,EACL,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,6BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,6BAA0B,CAAC;AAE9E,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,gCAA6B,CAAC;AAErC,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,qCAAkC,CAAC;AAE1C,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,qCAAkC,CAAC;AAE1C,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,mCAAgC,CAAC;AAGxC,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,8BAA2B,CAAC;AAGnC,cAAc,kBAAS,CAAC;AAGxB,cAAc,yBAAgB,CAAC;AAG/B,cAAc,oBAAW,CAAC;AAC1B,cAAc,kBAAS,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAA+B,CAAC;AAGrE,OAAO,EACL,mBAAmB,EACnB,KAAK,uBAAuB,GAC7B,MAAM,iCAA8B,CAAC;AAGtC,cAAc,kBAAS,CAAC;AACxB,cAAc,kBAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/localization/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAS,CAAC;AACxB,cAAc,cAAW,CAAC;AAC1B,cAAc,gBAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LocaleData } from './types.js';
|
|
2
|
+
export declare const enLocale: LocaleData;
|
|
3
|
+
export declare const hiLocale: LocaleData;
|
|
4
|
+
export declare const guLocale: LocaleData;
|
|
5
|
+
export declare const esLocale: LocaleData;
|
|
6
|
+
export declare const frLocale: LocaleData;
|
|
7
|
+
export declare const deLocale: LocaleData;
|
|
8
|
+
export declare const arLocale: LocaleData;
|
|
9
|
+
export declare const zhLocale: LocaleData;
|
|
10
|
+
export declare const jaLocale: LocaleData;
|
|
11
|
+
export declare const BUILTIN_LOCALES: Record<string, LocaleData>;
|
|
12
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/localization/locales.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAS,CAAC;AAE1C,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAoDtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAUtD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface LocaleData {
|
|
2
|
+
code: string;
|
|
3
|
+
isRTL: boolean;
|
|
4
|
+
firstDayOfWeek: number;
|
|
5
|
+
months: string[];
|
|
6
|
+
monthsShort: string[];
|
|
7
|
+
weekdays: string[];
|
|
8
|
+
weekdaysShort: string[];
|
|
9
|
+
weekdaysMin: string[];
|
|
10
|
+
am: string;
|
|
11
|
+
pm: string;
|
|
12
|
+
confirmText: string;
|
|
13
|
+
cancelText: string;
|
|
14
|
+
todayText: string;
|
|
15
|
+
selectDateTitle: string;
|
|
16
|
+
selectTimeTitle: string;
|
|
17
|
+
selectDateTimeTitle: string;
|
|
18
|
+
selectRangeTitle: string;
|
|
19
|
+
}
|
|
20
|
+
export type PartialLocaleData = Partial<LocaleData> & {
|
|
21
|
+
code?: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/localization/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { LocaleData, PartialLocaleData } from './types.js';
|
|
2
|
+
export declare function getDeviceLocale(): string;
|
|
3
|
+
export declare function resolveLocale(localeInput?: string | PartialLocaleData | null): LocaleData;
|
|
4
|
+
export declare function useLocale(localeInput?: string | PartialLocaleData | null): LocaleData;
|
|
5
|
+
/**
|
|
6
|
+
* Format a Date using a format string and LocaleData
|
|
7
|
+
* Tokens supported:
|
|
8
|
+
* YYYY - Full year (2026)
|
|
9
|
+
* YY - 2-digit year (26)
|
|
10
|
+
* MMMM - Full month name (November / नवंबर)
|
|
11
|
+
* MMM - Short month name (Nov / नव)
|
|
12
|
+
* MM - 2-digit month (01-12)
|
|
13
|
+
* M - 1-digit month (1-12)
|
|
14
|
+
* DD - 2-digit day of month (01-31)
|
|
15
|
+
* D - 1-digit day of month (1-31)
|
|
16
|
+
* dddd - Full weekday name (Thursday / गुरुवार)
|
|
17
|
+
* ddd - Short weekday name (Thu / गुरु)
|
|
18
|
+
* dd - Min weekday name (Th / गु)
|
|
19
|
+
* HH - 24-hour padded (00-23)
|
|
20
|
+
* H - 24-hour unpadded (0-23)
|
|
21
|
+
* hh - 12-hour padded (01-12)
|
|
22
|
+
* h - 12-hour unpadded (1-12)
|
|
23
|
+
* mm - Minutes padded (00-59)
|
|
24
|
+
* m - Minutes unpadded (0-59)
|
|
25
|
+
* ss - Seconds padded (00-59)
|
|
26
|
+
* s - Seconds unpadded (0-59)
|
|
27
|
+
* A - Uppercase AM/PM from locale (AM / PM / पूर्वाह्न)
|
|
28
|
+
* a - Lowercase am/pm
|
|
29
|
+
*/
|
|
30
|
+
export declare function formatLocalized(date: Date, formatStr?: string, localeInput?: string | PartialLocaleData | LocaleData): string;
|
|
31
|
+
//# sourceMappingURL=useLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../../src/localization/useLocale.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAE7D,wBAAgB,eAAe,IAAI,MAAM,CAYxC;AAmDD,wBAAgB,aAAa,CAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,GAC9C,UAAU,CAiCZ;AAED,wBAAgB,SAAS,CACvB,WAAW,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,GAC9C,UAAU,CAEZ;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,SAAS,GAAE,MAAqB,EAChC,WAAW,GAAE,MAAM,GAAG,iBAAiB,GAAG,UAAqB,GAC9D,MAAM,CAyDR"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NativePickerOptions, NativePickerResult } from '../types/native.js';
|
|
2
|
+
export declare const NativeDateTimePicker: {
|
|
3
|
+
openDatePicker(options: NativePickerOptions): Promise<NativePickerResult>;
|
|
4
|
+
openTimePicker(options: NativePickerOptions): Promise<NativePickerResult>;
|
|
5
|
+
openDateTimePicker(options: NativePickerOptions): Promise<NativePickerResult>;
|
|
6
|
+
openCountdownPicker(options: NativePickerOptions): Promise<NativePickerResult>;
|
|
7
|
+
closePicker(): Promise<boolean>;
|
|
8
|
+
confirmPicker(): Promise<NativePickerResult>;
|
|
9
|
+
cancelPicker(): Promise<boolean>;
|
|
10
|
+
setSelectedDate(timestamp: number): Promise<boolean>;
|
|
11
|
+
getSelectedDate(): Promise<NativePickerResult>;
|
|
12
|
+
resetPicker(): Promise<boolean>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=NativeDateTimePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeDateTimePicker.d.ts","sourceRoot":"","sources":["../../../../src/native/NativeDateTimePicker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,oBAAiB,CAAC;AA4C/E,eAAO,MAAM,oBAAoB;4BAEpB,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;4BAWnB,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;gCAWnB,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;iCAWnB,mBAAmB,GAC3B,OAAO,CAAC,kBAAkB,CAAC;mBAUT,OAAO,CAAC,OAAO,CAAC;qBASd,OAAO,CAAC,kBAAkB,CAAC;oBAU5B,OAAO,CAAC,OAAO,CAAC;+BASL,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;uBASjC,OAAO,CAAC,kBAAkB,CAAC;mBAU/B,OAAO,CAAC,OAAO,CAAC;CAQtC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DatePreset {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
getValue: () => [Date, Date] | Date;
|
|
5
|
+
}
|
|
6
|
+
export declare function getStandardRangePresets(today?: Date): DatePreset[];
|
|
7
|
+
export declare function getStandardSinglePresets(today?: Date): DatePreset[];
|
|
8
|
+
//# sourceMappingURL=datePresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datePresets.d.ts","sourceRoot":"","sources":["../../../../src/presets/datePresets.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;CACrC;AAED,wBAAgB,uBAAuB,CACrC,KAAK,GAAE,IAAiB,GACvB,UAAU,EAAE,CA0Dd;AAED,wBAAgB,wBAAwB,CACtC,KAAK,GAAE,IAAiB,GACvB,UAAU,EAAE,CA0Bd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presets/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slots/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TimeSlot {
|
|
2
|
+
id: string;
|
|
3
|
+
startTime: string;
|
|
4
|
+
endTime: string;
|
|
5
|
+
formattedStart: string;
|
|
6
|
+
formattedEnd: string;
|
|
7
|
+
available: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GenerateTimeSlotsOptions {
|
|
11
|
+
startTime?: string;
|
|
12
|
+
endTime?: string;
|
|
13
|
+
intervalMinutes?: number;
|
|
14
|
+
disabledSlots?: string[];
|
|
15
|
+
is24Hour?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function generateTimeSlots(options?: GenerateTimeSlotsOptions): TimeSlot[];
|
|
18
|
+
//# sourceMappingURL=timeSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeSlots.d.ts","sourceRoot":"","sources":["../../../../src/slots/timeSlots.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA8BD,wBAAgB,iBAAiB,CAC/B,OAAO,GAAE,wBAA6B,GACrC,QAAQ,EAAE,CAwCZ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ResolvedTheme, ThemeBorderRadius, ThemeColors, ThemeSpacing, ThemeTypography } from './types.js';
|
|
2
|
+
export declare const defaultTypography: ThemeTypography;
|
|
3
|
+
export declare const defaultSpacing: ThemeSpacing;
|
|
4
|
+
export declare const defaultBorderRadius: ThemeBorderRadius;
|
|
5
|
+
export declare const lightColors: ThemeColors;
|
|
6
|
+
export declare const darkColors: ThemeColors;
|
|
7
|
+
export declare const defaultLightTheme: ResolvedTheme;
|
|
8
|
+
export declare const defaultDarkTheme: ResolvedTheme;
|
|
9
|
+
//# sourceMappingURL=defaultTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/defaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,YAAS,CAAC;AAEjB,eAAO,MAAM,iBAAiB,EAAE,eAQ/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,YAM5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAKjC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAyBzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAyBxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,aAM/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,aAM9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAS,CAAC;AACxB,cAAc,mBAAgB,CAAC;AAC/B,cAAc,eAAY,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type ThemeMode = 'light' | 'dark' | 'auto';
|
|
2
|
+
export interface ThemeColors {
|
|
3
|
+
background: string;
|
|
4
|
+
card: string;
|
|
5
|
+
modalOverlay: string;
|
|
6
|
+
modalBackground: string;
|
|
7
|
+
modalHandle: string;
|
|
8
|
+
text: string;
|
|
9
|
+
textSecondary: string;
|
|
10
|
+
textMuted: string;
|
|
11
|
+
primary: string;
|
|
12
|
+
primaryText: string;
|
|
13
|
+
accent: string;
|
|
14
|
+
border: string;
|
|
15
|
+
divider: string;
|
|
16
|
+
selected: string;
|
|
17
|
+
selectedText: string;
|
|
18
|
+
rangeHighlight: string;
|
|
19
|
+
rangeHighlightText: string;
|
|
20
|
+
todayIndicator: string;
|
|
21
|
+
disabled: string;
|
|
22
|
+
disabledText: string;
|
|
23
|
+
error: string;
|
|
24
|
+
errorText: string;
|
|
25
|
+
headerBackground: string;
|
|
26
|
+
footerBackground: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ThemeTypography {
|
|
29
|
+
fontSizeSmall: number;
|
|
30
|
+
fontSizeMedium: number;
|
|
31
|
+
fontSizeLarge: number;
|
|
32
|
+
fontSizeTitle: number;
|
|
33
|
+
fontWeightRegular: '400' | 'normal';
|
|
34
|
+
fontWeightMedium: '500' | '600';
|
|
35
|
+
fontWeightBold: '700' | 'bold';
|
|
36
|
+
fontFamily?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ThemeSpacing {
|
|
39
|
+
xs: number;
|
|
40
|
+
sm: number;
|
|
41
|
+
md: number;
|
|
42
|
+
lg: number;
|
|
43
|
+
xl: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ThemeBorderRadius {
|
|
46
|
+
sm: number;
|
|
47
|
+
md: number;
|
|
48
|
+
lg: number;
|
|
49
|
+
full: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ThemeColorsOverride {
|
|
52
|
+
backgroundColor?: string;
|
|
53
|
+
textColor?: string;
|
|
54
|
+
selectedTextColor?: string;
|
|
55
|
+
accentColor?: string;
|
|
56
|
+
dividerColor?: string;
|
|
57
|
+
headerBackground?: string;
|
|
58
|
+
cardBackground?: string;
|
|
59
|
+
borderColor?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ThemeConfig {
|
|
62
|
+
mode?: ThemeMode;
|
|
63
|
+
colors?: Partial<ThemeColors>;
|
|
64
|
+
themeColors?: ThemeColorsOverride;
|
|
65
|
+
typography?: Partial<ThemeTypography>;
|
|
66
|
+
spacing?: Partial<ThemeSpacing>;
|
|
67
|
+
borderRadius?: Partial<ThemeBorderRadius>;
|
|
68
|
+
}
|
|
69
|
+
export interface ResolvedTheme {
|
|
70
|
+
mode: 'light' | 'dark';
|
|
71
|
+
colors: ThemeColors;
|
|
72
|
+
typography: ThemeTypography;
|
|
73
|
+
spacing: ThemeSpacing;
|
|
74
|
+
borderRadius: ThemeBorderRadius;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/theme/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,KAAK,GAAG,QAAQ,CAAC;IACpC,gBAAgB,EAAE,KAAK,GAAG,KAAK,CAAC;IAChC,cAAc,EAAE,KAAK,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,EAAE,iBAAiB,CAAC;CACjC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResolvedTheme, ThemeConfig, ThemeMode } from './types.js';
|
|
2
|
+
export declare function resolveTheme(themeInput?: ThemeMode | ThemeConfig | null, systemScheme?: 'light' | 'dark' | null): ResolvedTheme;
|
|
3
|
+
export declare function useTheme(themeInput?: ThemeMode | ThemeConfig | null): ResolvedTheme;
|
|
4
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/useTheme.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAS,CAAC;AAErE,wBAAgB,YAAY,CAC1B,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,IAAI,EAC3C,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,GACrC,aAAa,CAyEf;AAED,wBAAgB,QAAQ,CACtB,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,IAAI,GAC1C,aAAa,CAMf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DateTimePickerError } from '../errors/DateTimePickerError.js';
|
|
2
|
+
export type DateTimePickerChangeEvent = (date: Date) => void;
|
|
3
|
+
export type DateTimePickerConfirmEvent = (date: Date) => void;
|
|
4
|
+
export type DateTimePickerCancelEvent = () => void;
|
|
5
|
+
export type DateTimePickerDismissEvent = () => void;
|
|
6
|
+
export type DateTimePickerOpenEvent = () => void;
|
|
7
|
+
export type DateTimePickerErrorEvent = (error: DateTimePickerError) => void;
|
|
8
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAA+B,CAAC;AAEzE,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;AAC7D,MAAM,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;AAC9D,MAAM,MAAM,yBAAyB,GAAG,MAAM,IAAI,CAAC;AACnD,MAAM,MAAM,0BAA0B,GAAG,MAAM,IAAI,CAAC;AACpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,IAAI,CAAC;AACjD,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAS,CAAC;AACxB,cAAc,aAAU,CAAC;AACzB,cAAc,aAAU,CAAC;AACzB,cAAc,mBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type NativePickerMode = 'date' | 'time' | 'datetime' | 'countdown';
|
|
2
|
+
export type NativePickerDisplay = 'default' | 'spinner' | 'calendar' | 'clock' | 'compact' | 'inline';
|
|
3
|
+
export type NativePickerTheme = 'light' | 'dark' | 'auto';
|
|
4
|
+
export type NativePickerAction = 'confirmed' | 'cancelled' | 'dismissed';
|
|
5
|
+
export interface NativePickerOptions {
|
|
6
|
+
value?: number;
|
|
7
|
+
minimumDate?: number;
|
|
8
|
+
maximumDate?: number;
|
|
9
|
+
display?: NativePickerDisplay;
|
|
10
|
+
locale?: string;
|
|
11
|
+
timeZoneOffsetInMinutes?: number;
|
|
12
|
+
is24Hour?: boolean;
|
|
13
|
+
minuteInterval?: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
confirmText?: string;
|
|
16
|
+
cancelText?: string;
|
|
17
|
+
theme?: NativePickerTheme;
|
|
18
|
+
accentColor?: string;
|
|
19
|
+
textColor?: string;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface NativePickerResult {
|
|
23
|
+
action: NativePickerAction;
|
|
24
|
+
timestamp: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../../src/types/native.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAC7B,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzE,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type PresentationMode = 'native' | 'inline' | 'modal' | 'bottom-sheet' | 'fullscreen';
|
|
2
|
+
export type ModalAnimationType = 'slide' | 'fade' | 'none';
|
|
3
|
+
export interface BaseModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* Visibility flag for modal presentation.
|
|
6
|
+
*/
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Alias for `visible`.
|
|
10
|
+
*/
|
|
11
|
+
isVisible?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
title?: string;
|
|
14
|
+
confirmText?: string;
|
|
15
|
+
cancelText?: string;
|
|
16
|
+
onConfirm?: () => void;
|
|
17
|
+
onCancel?: () => void;
|
|
18
|
+
backdropOpacity?: number;
|
|
19
|
+
animationType?: ModalAnimationType;
|
|
20
|
+
showHandle?: boolean;
|
|
21
|
+
closeOnBackdropPress?: boolean;
|
|
22
|
+
customHeader?: React.ReactNode;
|
|
23
|
+
customFooter?: React.ReactNode;
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../../src/types/presentation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAC1B,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|