@itcase/ui 1.2.1 → 1.2.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.
- package/dist/{Button-BA3ZeUjj.js → Button-BJWuO5uR.js} +1 -1
- package/dist/{Button-VkatyBmt.js → Button-D4y0v6YL.js} +1 -1
- package/dist/{Icon-Co5Mtpt_.js → Icon-Cq4hPF2D.js} +24 -21
- package/dist/{Icon-CsE2-ieX.js → Icon-fTLfvlsK.js} +24 -21
- package/dist/{Input-C7gBdx1m.js → Input-BSpFMsrf.js} +5 -5
- package/dist/{Input-BQ6Plt1n.js → Input-UkM-ag48.js} +5 -5
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Choice.js +7 -7
- package/dist/cjs/components/ContextMenu.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/FormField.js +1 -1
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/LanguageSelector.js +2 -2
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/SiteMenu.js +2 -2
- package/dist/cjs/context/Notifications.js +5 -5
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Choice.js +7 -7
- package/dist/components/ContextMenu.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/FormField.js +1 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/LanguageSelector.js +2 -2
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/SiteMenu.js +2 -2
- package/dist/context/Notifications.js +5 -5
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +8 -7
- package/dist/types/components/Input/Input.interface.d.ts +1 -0
- package/dist/types/context/Notifications.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DatePickerProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { iconFillSizePropsType, iconSizePropsType, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorHoverProps, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
|
|
4
4
|
import { iInputProps } from '../Input/Input.interface';
|
|
5
5
|
interface IDatePickerProps extends DatePickerProps {
|
|
6
|
-
daySize?: tSizeProps;
|
|
7
|
-
monthsShown?: boolean;
|
|
8
|
-
isClearable?: boolean;
|
|
9
|
-
selectsRange?: boolean;
|
|
10
6
|
customTimeInput?: ReactNode;
|
|
7
|
+
daySize?: tSizeProps;
|
|
11
8
|
dayTextColor?: tTextColorProps;
|
|
12
9
|
dayTextShape?: tShapeProps;
|
|
13
10
|
dayTextSize?: tTextSizeProps;
|
|
@@ -28,13 +25,17 @@ interface IDatePickerProps extends DatePickerProps {
|
|
|
28
25
|
inputIconShape?: tShapeProps;
|
|
29
26
|
inputIconSize?: iconSizePropsType;
|
|
30
27
|
inputIconSrc?: string;
|
|
31
|
-
|
|
28
|
+
monthsShown?: boolean;
|
|
32
29
|
monthTextColor?: tTextColorProps;
|
|
33
30
|
monthTextSize?: tTextSizeProps;
|
|
34
31
|
monthTextWeight?: tTextWeightProps;
|
|
32
|
+
popper?: string;
|
|
33
|
+
selectsRange?: boolean;
|
|
35
34
|
yearTextColor?: tTextColorProps;
|
|
36
35
|
yearTextSize?: tTextSizeProps;
|
|
37
36
|
yearTextWeight?: tTextWeightProps;
|
|
37
|
+
isClearable?: boolean;
|
|
38
|
+
isStartDefaultNull?: boolean;
|
|
38
39
|
}
|
|
39
40
|
export interface IDatePickerInputProps {
|
|
40
41
|
className?: string;
|
|
@@ -82,9 +83,9 @@ export interface IDatePickerCustomInput {
|
|
|
82
83
|
inputIconSize?: iconSizePropsType;
|
|
83
84
|
inputIconSrc?: string;
|
|
84
85
|
inputProps?: iInputProps;
|
|
85
|
-
isClearable?: boolean;
|
|
86
86
|
labelTextSize?: tTextSizeProps;
|
|
87
87
|
value?: string;
|
|
88
|
+
isClearable?: boolean;
|
|
88
89
|
}
|
|
89
90
|
export interface IDatePickerInputIcon {
|
|
90
91
|
inputIcon?: any;
|
|
@@ -7,13 +7,13 @@ export namespace NotificationsProvider {
|
|
|
7
7
|
}
|
|
8
8
|
export function useNotifications(): never[];
|
|
9
9
|
export function useNotificationsAPI(): {
|
|
10
|
-
hideNotifications: () => void;
|
|
11
|
-
showNotification: () => void;
|
|
10
|
+
hideNotifications: (targetId: any) => void;
|
|
12
11
|
notificationStatuses: {
|
|
13
12
|
error: string;
|
|
14
13
|
info: string;
|
|
15
14
|
success: string;
|
|
16
15
|
warning: string;
|
|
17
16
|
};
|
|
17
|
+
showNotification: (notification: any, onClose: any) => void;
|
|
18
18
|
};
|
|
19
19
|
import PropTypes from 'prop-types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"registry": "https://registry.npmjs.org/"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@itcase/common": "^1.2.
|
|
92
|
+
"@itcase/common": "^1.2.8",
|
|
93
93
|
"clsx": "^2.1.1",
|
|
94
94
|
"html5-boilerplate": "^9.0.1",
|
|
95
95
|
"js-cookie": "^3.0.5",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"react-scroll": "^1.9.0",
|
|
112
112
|
"react-scrollbars-custom": "^4.1.1",
|
|
113
113
|
"react-select": "^5.8.0",
|
|
114
|
-
"swiper": "^11.1.
|
|
114
|
+
"swiper": "^11.1.10",
|
|
115
115
|
"uuid": "^10.0.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
145
145
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
146
146
|
"eslint": "9.9.0",
|
|
147
|
-
"husky": "^9.1.
|
|
147
|
+
"husky": "^9.1.5",
|
|
148
148
|
"lint-staged": "^15.2.9",
|
|
149
149
|
"npm": "^10.8.2",
|
|
150
150
|
"postcss": "^8.4.41",
|
|
@@ -165,17 +165,17 @@
|
|
|
165
165
|
"postcss-nested-ancestors": "^3.0.0",
|
|
166
166
|
"postcss-normalize": "^10.0.1",
|
|
167
167
|
"postcss-prepend-imports": "^1.0.1",
|
|
168
|
-
"postcss-preset-env": "^10.0.
|
|
168
|
+
"postcss-preset-env": "^10.0.2",
|
|
169
169
|
"postcss-pxtorem": "^6.1.0",
|
|
170
170
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
171
171
|
"postcss-sort-media-queries": "^5.2.0",
|
|
172
172
|
"prettier": "3.3.3",
|
|
173
|
-
"rollup": "^4.
|
|
173
|
+
"rollup": "^4.21.0",
|
|
174
174
|
"rollup-plugin-copy": "^3.5.0",
|
|
175
175
|
"rollup-plugin-dts": "^6.1.1",
|
|
176
176
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
177
177
|
"rollup-preserve-directives": "^1.1.1",
|
|
178
|
-
"semantic-release": "^24.
|
|
178
|
+
"semantic-release": "^24.1.0",
|
|
179
179
|
"stylelint": "^16.8.2",
|
|
180
180
|
"typescript": "^5.5.4"
|
|
181
181
|
}
|