@korsolutions/ui 0.0.23 → 0.0.24

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.
@@ -1,4 +1,4 @@
1
- import { Et as InputStyles, K as AvatarStyles, L as BadgeStyles, M as TextareaPrimitiveBaseProps, P as TextareaStyles, T as DropdownMenuStyles, V as ToastStyles, Z as EmptyStyles, _ as PopoverStyles, a as CalendarStyles, ft as SelectStyles, kt as FieldStyles, rt as CardStyles, ut as SelectRootBaseProps, wt as InputPrimitiveBaseProps, x as PopoverTriggerRef, xt as ButtonStyles, yt as ButtonPrimitiveRootProps } from "../index-CCYJiglk.mjs";
1
+ import { Et as InputStyles, K as AvatarStyles, L as BadgeStyles, M as TextareaPrimitiveBaseProps, P as TextareaStyles, T as DropdownMenuStyles, V as ToastStyles, Z as EmptyStyles, _ as PopoverStyles, a as CalendarStyles, ft as SelectStyles, kt as FieldStyles, r as CalendarRootProps, rt as CardStyles, ut as SelectRootBaseProps, wt as InputPrimitiveBaseProps, x as PopoverTriggerRef, xt as ButtonStyles, yt as ButtonPrimitiveRootProps } from "../index-CCYJiglk.mjs";
2
2
  import "../use-relative-position-DBzhrBU7.mjs";
3
3
  import { t as NumericMaskFormat } from "../use-numeric-mask-B9WZG25o.mjs";
4
4
  import React from "react";
@@ -301,13 +301,13 @@ declare const CalendarVariants: {
301
301
  //#endregion
302
302
  //#region src/components/calendar/calendar.d.ts
303
303
  interface CalendarProps {
304
- value?: Date;
305
- onChange?: (date: Date | undefined) => void;
306
- defaultMonth?: Date;
307
- minDate?: Date;
308
- maxDate?: Date;
309
- variant?: keyof typeof CalendarVariants;
304
+ value?: CalendarRootProps["value"];
305
+ onChange?: CalendarRootProps["onChange"];
306
+ defaultMonth?: CalendarRootProps["defaultMonth"];
307
+ minDate?: CalendarRootProps["minDate"];
308
+ maxDate?: CalendarRootProps["maxDate"];
310
309
  weekDays?: string[];
310
+ variant?: keyof typeof CalendarVariants;
311
311
  }
312
312
  declare function Calendar(props: CalendarProps): React.JSX.Element;
313
313
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korsolutions/ui",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",
@@ -1,15 +1,16 @@
1
1
  import React from "react";
2
- import { CalendarPrimitive } from "@/primitives";
2
+ import { CalendarPrimitive, CalendarRootProps } from "@/primitives";
3
3
  import { CalendarVariants } from "./variants";
4
4
 
5
5
  export interface CalendarProps {
6
- value?: Date;
7
- onChange?: (date: Date | undefined) => void;
8
- defaultMonth?: Date;
9
- minDate?: Date;
10
- maxDate?: Date;
11
- variant?: keyof typeof CalendarVariants;
6
+ value?: CalendarRootProps["value"];
7
+ onChange?: CalendarRootProps["onChange"];
8
+ defaultMonth?: CalendarRootProps["defaultMonth"];
9
+ minDate?: CalendarRootProps["minDate"];
10
+ maxDate?: CalendarRootProps["maxDate"];
12
11
  weekDays?: string[];
12
+
13
+ variant?: keyof typeof CalendarVariants;
13
14
  }
14
15
 
15
16
  export function Calendar(props: CalendarProps) {