@cmgfi/clear-ds 1.1.7 → 1.1.8

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/dist/index.d.ts CHANGED
@@ -245,6 +245,45 @@ export declare type ButtonSize = 'sm' | 'md' | 'lg';
245
245
 
246
246
  export declare type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
247
247
 
248
+ /**
249
+ * Calendar — Clear Design System
250
+ *
251
+ * A standalone, inline calendar for picking a single date. Renders directly in the
252
+ * page (no popover or text input). Three views: day, month, and year — click the
253
+ * month or year in the header to drill up. This is the same calendar surface used
254
+ * inside DatePicker, extracted for use on its own.
255
+ *
256
+ * @example
257
+ * <Calendar value={date} onChange={setDate} />
258
+ *
259
+ * @example
260
+ * <Calendar value={date} onChange={setDate} minDate={new Date()} showFooter />
261
+ */
262
+ export declare const Calendar: ForwardRefExoticComponent<CalendarProps & RefAttributes<HTMLDivElement>>;
263
+
264
+ export declare interface CalendarProps {
265
+ /** Controlled selected date. Pass `null` to clear. */
266
+ value?: Date | null;
267
+ /** Called when the user selects (or, with the footer, clears) a date. */
268
+ onChange?: (date: Date | null) => void;
269
+ /** Dates before this date are disabled and not selectable. */
270
+ minDate?: Date;
271
+ /** Dates after this date are disabled and not selectable. */
272
+ maxDate?: Date;
273
+ /** When true, shows ISO week numbers as the first column. Defaults to false. */
274
+ showWeekNumbers?: boolean;
275
+ /**
276
+ * Surface style. `'card'` (default) is a white panel with a border and shadow;
277
+ * `'plain'` is transparent with no border or shadow, letting the page show through.
278
+ */
279
+ variant?: 'card' | 'plain';
280
+ /** Month to display initially when there is no `value`. Defaults to the current month. */
281
+ defaultMonth?: Date;
282
+ id?: string;
283
+ className?: string;
284
+ style?: React.CSSProperties;
285
+ }
286
+
248
287
  /**
249
288
  * Card — Clear Design System
250
289
  *