asma-ui-datetime 0.2.4 → 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.
- package/dist/asma-ui-datetime.es.js +12 -9
- package/dist/src/components/date-picker/StyledDatePicker.d.ts +2 -1
- package/dist/src/components/date-picker/components/BaseDatePickerInput.d.ts +2 -3
- package/dist/src/components/date-picker/components/HelperTextWithTooltip.d.ts +1 -1
- package/dist/src/components/date-picker/components/StyledCalendarPickerCaption.d.ts +5 -7
- package/dist/src/components/date-picker/components/StyledCalendarPickerSelectMonth.d.ts +2 -2
- package/dist/src/components/date-picker/components/StyledCalendarPickerSelectYear.d.ts +2 -2
- package/dist/src/shared-components/CheckIcon.d.ts +2 -1
- package/dist/src/shared-components/ChevronLeftIcon.d.ts +2 -1
- package/dist/src/shared-components/ChevronRightIcon.d.ts +2 -1
- package/dist/src/shared-components/ClockOutlineIcon.d.ts +2 -1
- package/dist/src/shared-components/CloseIcon.d.ts +2 -1
- package/dist/src/shared-components/EraserIcon.d.ts +2 -1
- package/dist/src/shared-components/ExpandIcon.d.ts +2 -1
- package/dist/src/shared-components/OutlineCalendarMonth.d.ts +2 -1
- package/dist/src/shared-components/OutlineErrorRounded.d.ts +2 -1
- package/dist/src/shared-components/StyledFormControl.d.ts +2 -1
- package/dist/src/shared-components/StyledSelectItem.d.ts +2 -1
- package/dist/src/shared-components/StyledTooltip.d.ts +2 -1
- package/dist/src/shared-components/button/StyledButton.d.ts +1 -1
- package/package.json +14 -16
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
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?:
|
|
12
|
+
locale?: ReactDayPickerProps['locale'];
|
|
14
13
|
disabledDays?: Matcher | Matcher[];
|
|
15
14
|
validateOnCalendarClose?: boolean;
|
|
16
15
|
onValidatedOnce?: () => void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
export declare function CustomCaption(props:
|
|
4
|
-
|
|
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 {
|
|
3
|
-
export declare
|
|
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 {
|
|
3
|
-
export declare
|
|
2
|
+
import type { DropdownProps } from 'react-day-picker';
|
|
3
|
+
export declare function StyledCalendarPickerSelectYear(props: DropdownProps): 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.
|
|
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.
|
|
53
|
-
"material-ui-popup-state": "^5.
|
|
49
|
+
"lodash-es": "^4.18.1",
|
|
50
|
+
"material-ui-popup-state": "^5.3.6",
|
|
54
51
|
"node": "18.17.0",
|
|
55
|
-
"react": "^
|
|
56
|
-
"
|
|
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",
|
|
@@ -71,18 +72,16 @@
|
|
|
71
72
|
"@storybook/preset-create-react-app": "^7.6.9",
|
|
72
73
|
"@storybook/react": "^7.6.9",
|
|
73
74
|
"@storybook/react-vite": "^7.6.9",
|
|
74
|
-
"@storybook/test-runner": "^0.16.0",
|
|
75
75
|
"@storybook/testing-library": "^0.2.2",
|
|
76
76
|
"@storybook/theming": "^7.6.9",
|
|
77
77
|
"@types/lodash-es": "^4.17.7",
|
|
78
78
|
"@types/node": "^18.0.3",
|
|
79
|
-
"@types/react": "^
|
|
80
|
-
"@types/react-dom": "^
|
|
79
|
+
"@types/react": "^19.2.14",
|
|
80
|
+
"@types/react-dom": "^19.2.3",
|
|
81
81
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
82
82
|
"@typescript-eslint/parser": "^5.59.0",
|
|
83
83
|
"@vitejs/plugin-react": "^4.0.0",
|
|
84
84
|
"autoprefixer": "^10.4.14",
|
|
85
|
-
"axe-playwright": "^1.2.3",
|
|
86
85
|
"eslint": "^8.38.0",
|
|
87
86
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
87
|
"eslint-plugin-react-refresh": "^0.3.4",
|
|
@@ -93,7 +92,6 @@
|
|
|
93
92
|
"sass": "^1.77.5",
|
|
94
93
|
"storybook": "^7.6.9",
|
|
95
94
|
"storybook-addon-themes": "^6.1.0",
|
|
96
|
-
"tailwind-merge": "^2.4.0",
|
|
97
95
|
"tailwind-scrollbar": "^3.1.0",
|
|
98
96
|
"tailwindcss": "^3.3.2",
|
|
99
97
|
"typescript": "^5.0.2",
|
|
@@ -107,8 +105,8 @@
|
|
|
107
105
|
"@emotion/styled": "^11.*",
|
|
108
106
|
"@mui/material": "^5.*",
|
|
109
107
|
"immer": "^9.*",
|
|
110
|
-
"react": "^18
|
|
111
|
-
"react-dom": "^18
|
|
108
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
109
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
112
110
|
},
|
|
113
111
|
"resolutions": {
|
|
114
112
|
"@types/node": "18.0.3",
|