@react-types/datepicker 3.0.0-nightly.2279 → 3.0.0-nightly.2285
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/package.json +6 -6
- package/src/index.d.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/datepicker",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.2285+1dd4d3f18",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@internationalized/date": "3.2.1-nightly.
|
|
13
|
-
"@react-types/calendar": "3.0.0-nightly.
|
|
14
|
-
"@react-types/overlays": "3.7.3-nightly.
|
|
15
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
12
|
+
"@internationalized/date": "3.2.1-nightly.3987+1dd4d3f18",
|
|
13
|
+
"@react-types/calendar": "3.0.0-nightly.2285+1dd4d3f18",
|
|
14
|
+
"@react-types/overlays": "3.7.3-nightly.3987+1dd4d3f18",
|
|
15
|
+
"@react-types/shared": "3.0.0-nightly.2285+1dd4d3f18"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "1dd4d3f18e8ce2b314ee6519aaf8728fc5818e2e"
|
|
24
24
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -52,7 +52,12 @@ interface DateFieldBase<T extends DateValue> extends InputBase, Validation, Focu
|
|
|
52
52
|
* Whether to hide the time zone abbreviation.
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
|
-
hideTimeZone?: boolean
|
|
55
|
+
hideTimeZone?: boolean,
|
|
56
|
+
/**
|
|
57
|
+
* Whether to always show leading zeros in the month, day, and hour fields.
|
|
58
|
+
* By default, this is determined by the user's locale.
|
|
59
|
+
*/
|
|
60
|
+
shouldForceLeadingZeros?: boolean
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
interface AriaDateFieldBaseProps<T extends DateValue> extends DateFieldBase<T>, AriaLabelingProps, DOMProps {}
|
|
@@ -129,6 +134,11 @@ export interface TimePickerProps<T extends TimeValue> extends InputBase, Validat
|
|
|
129
134
|
granularity?: 'hour' | 'minute' | 'second',
|
|
130
135
|
/** Whether to hide the time zone abbreviation. */
|
|
131
136
|
hideTimeZone?: boolean,
|
|
137
|
+
/**
|
|
138
|
+
* Whether to always show leading zeros in the hour field.
|
|
139
|
+
* By default, this is determined by the user's locale.
|
|
140
|
+
*/
|
|
141
|
+
shouldForceLeadingZeros?: boolean,
|
|
132
142
|
/**
|
|
133
143
|
* A placeholder time that influences the format of the placeholder shown when no value is selected.
|
|
134
144
|
* Defaults to 12:00 AM or 00:00 depending on the hour cycle.
|