@itcase/ui 1.8.0 → 1.8.1

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 (56) hide show
  1. package/dist/{Button-DJxd2_t4.js → Button-CWPTzaG2.js} +1 -1
  2. package/dist/{Button-K5n8BI_w.js → Button-DHOZJDHv.js} +1 -1
  3. package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
  4. package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
  5. package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
  6. package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
  7. package/dist/{Loader-CZVsMYl6.js → Loader-CjT6-r3I.js} +1 -1
  8. package/dist/{Loader-BnhUh-g6.js → Loader-Dquhwxz4.js} +1 -1
  9. package/dist/cjs/components/Button.js +2 -2
  10. package/dist/cjs/components/Choice.js +54 -44
  11. package/dist/cjs/components/CookiesWarning.js +2 -2
  12. package/dist/cjs/components/DadataHintField.js +1 -1
  13. package/dist/cjs/components/DatePicker.js +13 -8
  14. package/dist/cjs/components/Dropdown.js +1 -1
  15. package/dist/cjs/components/Grid.js +5 -5
  16. package/dist/cjs/components/Input.js +1 -1
  17. package/dist/cjs/components/Loader.js +1 -1
  18. package/dist/cjs/components/Modal.js +1 -1
  19. package/dist/cjs/components/Pagination.js +15 -47
  20. package/dist/cjs/components/Response.js +2 -2
  21. package/dist/cjs/context/Notifications.js +3 -1
  22. package/dist/components/Button.js +2 -2
  23. package/dist/components/Choice.js +55 -45
  24. package/dist/components/CookiesWarning.js +2 -2
  25. package/dist/components/DadataHintField.js +1 -1
  26. package/dist/components/DatePicker.js +13 -8
  27. package/dist/components/Dropdown.js +1 -1
  28. package/dist/components/Grid.js +5 -5
  29. package/dist/components/Input.js +1 -1
  30. package/dist/components/Loader.js +1 -1
  31. package/dist/components/Modal.js +1 -1
  32. package/dist/components/Pagination.js +15 -47
  33. package/dist/components/Response.js +2 -2
  34. package/dist/context/Notifications.js +3 -1
  35. package/dist/css/components/Choice/Choice.css +32 -40
  36. package/dist/css/components/Choice/css/__item/choice__item.css +5 -16
  37. package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
  38. package/dist/css/components/DatePicker/DatePicker.css +3 -6
  39. package/dist/css/components/Dropdown/Dropdown.css +16 -25
  40. package/dist/css/components/Grid/Grid.css +50 -8
  41. package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
  42. package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
  43. package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
  44. package/dist/css/components/Input/Input.css +3 -0
  45. package/dist/css/components/Pagination/Pagination.css +10 -8
  46. package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
  47. package/dist/css/styles/fill/fill_active.css +14 -0
  48. package/dist/css/styles/fill/fill_active_hover.css +50 -0
  49. package/dist/css/styles/fill/fill_hover.css +33 -0
  50. package/dist/types/components/Choice/appearance/choiceAccent.d.ts +11 -0
  51. package/dist/types/components/Choice/appearance/choiceSurface.d.ts +22 -0
  52. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +29 -2
  53. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +30 -0
  54. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -0
  55. package/dist/types/context/Notifications.d.ts +3 -2
  56. package/package.json +16 -16
@@ -5,18 +5,21 @@
5
5
  align-items: center;
6
6
  &__container {
7
7
  padding: 0;
8
- margin: 60px 0;
9
8
  display: flex;
10
9
  list-style: none;
11
- gap: 16px;
10
+ gap: 12px;
12
11
  }
13
12
  &__count {
14
13
  display: flex;
15
14
  align-items: center;
15
+ gap: 8px;
16
+ &-text {
17
+ color: var(--surface-text-primary);
18
+ display: block;
19
+ }
16
20
  }
17
21
  &__input {
18
22
  background: var(--color-surface-primary);
19
- padding: 3px 7px;
20
23
  border: solid 1px
21
24
  var(--pagination-input-color, --color-surface-border-tertiary);
22
25
  border-radius: 8px;
@@ -39,12 +42,11 @@
39
42
  }
40
43
  .pagination {
41
44
  &__container {
42
- margin: var(--paginator-margin, initial);
45
+ margin: var(--paginator-margin);
43
46
  ^&__item {
44
- min-width: var(--paginator-item-width);
45
- min-height: var(--paginator-item-height);
47
+ width: var(--paginator-item-width);
48
+ height: var(--paginator-item-height);
46
49
  background: var(--paginator-item-default-fill);
47
- padding: 0 8px;
48
50
  border: var(
49
51
  --paginator-item-border,
50
52
  solid 1px var(--paginator-item-default-border)
@@ -70,7 +72,7 @@
70
72
  display: flex;
71
73
  justify-content: center;
72
74
  align-items: center;
73
- @mixin text-l;
75
+ @mixin text-m;
74
76
  }
75
77
  }
76
78
  }
@@ -1,11 +1,10 @@
1
1
  .pagination {
2
2
  &__container {
3
- margin: var(--paginator-margin, initial);
3
+ margin: var(--paginator-margin);
4
4
  ^&__item {
5
- min-width: var(--paginator-item-width);
6
- min-height: var(--paginator-item-height);
5
+ width: var(--paginator-item-width);
6
+ height: var(--paginator-item-height);
7
7
  background: var(--paginator-item-default-fill);
8
- padding: 0 8px;
9
8
  border: var(
10
9
  --paginator-item-border,
11
10
  solid 1px var(--paginator-item-default-border)
@@ -31,7 +30,7 @@
31
30
  display: flex;
32
31
  justify-content: center;
33
32
  align-items: center;
34
- @mixin text-l;
33
+ @mixin text-m;
35
34
  }
36
35
  }
37
36
  }
@@ -3,6 +3,20 @@
3
3
  @each $type in accent, primary, secondary, tertiary, quaternary, quinary,
4
4
  senary, surface, error, success, warning, info, danger, disabled, gradient {
5
5
  &_$(type) {
6
+ &-item {
7
+ @each $color in primary, secondary, tertiary, quaternary, quinary,
8
+ senary, accent, disabled, hover {
9
+ &-$(color) {
10
+ background: var(--color-$(type)-item-$(color));
11
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65,
12
+ 75, 80, 85, 90, 95 {
13
+ &$(alpha) {
14
+ background: var(--color-$(type)-item-$(color)-$(alpha));
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
6
20
  @each $color in primary, secondary, tertiary, quaternary, quinary,
7
21
  senary, accent, active {
8
22
  &-$(color) {
@@ -4,6 +4,56 @@
4
4
  @each $type in accent, primary, secondary, tertiary, quaternary, quinary,
5
5
  senary, surface, error, success, warning, info, danger, gradient {
6
6
  &_$(type) {
7
+ &-item {
8
+ @each $color in primary, secondary, tertiary, quaternary, quinary,
9
+ senary, accent, disabled, hover {
10
+ &-$(color) {
11
+ &:hover {
12
+ background: var(--color-$(type)-item-$(color));
13
+ }
14
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
15
+ 65, 75, 80, 85, 90, 95 {
16
+ &$(alpha) {
17
+ &:hover {
18
+ background: var(--color-$(type)-item-$(color)-$(alpha));
19
+ }
20
+ }
21
+ }
22
+ &-hover {
23
+ &:hover {
24
+ background: var(--color-$(type)-item-$(color)-hover);
25
+ }
26
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
27
+ 65, 75, 80, 85, 90, 95 {
28
+ &$(alpha) {
29
+ &:hover {
30
+ background: var(
31
+ --color-$(type)-item-$(color)-$(alpha)-hover
32
+ );
33
+ }
34
+ }
35
+ }
36
+ &-active {
37
+ &:hover {
38
+ background: var(
39
+ --color-$(type)-item-$(color)-active-hover
40
+ );
41
+ }
42
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55,
43
+ 60, 65, 75, 80, 85, 90, 95 {
44
+ &$(alpha) {
45
+ &:hover {
46
+ background: var(
47
+ --color-$(type)-item-$(color)-$(alpha)-active-hover
48
+ );
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
7
57
  @each $color in primary, secondary, tertiary, quaternary {
8
58
  &-$(color) {
9
59
  &:hover {
@@ -3,6 +3,39 @@
3
3
  @each $type in accent, primary, secondary, tertiary, quaternary, quinary,
4
4
  senary, surface, error, success, warning, info, danger, gradient {
5
5
  &_$(type) {
6
+ &-item {
7
+ @each $color in primary, secondary, tertiary, quaternary, quinary,
8
+ senary, accent, disabled, hover {
9
+ &-$(color) {
10
+ &:hover {
11
+ background: var(--color-$(type)-item-$(color));
12
+ }
13
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65,
14
+ 75, 80, 85, 90, 95 {
15
+ &$(alpha) {
16
+ &:hover {
17
+ background: var(--color-$(type)-item-$(color)-$(alpha));
18
+ }
19
+ }
20
+ }
21
+ &-hover {
22
+ &:hover {
23
+ background: var(--color-$(type)-item-$(color)-hover);
24
+ }
25
+ @each $alpha in 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60,
26
+ 65, 75, 80, 85, 90, 95 {
27
+ &$(alpha) {
28
+ &:hover {
29
+ background: var(
30
+ --color-$(type)-item-$(color)-$(alpha)-hover
31
+ );
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
6
39
  @each $color in primary, secondary, tertiary, quaternary, quinary,
7
40
  senary, accent, disabled, hover {
8
41
  &-$(color) {
@@ -0,0 +1,11 @@
1
+ declare const choiceAppearanceAccent: {
2
+ accentPrimary: {
3
+ fill: string;
4
+ fillActive: string;
5
+ labelTextActiveColor: string;
6
+ labelTextColor: string;
7
+ labelTextSize: string;
8
+ borderColor: string;
9
+ };
10
+ };
11
+ export { choiceAppearanceAccent };
@@ -0,0 +1,22 @@
1
+ declare const choiceAppearanceSurface: {
2
+ surfacePrimary: {
3
+ fill: string;
4
+ fillItem: string;
5
+ fillItemActive: string;
6
+ fillItemActiveHover: string;
7
+ fillItemHover: string;
8
+ labelTextActiveColor: string;
9
+ labelTextColor: string;
10
+ labelTextSize: string;
11
+ };
12
+ surfaceSecondary: {
13
+ fill: string;
14
+ fillItem: string;
15
+ fillItemActive: string;
16
+ fillItemHover: string;
17
+ labelTextActiveColor: string;
18
+ labelTextColor: string;
19
+ labelTextSize: string;
20
+ };
21
+ };
22
+ export { choiceAppearanceSurface };
@@ -1,2 +1,29 @@
1
- import { DatePickerAppearanceType } from './DatePicker.interface';
2
- export declare const datePickerAppearance: DatePickerAppearanceType;
1
+ export declare const datePickerAppearance: {
2
+ surfacePrimary: {
3
+ datePicker: {
4
+ daySize: string;
5
+ dayTextColor: string;
6
+ dayTextShape: string;
7
+ dayTextSize: string;
8
+ iconItemFill: string;
9
+ monthTextColor: string;
10
+ monthTextSize: string;
11
+ monthTextWeight: string;
12
+ yearTextColor: string;
13
+ yearTextSize: string;
14
+ yearTextWeight: string;
15
+ };
16
+ input: {
17
+ width: string;
18
+ size: string;
19
+ fill: string;
20
+ fillHover: string;
21
+ borderColor: string;
22
+ textColor: string;
23
+ textSize: string;
24
+ caret: string;
25
+ placeholderTextColor: string;
26
+ shape: string;
27
+ };
28
+ };
29
+ };
@@ -0,0 +1,30 @@
1
+ declare const datePickerAppearanceSurface: {
2
+ surfacePrimary: {
3
+ datePicker: {
4
+ daySize: string;
5
+ dayTextColor: string;
6
+ dayTextShape: string;
7
+ dayTextSize: string;
8
+ iconItemFill: string;
9
+ monthTextColor: string;
10
+ monthTextSize: string;
11
+ monthTextWeight: string;
12
+ yearTextColor: string;
13
+ yearTextSize: string;
14
+ yearTextWeight: string;
15
+ };
16
+ input: {
17
+ width: string;
18
+ size: string;
19
+ fill: string;
20
+ fillHover: string;
21
+ borderColor: string;
22
+ textColor: string;
23
+ textSize: string;
24
+ caret: string;
25
+ placeholderTextColor: string;
26
+ shape: string;
27
+ };
28
+ };
29
+ };
30
+ export { datePickerAppearanceSurface };
@@ -0,0 +1,34 @@
1
+ declare const paginationAppearanceSurface: {
2
+ surfacePrimary: {
3
+ fill: string;
4
+ fillHover: string;
5
+ gap: string;
6
+ marginPagesDisplayed: number;
7
+ pageCountDesc: string;
8
+ pageCountDescTextColor: string;
9
+ pageCountDescTextSize: string;
10
+ pageCountDropdownAlignment: string;
11
+ pageCountDropdownElevation: number;
12
+ pageCountDropdownFill: string;
13
+ pageCountDropdownItemDividerFill: string;
14
+ pageCountDropdownItemDividerSize: string;
15
+ pageCountDropdownItemFill: string;
16
+ pageCountDropdownItemFillActive: string;
17
+ pageCountDropdownItemFillActiveHover: string;
18
+ pageCountDropdownItemFillHover: string;
19
+ pageCountDropdownItemLabelAlign: string;
20
+ pageCountDropdownItemLabelColor: string;
21
+ pageCountDropdownItemLabelColorActive: string;
22
+ pageCountDropdownItemLabelSize: string;
23
+ pageCountDropdownItemShowDivider: boolean;
24
+ pageCountDropdownItemSize: string;
25
+ pageCountDropdownItemWidth: string;
26
+ pageCountDropdownShape: string;
27
+ pageCountInputIconColor: string;
28
+ pageCountInputIconFillSize: string;
29
+ pageCountInputTextColor: string;
30
+ pageCountInputTextSize: string;
31
+ pageRangeDisplayed: number;
32
+ };
33
+ };
34
+ export { paginationAppearanceSurface };
@@ -1,9 +1,10 @@
1
- import type { NotificationsProviderProps } from './Notifications.interface';
1
+ import type { SimpleCallback } from '@itcase/types';
2
+ import type { CreatedNotification, NotificationsProviderProps } from './Notifications.interface';
2
3
  declare function NotificationsProvider(props: NotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
3
4
  declare function useNotifications(): never[];
4
5
  declare function useNotificationsAPI(): {
5
6
  hideNotifications: () => void;
6
- showNotification: () => void;
7
+ showNotification: (notification: string | CreatedNotification, onClose?: SimpleCallback) => void;
7
8
  notificationStatuses: {
8
9
  error: string;
9
10
  info: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -96,21 +96,21 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "@emotion/is-prop-valid": "^1.3.1",
99
- "@itcase/common": "^1.2.22",
100
- "@itcase/config": "^1.0.40",
99
+ "@itcase/common": "^1.2.23",
100
+ "@itcase/config": "^1.0.41",
101
101
  "@itcase/icons": "^1.0.29",
102
102
  "@itcase/storybook-config": "^1.1.9",
103
103
  "@itcase/tokens-am": "^1.1.3",
104
104
  "@itcase/tokens-baikal": "^1.1.3",
105
- "@itcase/types": "^1.0.2",
105
+ "@itcase/types": "^1.0.3",
106
106
  "clsx": "^2.1.1",
107
107
  "date-fns": "^4.1.0",
108
108
  "eslint-import-resolver-alias": "^1.1.2",
109
109
  "eslint-plugin-import": "^2.31.0",
110
- "framer-motion": "^12.9.1",
110
+ "framer-motion": "^12.11.0",
111
111
  "js-cookie": "^3.0.5",
112
112
  "lodash": "^4.17.21",
113
- "motion": "^12.9.1",
113
+ "motion": "^12.11.0",
114
114
  "rc-slider": "^11.1.8",
115
115
  "react": "^18.3.1",
116
116
  "react-dadata": "^2.27.4",
@@ -118,7 +118,7 @@
118
118
  "react-dom": "^18.3.1",
119
119
  "react-indiana-drag-scroll": "^3.0.3-alpha",
120
120
  "react-inlinesvg": "^4.2.0",
121
- "react-modal-sheet": "^4.0.1",
121
+ "react-modal-sheet": "^4.4.0",
122
122
  "react-modern-drawer": "^1.4.0",
123
123
  "react-otp-input": "^3.1.1",
124
124
  "react-paginate": "^8.3.0",
@@ -130,11 +130,11 @@
130
130
  "uuid": "^11.1.0"
131
131
  },
132
132
  "devDependencies": {
133
- "@babel/core": "^7.26.10",
134
- "@babel/preset-env": "^7.26.9",
135
- "@babel/preset-react": "^7.26.3",
136
- "@commitlint/cli": "^19.8.0",
137
- "@commitlint/config-conventional": "^19.8.0",
133
+ "@babel/core": "^7.27.1",
134
+ "@babel/preset-env": "^7.27.2",
135
+ "@babel/preset-react": "^7.27.1",
136
+ "@commitlint/cli": "^19.8.1",
137
+ "@commitlint/config-conventional": "^19.8.1",
138
138
  "@itcase/lint": "^1.1.9",
139
139
  "@rollup/plugin-alias": "^5.1.1",
140
140
  "@rollup/plugin-babel": "^6.0.4",
@@ -160,22 +160,22 @@
160
160
  "babel-plugin-react-docgen": "^4.2.1",
161
161
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
162
162
  "conventional-changelog-conventionalcommits": "^8.0.0",
163
- "eslint": "9.25.1",
163
+ "eslint": "9.26.0",
164
164
  "husky": "^9.1.7",
165
- "lint-staged": "^15.5.1",
165
+ "lint-staged": "^16.0.0",
166
166
  "npm": "^11.3.0",
167
167
  "postcss": "^8.5.3",
168
168
  "prettier": "^3.5.3",
169
169
  "react-docgen-typescript": "^2.2.2",
170
170
  "react-svg": "^16.3.0",
171
- "rollup": "^4.40.0",
171
+ "rollup": "^4.40.2",
172
172
  "rollup-plugin-copy": "^3.5.0",
173
173
  "rollup-plugin-dts": "^6.2.1",
174
174
  "rollup-plugin-peer-deps-external": "^2.2.4",
175
175
  "rollup-preserve-directives": "^1.1.3",
176
176
  "semantic-release": "^24.2.3",
177
177
  "storybook": "^8.6.12",
178
- "stylelint": "^16.19.0",
178
+ "stylelint": "^16.19.1",
179
179
  "typescript": "^5.8.3"
180
180
  }
181
181
  }