asma-ui-datetime 0.2.5 → 0.2.6

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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { DatePickerProps } from './types';
2
- export declare const StyledDatePicker: (props: DatePickerProps) => JSX.Element;
3
+ export declare const StyledDatePicker: (props: DatePickerProps) => import("react").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type Locale } from 'date-fns';
3
- import type { Matcher } from 'react-day-picker';
2
+ import type { DayPickerProps as ReactDayPickerProps, Matcher } from 'react-day-picker';
4
3
  export type IBaseDatePickerInput = {
5
4
  dataTest: string;
6
5
  inputClassName?: string;
@@ -10,7 +9,7 @@ export type IBaseDatePickerInput = {
10
9
  selected: Date | undefined;
11
10
  dateFormat?: string;
12
11
  hideCalendar?: boolean;
13
- locale?: Locale;
12
+ locale?: ReactDayPickerProps['locale'];
14
13
  disabledDays?: Matcher | Matcher[];
15
14
  validateOnCalendarClose?: boolean;
16
15
  onValidatedOnce?: () => void;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  export declare const HelperTextWithTooltip: ({ text, hasError }: {
3
3
  text: React.ReactNode;
4
4
  hasError: boolean;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -1,8 +1,6 @@
1
- import { type CaptionProps } from 'react-day-picker';
2
- import { type Dispatch, type SetStateAction } from 'react';
3
- export declare function CustomCaption(props: CaptionProps & {
4
- month: Date | undefined;
5
- setMonth: Dispatch<SetStateAction<Date | undefined>>;
6
- isNb: boolean;
1
+ /// <reference types="react" />
2
+ import type { MonthCaptionProps } from 'react-day-picker';
3
+ export declare function CustomCaption(props: MonthCaptionProps & {
4
+ children?: React.ReactNode;
7
5
  onClose: ((event: object, reason: 'backdropClick' | 'escapeKeyDown') => void) | undefined;
8
- }): JSX.Element;
6
+ }): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type DropdownProps } from 'react-day-picker';
3
- export declare const StyledCalendarPickerSelectMonth: React.FC<DropdownProps>;
2
+ import type { DropdownProps } from 'react-day-picker';
3
+ export declare function StyledCalendarPickerSelectMonth(props: DropdownProps): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type DropdownProps } from 'react-day-picker';
3
- export declare const StyledCalendarPickerSelectYear: React.FC<DropdownProps>;
2
+ import type { DropdownProps } from 'react-day-picker';
3
+ export declare function StyledCalendarPickerSelectYear(props: DropdownProps): import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function CheckIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function CheckIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function ChevronLeftIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function ChevronLeftIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function ChevronRightIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function ChevronRightIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function ClockOutlineIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function ClockOutlineIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function CloseIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function CloseIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function EraserIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function EraserIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function ExpandIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function ExpandIcon(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function OutlineCalendarMonth(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function OutlineCalendarMonth(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { SVGProps } from 'react';
2
- export declare function OutlineErrorRounded(props: SVGProps<SVGSVGElement>): JSX.Element;
3
+ export declare function OutlineErrorRounded(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { type FormControlProps } from '@mui/material';
2
- export declare const StyledFormControl: (props: FormControlProps) => JSX.Element;
3
+ export declare const StyledFormControl: (props: FormControlProps) => import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { type MenuItemProps } from '@mui/material';
2
- export declare const StyledSelectItem: (item: MenuItemProps) => JSX.Element;
3
+ export declare const StyledSelectItem: (item: MenuItemProps) => import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { type TooltipProps } from '@mui/material';
2
- export declare const StyledTooltip: (props: TooltipProps) => JSX.Element;
3
+ export declare const StyledTooltip: (props: TooltipProps) => import("react").JSX.Element;
@@ -36,5 +36,5 @@ export type StyledButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> &
36
36
  * @param refLink - ref to component
37
37
  * @param dataTest - data-test tag
38
38
  */
39
- export declare const StyledButton: ({ variant, className, size, children, refLink, startIcon, endIcon, dataTest, error, ...otherProps }: StyledButtonProps) => JSX.Element;
39
+ export declare const StyledButton: ({ variant, className, size, children, refLink, startIcon, endIcon, dataTest, error, ...otherProps }: StyledButtonProps) => React.JSX.Element;
40
40
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.2.5",
6
+ "version": "0.2.6",
7
7
  "type": "module",
8
8
  "repository": {
9
9
  "url": "https://github.com/Carasent-ASMA/asma-ui-datetime.git"
@@ -42,21 +42,22 @@
42
42
  },
43
43
  "license": "UNLICENSED",
44
44
  "dependencies": {
45
- "@emotion/react": "^11.11.1",
46
- "@emotion/styled": "^11.11.0",
47
45
  "@fontsource/roboto": "^5.0.4",
48
- "@mui/material": "^5.13.7",
49
46
  "@react-input/mask": "^1.2.5",
50
47
  "clsx": "^1.2.1",
51
48
  "date-fns": "^3.6.0",
52
- "lodash-es": "^4.17.21",
53
- "material-ui-popup-state": "^5.1.2",
49
+ "lodash-es": "^4.18.1",
50
+ "material-ui-popup-state": "^5.3.6",
54
51
  "node": "18.17.0",
55
- "react": "^18.2.0",
56
- "react-day-picker": "^8.10.1",
57
- "react-dom": "^18.2.0"
52
+ "react-day-picker": "^9.14.0",
53
+ "tailwind-merge": "^2.4.0"
58
54
  },
59
55
  "devDependencies": {
56
+ "@emotion/react": "^11.11.1",
57
+ "@emotion/styled": "^11.11.0",
58
+ "@mui/material": "^5.18.0",
59
+ "react": "^18.2.0",
60
+ "react-dom": "^18.2.0",
60
61
  "@changesets/cli": "^2.26.2",
61
62
  "@rollup/plugin-terser": "^0.4.3",
62
63
  "@storybook/addon-a11y": "^7.6.9",
@@ -75,8 +76,8 @@
75
76
  "@storybook/theming": "^7.6.9",
76
77
  "@types/lodash-es": "^4.17.7",
77
78
  "@types/node": "^18.0.3",
78
- "@types/react": "^18.0.37",
79
- "@types/react-dom": "^18.0.11",
79
+ "@types/react": "^19.2.14",
80
+ "@types/react-dom": "^19.2.3",
80
81
  "@typescript-eslint/eslint-plugin": "^5.59.0",
81
82
  "@typescript-eslint/parser": "^5.59.0",
82
83
  "@vitejs/plugin-react": "^4.0.0",
@@ -91,7 +92,6 @@
91
92
  "sass": "^1.77.5",
92
93
  "storybook": "^7.6.9",
93
94
  "storybook-addon-themes": "^6.1.0",
94
- "tailwind-merge": "^2.4.0",
95
95
  "tailwind-scrollbar": "^3.1.0",
96
96
  "tailwindcss": "^3.3.2",
97
97
  "typescript": "^5.0.2",
@@ -105,8 +105,8 @@
105
105
  "@emotion/styled": "^11.*",
106
106
  "@mui/material": "^5.*",
107
107
  "immer": "^9.*",
108
- "react": "^18.*",
109
- "react-dom": "^18.*"
108
+ "react": "^18.0.0 || ^19.0.0",
109
+ "react-dom": "^18.0.0 || ^19.0.0"
110
110
  },
111
111
  "resolutions": {
112
112
  "@types/node": "18.0.3",