randmarcomps 1.384.0 → 1.386.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.
@@ -6,6 +6,7 @@ import { ButtonProps as ButtonProps_2 } from './button';
6
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
7
  import { ClassProp } from 'class-variance-authority/types';
8
8
  import { ColumnDef } from '@tanstack/react-table';
9
+ import { DayPicker } from 'react-day-picker';
9
10
  import { default as default_2 } from 'react';
10
11
  import * as DialogPrimitive from '@radix-ui/react-dialog';
11
12
  import { DialogProps } from '@radix-ui/react-dialog';
@@ -193,6 +194,10 @@ export declare const buttonVariants: (props?: ({
193
194
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
194
195
  } & ClassProp) | undefined) => string;
195
196
 
197
+ export declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React_2.ComponentProps<typeof DayPicker> & {
198
+ buttonVariant?: React_2.ComponentProps<typeof Button>["variant"];
199
+ }): JSX.Element;
200
+
196
201
  export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
197
202
 
198
203
  export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
@@ -352,6 +357,24 @@ declare interface DataTableProps<TData, TValue> {
352
357
  loading?: boolean;
353
358
  }
354
359
 
360
+ /**
361
+ * A reusable date picker component with a masked input and a calendar popover.
362
+ */
363
+ export declare function DatePicker({ date, onDateChange, label, id, className, }: DatePickerProps): JSX.Element;
364
+
365
+ declare interface DatePickerProps {
366
+ /** The currently selected date. */
367
+ date: Date | undefined;
368
+ /** Callback fired when the date is changed. */
369
+ onDateChange: (date: Date | undefined) => void;
370
+ /** The label to display above the input. */
371
+ label?: string;
372
+ /** The ID for the input element, used for the label's htmlFor attribute. */
373
+ id?: string;
374
+ /** Optional class names to apply to the root container. */
375
+ className?: string;
376
+ }
377
+
355
378
  export declare const Dialog: {
356
379
  ({ modal, ...props }: DialogPrimitive.DialogProps): JSX.Element;
357
380
  displayName: string | undefined;