compote-ui 0.72.0 → 0.72.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.
@@ -25,6 +25,7 @@
25
25
  locale: localeProp,
26
26
  granularity,
27
27
  hourCycle,
28
+ hideTimeZone = true,
28
29
  onValueChange
29
30
  }: DateFieldProps = $props();
30
31
 
@@ -89,6 +90,7 @@
89
90
  locale: resolvedLocale,
90
91
  granularity: granularity ?? 'day',
91
92
  hourCycle,
93
+ hideTimeZone,
92
94
  value: datePicker().value,
93
95
  min,
94
96
  max,
@@ -18,4 +18,10 @@ export interface DateFieldProps extends Omit<DatePickerRootBaseProps, 'value' |
18
18
  name?: string;
19
19
  granularity?: 'day' | 'hour' | 'minute' | 'second';
20
20
  hourCycle?: 12 | 24;
21
+ /**
22
+ * Hide the trailing time-zone segment (e.g. `GMT+2`) that a zoned value shows
23
+ * at time granularity. Defaults to `true`, matching `DateInput`. Not inherited
24
+ * from Ark: `hideTimeZone` is a date-input prop, not a date-picker one.
25
+ */
26
+ hideTimeZone?: boolean;
21
27
  }
@@ -28,6 +28,7 @@
28
28
  timeZone,
29
29
  granularity,
30
30
  hourCycle,
31
+ hideTimeZone = true,
31
32
  onValueChange
32
33
  }: DateRangeFieldProps = $props();
33
34
 
@@ -102,6 +103,7 @@
102
103
  selectionMode: 'range',
103
104
  granularity: granularity ?? 'day',
104
105
  hourCycle,
106
+ hideTimeZone,
105
107
  value: datePicker().value,
106
108
  min,
107
109
  max,
@@ -26,4 +26,10 @@ export interface DateRangeFieldProps extends Omit<DatePickerRootBaseProps, 'valu
26
26
  endName?: string;
27
27
  granularity?: 'day' | 'hour' | 'minute' | 'second';
28
28
  hourCycle?: 12 | 24;
29
+ /**
30
+ * Hide the trailing time-zone segment (e.g. `GMT+2`) that a zoned value shows
31
+ * at time granularity. Defaults to `true`, matching `DateInput`. Not inherited
32
+ * from Ark: `hideTimeZone` is a date-input prop, not a date-picker one.
33
+ */
34
+ hideTimeZone?: boolean;
29
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.72.0",
3
+ "version": "0.72.1",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev --open",