@datacrest/dcuikit 1.0.31 → 1.0.33

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.
@@ -7,6 +7,7 @@ export interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
7
7
  checked?: boolean;
8
8
  marginRight?: 'small' | 'medium' | 'large';
9
9
  marginLeft?: 'small' | 'medium' | 'large';
10
+ label?: string | React.ReactNode;
10
11
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
11
12
  }
12
13
  declare const Checkbox: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,16 @@
1
- export declare const DEFAULT_DATE_FORMAT = "PPP";
1
+ export declare const DEFAULT_DATE_FORMAT = "MM/dd/yyyy";
2
+ export declare const DATE_FORMATS: {
3
+ readonly US: "MM/dd/yyyy";
4
+ readonly EU: "dd/MM/yyyy";
5
+ readonly ISO: "yyyy-MM-dd";
6
+ readonly LONG: "MMMM d, yyyy";
7
+ readonly SHORT: "MMM d, yyyy";
8
+ readonly FULL: "EEEE, MMMM d, yyyy";
9
+ readonly COMPACT: "MM/dd/yy";
10
+ readonly WITH_TIME: "MM/dd/yyyy HH:mm";
11
+ readonly PPP: "PPP";
12
+ };
13
+ export declare const formatDate: (date: Date, formatString: string) => string;
2
14
  export declare const MONTH_OPTIONS: {
3
15
  id: string;
4
16
  label: string;
@@ -0,0 +1 @@
1
+ export declare const normalizeDate: (date: Date | undefined) => Date | undefined;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
2
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "textAlign" | "maxLength" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
3
3
  value?: string;
4
4
  onChange?: (newValue: string) => unknown;
5
5
  maxLength: number;
@@ -12,7 +12,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
12
12
  } & {
13
13
  render: (props: import("input-otp").RenderProps) => React.ReactNode;
14
14
  children?: never;
15
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
15
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "textAlign" | "maxLength" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
16
16
  value?: string;
17
17
  onChange?: (newValue: string) => unknown;
18
18
  maxLength: number;