@paygreen/pgui 2.8.2 → 2.9.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.
- package/dist/cjs/index.js +227 -6302
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Card/index.d.ts +2 -2
- package/dist/cjs/types/components/DayPicker/index.d.ts +14 -2
- package/dist/cjs/types/components/InputDayPicker/index.d.ts +2 -1
- package/dist/cjs/types/components/Select/index.d.ts +2 -2
- package/dist/esm/index.js +230 -6305
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Card/index.d.ts +2 -2
- package/dist/esm/types/components/DayPicker/index.d.ts +14 -2
- package/dist/esm/types/components/InputDayPicker/index.d.ts +2 -1
- package/dist/esm/types/components/Select/index.d.ts +2 -2
- package/dist/index.d.ts +19 -8
- package/package.json +1 -1
- package/dist/cjs/types/components/NewDayPicker/index.d.ts +0 -14
- package/dist/esm/types/components/NewDayPicker/index.d.ts +0 -14
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const Card: (props:
|
|
2
|
+
import { CardProps } from '@chakra-ui/react';
|
|
3
|
+
export declare const Card: (props: CardProps) => JSX.Element;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import 'dayjs/locale/en';
|
|
3
|
+
import 'dayjs/locale/fr';
|
|
4
|
+
export type DayPickerProps = {
|
|
5
|
+
defaultValue?: string | Date;
|
|
6
|
+
onChange: (e: string | undefined) => void;
|
|
7
|
+
locale?: string;
|
|
8
|
+
customFormat?: string;
|
|
9
|
+
withTime?: boolean;
|
|
10
|
+
minDate?: Date | null;
|
|
11
|
+
maxDate?: Date | null;
|
|
12
|
+
calendarFunc?: (date: any) => 'after-max-date' | 'before-min-date' | undefined;
|
|
13
|
+
fieldRef?: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const DayPicker: ({ defaultValue, onChange, locale, customFormat, withTime, minDate, maxDate, calendarFunc, fieldRef, ...props }: DayPickerProps) => JSX.Element;
|
|
@@ -12,5 +12,6 @@ export type InputDayPickerProps = {
|
|
|
12
12
|
minDate?: Date | null | undefined;
|
|
13
13
|
maxDate?: Date | null | undefined;
|
|
14
14
|
calendarFunc?: (date: any) => 'after-max-date' | 'before-min-date' | undefined;
|
|
15
|
+
isDisabled?: boolean;
|
|
15
16
|
} & InputProps;
|
|
16
|
-
export declare const InputDayPicker: ({ name, placeholder, value, onChange, locale, variant, format, withTime, minDate, maxDate, calendarFunc, ...inputProps }: InputDayPickerProps) => JSX.Element;
|
|
17
|
+
export declare const InputDayPicker: ({ name, placeholder, value, onChange, locale, variant, format, withTime, minDate, maxDate, calendarFunc, isDisabled, ...inputProps }: InputDayPickerProps) => JSX.Element;
|
|
@@ -25,7 +25,7 @@ export declare const Select: <Option, IsMulti extends boolean = false, Group ext
|
|
|
25
25
|
defaultOptions?: unknown | boolean;
|
|
26
26
|
debounceDelay?: number | undefined;
|
|
27
27
|
variant?: "unstyled" | "filled" | "outlined" | undefined;
|
|
28
|
-
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"
|
|
28
|
+
} & Omit<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "theme" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
29
29
|
placeholder?: React.ReactNode;
|
|
30
30
|
tabIndex?: number | undefined;
|
|
31
31
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
@@ -71,7 +71,7 @@ export declare const Select: <Option, IsMulti extends boolean = false, Group ext
|
|
|
71
71
|
}) => string) | undefined;
|
|
72
72
|
styles?: import("react-select").StylesConfig<Option, IsMulti, Group> | undefined;
|
|
73
73
|
tabSelectsValue?: boolean | undefined;
|
|
74
|
-
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"
|
|
74
|
+
} & {}, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<Option, IsMulti, Group>, "aria-label" | "form" | "autoFocus" | "name" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "inputValue" | "theme" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
|
|
75
75
|
placeholder?: React.ReactNode;
|
|
76
76
|
tabIndex?: number | undefined;
|
|
77
77
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|