@itcase/ui 1.3.37 → 1.4.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 (50) hide show
  1. package/dist/cjs/components/Notification.js +1 -0
  2. package/dist/cjs/components/Tab.js +3 -3
  3. package/dist/cjs/context/Notifications.js +26 -7
  4. package/dist/components/Notification.js +1 -0
  5. package/dist/components/Tab.js +3 -3
  6. package/dist/context/Notifications.js +26 -7
  7. package/dist/css/components/Select/Select.css +22 -20
  8. package/dist/css/components/Select/css/__control/select__control_fill.css +4 -2
  9. package/dist/css/components/Select/css/__menu/select__menu-list-item_size.css +1 -1
  10. package/dist/types/context/Notifications.d.ts +3 -4
  11. package/dist/types/context/Notifications.interface.d.ts +5 -0
  12. package/package.json +10 -10
  13. package/dist/css/components/Accordion/Accordion.tokens.css +0 -5
  14. package/dist/css/components/Avatar/Avatar.tokens.css +0 -4
  15. package/dist/css/components/Badge/Badge.tokens.css +0 -50
  16. package/dist/css/components/Button/Button.tokens.css +0 -39
  17. package/dist/css/components/Checkbox/Checkbox.tokens.css +0 -4
  18. package/dist/css/components/Checkmark/Checkmark.tokens.css +0 -22
  19. package/dist/css/components/Chips/Chips.tokens.css +0 -37
  20. package/dist/css/components/Choice/Choice.tokens.css +0 -18
  21. package/dist/css/components/Code/Code.tokens.css +0 -8
  22. package/dist/css/components/DadataHintField/DadataHintField.tokens.css +0 -9
  23. package/dist/css/components/DatePicker/DatePicker.tokens.css +0 -51
  24. package/dist/css/components/Divider/Divider.tokens.css +0 -13
  25. package/dist/css/components/Dot/Dot.tokens.css +0 -10
  26. package/dist/css/components/Drawer/Drawer.tokens.css +0 -4
  27. package/dist/css/components/Dropdown/Dropdown.tokens.css +0 -39
  28. package/dist/css/components/Grid/Grid.tokens.css +0 -4
  29. package/dist/css/components/Group/Group.tokens.css +0 -3
  30. package/dist/css/components/Icon/Icon.tokens.css +0 -5
  31. package/dist/css/components/Image/Image.tokens.css +0 -3
  32. package/dist/css/components/Input/Input.tokens.css +0 -29
  33. package/dist/css/components/InputPassword/InputPassword.tokens.css +0 -23
  34. package/dist/css/components/Label/Label.tokens.css +0 -19
  35. package/dist/css/components/Loader/Loader.tokens.css +0 -3
  36. package/dist/css/components/Logo/Logo.tokens.css +0 -25
  37. package/dist/css/components/Menu/Menu.tokens.css +0 -5
  38. package/dist/css/components/MenuItem/MenuItem.tokens.css +0 -17
  39. package/dist/css/components/Modal/Modal.tokens.css +0 -3
  40. package/dist/css/components/Overlay/Overlay.tokens.css +0 -4
  41. package/dist/css/components/Pagination/Pagination.tokens.css +0 -25
  42. package/dist/css/components/Radio/Radio.tokens.css +0 -4
  43. package/dist/css/components/Search/Search.tokens.css +0 -16
  44. package/dist/css/components/Segmented/Segmented.tokens.css +0 -6
  45. package/dist/css/components/Select/Select.tokens.css +0 -24
  46. package/dist/css/components/Switch/Switch.tokens.css +0 -7
  47. package/dist/css/components/Tab/Tab.tokens.css +0 -28
  48. package/dist/css/components/Textarea/Textarea.tokens.css +0 -7
  49. package/dist/css/components/Tile/Tile.tokens.css +0 -9
  50. package/dist/css/components/Tooltip/Tooltip.tokens.css +0 -13
@@ -18,6 +18,7 @@ require('../utils/setViewportProperty.js');
18
18
  require('lodash/maxBy');
19
19
  require('../hooks/useStyles/styleAttributes.js');
20
20
  require('uuid');
21
+ require('@itcase/common');
21
22
 
22
23
  var notificationItemAppearance = {
23
24
  accent: {
@@ -145,12 +145,12 @@ function Tab(props) {
145
145
  }
146
146
 
147
147
  function TabGroup(props) {
148
- var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, set = props.set, style = props.style;
148
+ var id = props.id, className = props.className, children = props.children, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set;
149
149
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
150
- var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
150
+ var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
151
151
  // @ts-expect-error
152
152
  var _a = useStyles.useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
153
- return (jsxRuntime.jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-tour": dataTour, id: id, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "tab-group__wrapper group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
153
+ return (jsxRuntime.jsx("div", { id: id, className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
154
154
  }
155
155
 
156
156
  exports.Tab = Tab;
@@ -5,6 +5,7 @@ var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React = require('react');
7
7
  var uuid = require('uuid');
8
+ var common = require('@itcase/common');
8
9
 
9
10
  var STATUSES = {
10
11
  error: 'error',
@@ -14,12 +15,12 @@ var STATUSES = {
14
15
  };
15
16
  var NotificationsContext = React.createContext([]);
16
17
  var NotificationsAPIContext = React.createContext({
17
- hideNotifications: function (targetId) { },
18
+ hideNotifications: function () { },
19
+ showNotification: function () { },
18
20
  notificationStatuses: STATUSES,
19
- showNotification: function (notification, onClose) { },
20
21
  });
21
22
  function NotificationsProvider(props) {
22
- var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a;
23
+ var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
23
24
  var _b = React.useState(function () {
24
25
  // We need to set id to every notification item and original list also be have new id's
25
26
  return (initialNotificationsList || []).map(function (notificationItem) {
@@ -52,7 +53,9 @@ function NotificationsProvider(props) {
52
53
  var newNotificationItem = createNotification(notification, onClose);
53
54
  setNotificationsList(function (prevNotificationsList) {
54
55
  var newState = prevNotificationsList.slice();
55
- var existsNotificationIndex = newState.findIndex(function (notificationItem) { return String(notificationItem.id) === String(newNotificationItem.id); });
56
+ var existsNotificationIndex = newState.findIndex(function (notificationItem) {
57
+ return String(notificationItem.id) === String(newNotificationItem.id);
58
+ });
56
59
  // Add new notification
57
60
  if (existsNotificationIndex === -1) {
58
61
  return tslib_es6.__spreadArray(tslib_es6.__spreadArray([], newState, true), [newNotificationItem], false);
@@ -89,7 +92,23 @@ function NotificationsProvider(props) {
89
92
  setTimeout(function () { return hideNotifications(notificationItem.id); }, notificationItem.closeByTime);
90
93
  }
91
94
  });
92
- // eslint-disable-next-line
95
+ // Show notifications on all requests errors.
96
+ // Enable one time without disabling. Use "isLogging" on request config level
97
+ // to disable notifications logger.
98
+ if (isLogRequestsErrors) {
99
+ common.axiosInstanceITCase.responseErrorHandler.loggerManager = {
100
+ log: function (responseError) {
101
+ if (responseError.message) {
102
+ showNotification({
103
+ title: responseError.message,
104
+ status: 'error',
105
+ closeByTime: 4000,
106
+ });
107
+ }
108
+ },
109
+ };
110
+ }
111
+ // eslint-disable-next-line react-hooks/exhaustive-deps
93
112
  }, []);
94
113
  return (jsxRuntime.jsx(NotificationsAPIContext.Provider, { value: notificationsAPI, children: jsxRuntime.jsx(NotificationsContext.Provider, { value: notificationsList, children: children }) }));
95
114
  }
@@ -134,11 +153,11 @@ function createNotification(notification, onClose) {
134
153
  }
135
154
  return {
136
155
  id: id,
137
- closeByTime: closeByTime,
156
+ title: title,
138
157
  status: status,
139
158
  text: text,
140
159
  textColor: textColor,
141
- title: title,
160
+ closeByTime: closeByTime,
142
161
  onClose: onClose,
143
162
  };
144
163
  }
@@ -16,6 +16,7 @@ import '../utils/setViewportProperty.js';
16
16
  import 'lodash/maxBy';
17
17
  import '../hooks/useStyles/styleAttributes.js';
18
18
  import 'uuid';
19
+ import '@itcase/common';
19
20
 
20
21
  var notificationItemAppearance = {
21
22
  accent: {
@@ -143,12 +143,12 @@ function Tab(props) {
143
143
  }
144
144
 
145
145
  function TabGroup(props) {
146
- var id = props.id, children = props.children, className = props.className, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, set = props.set, style = props.style;
146
+ var id = props.id, className = props.className, children = props.children, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set;
147
147
  var propsGenerator = useDevicePropsGenerator(props);
148
- var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
148
+ var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
149
149
  // @ts-expect-error
150
150
  var _a = useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
151
- return (jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-tour": dataTour, id: id, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "tab-group__wrapper group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
151
+ return (jsx("div", { id: id, className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
152
152
  }
153
153
 
154
154
  export { Tab, TabGroup, tabAppearance, tabConfig };
@@ -3,6 +3,7 @@ import { b as __spreadArray } from '../tslib.es6-5FtW-kfi.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { createContext, useState, useCallback, useMemo, useEffect, useContext } from 'react';
5
5
  import { v4 } from 'uuid';
6
+ import { axiosInstanceITCase } from '@itcase/common';
6
7
 
7
8
  var STATUSES = {
8
9
  error: 'error',
@@ -12,12 +13,12 @@ var STATUSES = {
12
13
  };
13
14
  var NotificationsContext = createContext([]);
14
15
  var NotificationsAPIContext = createContext({
15
- hideNotifications: function (targetId) { },
16
+ hideNotifications: function () { },
17
+ showNotification: function () { },
16
18
  notificationStatuses: STATUSES,
17
- showNotification: function (notification, onClose) { },
18
19
  });
19
20
  function NotificationsProvider(props) {
20
- var children = props.children, _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a;
21
+ var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
21
22
  var _b = useState(function () {
22
23
  // We need to set id to every notification item and original list also be have new id's
23
24
  return (initialNotificationsList || []).map(function (notificationItem) {
@@ -50,7 +51,9 @@ function NotificationsProvider(props) {
50
51
  var newNotificationItem = createNotification(notification, onClose);
51
52
  setNotificationsList(function (prevNotificationsList) {
52
53
  var newState = prevNotificationsList.slice();
53
- var existsNotificationIndex = newState.findIndex(function (notificationItem) { return String(notificationItem.id) === String(newNotificationItem.id); });
54
+ var existsNotificationIndex = newState.findIndex(function (notificationItem) {
55
+ return String(notificationItem.id) === String(newNotificationItem.id);
56
+ });
54
57
  // Add new notification
55
58
  if (existsNotificationIndex === -1) {
56
59
  return __spreadArray(__spreadArray([], newState, true), [newNotificationItem], false);
@@ -87,7 +90,23 @@ function NotificationsProvider(props) {
87
90
  setTimeout(function () { return hideNotifications(notificationItem.id); }, notificationItem.closeByTime);
88
91
  }
89
92
  });
90
- // eslint-disable-next-line
93
+ // Show notifications on all requests errors.
94
+ // Enable one time without disabling. Use "isLogging" on request config level
95
+ // to disable notifications logger.
96
+ if (isLogRequestsErrors) {
97
+ axiosInstanceITCase.responseErrorHandler.loggerManager = {
98
+ log: function (responseError) {
99
+ if (responseError.message) {
100
+ showNotification({
101
+ title: responseError.message,
102
+ status: 'error',
103
+ closeByTime: 4000,
104
+ });
105
+ }
106
+ },
107
+ };
108
+ }
109
+ // eslint-disable-next-line react-hooks/exhaustive-deps
91
110
  }, []);
92
111
  return (jsx(NotificationsAPIContext.Provider, { value: notificationsAPI, children: jsx(NotificationsContext.Provider, { value: notificationsList, children: children }) }));
93
112
  }
@@ -132,11 +151,11 @@ function createNotification(notification, onClose) {
132
151
  }
133
152
  return {
134
153
  id: id,
135
- closeByTime: closeByTime,
154
+ title: title,
136
155
  status: status,
137
156
  text: text,
138
157
  textColor: textColor,
139
- title: title,
158
+ closeByTime: closeByTime,
140
159
  onClose: onClose,
141
160
  };
142
161
  }
@@ -32,20 +32,20 @@
32
32
 
33
33
  .select {
34
34
  &&_size {
35
- @each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
35
+ @each $size in xxl, xl, l, m, s, xs, xxs {
36
36
  &_$(size) {
37
37
  ^^&__control {
38
- padding: var(--select-size-$(size)-padding);
38
+ padding: var(--select-$(size)-padding);
39
39
  }
40
40
  ^^&__option {
41
- padding: var(--select-size-$(size)-padding);
41
+ padding: var(--select-$(size)-padding);
42
42
  }
43
43
  ^^&__menu {
44
44
  &-notice {
45
- padding: var(--select-size-$(size)-padding);
45
+ padding: var(--select-$(size)-padding);
46
46
  }
47
47
  &-group-heading {
48
- padding: var(--select-size-$(size)-padding);
48
+ padding: var(--select-$(size)-padding);
49
49
  }
50
50
  }
51
51
  }
@@ -111,9 +111,11 @@
111
111
  .select {
112
112
  &__control {
113
113
  &_fill {
114
- @each $type in accent, primary, secondary, tertiary, surface, success, error {
114
+ @each $type in accent, primary, secondary, tertiary, surface, success,
115
+ error {
115
116
  &_$(type) {
116
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
117
+ @each $color in primary, secondary, tertiary, quaternary, quinary,
118
+ senary, accent, disabled, hover {
117
119
  &-$(color) {
118
120
  background: var(--color-$(type)-$(color));
119
121
  }
@@ -206,7 +208,7 @@
206
208
  &_size {
207
209
  @each $size in xs, s, m, l, xl, xxl {
208
210
  &_$(size) {
209
- padding: var(--select-menu-list-item-size-$(size)-padding, 5px 10px);
211
+ padding: var(--select-menu-list-item-$(size)-padding, 5px 10px);
210
212
  }
211
213
  }
212
214
  }
@@ -373,12 +375,12 @@
373
375
  }
374
376
 
375
377
  :root {
376
- --select-size-xxl-padding: 15px 25px;
377
- --select-size-xl-padding: 9px 20px;
378
- --select-size-xs-padding: 0px 8px;
379
- --select-size-m-padding: 5px 12px;
380
- --select-size-s-padding: 0 4px;
381
- --select-size-l-padding: 7px 15px;
378
+ --select-xxl-padding: 15px 25px;
379
+ --select-xl-padding: 9px 20px;
380
+ --select-xs-padding: 0px 8px;
381
+ --select-m-padding: 5px 12px;
382
+ --select-s-padding: 1px 4px;
383
+ --select-l-padding: 7px 15px;
382
384
 
383
385
  --select-menu-border-radius: 12px;
384
386
  --select-menu-margin: 0;
@@ -389,10 +391,10 @@
389
391
 
390
392
  --select-success-border: var(--color-surface-border-tertiary);
391
393
 
392
- --select-menu-list-item-size-xxl-padding: 18px 25px;
393
- --select-menu-list-item-size-xl-padding: 14px 20px;
394
- --select-menu-list-item-size-l-padding: 10px 12px;
395
- --select-menu-list-item-size-m-padding: 8px 12px;
396
- --select-menu-list-item-size-s-padding: 6px 10px;
397
- --select-menu-list-item-size-xs-padding: 2px 8px;
394
+ --select-menu-list-item-xxl-padding: 18px 25px;
395
+ --select-menu-list-item-xl-padding: 14px 20px;
396
+ --select-menu-list-item-l-padding: 10px 12px;
397
+ --select-menu-list-item-m-padding: 8px 12px;
398
+ --select-menu-list-item-s-padding: 6px 10px;
399
+ --select-menu-list-item-xs-padding: 2px 8px;
398
400
  }
@@ -1,9 +1,11 @@
1
1
  .select {
2
2
  &__control {
3
3
  &_fill {
4
- @each $type in accent, primary, secondary, tertiary, surface, success, error {
4
+ @each $type in accent, primary, secondary, tertiary, surface, success,
5
+ error {
5
6
  &_$(type) {
6
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
7
+ @each $color in primary, secondary, tertiary, quaternary, quinary,
8
+ senary, accent, disabled, hover {
7
9
  &-$(color) {
8
10
  background: var(--color-$(type)-$(color));
9
11
  }
@@ -5,7 +5,7 @@
5
5
  &_size {
6
6
  @each $size in xs, s, m, l, xl, xxl {
7
7
  &_$(size) {
8
- padding: var(--select-menu-list-item-size-$(size)-padding, 5px 10px);
8
+ padding: var(--select-menu-list-item-$(size)-padding, 5px 10px);
9
9
  }
10
10
  }
11
11
  }
@@ -1,15 +1,14 @@
1
- import type { tId } from '@itcase/common';
2
- import type { iCreatedNotification, iNotificationsProviderProps } from './Notifications.interface';
1
+ import type { iNotificationsProviderProps } from './Notifications.interface';
3
2
  declare function NotificationsProvider(props: iNotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
4
3
  declare function useNotifications(): never[];
5
4
  declare function useNotificationsAPI(): {
6
- hideNotifications: (targetId: tId) => void;
5
+ hideNotifications: () => void;
6
+ showNotification: () => void;
7
7
  notificationStatuses: {
8
8
  error: string;
9
9
  info: string;
10
10
  success: string;
11
11
  warning: string;
12
12
  };
13
- showNotification: (notification: string | iCreatedNotification, onClose?: () => void) => void;
14
13
  };
15
14
  export { NotificationsProvider, useNotifications, useNotificationsAPI };
@@ -21,5 +21,10 @@ interface iCreatedNotification {
21
21
  interface iNotificationsProviderProps {
22
22
  children: React.ReactNode;
23
23
  initialNotificationsList: iCreatedNotification[];
24
+ /**
25
+ * Used to enable displaying notifications when any error throwing
26
+ * while sending a request with "axiosInstanceITCase".
27
+ */
28
+ isLogRequestsErrors: boolean;
24
29
  }
25
30
  export type { iNotification, iCreatedNotification, iNotificationsProviderProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.3.37",
3
+ "version": "1.4.1",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -67,9 +67,9 @@
67
67
  "scripts": {
68
68
  "build": "npm run build-js && npm run build-css",
69
69
  "build-js": "rm -rf dist && NODE_ENV=production rollup -c",
70
- "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production",
70
+ "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production",
71
71
  "dev-js": "rollup -c -w",
72
- "dev-css": "postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production -w --verbose",
72
+ "dev-css": "postcss 'src/components/**/!(css)/!(*.tokens.css)*.css' 'src/styles/!(.css)/**/*.css' 'src/mediaqueries/*.css' 'src/mixins/*.css' 'src/tokens/*.css' --base src --dir dist/css/ --env production -w --verbose",
73
73
  "prepare": "husky",
74
74
  "prepack": "npm run build",
75
75
  "semantic-release": "semantic-release",
@@ -91,16 +91,16 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@emotion/is-prop-valid": "^1.3.1",
94
- "@itcase/common": "^1.2.19",
94
+ "@itcase/common": "^1.2.21",
95
95
  "@itcase/config": "^1.0.26",
96
- "@itcase/icons": "^1.0.23",
96
+ "@itcase/icons": "^1.0.28",
97
97
  "@itcase/storybook-config": "^1.0.63",
98
98
  "clsx": "^2.1.1",
99
99
  "date-fns": "^4.1.0",
100
- "framer-motion": "^12.6.2",
100
+ "framer-motion": "^12.6.3",
101
101
  "js-cookie": "^3.0.5",
102
102
  "lodash": "^4.17.21",
103
- "motion": "^12.6.2",
103
+ "motion": "^12.6.3",
104
104
  "rc-slider": "^11.1.8",
105
105
  "react": "^18.3.1",
106
106
  "react-dadata": "^2.27.4",
@@ -125,7 +125,7 @@
125
125
  "@babel/preset-react": "^7.26.3",
126
126
  "@commitlint/cli": "^19.8.0",
127
127
  "@commitlint/config-conventional": "^19.8.0",
128
- "@itcase/lint": "^1.0.48",
128
+ "@itcase/lint": "^1.1.2",
129
129
  "@rollup/plugin-babel": "^6.0.4",
130
130
  "@rollup/plugin-commonjs": "^28.0.3",
131
131
  "@rollup/plugin-image": "^3.0.3",
@@ -157,13 +157,13 @@
157
157
  "prettier": "^3.5.3",
158
158
  "react-docgen-typescript": "^2.2.2",
159
159
  "react-svg": "^16.3.0",
160
- "rollup": "^4.38.0",
160
+ "rollup": "^4.39.0",
161
161
  "rollup-plugin-copy": "^3.5.0",
162
162
  "rollup-plugin-dts": "^6.2.1",
163
163
  "rollup-plugin-peer-deps-external": "^2.2.4",
164
164
  "rollup-preserve-directives": "^1.1.3",
165
165
  "semantic-release": "^24.2.3",
166
- "storybook": "^8.6.11",
166
+ "storybook": "^8.6.12",
167
167
  "stylelint": "^16.17.0",
168
168
  "typescript": "^5.8.2"
169
169
  },
@@ -1,5 +0,0 @@
1
- :root {
2
- --accordion-item-shape-rounded: 12px;
3
- --accordion-item-xs-padding: 10px 8px;
4
- --accordion-item-l-padding: 14px 12px;
5
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --avatar-icon-right: -4px;
3
- --avatar-icon-bottom: -3px;
4
- }
@@ -1,50 +0,0 @@
1
- :root {
2
- --badge-size-xxl-padding: 1m 1.5m;
3
- --badge-size-xxl-min-width: 40px;
4
- --badge-size-xxl-min-height: 40px;
5
- --badge-size-xxl-gap: 5px;
6
- --badge-type-icon-size-xxl-max-width: 40px;
7
- --badge-type-icon-size-xxl-max-height: 40px;
8
-
9
- --badge-size-xl-padding: 0.5m 1.25m;
10
- --badge-size-xl-min-width: 32px;
11
- --badge-size-xl-min-height: 32px;
12
- --badge-size-xl-gap: 6px;
13
- --badge-type-icon-size-xl-max-width: 32px;
14
- --badge-type-icon-size-xl-max-height: 32px;
15
-
16
- --badge-size-l-padding: 0.5m 1m;
17
- --badge-size-l-min-width: 28px;
18
- --badge-size-l-min-height: 28px;
19
- --badge-size-l-gap: 4px;
20
- --badge-type-icon-size-l-max-width: 28px;
21
- --badge-type-icon-size-l-max-height: 28px;
22
-
23
- --badge-size-m-padding: 0 0.75m;
24
- --badge-size-m-min-width: 24px;
25
- --badge-size-m-min-height: 24px;
26
- --badge-size-m-gap: 2px;
27
- --badge-type-icon-size-m-max-width: 24px;
28
- --badge-type-icon-size-m-max-height: 24px;
29
-
30
- --badge-size-s-padding: 0 0.5m;
31
- --badge-size-s-min-width: 20px;
32
- --badge-size-s-min-height: 20px;
33
- --badge-size-s-gap: 0px;
34
- --badge-type-icon-size-s-max-width: 20px;
35
- --badge-type-icon-size-s-max-height: 20px;
36
-
37
- --badge-size-xs-padding: 0 0.25m;
38
- --badge-size-xs-min-width: 16px;
39
- --badge-size-xs-min-height: 16px;
40
- --badge-size-xs-gap: 2px;
41
- --badge-type-icon-size-xs-max-width: 16px;
42
- --badge-type-icon-size-xs-max-height: 16px;
43
-
44
- --badge-size-xxs-padding: 0 0.5m;
45
- --badge-size-xxs-min-width: 12px;
46
- --badge-size-xxs-min-height: 12px;
47
- --badge-size-xxs-gap: 0px;
48
- --badge-type-icon-size-xxs-max-width: 12px;
49
- --badge-type-icon-size-xxs-max-height: 12px;
50
- }
@@ -1,39 +0,0 @@
1
- :root {
2
- /* MainXL */
3
- --button-transition: all 0.2s ease 0s;
4
- /* Size XXL */
5
- --button-xxl-gap: 0.5m;
6
- --button-xxl-padding: 2m 2m;
7
- --button-xxl-min-width: 56px;
8
- --button-xxl-min-height: 56px;
9
- /* Size XL */
10
- --button-xl-gap: 0.5m;
11
- --button-xl-padding: 1m 1m;
12
- --button-xl-min-width: 40px;
13
- --button-xl-min-height: 40px;
14
- /* Size L */
15
- --button-l-gap: 0.5m;
16
- --button-l-padding: 0.5m 0.5m;
17
- --button-l-min-width: 32px;
18
- --button-l-min-height: 32px;
19
- /* Size M */
20
- --button-m-gap: 0.5m;
21
- --button-m-padding: 0.25m 0.5m;
22
- --button-m-min-width: 28px;
23
- --button-m-min-height: 28px;
24
- /* Size S */
25
- --button-s-gap: 0.5m;
26
- --button-s-padding: 0.25m 0.5m;
27
- --button-s-min-width: 24px;
28
- --button-s-min-height: 24px;
29
- /* Size XS */
30
- --button-xs-gap: 0.5m;
31
- --button-xs-padding: 0.5m 0.5m;
32
- --button-xs-min-width: 20px;
33
- --button-xs-min-height: 20px;
34
- /* Size XXS */
35
- --button-xxs-gap: 0.5m;
36
- --button-xxs-padding: 0.25m 0.25m;
37
- --button-xxs-min-width: 16px;
38
- --button-xxs-min-height: 16px;
39
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --checkbox-column-gap: 12px;
3
- --checkbox-row-gap: 4px;
4
- }
@@ -1,22 +0,0 @@
1
- :root {
2
- --checkmark-width--xxl: 64px;
3
- --checkmark-height-xxl: 64px;
4
-
5
- --checkmark-width-xl: 56px;
6
- --checkmark-height-xl: 56px;
7
-
8
- --checkmark-width-l: 48px;
9
- --checkmark-height-l: 48px;
10
-
11
- --checkmark-width-m: 40px;
12
- --checkmark-height-m: 40px;
13
-
14
- --checkmark-width-s: 32px;
15
- --checkmark-height-s: 32px;
16
-
17
- --checkmark-width-xs: 24px;
18
- --checkmark-height-xs: 24px;
19
-
20
- --checkmark-width-xxs: 16px;
21
- --checkmark-height-xxs: 16px;
22
- }
@@ -1,37 +0,0 @@
1
- :root {
2
- /* Size XXL */
3
- --chips-xxl-gap: 0.5m;
4
- --chips-xxl-padding: 2m 2m;
5
- --chips-xxl-min-width: 48px;
6
- --chips-xxl-min-height: 48px;
7
- /* Size XL */
8
- --chips-xl-gap: 0.5m;
9
- --chips-xl-padding: 1m 1m;
10
- --chips-xl-min-width: 40px;
11
- --chips-xl-min-height: 40px;
12
- /* Size L */
13
- --chips-l-gap: 0.5m;
14
- --chips-l-padding: 0.5m 0.5m;
15
- --chips-l-min-width: 32px;
16
- --chips-l-min-height: 32px;
17
- /* Size M */
18
- --chips-m-gap: 0.5m;
19
- --chips-m-padding: 0.75m 1.25m;
20
- --chips-m-min-width: 28px;
21
- --chips-m-min-height: 28px;
22
- /* Size S */
23
- --chips-s-gap: 0.5m;
24
- --chips-s-padding: 0.25m 0.5m;
25
- --chips-s-min-width: 24px;
26
- --chips-s-min-height: 24px;
27
- /* Size XS */
28
- --chips-xs-gap: 0.5m;
29
- --chips-xs-padding: 0.5m 0.5m;
30
- --chips-xs-min-width: 20px;
31
- --chips-xs-min-height: 20px;
32
- /* Size XXS */
33
- --chips-xxs-gap: 0.5m;
34
- --chips-xxs-padding: 0.25m 0.25m;
35
- --chips-xxs-min-width: 16px;
36
- --chips-xxs-min-height: 16px;
37
- }
@@ -1,18 +0,0 @@
1
- :root {
2
- --choice-item-size-xs-padding: 1px 8px;
3
- --choice-item-size-s-padding: 5px 10px;
4
- --choice-item-size-m-padding: 7px 12px;
5
- --choice-item-size-l-padding: 9px 15px;
6
- --choice-item-size-xl-padding: 13px 20px;
7
- --choice-item-size-xxl-padding: 17px 25px;
8
- --choice-item-size-tiny-padding: 1px 8px;
9
- --choice-item-size-compact-padding: 5px 10px;
10
- --choice-item-size-normal-padding: 7px 12px;
11
- --choice-item-size-large-padding: 9px 15px;
12
-
13
- --choice-item-background-hover: var(--color-surface-secondary);
14
- --choice-item-background-active: var(--color-surface-active);
15
- --choice-border-color: var(--color-surface-border-tertiary);
16
-
17
- --choice-item-icon-padding: 0;
18
- }
@@ -1,8 +0,0 @@
1
- :root {
2
- --code-input-size-compact-width: 36px;
3
- --code-input-size-compact-height: 36px;
4
- --code-input-size-compact-padding: 5px;
5
- --code-input-size-normal-width: 48px;
6
- --code-input-size-normal-height: 48px;
7
- --code-input-size-normal-padding: 10px 12px;
8
- }
@@ -1,9 +0,0 @@
1
- :root {
2
- --react-dadata-padding: 8px 12px;
3
- --react-dadata-border-radius: 6px;
4
- --react-dadata-color: var(--color-surface-text-primary);
5
- --react-dadata-border: var(--color-surface-border-tertiary);
6
- --react-dadata-hover-border: var(--color-surface-border-quaternary);
7
- --react-dadata-focus-border: var(--color-surface-border-quaternary);
8
- --react-dadata-error-border: var(--color-error-border-primary);
9
- }
@@ -1,51 +0,0 @@
1
- :root {
2
- --input-container-padding: 9px 15px;
3
-
4
- --date-picker-input-min-width: 220px;
5
- --date-picker-day-border-radius: 8px;
6
-
7
- --date-picker-day-width: 35px;
8
- --date-picker-day-height: 35px;
9
-
10
- --date-picker-name-size: 16px;
11
-
12
- --date-picker-name-weight: 400;
13
- --date-picker-selected-weight: 400;
14
-
15
- --date-picker-input-border-radius: 6px;
16
-
17
- --date-picker-background: var(--color-surface-primary, #fff);
18
- --date-picker-padding: 24px 12px;
19
- --date-picker-box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.2);
20
- --date-picker-border-radius: 12px;
21
- --date-picker-border: 1px solid var(--color-surface-tertiary);
22
-
23
- --date-picker-day-padding: 8px 0;
24
- --date-picker-day-hover-background: var(--color-accent-tertiary);
25
- --date-picker-day-hover-text-color: var(--color-surface-text-secondary);
26
-
27
- --date-picker-day-range-background: var(--color-accent-tertiary);
28
- --date-picker-day-range-text-color: var(--color-accent-text-secondary);
29
- --date-picker-day-range-border-radius: 0;
30
- --date-picker-day-range-start-border-radius: 12px 0 0 12px;
31
- --date-picker-day-range-end-border-radius: 0 12px 12px 0;
32
-
33
- --date-picker-day-today-background: var(--color-surface-secondary);
34
- --date-picker-day-today-border-radius: 12px;
35
- --date-picker-day-today-text-color: var(--color-surface-text-primary);
36
-
37
- --date-picker-day-weekend-background: var(--color-surface-primary);
38
- --date-picker-day-weekend-text-color: var(--color-secondary-text-secondary);
39
- --date-picker-day-weekend-outside-text-color: var(
40
- --color-secondary-text-disabled
41
- );
42
-
43
- --date-picker-day-selected-background: var(--color-accent-primary);
44
- --date-picker-day-selected-background-hover: var(
45
- --color-accent-primary-hover
46
- );
47
- --date-picker-day-selected-text-color: var(--color-accent-text-primary);
48
-
49
- --date-picker-day-outside-background: var(--color-surface-primary);
50
- --date-picker-day-outside-text-color: var(--color-surface-text-quaternary);
51
- }
@@ -1,13 +0,0 @@
1
- :root {
2
- --divider-xl-height: 5px;
3
- --divider-l-height: 4px;
4
- --divider-m-height: 3px;
5
- --divider-s-height: 2px;
6
- --divider-xs-height: 1px;
7
-
8
- --divider-xl-width: 5px;
9
- --divider-l-width: 4px;
10
- --divider-m-width: 3px;
11
- --divider-s-width: 2px;
12
- --divider-xs-width: 1px;
13
- }
@@ -1,10 +0,0 @@
1
- :root {
2
- --dot-size-s-width: 12px;
3
- --dot-size-s-height: 12px;
4
-
5
- --dot-size-m-width: 16px;
6
- --dot-size-m-height: 16px;
7
-
8
- --dot-size-l-width: 20px;
9
- --dot-size-l-height: 20px;
10
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --drawer-overlay-background: none;
3
- --drawer-overlay-filter: blur(0);
4
- }
@@ -1,39 +0,0 @@
1
- :root {
2
- --dropdown-item-size-xs-padding: 0;
3
- --dropdown-item-size-xs-gap: 8px;
4
-
5
- --dropdown-item-size-m-padding: 0px;
6
- --dropdown-item-size-m-gap: 0px;
7
-
8
- --dropdown-item-size-l-padding: 10px 12px;
9
- --dropdown-item-size-l-gap: 12px;
10
-
11
- --dropdown-normal-padding: 16px;
12
- --dropdown-normal-gap: 16px;
13
- }
14
-
15
- @keyframes dropDownAnimationOpen {
16
- 0% {
17
- visibility: hidden;
18
- transform: translate3d(0, 8px, 0);
19
- opacity: 0%;
20
- }
21
- 100% {
22
- visibility: visible;
23
- transform: translate3d(0, 0, 0);
24
- opacity: 100%;
25
- }
26
- }
27
-
28
- @keyframes dropDownAnimationClose {
29
- 0% {
30
- visibility: visible;
31
- transform: translate3d(0, 0, 0);
32
- opacity: 100%;
33
- }
34
- 100% {
35
- visibility: hidden;
36
- transform: translate3d(0, 8px, 0);
37
- opacity: 0%;
38
- }
39
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --grid-row-transition: all 0.2s ease 0s;
3
- --grid-item-transition: all 0.2s ease 0s;
4
- }
@@ -1,3 +0,0 @@
1
- :root {
2
- --group-transition: all 0.2s ease 0s;
3
- }
@@ -1,5 +0,0 @@
1
- :root {
2
- --icon-transition: all 0.2s ease 0s;
3
- --icon-size-24-badge-position: 12px, 12px;
4
- --icon-shape-rounded: 6px;
5
- }
@@ -1,3 +0,0 @@
1
- :root {
2
- --image-shape-rounded: 6px;
3
- }
@@ -1,29 +0,0 @@
1
- :root {
2
- --input-shape-rounded: 8px;
3
-
4
- --input-size-xs-padding: 1px 8px;
5
- --input-size-s-padding: 5px 10px;
6
- --input-size-m-padding: 7px 12px;
7
- --input-size-l-padding: 9px 15px;
8
- --input-size-xl-padding: 13px 20px;
9
- --input-size-xxl-padding: 17px 25px;
10
-
11
- --input-size-tiny-padding: 1px 8px;
12
- --input-size-compact-padding: 5px 10px;
13
- --input-size-normal-padding: 7px 12px;
14
- --input-size-large-padding: 9px 15px;
15
-
16
- --input-success-border: var(--color-surface-border-tertiary);
17
-
18
- --input-state-focus-border: var(--color-surface-border-quaternary);
19
- --input-state-focus-background: none;
20
- --input-state-error-border: var(--color-error-border-primary);
21
- --input-state-error-background: none;
22
- --input-state-required-border: var(--color-warning-text-primary);
23
- --input-state-required-background: none;
24
- --input-state-custom-border: var(--color-info-primary);
25
- --input-state-custom-background: none;
26
- --input-state-hover-border: var(--color-surface-border-quaternary);
27
- --input-state-hover-background: none;
28
- --input-caret-color: var(--color-accent-primary);
29
- }
@@ -1,23 +0,0 @@
1
- :root {
2
- --input-password-size-xs-padding: 4px 8px;
3
- --input-password-size-s-padding: 5px 10px;
4
- --input-password-size-m-padding: 7px 12px;
5
- --input-password-size-l-padding: 9px 15px;
6
- --input-password-size-xl-padding: 15px 20px;
7
- --input-password-size-xxl-padding: 18px 25px;
8
-
9
- --input-password-size-tiny-padding: 4px 8px;
10
- --input-password-size-compact-padding: 5px 10px;
11
- --input-password-size-normal-padding: 7px 12px;
12
- --input-password-size-large-padding: 9px 15px;
13
-
14
- --input-password-state-focus-border: var(--color-active-border-primary);
15
- --input-password-state-focus-background: none;
16
- --input-password-state-error-border: var(--color-error-border-primary);
17
- --input-password-state-error-background: none;
18
- --input-password-state-success-border: var(--color-success-border-primary);
19
- --input-password-state-success-background: none;
20
- --input-password-state-hover-border: var(--color-surface-border-quaternary);
21
- --input-password-state-hover-background: none;
22
- --input-password-caret-color: var(--color-accent-primary);
23
- }
@@ -1,19 +0,0 @@
1
- :root {
2
- --label-shape-rounded-default: 6px;
3
-
4
- --label-size-xxl-shape-rounded: 12px;
5
- --label-size-xl-shape-rounded: 6px;
6
- --label-size-l-shape-rounded: 6px;
7
- --label-size-m-shape-rounded: 12px;
8
- --label-size-s-shape-rounded: 12px;
9
- --label-size-xs-shape-rounded: 12px;
10
- --label-size-xxs-shape-rounded: 12px;
11
-
12
- --label-size-xxl-padding: 10px 10px;
13
- --label-size-xl-padding: 7px 8px;
14
- --label-size-l-padding: 4px 6px;
15
- --label-size-m-padding: 2px 8px;
16
- --label-size-s-padding: 2px 6px;
17
- --label-size-xs-padding: 0px 4px;
18
- --label-size-xxs-padding: 0px 4px;
19
- }
@@ -1,3 +0,0 @@
1
- .loader {
2
- border-radius: var(--button-size-xl-shape-rounded);
3
- }
@@ -1,25 +0,0 @@
1
- :root {
2
- /* --logo-size-l-width: 240px;
3
- --logo-size-l-height: 90px;
4
-
5
- --logo-size-m-width: 200px;
6
- --logo-size-m-height: 75px;
7
-
8
- --logo-size-s-width: 140px;
9
- --logo-size-s-height: 52px; */
10
-
11
- --logo-size-xl-width: 194px;
12
- --logo-size-xl-height: 102px;
13
-
14
- --logo-size-l-width: 145px;
15
- --logo-size-l-height: 77px;
16
-
17
- --logo-size-m-width: 100px;
18
- --logo-size-m-height: 53px;
19
-
20
- --logo-size-s-width: 82px;
21
- --logo-size-s-height: 43px;
22
-
23
- --logo-size-xs-width: 52px;
24
- --logo-size-xs-height: 27px;
25
- }
@@ -1,5 +0,0 @@
1
- :root {
2
- --menu-type-border-width: fit-content;
3
- --menu-type-border-border: 1px solid var(--color-surface-border-tertiary);
4
- --menu-type-border-border-radius: 6px;
5
- }
@@ -1,17 +0,0 @@
1
- :root {
2
- --menu-item-size-xxs-padding: 0 4px;
3
- --menu-item-size-xs-padding: 0 4px;
4
- --menu-item-size-s-padding: 3px 4px;
5
- --menu-item-size-m-padding: 4px 12px;
6
- --menu-item-size-l-padding: 6px 6px;
7
- --menu-item-size-xl-padding: 10px 8px;
8
- --menu-item-size-xxl-padding: 12px 10px;
9
-
10
- --menu-item-shape-rounded: 20px;
11
- --menu-item-set-subitem-padding-left: 36px;
12
-
13
- --menu-item-set-filter-padding: 10px 16px;
14
- --menu-item-set-filter-border-right: 1px solid
15
- var(--color-surface-border-tertiary);
16
- --menu-item-set-filter-active-color: var(--color-surface-item-accent);
17
- }
@@ -1,3 +0,0 @@
1
- :root {
2
- --modal-max-width: 450px;
3
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --overlay-fill: hsla(0, 0%, 0%, 0.4);
3
- --overlay-blur: 20px;
4
- }
@@ -1,25 +0,0 @@
1
- :root {
2
- --paginator-margin: 0;
3
-
4
- --paginator-item-width: 32px;
5
- --paginator-item-height: 32px;
6
- --paginator-item-border: none;
7
- --paginator-item-border-radius: 50%;
8
-
9
- --pagination-item-state-disabled-display: none;
10
-
11
- --paginator-item-transition: all 0.2s ease 0s;
12
-
13
- --paginator-item-default-fill: var(--color-surface-primary);
14
- --paginator-item-default-fill-hover: var(--color-surface-primary-hover);
15
- --paginator-item-default-text: var(--color-surface-text-primary);
16
-
17
- --paginator-item-active-fill: var(--color-accent-primary);
18
- --paginator-item-active-fill-hover: var(--color-accent-primary);
19
- --paginator-item-active-text: var(--color-accent-text-primary);
20
-
21
- --paginator-item-disabled-fill: none;
22
- --paginator-item-disabled-fill-hover: none;
23
- --paginator-item-disabled-text: var(--color-surface-text-primary);
24
- --paginator-item-disabled-icon: var(--color-surface-item-disabled);
25
- }
@@ -1,4 +0,0 @@
1
- :root {
2
- --radio-state-border-hover: var(--color-surface-border-tertiary);
3
- --radio-success-border: var(--color-surface-border-tertiary);
4
- }
@@ -1,16 +0,0 @@
1
- :root {
2
- --search-input-normal-padding: 8px;
3
- --search-input-normal-gap: 8px;
4
- --search-input-normal-line-height: 24px;
5
-
6
- --search-input-compact-padding: 8px;
7
- --search-input-compact-gap: 4px;
8
-
9
- --search-input-l-padding: 8px 7px;
10
- --search-input-l-gap: 6px;
11
-
12
- --search-input-s-padding: 2px 7px;
13
- --search-input-s-gap: 6px;
14
-
15
- --search-shape-rounded: 8px;
16
- }
@@ -1,6 +0,0 @@
1
- :root {
2
- --segmented-item-size-normal-padding: 12px 24px;
3
- --segmented-item-size-compact-padding: 6px 16px;
4
-
5
- --segmented-item-size-s-padding: 4px 16px;
6
- }
@@ -1,24 +0,0 @@
1
- :root {
2
- --select-size-xxl-padding: 15px 25px;
3
- --select-size-xl-padding: 9px 20px;
4
- --select-size-xs-padding: 0px 8px;
5
- --select-size-m-padding: 5px 12px;
6
- --select-size-s-padding: 0 4px;
7
- --select-size-l-padding: 7px 15px;
8
-
9
- --select-menu-border-radius: 12px;
10
- --select-menu-margin: 0;
11
-
12
- --select-multi-value-padding: 2px 6px;
13
-
14
- --select-control-shape-rounded: 8px;
15
-
16
- --select-success-border: var(--color-surface-border-tertiary);
17
-
18
- --select-menu-list-item-size-xxl-padding: 18px 25px;
19
- --select-menu-list-item-size-xl-padding: 14px 20px;
20
- --select-menu-list-item-size-l-padding: 10px 12px;
21
- --select-menu-list-item-size-m-padding: 8px 12px;
22
- --select-menu-list-item-size-s-padding: 6px 10px;
23
- --select-menu-list-item-size-xs-padding: 2px 8px;
24
- }
@@ -1,7 +0,0 @@
1
- :root {
2
- --switch-size-normal-width: 52px;
3
- --switch-size-normal-height: 32px;
4
-
5
- --switch-size-compact-width: 40px;
6
- --switch-size-compact-height: 24px;
7
- }
@@ -1,28 +0,0 @@
1
- :root {
2
- --tab-size-normal-padding: 12px;
3
- --tab-size-normal-gap: 4px;
4
-
5
- --tab-size-compact-padding: 12px;
6
- --tab-size-compact-gap: 4px;
7
-
8
- --tab-size-xxs-padding: 0px;
9
- --tab-size-xxs-gap: 4px;
10
-
11
- --tab-size-xs-padding: 3px;
12
- --tab-size-xs-gap: 4px;
13
-
14
- --tab-size-s-padding: 5px;
15
- --tab-size-s-gap: 4px;
16
-
17
- --tab-size-m-padding: 7px;
18
- --tab-size-m-gap: 4px;
19
-
20
- --tab-size-l-padding: 11px;
21
- --tab-size-l-gap: 4px;
22
-
23
- --tab-size-xl-padding: 15px;
24
- --tab-size-xl-gap: 4px;
25
-
26
- --tab-size-xxl-padding: 19px;
27
- --tab-size-xxl-gap: 4px;
28
- }
@@ -1,7 +0,0 @@
1
- :root {
2
- --textarea-shape-rounded: 8px;
3
- --textarea-size-m-padding: 8px 12px;
4
- --textarea-min-height: 80px;
5
- --textarea-max-height: 80px;
6
- --textarea-success-border: var(--color-surface-border-tertiary);
7
- }
@@ -1,9 +0,0 @@
1
- :root {
2
- --tile-size-normal-padding: 24px;
3
- --tile-size-normal-gap: 24px;
4
- --tile-size-normal-min-width: 320px;
5
-
6
- --tile-wrapper-flex: 1 1;
7
- --tile-wrapper-group-flex: 1;
8
- --tile-title-margin-right: 40px;
9
- }
@@ -1,13 +0,0 @@
1
- :root {
2
- --tooltip-size-m-padding: 0;
3
- --tooltip-size-s-padding: 0;
4
-
5
- --tooltip-size-m-gap: 0;
6
- --tooltip-size-s-gap: 0;
7
-
8
- --tooltip-arrow-width: 14px;
9
- --tooltip-arrow-height: 14px;
10
- --tooltip-arrow-radius: 2px;
11
-
12
- --tooltip-arrow-color: var(--color-surface-primary);
13
- }