@itcase/ui 1.8.148 → 1.8.150
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/{Avatar_cjs_D-M9sW20.js → Avatar_cjs_Dv_yLG9O.js} +1 -1
- package/dist/{Avatar_es_BTvbT36l.js → Avatar_es_Cp4-nxIj.js} +1 -1
- package/dist/{Button_cjs_CrbH_HYn.js → Button_cjs_DDRaYn9R.js} +3 -3
- package/dist/{Button_es_qNbDsXQg.js → Button_es_XkC7cQdA.js} +3 -3
- package/dist/{ChipsGroup_cjs_BNfzAmhc.js → ChipsGroup_cjs_DVizkQ4v.js} +1 -1
- package/dist/{ChipsGroup_es_UTiUhYs7.js → ChipsGroup_es_D3eiXGyK.js} +1 -1
- package/dist/{DatePicker_cjs_BOPN9WVz.js → DatePicker_cjs_jKDgzxWR.js} +7 -13
- package/dist/{DatePicker_es_-aO8EkK8.js → DatePicker_es_yp-h-DUa.js} +7 -13
- package/dist/{DropdownItem_cjs_FsiEMPDs.js → DropdownItem_cjs_u6-29C8x.js} +97 -60
- package/dist/{DropdownItem_es_BBKtNngp.js → DropdownItem_es_D2P4zJJ-.js} +97 -60
- package/dist/{Icon_cjs_DKzT-zmQ.js → Icon_cjs_B5o0K55R.js} +7 -7
- package/dist/{Icon_es_5JUPM7bP.js → Icon_es_BEhzKfrD.js} +7 -7
- package/dist/{Label_cjs_D2YMjCoS.js → Label_cjs_DRIwteHh.js} +1 -1
- package/dist/{Label_es_B5uGQwNN.js → Label_es_DYd2RwDK.js} +1 -1
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +17 -10
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +3 -3
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +2 -2
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +8 -13
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/cjs/context/Notifications.js +4 -4
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +17 -10
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/Modal.js +1 -1
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +2 -2
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +8 -13
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/context/Notifications.js +4 -4
- package/dist/css/components/Button/Button.css +56 -50
- package/dist/css/components/Dropdown/Dropdown.css +1 -9
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +4 -4
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +4 -4
- package/dist/types/components/Dropdown/Dropdown.appearance.d.ts +2 -0
- package/dist/types/components/Dropdown/appearance/dropdownShape.d.ts +3 -0
- package/dist/types/components/Response/Response.constant.d.ts +5 -10
- package/dist/types/config/forms/datepicker.d.ts +5 -5
- package/package.json +4 -4
|
@@ -29,39 +29,27 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
.button {
|
|
32
|
-
&&
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
position: absolute;
|
|
36
|
-
display: flex;
|
|
37
|
-
}
|
|
32
|
+
&&_reset-gap {
|
|
33
|
+
^&__wrapper {
|
|
34
|
+
gap: 0;
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
.button {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
--button-type-$(type)-$(size)-padding,
|
|
57
|
-
var(--button-$(size)-padding)
|
|
58
|
-
);
|
|
59
|
-
gap: var(
|
|
60
|
-
--button-type-$(type)-$(size)-gap,
|
|
61
|
-
var(--button-$(size)-gap)
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
39
|
+
&&_reset-padding {
|
|
40
|
+
^&__wrapper {
|
|
41
|
+
padding: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.button {
|
|
46
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
47
|
+
&_size_$(size) {
|
|
48
|
+
^&__wrapper {
|
|
49
|
+
min-width: var(--button-$(size)-min-width);
|
|
50
|
+
min-height: var(--button-$(size)-min-height);
|
|
51
|
+
padding: var(--button-$(size)-padding);
|
|
52
|
+
gap: var(--button-$(size)-gap);
|
|
65
53
|
}
|
|
66
54
|
}
|
|
67
55
|
}
|
|
@@ -91,13 +79,45 @@
|
|
|
91
79
|
}
|
|
92
80
|
}
|
|
93
81
|
.button {
|
|
94
|
-
|
|
95
|
-
&
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
&&_state {
|
|
83
|
+
&_disabled {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.button {
|
|
88
|
+
&&_state {
|
|
89
|
+
&_loading {
|
|
90
|
+
^^&__loader {
|
|
91
|
+
position: absolute;
|
|
92
|
+
display: flex;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.button {
|
|
98
|
+
@each $type in default, icon, label {
|
|
99
|
+
&_type_$(type) {
|
|
100
|
+
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
101
|
+
&^&_size_$(size) {
|
|
102
|
+
^^&__wrapper {
|
|
103
|
+
min-width: var(
|
|
104
|
+
--button-type-$(type)-$(size)-min-width,
|
|
105
|
+
var(--button-$(size)-min-width)
|
|
106
|
+
);
|
|
107
|
+
min-height: var(
|
|
108
|
+
--button-type-$(type)-$(size)-min-height,
|
|
109
|
+
var(--button-$(size)-min-height)
|
|
110
|
+
);
|
|
111
|
+
padding: var(
|
|
112
|
+
--button-type-$(type)-$(size)-padding,
|
|
113
|
+
var(--button-$(size)-padding)
|
|
114
|
+
);
|
|
115
|
+
gap: var(
|
|
116
|
+
--button-type-$(type)-$(size)-gap,
|
|
117
|
+
var(--button-$(size)-gap)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
101
121
|
}
|
|
102
122
|
}
|
|
103
123
|
}
|
|
@@ -116,20 +136,6 @@
|
|
|
116
136
|
}
|
|
117
137
|
}
|
|
118
138
|
}
|
|
119
|
-
.button {
|
|
120
|
-
&&_reset-padding {
|
|
121
|
-
^&__wrapper {
|
|
122
|
-
padding: 0;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
.button {
|
|
127
|
-
&&_reset-gap {
|
|
128
|
-
^&__wrapper {
|
|
129
|
-
gap: 0;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
139
|
:root {
|
|
134
140
|
/* MainXL */
|
|
135
141
|
--button-transition: all 0.2s ease 0s;
|
|
@@ -66,19 +66,11 @@
|
|
|
66
66
|
align-items: center;
|
|
67
67
|
}
|
|
68
68
|
&-label {
|
|
69
|
+
text-align: left;
|
|
69
70
|
flex-grow: 1;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
.dropdown {
|
|
74
|
-
&__item {
|
|
75
|
-
&_shape {
|
|
76
|
-
&_rounded {
|
|
77
|
-
border-radius: var(--dropdown-item-shape-rounded);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
74
|
.dropdown {
|
|
83
75
|
&__item {
|
|
84
76
|
&_size {
|
|
@@ -20,14 +20,14 @@ type DatePeriodProps = DatePeriodThemeColor & StyleAttributes & {
|
|
|
20
20
|
chipsShape?: ShapeProps;
|
|
21
21
|
className?: string;
|
|
22
22
|
datePeriodIntervalsList: DatePeriodItem[];
|
|
23
|
-
datePeriodValueEnd: DateIso | null;
|
|
24
|
-
datePeriodValueStart: DateIso | null;
|
|
23
|
+
datePeriodValueEnd: Date | DateIso | null;
|
|
24
|
+
datePeriodValueStart: Date | DateIso | null;
|
|
25
25
|
datePickerAppearance?: CompositeAppearanceKey;
|
|
26
26
|
datePickerInputAppearance?: CompositeAppearanceKey;
|
|
27
27
|
datePickerInputFillHover?: FillHoverProps;
|
|
28
28
|
datePickerInputSize?: SizeOptionProps;
|
|
29
29
|
datePickerInputTextSize?: TextSizeProps;
|
|
30
30
|
isSkeleton?: boolean;
|
|
31
|
-
onChangeDatePeriod: (
|
|
31
|
+
onChangeDatePeriod: (dateStart: Date | null, dateEnd: Date | null) => void;
|
|
32
32
|
};
|
|
33
|
-
export type {
|
|
33
|
+
export type { DatePeriodAppearanceType, DatePeriodConfig, DatePeriodProps, DatePeriodThemeColor, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DatePickerProps } from 'react-datepicker';
|
|
3
|
-
import { AppearanceKeysDefault, FillHoverProps, FillProps, IconFillSizeProps, IconSizeProps, ItemColorProps, ShapeProps, SizeProps, TextColorHoverProps, TextColorProps, TextSizeProps, TextWeightProps } from '@itcase/types';
|
|
3
|
+
import { AppearanceKeysDefault, DateIso, FillHoverProps, FillProps, IconFillSizeProps, IconSizeProps, ItemColorProps, ShapeProps, SizeProps, TextColorHoverProps, TextColorProps, TextSizeProps, TextWeightProps } from '@itcase/types';
|
|
4
4
|
import { InputProps } from '../Input/Input.interface';
|
|
5
5
|
interface DatePickerProps extends DatePickerProps {
|
|
6
6
|
customTimeInput?: ReactNode;
|
|
@@ -64,11 +64,11 @@ export interface DatePickerInputProps extends DatePickerProps {
|
|
|
64
64
|
clearLabelTextColorHover?: TextColorHoverProps;
|
|
65
65
|
clearLabelTextSize?: TextSizeProps;
|
|
66
66
|
datePickerProps: DatePickerProps;
|
|
67
|
-
endValue?: string;
|
|
67
|
+
endValue?: string | Date | DateIso;
|
|
68
68
|
inputProps?: InputProps;
|
|
69
69
|
labelTextSize?: TextSizeProps;
|
|
70
|
-
value?: string;
|
|
71
|
-
onChange
|
|
70
|
+
value?: string | Date | DateIso;
|
|
71
|
+
onChange: (dateStart: Date | null, dateEnd: Date | null) => void;
|
|
72
72
|
}
|
|
73
73
|
export interface DatePickerCustomInput {
|
|
74
74
|
clearIcon?: any;
|
|
@@ -3,7 +3,6 @@ declare const RESPONSE_MESSAGES: {
|
|
|
3
3
|
appearance: string;
|
|
4
4
|
title: string;
|
|
5
5
|
desc: string;
|
|
6
|
-
imageSrc: any;
|
|
7
6
|
primaryButtonAppearance: string;
|
|
8
7
|
primaryButtonLabel: string;
|
|
9
8
|
secondaryButtonAppearance: string;
|
|
@@ -30,35 +29,31 @@ declare const RESPONSE_MESSAGES: {
|
|
|
30
29
|
secondaryButtonAppearance: string;
|
|
31
30
|
secondaryButtonLabel: string;
|
|
32
31
|
};
|
|
32
|
+
fail: {
|
|
33
|
+
appearance: string;
|
|
34
|
+
primaryButtonAppearance: string;
|
|
35
|
+
primaryButtonLabel: string;
|
|
36
|
+
};
|
|
33
37
|
nothingFound: {
|
|
34
38
|
appearance: string;
|
|
35
39
|
title: string;
|
|
36
40
|
desc: string;
|
|
37
|
-
imageSrc: any;
|
|
38
41
|
primaryButtonAppearance: string;
|
|
39
42
|
primaryButtonLabel: string;
|
|
40
43
|
secondaryButtonAppearance: string;
|
|
41
44
|
secondaryButtonLabel: string;
|
|
42
45
|
};
|
|
43
|
-
fail: {
|
|
44
|
-
appearance: string;
|
|
45
|
-
imageSrc: any;
|
|
46
|
-
primaryButtonAppearance: string;
|
|
47
|
-
primaryButtonLabel: string;
|
|
48
|
-
};
|
|
49
46
|
empty: {
|
|
50
47
|
appearance: string;
|
|
51
48
|
title: string;
|
|
52
49
|
desc: string;
|
|
53
50
|
code: string;
|
|
54
|
-
imageSrc: any;
|
|
55
51
|
primaryButtonAppearance: string;
|
|
56
52
|
primaryButtonLabel: string;
|
|
57
53
|
};
|
|
58
54
|
warning: {
|
|
59
55
|
appearance: string;
|
|
60
56
|
title: string;
|
|
61
|
-
imageSrc: any;
|
|
62
57
|
primaryButtonAppearance: string;
|
|
63
58
|
primaryButtonLabel: string;
|
|
64
59
|
secondaryButtonAppearance: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare const defaultDatepickerProps: {
|
|
2
2
|
size: string;
|
|
3
|
-
iconSize: number;
|
|
4
|
-
iconFillSize: number;
|
|
5
|
-
iconItemFill: string;
|
|
6
3
|
daySize: string;
|
|
7
4
|
dayTextColor: string;
|
|
8
|
-
dayTextSize: string;
|
|
9
5
|
dayTextShape: string;
|
|
6
|
+
dayTextSize: string;
|
|
7
|
+
iconFillSize: number;
|
|
8
|
+
iconItemFill: string;
|
|
9
|
+
iconSize: number;
|
|
10
10
|
monthTextColor: string;
|
|
11
11
|
monthTextSize: string;
|
|
12
12
|
monthTextWeight: number;
|
|
13
|
+
placeholderTextColor: string;
|
|
13
14
|
yearTextColor: string;
|
|
14
15
|
yearTextSize: string;
|
|
15
16
|
yearTextWeight: number;
|
|
16
|
-
placeholderTextColor: string;
|
|
17
17
|
};
|
|
18
18
|
export { defaultDatepickerProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.150",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.20",
|
|
110
110
|
"clsx": "^2.1.1",
|
|
111
111
|
"date-fns": "^4.1.0",
|
|
112
|
-
"framer-motion": "^12.23.
|
|
112
|
+
"framer-motion": "^12.23.24",
|
|
113
113
|
"js-cookie": "^3.0.5",
|
|
114
114
|
"lodash": "^4.17.21",
|
|
115
115
|
"luxon": "^3.7.2",
|
|
116
|
-
"motion": "^12.23.
|
|
116
|
+
"motion": "^12.23.24",
|
|
117
117
|
"rc-slider": "^11.1.9",
|
|
118
118
|
"react": "^18.3.1",
|
|
119
119
|
"react-dadata": "^2.27.4",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
169
169
|
"eslint": "9.37.0",
|
|
170
170
|
"husky": "^9.1.7",
|
|
171
|
-
"lint-staged": "^16.2.
|
|
171
|
+
"lint-staged": "^16.2.4",
|
|
172
172
|
"prettier": "^3.6.2",
|
|
173
173
|
"react-docgen-typescript": "^2.4.0",
|
|
174
174
|
"rollup": "^4.52.4",
|