@paygreen/pgui 2.1.2 → 2.1.3

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.
Files changed (38) hide show
  1. package/dist/cjs/index.js +8571 -81
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/DayPicker/index.d.ts +3 -0
  4. package/dist/cjs/types/components/InputDayPicker/index.d.ts +16 -0
  5. package/dist/cjs/types/components/Select/index.d.ts +2 -0
  6. package/dist/cjs/types/components/index.d.ts +2 -0
  7. package/dist/cjs/types/index.d.ts +1 -0
  8. package/dist/cjs/types/layout/TopBar/index.d.ts +10 -0
  9. package/dist/cjs/types/layout/index.d.ts +1 -0
  10. package/dist/cjs/types/theme/components/button.d.ts +0 -6
  11. package/dist/cjs/types/theme/externals/index.d.ts +1 -0
  12. package/dist/cjs/types/theme/externals/reactDayPicker.d.ts +2 -0
  13. package/dist/cjs/types/theme/externals-css.d.ts +1 -0
  14. package/dist/cjs/types/theme/foundations/colors.d.ts +1 -0
  15. package/dist/cjs/types/theme/foundations/index.d.ts +1 -0
  16. package/dist/cjs/types/theme/index.d.ts +1 -0
  17. package/dist/cjs/types/theme/styles.d.ts +2 -0
  18. package/dist/cjs/types/utils/date.d.ts +1 -0
  19. package/dist/esm/index.js +8568 -84
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/types/components/DayPicker/index.d.ts +3 -0
  22. package/dist/esm/types/components/InputDayPicker/index.d.ts +16 -0
  23. package/dist/esm/types/components/Select/index.d.ts +2 -0
  24. package/dist/esm/types/components/index.d.ts +2 -0
  25. package/dist/esm/types/index.d.ts +1 -0
  26. package/dist/esm/types/layout/TopBar/index.d.ts +10 -0
  27. package/dist/esm/types/layout/index.d.ts +1 -0
  28. package/dist/esm/types/theme/components/button.d.ts +0 -6
  29. package/dist/esm/types/theme/externals/index.d.ts +1 -0
  30. package/dist/esm/types/theme/externals/reactDayPicker.d.ts +2 -0
  31. package/dist/esm/types/theme/externals-css.d.ts +1 -0
  32. package/dist/esm/types/theme/foundations/colors.d.ts +1 -0
  33. package/dist/esm/types/theme/foundations/index.d.ts +1 -0
  34. package/dist/esm/types/theme/index.d.ts +1 -0
  35. package/dist/esm/types/theme/styles.d.ts +2 -0
  36. package/dist/esm/types/utils/date.d.ts +1 -0
  37. package/dist/index.d.ts +32 -3
  38. package/package.json +3 -2
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { DayPickerProps } from 'react-day-picker';
3
+ export declare const DayPicker: (props: DayPickerProps) => JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { InputProps, PopoverProps } from '@chakra-ui/react';
3
+ import { DayPickerSingleProps, DaySelectionMode } from 'react-day-picker';
4
+ export declare type SingleDayPickerProps = {
5
+ mode?: DaySelectionMode;
6
+ } & DayPickerSingleProps;
7
+ export declare type InputDayPickerProps = {
8
+ isDisabled?: boolean;
9
+ popoverProps?: PopoverProps;
10
+ inputProps?: InputProps;
11
+ dayPickerProps?: SingleDayPickerProps;
12
+ dateFormat?: string;
13
+ value?: string | '';
14
+ onChange?: Dispatch<SetStateAction<string | undefined>>;
15
+ };
16
+ export declare const InputDayPicker: ({ isDisabled, popoverProps, inputProps, dayPickerProps, dateFormat, value, onChange, }: InputDayPickerProps) => JSX.Element;
@@ -13,6 +13,7 @@ export declare type SelectProps<Option, IsMulti extends boolean = false, Group e
13
13
  loadOptions?: (input: unknown) => TODO;
14
14
  defaultOptions?: unknown | boolean;
15
15
  debounceDelay?: number;
16
+ variant?: 'unstyled' | 'filled' | 'outlined';
16
17
  } & Props<Option, IsMulti, Group> & Omit<BoxProps, 'defaultValue'>;
17
18
  export declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: {
18
19
  isAsync?: boolean | undefined;
@@ -23,6 +24,7 @@ export declare const Select: <Option, IsMulti extends boolean = false, Group ext
23
24
  loadOptions?: ((input: unknown) => TODO) | undefined;
24
25
  defaultOptions?: unknown | boolean;
25
26
  debounceDelay?: number | undefined;
27
+ variant?: "unstyled" | "filled" | "outlined" | undefined;
26
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" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom" | "theme"> & {
27
29
  placeholder?: React.ReactNode;
28
30
  tabIndex?: number | undefined;
@@ -1,6 +1,8 @@
1
1
  export * from './ActionsButton';
2
2
  export * from './DataList';
3
+ export * from './DayPicker';
3
4
  export * from './FormGroup';
5
+ export * from './InputDayPicker';
4
6
  export * from './Pagination';
5
7
  export * from './SearchInput';
6
8
  export * from './Select';
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
+ export * from './layout';
2
3
  export * from './theme';
@@ -0,0 +1,10 @@
1
+ import { ReactComponentElement } from 'react';
2
+ import { FlexProps, StackProps } from '@chakra-ui/react';
3
+ export declare type TopBarBackActionProps = {
4
+ backAction?: () => void;
5
+ rightInformation?: ReactComponentElement<any>;
6
+ } & FlexProps;
7
+ export declare const TopBar: ({ ...props }: StackProps) => JSX.Element;
8
+ export declare const TopBarFirstElement: ({ ...props }: FlexProps) => JSX.Element;
9
+ export declare const TopBarLastElement: ({ ...props }: StackProps) => JSX.Element;
10
+ export declare const TopBarBackAction: ({ backAction, title, rightInformation, ...rest }: TopBarBackActionProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TopBar';
@@ -91,9 +91,6 @@ declare const _default: {
91
91
  };
92
92
  };
93
93
  '@white': (props: any) => {
94
- borderWidth: string;
95
- borderStyle: string;
96
- borderColor: string;
97
94
  bg: string;
98
95
  color: string;
99
96
  _focus: {
@@ -111,9 +108,6 @@ declare const _default: {
111
108
  };
112
109
  };
113
110
  '@whiteNeutral': (props: any) => {
114
- borderWidth: string;
115
- borderStyle: string;
116
- borderColor: string;
117
111
  bg: string;
118
112
  color: string;
119
113
  _focus: {
@@ -0,0 +1 @@
1
+ export { reactDayPicker } from './reactDayPicker';
@@ -0,0 +1,2 @@
1
+ import { Styles } from '@chakra-ui/theme-tools';
2
+ export declare const reactDayPicker: Styles['global'];
@@ -0,0 +1 @@
1
+ import 'react-day-picker/dist/style.css';
@@ -62,4 +62,5 @@ export declare const colors: {
62
62
  gradients: {
63
63
  primary: string;
64
64
  };
65
+ background: string;
65
66
  };
@@ -81,6 +81,7 @@ declare const foundations: {
81
81
  gradients: {
82
82
  primary: string;
83
83
  };
84
+ background: string;
84
85
  };
85
86
  };
86
87
  export default foundations;
@@ -1 +1,2 @@
1
+ import './externals-css';
1
2
  export * from './theme';
@@ -0,0 +1,2 @@
1
+ import { Styles } from '@chakra-ui/theme-tools';
2
+ export declare const styles: Styles;
@@ -0,0 +1 @@
1
+ export declare const dateFormat = "dd/MM/yyyy";