@octane-xplat/date-picker 0.19.0 → 0.20.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 +2 -181
- package/package.json +8 -8
- package/src/AppKitDatePicker.macos.tsrx +39 -36
- package/src/AppKitDatePicker.tsrx +2 -0
- package/src/MaterialDatePicker.android.tsrx +43 -42
- package/src/MaterialDatePicker.tsrx +2 -0
- package/src/SwiftUIDatePicker.ios.tsrx +47 -45
- package/src/SwiftUIDatePicker.tsrx +2 -0
- package/src/android/index.ts +4 -4
- package/src/android/types.ts +111 -111
- package/src/date-picker-owner.macos.ts +240 -210
- package/src/ios/index.ts +3 -3
- package/src/ios/types.ts +26 -26
- package/src/macos/index.ts +3 -3
- package/src/macos/types.ts +24 -24
- package/src/style-merge.ts +40 -37
package/src/android/types.ts
CHANGED
|
@@ -10,156 +10,156 @@ export type MaterialDatePickerComponents = 'date' | 'hourAndMinute' | 'dateAndTi
|
|
|
10
10
|
* Material 3 theme defaults.
|
|
11
11
|
*/
|
|
12
12
|
export interface MaterialDatePickerElementColors {
|
|
13
|
-
|
|
13
|
+
/** Part color override (any platform color string). */
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
containerColor?: string
|
|
16
|
+
/** Part color override (any platform color string). */
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
titleContentColor?: string
|
|
19
|
+
/** Part color override (any platform color string). */
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
headlineContentColor?: string
|
|
22
|
+
/** Part color override (any platform color string). */
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
weekdayContentColor?: string
|
|
25
|
+
/** Part color override (any platform color string). */
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
subheadContentColor?: string
|
|
28
|
+
/** Part color override (any platform color string). */
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
navigationContentColor?: string
|
|
31
|
+
/** Part color override (any platform color string). */
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
yearContentColor?: string
|
|
34
|
+
/** Part color override (any platform color string). */
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
disabledYearContentColor?: string
|
|
37
|
+
/** Part color override (any platform color string). */
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
currentYearContentColor?: string
|
|
40
|
+
/** Part color override (any platform color string). */
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
selectedYearContentColor?: string
|
|
43
|
+
/** Part color override (any platform color string). */
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
disabledSelectedYearContentColor?: string
|
|
46
|
+
/** Part color override (any platform color string). */
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
selectedYearContainerColor?: string
|
|
49
|
+
/** Part color override (any platform color string). */
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
disabledSelectedYearContainerColor?: string
|
|
52
|
+
/** Part color override (any platform color string). */
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
dayContentColor?: string
|
|
55
|
+
/** Part color override (any platform color string). */
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
disabledDayContentColor?: string
|
|
58
|
+
/** Part color override (any platform color string). */
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
selectedDayContentColor?: string
|
|
61
|
+
/** Part color override (any platform color string). */
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
disabledSelectedDayContentColor?: string
|
|
64
|
+
/** Part color override (any platform color string). */
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
selectedDayContainerColor?: string
|
|
67
|
+
/** Part color override (any platform color string). */
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
disabledSelectedDayContainerColor?: string
|
|
70
|
+
/** Part color override (any platform color string). */
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
todayContentColor?: string
|
|
73
|
+
/** Part color override (any platform color string). */
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
todayDateBorderColor?: string
|
|
76
|
+
/** Part color override (any platform color string). */
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
dayInSelectionRangeContentColor?: string
|
|
79
|
+
/** Part color override (any platform color string). */
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
dayInSelectionRangeContainerColor?: string
|
|
82
|
+
/** Part color override (any platform color string). */
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
dividerColor?: string
|
|
85
|
+
/** Part color override (any platform color string). */
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
clockDialColor?: string
|
|
88
|
+
/** Part color override (any platform color string). */
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
clockDialSelectedContentColor?: string
|
|
91
|
+
/** Part color override (any platform color string). */
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
clockDialUnselectedContentColor?: string
|
|
94
|
+
/** Part color override (any platform color string). */
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
selectorColor?: string
|
|
97
|
+
/** Part color override (any platform color string). */
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
periodSelectorBorderColor?: string
|
|
100
|
+
/** Part color override (any platform color string). */
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
periodSelectorSelectedContainerColor?: string
|
|
103
|
+
/** Part color override (any platform color string). */
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
periodSelectorUnselectedContainerColor?: string
|
|
106
|
+
/** Part color override (any platform color string). */
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
periodSelectorSelectedContentColor?: string
|
|
109
|
+
/** Part color override (any platform color string). */
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
periodSelectorUnselectedContentColor?: string
|
|
112
|
+
/** Part color override (any platform color string). */
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
timeSelectorSelectedContainerColor?: string
|
|
115
|
+
/** Part color override (any platform color string). */
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
timeSelectorUnselectedContainerColor?: string
|
|
118
|
+
/** Part color override (any platform color string). */
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
timeSelectorSelectedContentColor?: string
|
|
121
|
+
/** Part color override (any platform color string). */
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
timeSelectorUnselectedContentColor?: string
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/** Android date-picker props (Material3 date picker). */
|
|
127
127
|
export interface MaterialDatePickerProps {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
128
|
+
/** Element id passed through to the host element. */
|
|
129
|
+
id?: string
|
|
130
|
+
/** Class list applied to the picker element. */
|
|
131
|
+
className?: any
|
|
132
|
+
/** Inline style (string CSS or object). */
|
|
133
|
+
style?: any
|
|
134
|
+
/** Date the picker starts on. The picker keeps its own selection after mount. */
|
|
135
|
+
initialDate?: Date
|
|
136
|
+
/** Calendar grid or text-field input. @default 'picker' */
|
|
137
|
+
variant?: MaterialDatePickerVariant
|
|
138
|
+
/**
|
|
139
|
+
* `'date'` renders the M3 DatePicker, `'hourAndMinute'` the M3 TimePicker.
|
|
140
|
+
* `'dateAndTime'` renders the date picker (combined input is not supported).
|
|
141
|
+
* @default 'date'
|
|
142
|
+
*/
|
|
143
|
+
displayedComponents?: MaterialDatePickerComponents
|
|
144
|
+
/** Show the picker/input mode toggle. @default true */
|
|
145
|
+
showVariantToggle?: boolean
|
|
146
|
+
/** 24-hour dial for the time picker. @default true */
|
|
147
|
+
is24Hour?: boolean
|
|
148
|
+
/** Accent applied to a subset of elements when `elementColors` is unset. */
|
|
149
|
+
/** Part color override (any platform color string). */
|
|
150
|
+
|
|
151
|
+
color?: string
|
|
152
|
+
/** Part color override (any platform color string). */
|
|
153
|
+
|
|
154
|
+
elementColors?: MaterialDatePickerElementColors
|
|
155
|
+
/** Bounds the selectable date range; also derives the calendar year range. */
|
|
156
|
+
selectableDates?: { start?: Date; end?: Date }
|
|
157
|
+
/** Spoken name for assistive tech. */
|
|
158
|
+
accessibilityLabel?: string
|
|
159
|
+
/**
|
|
160
|
+
* Called with the selected timestamp (null when the selection clears). The
|
|
161
|
+
* DatePicker emits the chosen UTC day; the TimePicker emits the chosen
|
|
162
|
+
* hour/minute on the initial date's day.
|
|
163
|
+
*/
|
|
164
|
+
onDateSelected?: (date: Date | null) => void
|
|
165
165
|
}
|