@itcase/ui 1.8.65 → 1.8.66

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 (88) hide show
  1. package/dist/{Avatar_cjs_DOBcPDTn.js → Avatar_cjs_CUv4th9V.js} +1 -1
  2. package/dist/{Avatar_es_DA6o8oNQ.js → Avatar_es_CZbxsfMv.js} +1 -1
  3. package/dist/{Button_cjs_CA7J_adG.js → Button_cjs_CF3wei05.js} +1 -1
  4. package/dist/{Button_es_BSxEly4r.js → Button_es_3cCwdJcQ.js} +1 -1
  5. package/dist/{ChipsGroup_cjs_DHNbkBEk.js → ChipsGroup_cjs_p5BbbozF.js} +1 -1
  6. package/dist/{ChipsGroup_es_zirUM0Bc.js → ChipsGroup_es_CSRBUuRU.js} +1 -1
  7. package/dist/{DatePicker_cjs_BsLBVElQ.js → DatePicker_cjs_C5Scs-GL.js} +3 -3
  8. package/dist/{DatePicker_es_BotT8lRT.js → DatePicker_es_Cn7l4eD0.js} +3 -3
  9. package/dist/{DropdownItem_cjs_BF18Ii9Z.js → DropdownItem_cjs_DrRXEbs6.js} +1 -1
  10. package/dist/{DropdownItem_es_2b-hX4HZ.js → DropdownItem_es_fKHB3LUT.js} +1 -1
  11. package/dist/{Icon_cjs_D1Ze-oNL.js → Icon_cjs_BdX_3y6P.js} +17 -31
  12. package/dist/{Icon_es_DrQu8Zp8.js → Icon_es_Xh3eVHNS.js} +17 -31
  13. package/dist/{Label_cjs_BPu58uG9.js → Label_cjs_DSSetg_A.js} +16 -16
  14. package/dist/{Label_es_CH68RBo-.js → Label_es_DnTcY7ih.js} +16 -16
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +2 -2
  21. package/dist/cjs/components/Cell.js +2 -2
  22. package/dist/cjs/components/Chips.js +2 -2
  23. package/dist/cjs/components/Choice.js +1 -1
  24. package/dist/cjs/components/CookiesWarning.js +2 -2
  25. package/dist/cjs/components/DatePeriod.js +5 -5
  26. package/dist/cjs/components/DatePicker.js +4 -4
  27. package/dist/cjs/components/Drawer.js +1 -1
  28. package/dist/cjs/components/Dropdown.js +2 -2
  29. package/dist/cjs/components/HeroTitle.js +1 -1
  30. package/dist/cjs/components/Icon.js +1 -1
  31. package/dist/cjs/components/InputPassword.js +1 -1
  32. package/dist/cjs/components/Label.js +2 -2
  33. package/dist/cjs/components/MenuItem.js +1 -1
  34. package/dist/cjs/components/Modal.js +75 -7
  35. package/dist/cjs/components/Notification.js +1 -1
  36. package/dist/cjs/components/Pagination.js +2 -2
  37. package/dist/cjs/components/Response.js +2 -2
  38. package/dist/cjs/components/Search.js +1 -1
  39. package/dist/cjs/components/Segmented.js +1 -1
  40. package/dist/cjs/components/Select.js +1 -1
  41. package/dist/cjs/components/Swiper.js +1 -1
  42. package/dist/cjs/components/Tab.js +1 -1
  43. package/dist/cjs/components/Tile.js +1 -1
  44. package/dist/cjs/components/Title.js +1 -1
  45. package/dist/cjs/components/Tooltip.js +1 -1
  46. package/dist/cjs/components/Warning.js +1 -1
  47. package/dist/components/Accordion.js +1 -1
  48. package/dist/components/Avatar.js +2 -2
  49. package/dist/components/AvatarStack.js +2 -2
  50. package/dist/components/Badge.js +1 -1
  51. package/dist/components/Breadcrumbs.js +1 -1
  52. package/dist/components/Button.js +2 -2
  53. package/dist/components/Cell.js +2 -2
  54. package/dist/components/Chips.js +2 -2
  55. package/dist/components/Choice.js +1 -1
  56. package/dist/components/CookiesWarning.js +2 -2
  57. package/dist/components/DatePeriod.js +5 -5
  58. package/dist/components/DatePicker.js +4 -4
  59. package/dist/components/Drawer.js +1 -1
  60. package/dist/components/Dropdown.js +2 -2
  61. package/dist/components/HeroTitle.js +1 -1
  62. package/dist/components/Icon.js +1 -1
  63. package/dist/components/InputPassword.js +1 -1
  64. package/dist/components/Label.js +2 -2
  65. package/dist/components/MenuItem.js +1 -1
  66. package/dist/components/Modal.js +75 -7
  67. package/dist/components/Notification.js +1 -1
  68. package/dist/components/Pagination.js +2 -2
  69. package/dist/components/Response.js +2 -2
  70. package/dist/components/Search.js +1 -1
  71. package/dist/components/Segmented.js +1 -1
  72. package/dist/components/Select.js +1 -1
  73. package/dist/components/Swiper.js +1 -1
  74. package/dist/components/Tab.js +1 -1
  75. package/dist/components/Tile.js +1 -1
  76. package/dist/components/Title.js +1 -1
  77. package/dist/components/Tooltip.js +1 -1
  78. package/dist/components/Warning.js +1 -1
  79. package/dist/css/components/Label/Label.css +14 -0
  80. package/dist/css/components/Modal/Modal.css +61 -26
  81. package/dist/types/components/Label/appearance/{labelDisable.d.ts → labelDisabled.d.ts} +4 -4
  82. package/dist/types/components/Modal/appearance/modalShape.d.ts +25 -0
  83. package/dist/types/components/Modal/appearance/modalSize.d.ts +27 -0
  84. package/dist/types/components/Modal/appearance/modalStyle.d.ts +14 -0
  85. package/dist/types/components/Modal/appearance/modalSurface.d.ts +2 -1
  86. package/dist/types/components/Title/appearance/titleSize.d.ts +6 -20
  87. package/dist/types/components/Title/appearance/titleSurface.d.ts +5 -5
  88. package/package.json +5 -5
@@ -5,9 +5,10 @@ import ReactDOM from 'react-dom';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
+ import { b as Title, I as Icon } from '../Icon_es_Xh3eVHNS.js';
8
9
  import { O as Overlay } from '../Overlay_es_BvehRqIP.js';
9
- import { b as Title } from '../Icon_es_DrQu8Zp8.js';
10
10
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
11
+ import { icons24, icons40 } from '@itcase/icons/default';
11
12
  import { L as Loader } from '../Loader_es_DhNCKZ8Y.js';
12
13
  import 'lodash/camelCase';
13
14
  import 'lodash/castArray';
@@ -27,14 +28,81 @@ import '../context/UrlAssetPrefix.js';
27
28
  import '../Link_es_BnUIX0QT.js';
28
29
  import '../Text_es_BvmOR4nv.js';
29
30
 
31
+ var modalAppearanceShape = {
32
+ circular: {
33
+ shape: 'circular',
34
+ },
35
+ rounded: {
36
+ shape: 'rounded',
37
+ },
38
+ roundedS: {
39
+ shape: 'rounded',
40
+ shapeStrength: '0_5m',
41
+ },
42
+ roundedM: {
43
+ shape: 'rounded',
44
+ shapeStrength: '1m',
45
+ },
46
+ roundedL: {
47
+ shape: 'rounded',
48
+ shapeStrength: '1_5m',
49
+ },
50
+ roundedXL: {
51
+ shape: 'rounded',
52
+ shapeStrength: '2m',
53
+ },
54
+ };
55
+
56
+ var modalAppearanceSize = {
57
+ sizeXL: {
58
+ size: 'xl',
59
+ titleTextSize: 'h2',
60
+ closeIconImage: icons40.Action.Close,
61
+ closeIconSize: '40',
62
+ },
63
+ sizeL: {
64
+ size: 'l',
65
+ titleTextSize: 'h3',
66
+ closeIconImage: icons40.Action.Close,
67
+ closeIconSize: '40',
68
+ },
69
+ sizeM: {
70
+ size: 'm',
71
+ titleTextSize: 'h4',
72
+ closeIconImage: icons24.Action.Close,
73
+ closeIconSize: '24',
74
+ },
75
+ sizeS: {
76
+ size: 's',
77
+ titleTextSize: 'h5',
78
+ closeIconImage: icons24.Action.Close,
79
+ closeIconSize: '24',
80
+ },
81
+ };
82
+
83
+ var modalAppearanceStyle = {
84
+ solid: {
85
+ borderColor: 'none',
86
+ },
87
+ outlined: {
88
+ fill: 'none',
89
+ },
90
+ full: {},
91
+ ghost: {
92
+ fill: 'none',
93
+ borderColor: 'none',
94
+ },
95
+ };
96
+
30
97
  var modalAppearanceSurface = {
31
98
  surfacePrimary: {
32
99
  fill: 'surfacePrimary',
33
- fillHover: 'surfacePrimaryHover',
100
+ borderColor: 'surfaceBorderPrimary',
101
+ closeIconAppearance: 'surfacePrimary solid circular',
34
102
  },
35
103
  };
36
104
 
37
- var modalAppearance = __assign({}, modalAppearanceSurface);
105
+ var modalAppearance = __assign(__assign(__assign(__assign({}, modalAppearanceSurface), modalAppearanceShape), modalAppearanceStyle), modalAppearanceSize);
38
106
 
39
107
  var modalConfig = {
40
108
  appearance: modalAppearance,
@@ -64,7 +132,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
64
132
  };
65
133
  // Modal component that is an abstraction around the portal API.
66
134
  var Modal = React.forwardRef(function Modal(props, ref) {
67
- var id = props.id, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, dataTestId = props.dataTestId, dataTour = props.dataTour, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, overlayClassName = props.overlayClassName, scroll = props.scroll, closeButton = props.closeButton, _b = props.isCloseOnBlur, isCloseOnBlur = _b === void 0 ? true : _b, _c = props.isOpen, initialIsOpen = _c === void 0 ? false : _c, _d = props.isOverlay, isOverlay = _d === void 0 ? true : _d, _e = props.isScrollOnOpen, isScrollOnOpen = _e === void 0 ? true : _e, _f = props.isSetFocusOnOpen, isSetFocusOnOpen = _f === void 0 ? true : _f, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
135
+ var id = props.id, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, dataTestId = props.dataTestId, dataTour = props.dataTour, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, scroll = props.scroll, _b = props.isCloseOnBlur, isCloseOnBlur = _b === void 0 ? true : _b, _c = props.isOpen, initialIsOpen = _c === void 0 ? false : _c, _d = props.isOverlay, isOverlay = _d === void 0 ? true : _d, _e = props.isScrollOnOpen, isScrollOnOpen = _e === void 0 ? true : _e, _f = props.isSetFocusOnOpen, isSetFocusOnOpen = _f === void 0 ? true : _f, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
68
136
  // Query DOM element
69
137
  var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
70
138
  var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
@@ -148,16 +216,16 @@ var Modal = React.forwardRef(function Modal(props, ref) {
148
216
  useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
149
217
  var appearanceConfig = useAppearanceConfig(appearance, modalConfig);
150
218
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
151
- var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayFillGradient = propsGenerator.overlayFillGradient, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass;
219
+ var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, closeIconAppearance = propsGenerator.closeIconAppearance, closeIconImage = propsGenerator.closeIconImage, closeIconShape = propsGenerator.closeIconShape, closeIconSize = propsGenerator.closeIconSize;
152
220
  // @ts-expect-error
153
221
  var modalStyles = useStyles(props).styles;
154
222
  // Use a portal to render the children into the element
155
223
  return (modalElement &&
156
224
  ReactDOM.createPortal(
157
225
  // Any valid React child: JSX, strings, arrays, etc.
158
- isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && "modal-scroll_".concat(scroll), isSkeleton && 'modal_skeleton'), dataTestId: dataTestId, dataTour: dataTour, ref: modalContentRef, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [title && (jsx(Title, { className: "modal-content__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
226
+ isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal__content', contentClassName, fillClass && "fill_".concat(fillClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), shapeClass && "shape_".concat(shapeClass), sizeClass && "modal_size_".concat(sizeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), scroll && "modal-scroll_".concat(scroll), isSkeleton && 'modal_skeleton'), dataTestId: dataTestId, dataTour: dataTour, ref: modalContentRef, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur && closeModal, children: [(title || closeIconImage) && (jsxs("div", { className: "modal__header", children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIconImage && (jsx("div", { className: "modal__close", onClick: closeModal, children: jsx(Icon, { appearance: closeIconAppearance, SvgImage: closeIconImage, iconSize: closeIconSize, shape: closeIconShape }) }))] })), jsx("div", { className: "modal__content-wrapper", children: children })] }), jsx(Overlay, { className: "modal__overlay",
159
227
  // ref={modalOverlayRef}
160
- fill: overlayFill, fillGradient: overlayFillGradient, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
228
+ fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
161
229
  // A DOM element
162
230
  modalElement));
163
231
  });
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
6
+ import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
7
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
8
8
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import { icons20 } from '@itcase/icons/default';
@@ -6,8 +6,8 @@ import ReactPaginate from 'react-paginate';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_2b-hX4HZ.js';
10
- import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
9
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_fKHB3LUT.js';
10
+ import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
11
11
  import { T as Text } from '../Text_es_BvmOR4nv.js';
12
12
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
13
13
  import { icons14, icons24, icons16 } from '@itcase/icons/default';
@@ -7,7 +7,7 @@ import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
7
7
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { useStyles } from '../hooks/useStyles/useStyles.js';
10
- import { B as Button } from '../Button_es_BSxEly4r.js';
10
+ import { B as Button } from '../Button_es_3cCwdJcQ.js';
11
11
  import { G as Group } from '../Group_es_CruwH8Al.js';
12
12
  import { T as Text } from '../Text_es_BvmOR4nv.js';
13
13
  import '@itcase/common';
@@ -23,7 +23,7 @@ import 'react-responsive';
23
23
  import '../utils/setViewportProperty.js';
24
24
  import 'lodash/maxBy';
25
25
  import '../hooks/useStyles/styleAttributes.js';
26
- import '../Icon_es_DrQu8Zp8.js';
26
+ import '../Icon_es_Xh3eVHNS.js';
27
27
  import 'react-inlinesvg';
28
28
  import '../Link_es_BnUIX0QT.js';
29
29
  import '../Loader_es_DhNCKZ8Y.js';
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
9
+ import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
10
10
  import { T as Text } from '../Text_es_BvmOR4nv.js';
11
11
  import { S as Scrollbar } from '../Scrollbar_es_CThJeCLF.js';
12
12
  import 'lodash/camelCase';
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
4
+ import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
5
5
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Select, { components } from 'react-select';
4
- import { I as Icon, B as Badge } from '../Icon_es_DrQu8Zp8.js';
4
+ import { I as Icon, B as Badge } from '../Icon_es_Xh3eVHNS.js';
5
5
  import React, { useRef, useCallback, useEffect, useMemo } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { b as Title } from '../Icon_es_DrQu8Zp8.js';
7
+ import { b as Title } from '../Icon_es_Xh3eVHNS.js';
8
8
  import '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
7
+ import { B as Badge, I as Icon } from '../Icon_es_Xh3eVHNS.js';
8
8
  import { D as Divider } from '../Divider_es_CiRU0sTz.js';
9
9
  import { L as Link } from '../Link_es_BnUIX0QT.js';
10
10
  import { T as Text } from '../Text_es_BvmOR4nv.js';
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { b as Title, B as Badge, I as Icon } from '../Icon_es_DrQu8Zp8.js';
6
+ import { b as Title, B as Badge, I as Icon } from '../Icon_es_Xh3eVHNS.js';
7
7
  import { T as Text } from '../Text_es_BvmOR4nv.js';
8
8
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
9
9
  import 'react';
@@ -1,4 +1,4 @@
1
- export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_DrQu8Zp8.js';
1
+ export { b as Title, d as titleAppearance, c as titleConfig } from '../Icon_es_Xh3eVHNS.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_DrQu8Zp8.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Icon_es_Xh3eVHNS.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, Fragment } from 'react';
3
3
  import clsx from 'clsx';
4
- import { I as Icon } from '../Icon_es_DrQu8Zp8.js';
4
+ import { I as Icon } from '../Icon_es_Xh3eVHNS.js';
5
5
  import { T as Text } from '../Text_es_BvmOR4nv.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -41,6 +41,7 @@
41
41
  &_$(size) {
42
42
  padding: var(--label-size-$(size)-padding);
43
43
  gap: var(--label-size-$(size)-gap);
44
+ min-height: var(--label-size-$(size)-min-height);
44
45
  }
45
46
  }
46
47
  }
@@ -67,10 +68,23 @@ div.label {
67
68
  :root {
68
69
  --label-size-xxl-padding: 10px 10px;
69
70
  --label-size-xxl-gap: 8px;
71
+ --label-size-xxl-min-height: 40px;
72
+
70
73
  --label-size-xl-padding: 7px 8px;
74
+ --label-size-xl-min-height: 32px;
75
+
71
76
  --label-size-l-padding: 4px 6px;
77
+ --label-size-l-min-height: 28px;
78
+
72
79
  --label-size-m-padding: 2px 8px;
80
+ --label-size-m-min-height: 24px;
81
+
73
82
  --label-size-s-padding: 2px 6px;
83
+ --label-size-s-min-height: 18px;
84
+
74
85
  --label-size-xs-padding: 0px 4px;
86
+ --label-size-xs-min-height: 16px;
87
+
75
88
  --label-size-xxs-padding: 0px 4px;
89
+ --label-size-xxs-min-height: 12px;
76
90
  }
@@ -8,6 +8,31 @@
8
8
  left: 0;
9
9
  top: 0;
10
10
  z-index: 1000000;
11
+ &__content {
12
+ width: 100%;
13
+ min-width: 200px;
14
+ min-height: 200px;
15
+ max-width: var(--modal-max-width);
16
+ position: relative;
17
+ z-index: 100;
18
+ &:focus {
19
+ outline: 0;
20
+ }
21
+ &-wrapper {
22
+ width: 100%;
23
+ }
24
+ }
25
+ &__header {
26
+ position: relative;
27
+ display: flex;
28
+ ^&__title {
29
+ flex: 1;
30
+ }
31
+ ^&__close {
32
+ z-index: 1;
33
+ cursor: pointer;
34
+ }
35
+ }
11
36
  &__overlay {
12
37
  z-index: -1;
13
38
  }
@@ -15,30 +40,22 @@
15
40
  display: flex;
16
41
  }
17
42
  }
18
- .modal-shape {
19
- &_rounded {
20
- border-radius: var(--modal-shape-rounded);
21
- }
22
- &_circular {
23
- border-radius: 50%;
24
- }
25
- }
26
- .modal-content {
27
- width: 100%;
28
- min-width: 200px;
29
- min-height: 200px;
30
- max-width: var(--modal-max-width);
31
- position: relative;
32
- z-index: 100;
33
- &:focus {
34
- outline: 0;
35
- }
36
- &__close {
37
- position: relative;
38
- z-index: 1;
39
- }
40
- &__wrapper {
41
- width: 100%;
43
+ .modal {
44
+ @each $size in xxl, xl, l, m, s, xs, xxs {
45
+ &_size_$(size) {
46
+ min-width: var(--modal-$(size)-min-width);
47
+ min-height: var(--modal-$(size)-min-height);
48
+ padding: var(--modal-$(size)-padding) 0;
49
+ ^&__header {
50
+ padding: 0 var(--modal-$(size)-padding);
51
+ gap: var(--modal-$(size)-gap);
52
+ }
53
+ ^&__content {
54
+ &-wrapper {
55
+ padding: var(--modal-$(size)-padding) 0;
56
+ }
57
+ }
58
+ }
42
59
  }
43
60
  }
44
61
  .modal {
@@ -58,6 +75,24 @@
58
75
  }
59
76
  }
60
77
  :root {
61
- --modal-shape-rounded: 0;
62
- --modal-max-width: 450px;
78
+ --modal-max-width: 500px;
79
+ --modal-xl-padding: 24px;
80
+ --modal-xl-gap: 24px;
81
+ --modal-xl-min-width: 500px;
82
+ --modal-xl-min-height: 240px;
83
+
84
+ --modal-l-padding: 24px;
85
+ --modal-l-gap: 24px;
86
+ --modal-l-min-width: 500px;
87
+ --modal-l-min-height: 240px;
88
+
89
+ --modal-m-padding: 24px;
90
+ --modal-m-gap: 24px;
91
+ --modal-m-min-width: 500px;
92
+ --modal-m-min-height: 240px;
93
+
94
+ --modal-s-padding: 24px;
95
+ --modal-s-gap: 24px;
96
+ --modal-s-min-width: 320px;
97
+ --modal-s-min-height: 240px;
63
98
  }
@@ -1,12 +1,12 @@
1
- declare const labelAppearanceDisable: {
2
- disableMutedPrimary: {
1
+ declare const labelAppearanceDisabled: {
2
+ disabledMutedPrimary: {
3
3
  fill: string;
4
4
  labelTextColor: string;
5
5
  borderColor: string;
6
6
  iconAfterFillIcon: string;
7
7
  iconBeforeFillIcon: string;
8
8
  };
9
- disablePrimary: {
9
+ disabledPrimary: {
10
10
  fill: string;
11
11
  labelTextColor: string;
12
12
  borderColor: string;
@@ -14,4 +14,4 @@ declare const labelAppearanceDisable: {
14
14
  iconBeforeFillIcon: string;
15
15
  };
16
16
  };
17
- export { labelAppearanceDisable };
17
+ export { labelAppearanceDisabled };
@@ -0,0 +1,25 @@
1
+ declare const modalAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedS: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedM: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedL: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedXL: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { modalAppearanceShape };
@@ -0,0 +1,27 @@
1
+ declare const modalAppearanceSize: {
2
+ sizeXL: {
3
+ size: string;
4
+ titleTextSize: string;
5
+ closeIconImage: string;
6
+ closeIconSize: string;
7
+ };
8
+ sizeL: {
9
+ size: string;
10
+ titleTextSize: string;
11
+ closeIconImage: string;
12
+ closeIconSize: string;
13
+ };
14
+ sizeM: {
15
+ size: string;
16
+ titleTextSize: string;
17
+ closeIconImage: string;
18
+ closeIconSize: string;
19
+ };
20
+ sizeS: {
21
+ size: string;
22
+ titleTextSize: string;
23
+ closeIconImage: string;
24
+ closeIconSize: string;
25
+ };
26
+ };
27
+ export { modalAppearanceSize };
@@ -0,0 +1,14 @@
1
+ declare const modalAppearanceStyle: {
2
+ solid: {
3
+ borderColor: string;
4
+ };
5
+ outlined: {
6
+ fill: string;
7
+ };
8
+ full: {};
9
+ ghost: {
10
+ fill: string;
11
+ borderColor: string;
12
+ };
13
+ };
14
+ export { modalAppearanceStyle };
@@ -1,7 +1,8 @@
1
1
  declare const modalAppearanceSurface: {
2
2
  surfacePrimary: {
3
3
  fill: string;
4
- fillHover: string;
4
+ borderColor: string;
5
+ closeIconAppearance: string;
5
6
  };
6
7
  };
7
8
  export { modalAppearanceSurface };
@@ -1,55 +1,41 @@
1
1
  declare const titleAppearanceSize: {
2
- sizeXXL: {
2
+ h1: {
3
3
  size: string;
4
- labelTextSize: string;
5
4
  iconAfterFillSize: string;
6
5
  iconAfterSize: string;
7
6
  iconBeforeFillSize: string;
8
7
  iconBeforeSize: string;
9
8
  };
10
- sizeXL: {
9
+ h2: {
11
10
  size: string;
12
- labelTextSize: string;
13
11
  iconAfterFillSize: string;
14
12
  iconAfterSize: string;
15
13
  iconBeforeFillSize: string;
16
14
  iconBeforeSize: string;
17
15
  };
18
- sizeL: {
16
+ h3: {
19
17
  size: string;
20
- labelTextSize: string;
21
18
  iconAfterFillSize: string;
22
19
  iconAfterSize: string;
23
20
  iconBeforeFillSize: string;
24
21
  iconBeforeSize: string;
25
22
  };
26
- sizeM: {
23
+ h4: {
27
24
  size: string;
28
- labelTextSize: string;
29
25
  iconAfterFillSize: string;
30
26
  iconAfterSize: string;
31
27
  iconBeforeFillSize: string;
32
28
  iconBeforeSize: string;
33
29
  };
34
- sizeS: {
30
+ h5: {
35
31
  size: string;
36
- labelTextSize: string;
37
32
  iconAfterFillSize: string;
38
33
  iconAfterSize: string;
39
34
  iconBeforeFillSize: string;
40
35
  iconBeforeSize: string;
41
36
  };
42
- sizeXS: {
37
+ h6: {
43
38
  size: string;
44
- labelTextSize: string;
45
- iconAfterFillSize: string;
46
- iconAfterSize: string;
47
- iconBeforeFillSize: string;
48
- iconBeforeSize: string;
49
- };
50
- sizeXXS: {
51
- size: string;
52
- labelTextSize: string;
53
39
  iconAfterFillSize: string;
54
40
  iconAfterSize: string;
55
41
  iconBeforeFillSize: string;
@@ -4,11 +4,6 @@ declare const titleAppearanceSurface: {
4
4
  fillHover: string;
5
5
  labelTextColor: string;
6
6
  };
7
- surfaceQuaternary: {
8
- fill: string;
9
- fillHover: string;
10
- labelTextColor: string;
11
- };
12
7
  surfaceSecondary: {
13
8
  fill: string;
14
9
  fillHover: string;
@@ -21,5 +16,10 @@ declare const titleAppearanceSurface: {
21
16
  fillHover: string;
22
17
  labelTextColor: string;
23
18
  };
19
+ surfaceQuaternary: {
20
+ fill: string;
21
+ fillHover: string;
22
+ labelTextColor: string;
23
+ };
24
24
  };
25
25
  export { titleAppearanceSurface };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.65",
3
+ "version": "1.8.66",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -103,7 +103,7 @@
103
103
  "@emotion/is-prop-valid": "^1.3.1",
104
104
  "@itcase/common": "^1.2.28",
105
105
  "@itcase/icons": "^1.2.16",
106
- "@itcase/storybook-config": "^1.1.53",
106
+ "@itcase/storybook-config": "^1.1.54",
107
107
  "@itcase/tokens-am": "^1.1.19",
108
108
  "@itcase/tokens-baikal": "^1.1.17",
109
109
  "@itcase/tokens-palette": "^1.1.11",
@@ -112,11 +112,11 @@
112
112
  "date-fns": "^4.1.0",
113
113
  "eslint-import-resolver-alias": "^1.1.2",
114
114
  "eslint-plugin-import": "^2.32.0",
115
- "framer-motion": "^12.23.6",
115
+ "framer-motion": "^12.23.7",
116
116
  "js-cookie": "^3.0.5",
117
117
  "lodash": "^4.17.21",
118
118
  "luxon": "^3.7.1",
119
- "motion": "^12.23.6",
119
+ "motion": "^12.23.7",
120
120
  "rc-slider": "^11.1.8",
121
121
  "react": "^18.3.1",
122
122
  "react-dadata": "^2.27.4",
@@ -143,7 +143,7 @@
143
143
  "@commitlint/cli": "^19.8.1",
144
144
  "@commitlint/config-conventional": "^19.8.1",
145
145
  "@itcase/config": "^1.0.54",
146
- "@itcase/lint": "^1.1.26",
146
+ "@itcase/lint": "^1.1.27",
147
147
  "@itcase/types": "^1.0.6",
148
148
  "@rollup/plugin-alias": "^5.1.1",
149
149
  "@rollup/plugin-babel": "^6.0.4",