@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.
@@ -10,156 +10,156 @@ export type MaterialDatePickerComponents = 'date' | 'hourAndMinute' | 'dateAndTi
10
10
  * Material 3 theme defaults.
11
11
  */
12
12
  export interface MaterialDatePickerElementColors {
13
- /** Part color override (any platform color string). */
13
+ /** Part color override (any platform color string). */
14
14
 
15
- containerColor?: string
16
- /** Part color override (any platform color string). */
15
+ containerColor?: string
16
+ /** Part color override (any platform color string). */
17
17
 
18
- titleContentColor?: string
19
- /** Part color override (any platform color string). */
18
+ titleContentColor?: string
19
+ /** Part color override (any platform color string). */
20
20
 
21
- headlineContentColor?: string
22
- /** Part color override (any platform color string). */
21
+ headlineContentColor?: string
22
+ /** Part color override (any platform color string). */
23
23
 
24
- weekdayContentColor?: string
25
- /** Part color override (any platform color string). */
24
+ weekdayContentColor?: string
25
+ /** Part color override (any platform color string). */
26
26
 
27
- subheadContentColor?: string
28
- /** Part color override (any platform color string). */
27
+ subheadContentColor?: string
28
+ /** Part color override (any platform color string). */
29
29
 
30
- navigationContentColor?: string
31
- /** Part color override (any platform color string). */
30
+ navigationContentColor?: string
31
+ /** Part color override (any platform color string). */
32
32
 
33
- yearContentColor?: string
34
- /** Part color override (any platform color string). */
33
+ yearContentColor?: string
34
+ /** Part color override (any platform color string). */
35
35
 
36
- disabledYearContentColor?: string
37
- /** Part color override (any platform color string). */
36
+ disabledYearContentColor?: string
37
+ /** Part color override (any platform color string). */
38
38
 
39
- currentYearContentColor?: string
40
- /** Part color override (any platform color string). */
39
+ currentYearContentColor?: string
40
+ /** Part color override (any platform color string). */
41
41
 
42
- selectedYearContentColor?: string
43
- /** Part color override (any platform color string). */
42
+ selectedYearContentColor?: string
43
+ /** Part color override (any platform color string). */
44
44
 
45
- disabledSelectedYearContentColor?: string
46
- /** Part color override (any platform color string). */
45
+ disabledSelectedYearContentColor?: string
46
+ /** Part color override (any platform color string). */
47
47
 
48
- selectedYearContainerColor?: string
49
- /** Part color override (any platform color string). */
48
+ selectedYearContainerColor?: string
49
+ /** Part color override (any platform color string). */
50
50
 
51
- disabledSelectedYearContainerColor?: string
52
- /** Part color override (any platform color string). */
51
+ disabledSelectedYearContainerColor?: string
52
+ /** Part color override (any platform color string). */
53
53
 
54
- dayContentColor?: string
55
- /** Part color override (any platform color string). */
54
+ dayContentColor?: string
55
+ /** Part color override (any platform color string). */
56
56
 
57
- disabledDayContentColor?: string
58
- /** Part color override (any platform color string). */
57
+ disabledDayContentColor?: string
58
+ /** Part color override (any platform color string). */
59
59
 
60
- selectedDayContentColor?: string
61
- /** Part color override (any platform color string). */
60
+ selectedDayContentColor?: string
61
+ /** Part color override (any platform color string). */
62
62
 
63
- disabledSelectedDayContentColor?: string
64
- /** Part color override (any platform color string). */
63
+ disabledSelectedDayContentColor?: string
64
+ /** Part color override (any platform color string). */
65
65
 
66
- selectedDayContainerColor?: string
67
- /** Part color override (any platform color string). */
66
+ selectedDayContainerColor?: string
67
+ /** Part color override (any platform color string). */
68
68
 
69
- disabledSelectedDayContainerColor?: string
70
- /** Part color override (any platform color string). */
69
+ disabledSelectedDayContainerColor?: string
70
+ /** Part color override (any platform color string). */
71
71
 
72
- todayContentColor?: string
73
- /** Part color override (any platform color string). */
72
+ todayContentColor?: string
73
+ /** Part color override (any platform color string). */
74
74
 
75
- todayDateBorderColor?: string
76
- /** Part color override (any platform color string). */
75
+ todayDateBorderColor?: string
76
+ /** Part color override (any platform color string). */
77
77
 
78
- dayInSelectionRangeContentColor?: string
79
- /** Part color override (any platform color string). */
78
+ dayInSelectionRangeContentColor?: string
79
+ /** Part color override (any platform color string). */
80
80
 
81
- dayInSelectionRangeContainerColor?: string
82
- /** Part color override (any platform color string). */
81
+ dayInSelectionRangeContainerColor?: string
82
+ /** Part color override (any platform color string). */
83
83
 
84
- dividerColor?: string
85
- /** Part color override (any platform color string). */
84
+ dividerColor?: string
85
+ /** Part color override (any platform color string). */
86
86
 
87
- clockDialColor?: string
88
- /** Part color override (any platform color string). */
87
+ clockDialColor?: string
88
+ /** Part color override (any platform color string). */
89
89
 
90
- clockDialSelectedContentColor?: string
91
- /** Part color override (any platform color string). */
90
+ clockDialSelectedContentColor?: string
91
+ /** Part color override (any platform color string). */
92
92
 
93
- clockDialUnselectedContentColor?: string
94
- /** Part color override (any platform color string). */
93
+ clockDialUnselectedContentColor?: string
94
+ /** Part color override (any platform color string). */
95
95
 
96
- selectorColor?: string
97
- /** Part color override (any platform color string). */
96
+ selectorColor?: string
97
+ /** Part color override (any platform color string). */
98
98
 
99
- periodSelectorBorderColor?: string
100
- /** Part color override (any platform color string). */
99
+ periodSelectorBorderColor?: string
100
+ /** Part color override (any platform color string). */
101
101
 
102
- periodSelectorSelectedContainerColor?: string
103
- /** Part color override (any platform color string). */
102
+ periodSelectorSelectedContainerColor?: string
103
+ /** Part color override (any platform color string). */
104
104
 
105
- periodSelectorUnselectedContainerColor?: string
106
- /** Part color override (any platform color string). */
105
+ periodSelectorUnselectedContainerColor?: string
106
+ /** Part color override (any platform color string). */
107
107
 
108
- periodSelectorSelectedContentColor?: string
109
- /** Part color override (any platform color string). */
108
+ periodSelectorSelectedContentColor?: string
109
+ /** Part color override (any platform color string). */
110
110
 
111
- periodSelectorUnselectedContentColor?: string
112
- /** Part color override (any platform color string). */
111
+ periodSelectorUnselectedContentColor?: string
112
+ /** Part color override (any platform color string). */
113
113
 
114
- timeSelectorSelectedContainerColor?: string
115
- /** Part color override (any platform color string). */
114
+ timeSelectorSelectedContainerColor?: string
115
+ /** Part color override (any platform color string). */
116
116
 
117
- timeSelectorUnselectedContainerColor?: string
118
- /** Part color override (any platform color string). */
117
+ timeSelectorUnselectedContainerColor?: string
118
+ /** Part color override (any platform color string). */
119
119
 
120
- timeSelectorSelectedContentColor?: string
121
- /** Part color override (any platform color string). */
120
+ timeSelectorSelectedContentColor?: string
121
+ /** Part color override (any platform color string). */
122
122
 
123
- timeSelectorUnselectedContentColor?: string
123
+ timeSelectorUnselectedContentColor?: string
124
124
  }
125
125
 
126
126
  /** Android date-picker props (Material3 date picker). */
127
127
  export interface MaterialDatePickerProps {
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
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
  }