@maxio-com/react-ui-components 9.29.3 → 9.30.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.
Files changed (31) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/skills/maxio-react/references/components-calendar.md +34 -0
  5. package/dist/skills/maxio-react/references/components-forms-datepicker.md +29 -9
  6. package/dist/skills/maxio-react/references/components-forms-daterangepicker.md +29 -9
  7. package/dist/skills/maxio-react/references/components-rangecalendar.md +35 -7
  8. package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts +1 -1
  9. package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts.map +1 -1
  10. package/dist/temporary-typings/src/components/Calendar/CalendarTitle.d.ts +7 -0
  11. package/dist/temporary-typings/src/components/Calendar/CalendarTitle.d.ts.map +1 -0
  12. package/dist/temporary-typings/src/components/Calendar/index.d.ts +1 -1
  13. package/dist/temporary-typings/src/components/Calendar/index.d.ts.map +1 -1
  14. package/dist/temporary-typings/src/components/Calendar/types.d.ts +2 -0
  15. package/dist/temporary-typings/src/components/Calendar/types.d.ts.map +1 -1
  16. package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts +1 -1
  17. package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts.map +1 -1
  18. package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts +2 -0
  19. package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts.map +1 -1
  20. package/dist/temporary-typings/src/components/forms/DatePicker/DatePicker.d.ts +1 -1
  21. package/dist/temporary-typings/src/components/forms/DatePicker/DatePicker.d.ts.map +1 -1
  22. package/dist/temporary-typings/src/components/forms/DatePicker/types.d.ts +2 -0
  23. package/dist/temporary-typings/src/components/forms/DatePicker/types.d.ts.map +1 -1
  24. package/dist/temporary-typings/src/components/forms/DateRangePicker/DateRangePicker.d.ts +1 -1
  25. package/dist/temporary-typings/src/components/forms/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  26. package/dist/temporary-typings/src/components/forms/DateRangePicker/types.d.ts +2 -0
  27. package/dist/temporary-typings/src/components/forms/DateRangePicker/types.d.ts.map +1 -1
  28. package/dist/temporary-typings/src/components/index.d.ts +1 -1
  29. package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
  30. package/package.json +2 -2
  31. package/typings/index.d.ts +16 -11
@@ -21,6 +21,7 @@ Calendar displays a localized month grid for selecting a single date.
21
21
  | Variant | Purpose | Usage notes |
22
22
  | :---------------- | :---------------------------- | :----------------------------------------------------------------- |
23
23
  | Default | Select one date | Displays one month at a time. |
24
+ | Year picker | Jump between years | Adds month and year pickers; years respect minimum and maximum. |
24
25
  | Date restrictions | Limit available dates | Use minimum and maximum dates and mark specific dates unavailable. |
25
26
  | Disabled | Prevent interaction | Use when the calendar cannot be used in the current context. |
26
27
  | Read only | Display an existing selection | Users can browse without changing the selected date. |
@@ -29,6 +30,7 @@ Calendar displays a localized month grid for selecting a single date.
29
30
  ### Behavior
30
31
 
31
32
  - **Mouse and touch**: select an available date or use the previous and next buttons to browse months.
33
+ - **Month and year pickers**: with `navigation` set to `year`, choosing an option moves the visible month without changing the selected date.
32
34
  - **Keyboard**: arrow keys move between dates; Enter or Space selects the focused date. Page Up and Page Down browse months.
33
35
  - **Focus management**: the date grid uses one tab stop. Moving focus does not select a date until the user activates it.
34
36
  - **Localization**: the locale determines date labels, weekday order, and reading direction.
@@ -86,6 +88,29 @@ Use `minValue`, `maxValue`, and `isDateUnavailable` to constrain selection.
86
88
  `isReadOnly` allows browsing without changing the value; `isDisabled` disables
87
89
  interaction. Pair `isInvalid` with `errorMessage` for validation feedback.
88
90
 
91
+ ### Navigation
92
+
93
+ Use `navigation` to control how users move between dates from the header. The
94
+ pickers use React Aria's `CalendarMonthPicker` and `CalendarYearPicker` and
95
+ render with the `Select` component.
96
+
97
+ | Value | Header |
98
+ | :------ | :------------------------------------------------------ |
99
+ | `month` | Month and year heading with previous and next (default) |
100
+ | `year` | Month picker and year picker with previous and next |
101
+
102
+ ```tsx
103
+ <Calendar
104
+ aria-label="Contract start date"
105
+ navigation="year"
106
+ defaultValue={parseDate('2026-09-09')}
107
+ />
108
+ ```
109
+
110
+ The year picker shows 20 years around the focused date, limited by `minValue`
111
+ and `maxValue`. Months outside `minValue` and `maxValue` are disabled in the
112
+ month picker.
113
+
89
114
  ### Localization
90
115
 
91
116
  Wrap Calendar in React Aria's `I18nProvider` to set the locale, week start,
@@ -116,6 +141,7 @@ import { Calendar, I18nProvider } from "@maxio-com/react-ui-components";
116
141
  | Prop | Type | Required | Default | Description | Source |
117
142
  | --- | --- | --- | --- | --- | --- |
118
143
  | `errorMessage` | `string` | no | - | Message announced when the selected date is invalid. | CalendarProps |
144
+ | `navigation` | `"month" \| "year"` | no | `month` | How users move between dates from the header. `month` shows the month and year as a heading with previous and next buttons, and `year` replaces the heading with month and year pickers. | CalendarProps |
119
145
 
120
146
  ## Stories
121
147
 
@@ -127,6 +153,14 @@ Use Default when users need to select one date from a visible month grid.
127
153
  const Default = () => <Calendar aria-label="Billing date" defaultValue={referenceDate} />;
128
154
  ```
129
155
 
156
+ ### Year Picker
157
+
158
+ Use Year Picker when the selected date may be several years away, such as contract start or renewal dates.
159
+
160
+ ```tsx
161
+ const YearPicker = () => <Calendar aria-label="Billing date" defaultValue={referenceDate} navigation="year" />;
162
+ ```
163
+
130
164
  ### Controlled
131
165
 
132
166
  Use Controlled when application state owns the selected date.
@@ -19,15 +19,16 @@ DatePicker combines localized date entry with a calendar popover for selecting o
19
19
 
20
20
  ### Variants
21
21
 
22
- | Variant | Purpose | Usage notes |
23
- | :---------------- | :------------------------------- | :----------------------------------------- |
24
- | Default | Enter a date | Provide a specific label. |
25
- | Empty | Start without a value | Date placeholders follow the locale. |
26
- | Disabled | Prevent interaction | Use when the field is unavailable. |
27
- | Read only | Prevent edits | Keep the existing value available to read. |
28
- | Invalid | Explain a validation failure | Supply an actionable error message. |
29
- | Date restrictions | Limit permitted dates | Explain the limits in the description. |
30
- | Presets | Offer frequently used selections | Give each shortcut a clear label. |
22
+ | Variant | Purpose | Usage notes |
23
+ | :---------------- | :------------------------------- | :------------------------------------------ |
24
+ | Default | Enter a date | Provide a specific label. |
25
+ | Empty | Start without a value | Date placeholders follow the locale. |
26
+ | Disabled | Prevent interaction | Use when the field is unavailable. |
27
+ | Read only | Prevent edits | Keep the existing value available to read. |
28
+ | Invalid | Explain a validation failure | Supply an actionable error message. |
29
+ | Date restrictions | Limit permitted dates | Explain the limits in the description. |
30
+ | Year picker | Jump months or years away | Adds month and year pickers to the popover. |
31
+ | Presets | Offer frequently used selections | Give each shortcut a clear label. |
31
32
 
32
33
  ### Behavior
33
34
 
@@ -87,6 +88,16 @@ A cleared value is `null`. Use `name` for native form submission.
87
88
  Use `isRequired`, `validate`, and `validationBehavior` for validation. Pair custom
88
89
  invalid state with `isInvalid` and `errorMessage`.
89
90
 
91
+ ### Navigation
92
+
93
+ Set `navigation="year"` to add month and year pickers to the calendar popover,
94
+ so users can jump months or years away. The default, `month`, shows a heading
95
+ with previous and next buttons.
96
+
97
+ ```tsx
98
+ <DatePicker label="Contract start" navigation="year" />
99
+ ```
100
+
90
101
  ### Localization
91
102
 
92
103
  Use React Aria's `I18nProvider`, as shown in the International story, to set date
@@ -115,6 +126,7 @@ import { DatePicker, I18nProvider } from "@maxio-com/react-ui-components";
115
126
  | `description` | `ReactNode` | no | - | Instructions associated with the field. | DatePickerProps |
116
127
  | `errorMessage` | `ReactNode \| ((validation: ValidationResult) => ReactNode)` | no | - | Validation feedback, or a function formatting native validation errors. | DatePickerProps |
117
128
  | `label` | `ReactNode` | no | - | Visible accessible label. Supply aria-label when omitted. | DatePickerProps |
129
+ | `navigation` | `"month" \| "year"` | no | `'month'` | How users move between dates from the calendar header. `month` shows a heading with previous and next buttons, and `year` adds month and year pickers. | DatePickerProps |
118
130
  | `presets` | `readonly DatePreset<T>[]` | no | - | Optional shortcuts. Values use the same date type as the picker. | DatePickerProps |
119
131
  | `presetsLabel` | `string` | no | - | Accessible name for the preset group; localize alongside preset labels. | DatePickerProps |
120
132
 
@@ -136,6 +148,14 @@ Use when users should make an explicit selection. Placeholders and segment order
136
148
  const Empty = () => <DatePicker label="Billing date" defaultValue={undefined} />;
137
149
  ```
138
150
 
151
+ ### Year Picker
152
+
153
+ Use when users may need to jump months or years away. Adds month and year pickers to the calendar popover.
154
+
155
+ ```tsx
156
+ const YearPicker = () => <DatePicker label="Billing date" defaultValue={initialValue} navigation="year" />;
157
+ ```
158
+
139
159
  ### Controlled
140
160
 
141
161
  Use when application state owns the selection. Apply onChange values back to value to display edits.
@@ -19,15 +19,16 @@ DateRangePicker combines two localized date inputs with a calendar popover for s
19
19
 
20
20
  ### Variants
21
21
 
22
- | Variant | Purpose | Usage notes |
23
- | :---------------- | :------------------------------- | :----------------------------------------- |
24
- | Default | Choose a date range | Provide a specific label. |
25
- | Empty | Start without a value | Date placeholders follow the locale. |
26
- | Disabled | Prevent interaction | Use when the field is unavailable. |
27
- | Read only | Prevent edits | Keep the existing value available to read. |
28
- | Invalid | Explain a validation failure | Supply an actionable error message. |
29
- | Date restrictions | Limit permitted dates | Explain the limits in the description. |
30
- | Presets | Offer frequently used selections | Give each shortcut a clear label. |
22
+ | Variant | Purpose | Usage notes |
23
+ | :---------------- | :------------------------------- | :------------------------------------------ |
24
+ | Default | Choose a date range | Provide a specific label. |
25
+ | Empty | Start without a value | Date placeholders follow the locale. |
26
+ | Disabled | Prevent interaction | Use when the field is unavailable. |
27
+ | Read only | Prevent edits | Keep the existing value available to read. |
28
+ | Invalid | Explain a validation failure | Supply an actionable error message. |
29
+ | Date restrictions | Limit permitted dates | Explain the limits in the description. |
30
+ | Year picker | Jump months or years away | Adds month and year pickers to the popover. |
31
+ | Presets | Offer frequently used selections | Give each shortcut a clear label. |
31
32
 
32
33
  ### Behavior
33
34
 
@@ -88,6 +89,16 @@ A complete range has `{ start, end }` endpoints; a cleared range is `null`. Use
88
89
  Use `isRequired`, `validate`, and `validationBehavior` for validation. Pair custom
89
90
  invalid state with `isInvalid` and `errorMessage`.
90
91
 
92
+ ### Navigation
93
+
94
+ Set `navigation="year"` to add month and year pickers to the calendar popover,
95
+ so users can jump months or years away. The default, `month`, shows a heading
96
+ with previous and next buttons.
97
+
98
+ ```tsx
99
+ <DateRangePicker label="Contract start" navigation="year" />
100
+ ```
101
+
91
102
  ### Localization
92
103
 
93
104
  Use React Aria's `I18nProvider`, as shown in the International story, to set date
@@ -121,6 +132,7 @@ import { DateRangePicker, I18nProvider } from "@maxio-com/react-ui-components";
121
132
  | `description` | `ReactNode` | no | - | Instructions associated with the field. | DateRangePickerProps |
122
133
  | `errorMessage` | `ReactNode \| ((validation: ValidationResult) => ReactNode)` | no | - | Validation feedback, or a function formatting native validation errors. | DateRangePickerProps |
123
134
  | `label` | `ReactNode` | no | - | Visible accessible label. Supply aria-label when omitted. | DateRangePickerProps |
135
+ | `navigation` | `"month" \| "year"` | no | `'month'` | How users move between dates from the calendar header. `month` shows a heading with previous and next buttons, and `year` adds month and year pickers. | DateRangePickerProps |
124
136
  | `presets` | `readonly DateRangePreset<T>[]` | no | - | Optional shortcuts. Values use the same date type as the picker. | DateRangePickerProps |
125
137
  | `presetsLabel` | `string` | no | - | Accessible name for the preset group; localize alongside preset labels. | DateRangePickerProps |
126
138
 
@@ -142,6 +154,14 @@ Use when users should make an explicit selection. Placeholders and segment order
142
154
  const Empty = () => <DateRangePicker label="Billing period" defaultValue={undefined} />;
143
155
  ```
144
156
 
157
+ ### Year Picker
158
+
159
+ Use when users may need to jump months or years away. Adds month and year pickers to the calendar popover.
160
+
161
+ ```tsx
162
+ const YearPicker = () => <DateRangePicker label="Billing period" defaultValue={initialValue} navigation="year" />;
163
+ ```
164
+
145
165
  ### Controlled
146
166
 
147
167
  Use when application state owns the selection. Apply onChange values back to value to display edits.
@@ -18,13 +18,14 @@ RangeCalendar displays a localized month grid for selecting a date range.
18
18
 
19
19
  ### Variants
20
20
 
21
- | Variant | Purpose | Usage notes |
22
- | :---------------- | :---------------------------- | :----------------------------------------------------------------- |
23
- | Default | Select a date range | Displays one month at a time. |
24
- | Date restrictions | Limit available dates | Use minimum and maximum dates and mark specific dates unavailable. |
25
- | Disabled | Prevent interaction | Use when the calendar cannot be used in the current context. |
26
- | Read only | Display an existing selection | Users can browse without changing the selected range. |
27
- | Invalid | Explain a validation problem | Pair the invalid state with a specific error message. |
21
+ | Variant | Purpose | Usage notes |
22
+ | :---------------- | :---------------------------- | :------------------------------------------------------------------- |
23
+ | Default | Select a date range | Displays one month at a time. |
24
+ | Year picker | Jump between years | Adds month and year pickers; months outside the bounds are disabled. |
25
+ | Date restrictions | Limit available dates | Use minimum and maximum dates and mark specific dates unavailable. |
26
+ | Disabled | Prevent interaction | Use when the calendar cannot be used in the current context. |
27
+ | Read only | Display an existing selection | Users can browse without changing the selected range. |
28
+ | Invalid | Explain a validation problem | Pair the invalid state with a specific error message. |
28
29
 
29
30
  ### Behavior
30
31
 
@@ -102,6 +103,17 @@ interaction. Pair `isInvalid` with `errorMessage` for validation feedback.
102
103
 
103
104
  By default, ranges cannot cross unavailable dates. Set `allowsNonContiguousRanges` to allow unavailable dates inside the range while keeping endpoints selectable.
104
105
 
106
+ ### Navigation
107
+
108
+ Set `navigation="year"` to replace the heading with month and year pickers
109
+ built from React Aria's `CalendarMonthPicker` and `CalendarYearPicker` and our
110
+ `Select` component. The default, `month`, shows a heading. Options outside
111
+ `minValue` and `maxValue` are disabled.
112
+
113
+ ```tsx
114
+ <RangeCalendar aria-label="Contract term" navigation="year" />
115
+ ```
116
+
105
117
  ### Localization
106
118
 
107
119
  Wrap RangeCalendar in React Aria's `I18nProvider` to set the locale, week start,
@@ -135,6 +147,7 @@ import { I18nProvider, RangeCalendar } from "@maxio-com/react-ui-components";
135
147
  | Prop | Type | Required | Default | Description | Source |
136
148
  | --- | --- | --- | --- | --- | --- |
137
149
  | `errorMessage` | `string` | no | - | Message announced when the selected range is invalid. | RangeCalendarProps |
150
+ | `navigation` | `"month" \| "year"` | no | `month` | How users move between dates from the header. `month` shows the month and year as a heading with previous and next buttons, and `year` replaces the heading with month and year pickers. | RangeCalendarProps |
138
151
 
139
152
  ## Stories
140
153
 
@@ -152,6 +165,21 @@ const Default = () => <RangeCalendar
152
165
  }} />;
153
166
  ```
154
167
 
168
+ ### Year Picker
169
+
170
+ Use Year Picker when the range may start several months or years away.
171
+
172
+ ```tsx
173
+ const YearPicker = () => <RangeCalendar
174
+ aria-label="Billing period"
175
+ defaultFocusedValue={referenceDate}
176
+ defaultValue={{
177
+ start: referenceDate.subtract({ days: 3 }),
178
+ end: referenceDate.add({ days: 3 }),
179
+ }}
180
+ navigation="year" />;
181
+ ```
182
+
155
183
  ### Controlled
156
184
 
157
185
  Use Controlled when application state owns the selected range.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type DateValue } from 'react-aria-components';
3
3
  import type { CalendarProps } from './types';
4
- declare const Calendar: <T extends DateValue>({ className, errorMessage, ...props }: CalendarProps<T>) => React.JSX.Element;
4
+ declare const Calendar: <T extends DateValue>({ className, errorMessage, navigation, ...props }: CalendarProps<T>) => React.JSX.Element;
5
5
  export default Calendar;
6
6
  //# sourceMappingURL=Calendar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,QAAQ,GAAI,CAAC,SAAS,SAAS,EAAE,uCAIpC,aAAa,CAAC,CAAC,CAAC,sBA6ClB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,QAAQ,GAAI,CAAC,SAAS,SAAS,EAAE,mDAKpC,aAAa,CAAC,CAAC,CAAC,sBA6ClB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { CalendarNavigation } from './types';
3
+ declare const CalendarTitle: ({ navigation }: {
4
+ navigation: CalendarNavigation;
5
+ }) => React.JSX.Element;
6
+ export default CalendarTitle;
7
+ //# sourceMappingURL=CalendarTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarTitle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/CalendarTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAiB1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAwDlD,QAAA,MAAM,aAAa,GAAI,gBAAgB;IAAE,UAAU,EAAE,kBAAkB,CAAA;CAAE,sBAUtE,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { default as Calendar } from './Calendar';
2
- export type { CalendarProps } from './types';
2
+ export type { CalendarNavigation, CalendarProps } from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import type { CalendarProps as AriaCalendarProps, DateValue } from 'react-aria-components';
2
+ export type CalendarNavigation = 'month' | 'year';
2
3
  export interface CalendarProps<T extends DateValue = DateValue> extends Omit<AriaCalendarProps<T>, 'children' | 'visibleDuration'> {
3
4
  errorMessage?: string;
5
+ navigation?: CalendarNavigation;
4
6
  }
5
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,SAAS,EACV,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,IAAI,CAC1E,iBAAiB,CAAC,CAAC,CAAC,EACpB,UAAU,GAAG,iBAAiB,CAC/B;IAEC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,IAAI,iBAAiB,EAClC,SAAS,EACV,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,CAAC;AAGlD,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,IAAI,CAC1E,iBAAiB,CAAC,CAAC,CAAC,EACpB,UAAU,GAAG,iBAAiB,CAC/B;IAEC,YAAY,CAAC,EAAE,MAAM,CAAC;IAOtB,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type DateValue } from 'react-aria-components';
3
3
  import type { RangeCalendarProps } from './types';
4
- declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, ...props }: RangeCalendarProps<T>) => React.JSX.Element;
4
+ declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, navigation, ...props }: RangeCalendarProps<T>) => React.JSX.Element;
5
5
  export default RangeCalendar;
6
6
  //# sourceMappingURL=RangeCalendar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeCalendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/RangeCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,SAAS,EAAE,uCAIzC,kBAAkB,CAAC,CAAC,CAAC,sBAkDvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"RangeCalendar.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/RangeCalendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,SAAS,EAAE,mDAKzC,kBAAkB,CAAC,CAAC,CAAC,sBAkDvB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import type { RangeCalendarProps as AriaRangeCalendarProps, DateValue } from 'react-aria-components';
2
+ import type { CalendarNavigation } from '../Calendar';
2
3
  export interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<AriaRangeCalendarProps<T>, 'children' | 'visibleDuration'> {
3
4
  errorMessage?: string;
5
+ navigation?: CalendarNavigation;
4
6
  }
5
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAC5C,SAAS,EACV,MAAM,uBAAuB,CAAC;AAG/B,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC;IAEvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeCalendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAC5C,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,MAAM,WAAW,kBAAkB,CACjC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,iBAAiB,CAAC;IAEvE,YAAY,CAAC,EAAE,MAAM,CAAC;IAOtB,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type DateValue } from 'react-aria-components';
3
3
  import type { DatePickerProps } from './types';
4
- declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, ...props }: DatePickerProps<T>) => React.JSX.Element;
4
+ declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, navigation, ...props }: DatePickerProps<T>) => React.JSX.Element;
5
5
  export default DatePicker;
6
6
  //# sourceMappingURL=DatePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAML,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,EAAE,kFAQtC,eAAe,CAAC,CAAC,CAAC,sBAgEpB,CAAC;AACF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAML,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,QAAA,MAAM,UAAU,GAAI,CAAC,SAAS,SAAS,EAAE,8FAStC,eAAe,CAAC,CAAC,CAAC,sBAgEpB,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { Preset } from '../DatePresets';
3
3
  import type { DatePickerProps as AriaDatePickerProps, DateValue, ValidationResult } from 'react-aria-components';
4
+ import type { CalendarNavigation } from '../../Calendar';
4
5
  export interface DatePickerProps<T extends DateValue = DateValue> extends Omit<AriaDatePickerProps<T>, 'children'> {
6
+ navigation?: CalendarNavigation;
5
7
  presets?: readonly DatePreset<T>[];
6
8
  presetsLabel?: string;
7
9
  label?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DatePicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,K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C;IAEnC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,UAAU,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;CAC1E;AAGD,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type DateValue } from 'react-aria-components';
3
3
  import type { DateRangePickerProps } from './types';
4
- declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, ...props }: DateRangePickerProps<T>) => React.JSX.Element;
4
+ declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, navigation, ...props }: DateRangePickerProps<T>) => React.JSX.Element;
5
5
  export default DateRangePicker;
6
6
  //# sourceMappingURL=DateRangePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EASL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,SAAS,EAAE,kFAQ3C,oBAAoB,CAAC,CAAC,CAAC,sBAuEzB,CAAC;AACF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EASL,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD,QAAA,MAAM,eAAe,GAAI,CAAC,SAAS,SAAS,EAAE,8FAS3C,oBAAoB,CAAC,CAAC,CAAC,sBAuEzB,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { Preset } from '../DatePresets';
3
3
  import type { DateRangePickerProps as AriaDateRangePickerProps, DateValue, ValidationResult } from 'react-aria-components';
4
+ import type { CalendarNavigation } from '../../Calendar';
4
5
  export interface DateRangePickerProps<T extends DateValue = DateValue> extends Omit<AriaDateRangePickerProps<T>, 'children'> {
6
+ navigation?: CalendarNavigation;
5
7
  presets?: readonly DateRangePreset<T>[];
6
8
  presetsLabel?: string;
7
9
  label?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DateRangePicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,oBAAoB,IAAI,wBAAwB,EAChD,SAAS,EACT,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,oBAAoB,CACnC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAErD,OAAO,CAAC,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAExC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,UAAU,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;CAC1E;AAGD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,MAAM,CAAC;IACpE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACf,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/DateRangePicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,oBAAoB,IAAI,wBAAwB,EAChD,SAAS,EACT,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,MAAM,WAAW,oBAAoB,CACnC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;IAOrD,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAEhC,OAAO,CAAC,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAExC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,YAAY,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,UAAU,EAAE,gBAAgB,KAAK,SAAS,CAAC,CAAC;CAC1E;AAGD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,MAAM,CAAC;IACpE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACf,CAAC,CAAC"}
@@ -42,7 +42,7 @@ export type { EmptyStateHeadingLevel, EmptyStateProps } from './EmptyState';
42
42
  export type { ComboBoxProps, NumberFieldProps, SearchFieldProps, TextAreaProps, TextFieldProps, TextInputProps, } from './forms';
43
43
  export type { SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, } from './SegmentedControl';
44
44
  export { Calendar } from './Calendar';
45
- export type { CalendarProps } from './Calendar';
45
+ export type { CalendarNavigation, CalendarProps } from './Calendar';
46
46
  export { RangeCalendar } from './RangeCalendar';
47
47
  export type { RangeCalendarProps } from './RangeCalendar';
48
48
  export { DateField } from './forms/DateField';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,SAAS,EAAE,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EA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BAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EACV,oBAAoB,EACpB,eAAe,GAChB,MAAM,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/react-ui-components",
3
- "version": "9.29.3",
3
+ "version": "9.30.0",
4
4
  "description": "React UI components",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "e46052de3105ae349ccf0376558a94644ebe29e6"
68
+ "gitHead": "fde63cbc5bb45cbd3f4325bc54f35aa2c071d138"
69
69
  }
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
2
2
  import { RowData, Row, Table, ExpandedState, RowSelectionState, SortingState, TableOptions } from '@tanstack/react-table';
3
3
  export { createColumnHelper } from '@tanstack/react-table';
4
- import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxLoadMoreItemProps, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, SearchFieldProps as SearchFieldProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, DateValue, DateFieldProps as DateFieldProps$1, DatePickerProps as DatePickerProps$1, DateRangePickerProps as DateRangePickerProps$1, CalendarProps as CalendarProps$1, RangeCalendarProps as RangeCalendarProps$1 } from 'react-aria-components';
4
+ import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxLoadMoreItemProps, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, SearchFieldProps as SearchFieldProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, DateValue, DateFieldProps as DateFieldProps$1, CalendarProps as CalendarProps$1, DatePickerProps as DatePickerProps$1, DateRangePickerProps as DateRangePickerProps$1, RangeCalendarProps as RangeCalendarProps$1 } from 'react-aria-components';
5
5
  export { DialogTrigger, Pressable } from 'react-aria-components';
6
6
  import * as _floating_ui_react_dom_interactions from '@floating-ui/react-dom-interactions';
7
7
  import { MotionProps } from 'framer-motion';
@@ -877,7 +877,16 @@ interface Preset<T> {
877
877
  isDisabled?: boolean;
878
878
  }
879
879
 
880
+ type CalendarNavigation = 'month' | 'year';
881
+ interface CalendarProps<T extends DateValue = DateValue> extends Omit<CalendarProps$1<T>, 'children' | 'visibleDuration'> {
882
+ errorMessage?: string;
883
+ navigation?: CalendarNavigation;
884
+ }
885
+
886
+ declare const Calendar: <T extends DateValue>({ className, errorMessage, navigation, ...props }: CalendarProps<T>) => React$1.JSX.Element;
887
+
880
888
  interface DatePickerProps<T extends DateValue = DateValue> extends Omit<DatePickerProps$1<T>, 'children'> {
889
+ navigation?: CalendarNavigation;
881
890
  presets?: readonly DatePreset<T>[];
882
891
  presetsLabel?: string;
883
892
  label?: ReactNode;
@@ -886,9 +895,10 @@ interface DatePickerProps<T extends DateValue = DateValue> extends Omit<DatePick
886
895
  }
887
896
  type DatePreset<T extends DateValue = DateValue> = Preset<T>;
888
897
 
889
- declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, ...props }: DatePickerProps<T>) => React$1.JSX.Element;
898
+ declare const DatePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, navigation, ...props }: DatePickerProps<T>) => React$1.JSX.Element;
890
899
 
891
900
  interface DateRangePickerProps<T extends DateValue = DateValue> extends Omit<DateRangePickerProps$1<T>, 'children'> {
901
+ navigation?: CalendarNavigation;
892
902
  presets?: readonly DateRangePreset<T>[];
893
903
  presetsLabel?: string;
894
904
  label?: ReactNode;
@@ -900,7 +910,7 @@ type DateRangePreset<T extends DateValue = DateValue> = Preset<{
900
910
  end: T | null;
901
911
  }>;
902
912
 
903
- declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, ...props }: DateRangePickerProps<T>) => React$1.JSX.Element;
913
+ declare const DateRangePicker: <T extends DateValue>({ label, description, errorMessage, className, presets, presetsLabel, navigation, ...props }: DateRangePickerProps<T>) => React$1.JSX.Element;
904
914
 
905
915
  type ChipProps = AriaToggleButtonProps & {
906
916
  label: string;
@@ -968,17 +978,12 @@ type GridProps = {
968
978
 
969
979
  declare const Grid: ({ children, templateColumns, templateRows, autoColumns, autoRows, inline, column, columnStart, columnEnd, row, rowStart, rowEnd, gap, gapX, gapY, className, justifyContent, alignItems, ...props }: GridProps) => React$1.JSX.Element;
970
980
 
971
- interface CalendarProps<T extends DateValue = DateValue> extends Omit<CalendarProps$1<T>, 'children' | 'visibleDuration'> {
972
- errorMessage?: string;
973
- }
974
-
975
- declare const Calendar: <T extends DateValue>({ className, errorMessage, ...props }: CalendarProps<T>) => React$1.JSX.Element;
976
-
977
981
  interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<RangeCalendarProps$1<T>, 'children' | 'visibleDuration'> {
978
982
  errorMessage?: string;
983
+ navigation?: CalendarNavigation;
979
984
  }
980
985
 
981
- declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, ...props }: RangeCalendarProps<T>) => React$1.JSX.Element;
986
+ declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, navigation, ...props }: RangeCalendarProps<T>) => React$1.JSX.Element;
982
987
 
983
988
  type Sentiment = 'success' | 'danger';
984
989
  type AuthLayoutProps = {
@@ -995,4 +1000,4 @@ type AuthLayoutProps = {
995
1000
  declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, topAddon, footer, }: AuthLayoutProps) => React$1.JSX.Element;
996
1001
 
997
1002
  export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, DateField, DatePicker, DateRangePicker, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, NumberField, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SearchField, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
998
- export type { CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
1003
+ export type { CalendarNavigation, CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DateFieldProps, DatePickerProps, DatePreset, DateRangePickerProps, DateRangePreset, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, NumberFieldProps, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SearchFieldProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };