@octane-xplat/date-picker 0.12.0 → 0.14.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/README.md +11 -10
- package/dist/native/octane-client-build.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# `@octane-xplat/date-picker`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`DateRangeInput` from `@octane-xplat/ui
|
|
3
|
+
Platform-specific date and time pickers for Octane xplat apps: a SwiftUI
|
|
4
|
+
`DatePicker` on iOS, Material 3 `DatePicker`/`TimePicker` built with Jetpack
|
|
5
|
+
Compose on Android, and a real `NSDatePicker` on macOS. For portable form
|
|
6
|
+
controls that work on every target, use `Calendar`, `DateInput`,
|
|
7
|
+
`TimeInput`, `DateTimeInput`, and `DateRangeInput` from `@octane-xplat/ui`.
|
|
8
8
|
|
|
9
9
|
```tsx
|
|
10
10
|
import { useState } from 'octane'
|
|
@@ -16,11 +16,12 @@ export function DepartureDate() {
|
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Install the package in the app that
|
|
20
|
-
`SwiftUIDatePicker` from
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
There is no shared picker component. Install the package in the app that
|
|
20
|
+
renders a control, then import `SwiftUIDatePicker` from
|
|
21
|
+
`@octane-xplat/date-picker/ios`, `MaterialDatePicker` from
|
|
22
|
+
`@octane-xplat/date-picker/android`, or `AppKitDatePicker` from
|
|
23
|
+
`@octane-xplat/date-picker/macos` in the matching platform-suffixed file.
|
|
24
|
+
These native entries have platform-specific contracts.
|
|
24
25
|
The old `@octane-xplat/date-picker/web` `DateInput` subpath was removed because
|
|
25
26
|
its browser-only string contract conflicted with the shared `DateInput` API.
|
|
26
27
|
|