@itcase/ui 1.9.19 → 1.9.21

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.
@@ -85,25 +85,25 @@ const paginationAppearanceShape = {
85
85
  fillInputShape: 'rounded',
86
86
  fillInputShapeStrength: '2m',
87
87
  pageCountDropdownShape: 'rounded',
88
- pageCountDropdownShapeStrength: '2m'
88
+ pageCountDropdownShapeStrength: '2m',
89
89
  },
90
90
  roundedL: {
91
91
  fillInputShape: 'rounded',
92
92
  fillInputShapeStrength: '1_5m',
93
93
  pageCountDropdownShape: 'rounded',
94
- pageCountDropdownShapeStrength: '1_5m'
94
+ pageCountDropdownShapeStrength: '1_5m',
95
95
  },
96
96
  roundedM: {
97
97
  fillInputShape: 'rounded',
98
98
  fillInputShapeStrength: '1m',
99
99
  pageCountDropdownShape: 'rounded',
100
- pageCountDropdownShapeStrength: '1m'
100
+ pageCountDropdownShapeStrength: '1m',
101
101
  },
102
102
  roundedS: {
103
103
  fillInputShape: 'rounded',
104
104
  fillInputShapeStrength: '0_5m',
105
105
  pageCountDropdownShape: 'rounded',
106
- pageCountDropdownShapeStrength: '0_5m'
106
+ pageCountDropdownShapeStrength: '0_5m',
107
107
  },
108
108
  };
109
109
 
@@ -294,7 +294,7 @@ const RESPONSE_MESSAGES = {
294
294
  primaryButtonLabel: 'ОК',
295
295
  },
296
296
  nothingFound: {
297
- appearance: 'refresh ghost',
297
+ appearance: 'nothingFound ghost',
298
298
  title: 'Ничего не найдено',
299
299
  desc: 'Нет данных по заданным параметрам',
300
300
  // code: '500',
@@ -4,9 +4,12 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var react = require('swiper/react');
7
+ var Group = require('../../Group_cjs_CFzdSMKV.js');
8
+ var Text = require('../../Text_cjs_DG2eMKBi.js');
7
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
10
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
11
  var Icon = require('../../Icon_cjs_BgGtdviU.js');
12
+ require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
10
13
  require('lodash/camelCase');
11
14
  require('lodash/castArray');
12
15
  require('lodash/upperFirst');
@@ -23,13 +26,11 @@ require('lodash/maxBy');
23
26
  require('react-inlinesvg');
24
27
  require('../hoc/urlWithAssetPrefix.js');
25
28
  require('../context/UrlAssetPrefix.js');
26
- require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
27
29
  require('../../Link_cjs_qKXVfU8e.js');
28
- require('../../Text_cjs_DG2eMKBi.js');
29
30
 
30
31
  function Swiper(props) {
31
- const { id, className, direction, title, titleAfter, titleSize, titleTextColor, titleWeight, setNextBtnDisabled, setPrevBtnDisabled, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, // https://github.com/vercel/next.js/issues/4957
32
- freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, set, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
32
+ const { id, className, direction, minZoom = 1, maxZoom = 5, title, titleAfter, titleSize, titleTextColor, titleWeight, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, // https://github.com/vercel/next.js/issues/4957
33
+ freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, isShowOriginalLink = false, isZoomEnabled = false, setNextBtnDisabled, setPrevBtnDisabled, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
33
34
  const swiperRef = React.useRef(null);
34
35
  const isMountedRef = React.useRef(false);
35
36
  const [nextEl, nextRef] = useSwiperRef();
@@ -56,6 +57,13 @@ function Swiper(props) {
56
57
  setNextBtnDisabled(swiper.isEnd);
57
58
  }
58
59
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
60
+ const onClickShowOriginalButton = React.useCallback(() => {
61
+ const swiperInstance = swiperRef.current?.swiper;
62
+ const imgElement = swiperInstance?.slides[swiperInstance.activeIndex]?.querySelector('img');
63
+ if (imgElement?.src) {
64
+ window.open(imgElement.src, '_blank');
65
+ }
66
+ }, [swiperRef]);
59
67
  // @ts-expect-error
60
68
  React.useImperativeHandle(forwardedRef, () => swiperRef.current, []);
61
69
  React.useEffect(() => {
@@ -73,8 +81,13 @@ function Swiper(props) {
73
81
  const { alignClass, alignDirectionClass, fillClass, shapeClass } = propsGenerator;
74
82
  // @ts-expect-error
75
83
  const { styles: style } = useStyles.useStyles(props);
76
- return (jsxRuntime.jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className, set && `swiper-block_set_${set}`), style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
77
- items?.map((item, i) => (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: item }, `swiper-slide_${i}`))) })] }));
84
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className), style: style, children: [(title || (prevButton && nextButton)) && (jsxRuntime.jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxRuntime.jsxs("div", { className: "swiper-block__navigation", children: [jsxRuntime.jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsxRuntime.jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsxRuntime.jsx(react.Swiper, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, zoom: {
85
+ minRatio: minZoom,
86
+ maxRatio: maxZoom,
87
+ enabled: isZoomEnabled,
88
+ toggle: true,
89
+ }, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
90
+ items?.map((item, i) => (jsxRuntime.jsx(react.SwiperSlide, { className: clsx('swiper-block__item', isZoomEnabled && 'swiper-block__item_zooming', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: isZoomEnabled ? (jsxRuntime.jsx("div", { className: "swiper-zoom-container", children: item })) : (item) }, `swiper-slide_${i}`))) }), isShowOriginalLink && (jsxRuntime.jsx(Group.Group, { width: "fill", fill: "surfacePrimary", padding: "1m 0", children: jsxRuntime.jsx(Text.Text, { size: "m", textColor: "surfaceTextPrimary", onClick: onClickShowOriginalButton, children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B" }) }))] }));
78
91
  }
79
92
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
80
93
  const useSwiperRef = () => {
@@ -83,25 +83,25 @@ const paginationAppearanceShape = {
83
83
  fillInputShape: 'rounded',
84
84
  fillInputShapeStrength: '2m',
85
85
  pageCountDropdownShape: 'rounded',
86
- pageCountDropdownShapeStrength: '2m'
86
+ pageCountDropdownShapeStrength: '2m',
87
87
  },
88
88
  roundedL: {
89
89
  fillInputShape: 'rounded',
90
90
  fillInputShapeStrength: '1_5m',
91
91
  pageCountDropdownShape: 'rounded',
92
- pageCountDropdownShapeStrength: '1_5m'
92
+ pageCountDropdownShapeStrength: '1_5m',
93
93
  },
94
94
  roundedM: {
95
95
  fillInputShape: 'rounded',
96
96
  fillInputShapeStrength: '1m',
97
97
  pageCountDropdownShape: 'rounded',
98
- pageCountDropdownShapeStrength: '1m'
98
+ pageCountDropdownShapeStrength: '1m',
99
99
  },
100
100
  roundedS: {
101
101
  fillInputShape: 'rounded',
102
102
  fillInputShapeStrength: '0_5m',
103
103
  pageCountDropdownShape: 'rounded',
104
- pageCountDropdownShapeStrength: '0_5m'
104
+ pageCountDropdownShapeStrength: '0_5m',
105
105
  },
106
106
  };
107
107
 
@@ -292,7 +292,7 @@ const RESPONSE_MESSAGES = {
292
292
  primaryButtonLabel: 'ОК',
293
293
  },
294
294
  nothingFound: {
295
- appearance: 'refresh ghost',
295
+ appearance: 'nothingFound ghost',
296
296
  title: 'Ничего не найдено',
297
297
  desc: 'Нет данных по заданным параметрам',
298
298
  // code: '500',
@@ -2,9 +2,12 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useCallback, useImperativeHandle, useEffect, useState } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
+ import { G as Group } from '../Group_es_BwTj-yH-.js';
6
+ import { T as Text } from '../Text_es_CU9KR5AE.js';
5
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
9
  import { b as Title } from '../Icon_es_CtZHchZc.js';
10
+ import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
8
11
  import 'lodash/camelCase';
9
12
  import 'lodash/castArray';
10
13
  import 'lodash/upperFirst';
@@ -21,13 +24,11 @@ import 'lodash/maxBy';
21
24
  import 'react-inlinesvg';
22
25
  import '../hoc/urlWithAssetPrefix.js';
23
26
  import '../context/UrlAssetPrefix.js';
24
- import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
25
27
  import '../Link_es_P2b6ya7P.js';
26
- import '../Text_es_CU9KR5AE.js';
27
28
 
28
29
  function Swiper(props) {
29
- const { id, className, direction, title, titleAfter, titleSize, titleTextColor, titleWeight, setNextBtnDisabled, setPrevBtnDisabled, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, // https://github.com/vercel/next.js/issues/4957
30
- freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, set, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
30
+ const { id, className, direction, minZoom = 1, maxZoom = 5, title, titleAfter, titleSize, titleTextColor, titleWeight, activeSlideIndex = 0, allowTouchMove, autoHeight, breakpoints, forwardedRef, // https://github.com/vercel/next.js/issues/4957
31
+ freeMode, items, keyboard, loop, modules, mousewheel, nextButton, normalizeSlideIndex, pagination, prevButton, preventClicks, preventClicksPropagation, simulateTouch, slidesPerView, spaceBetween, speed, swiperClass, swiperSlideClass, isChangeOnClickSlide, isInit, isNavigation = false, isScrollbar, isShowOriginalLink = false, isZoomEnabled = false, setNextBtnDisabled, setPrevBtnDisabled, onSlideNextTransitionEnd, onSlidePrevTransitionEnd, onSwiper, onUpdate, children, } = props;
31
32
  const swiperRef = useRef(null);
32
33
  const isMountedRef = useRef(false);
33
34
  const [nextEl, nextRef] = useSwiperRef();
@@ -54,6 +55,13 @@ function Swiper(props) {
54
55
  setNextBtnDisabled(swiper.isEnd);
55
56
  }
56
57
  }, [isLoop, setPrevBtnDisabled, setNextBtnDisabled]);
58
+ const onClickShowOriginalButton = useCallback(() => {
59
+ const swiperInstance = swiperRef.current?.swiper;
60
+ const imgElement = swiperInstance?.slides[swiperInstance.activeIndex]?.querySelector('img');
61
+ if (imgElement?.src) {
62
+ window.open(imgElement.src, '_blank');
63
+ }
64
+ }, [swiperRef]);
57
65
  // @ts-expect-error
58
66
  useImperativeHandle(forwardedRef, () => swiperRef.current, []);
59
67
  useEffect(() => {
@@ -71,8 +79,13 @@ function Swiper(props) {
71
79
  const { alignClass, alignDirectionClass, fillClass, shapeClass } = propsGenerator;
72
80
  // @ts-expect-error
73
81
  const { styles: style } = useStyles(props);
74
- return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className, set && `swiper-block_set_${set}`), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
75
- items?.map((item, i) => (jsx(SwiperSlide, { className: clsx('swiper-block__item', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: item }, `swiper-slide_${i}`))) })] }));
82
+ return (jsxs("div", { id: id, className: clsx('swiper-block', slidesPerView === 'auto' && 'swiper-block_type_auto', fillClass && `fill_${fillClass}`, shapeClass && `swiper_shape_${shapeClass}`, className), style: style, children: [(title || (prevButton && nextButton)) && (jsxs("div", { className: "swiper-block__wrapper", children: [title && (jsx(Title, { className: "swiper-block__title", size: titleSize, textColor: titleTextColor, textWeight: titleWeight, children: title })), titleAfter, prevButton && nextButton && (jsxs("div", { className: "swiper-block__navigation", children: [jsx("div", { className: "swiper-block__prev swiper-button", ref: prevRef, children: prevButton }), jsx("div", { className: "swiper-block__next swiper-button", ref: nextRef, children: nextButton })] }))] })), jsx(Swiper$1, { className: clsx('swiper-block__swiper', swiperClass), ref: swiperRef, direction: direction, allowTouchMove: allowTouchMove, autoHeight: autoHeight ?? false, breakpoints: breakpoints, centeredSlides: true, freeMode: freeMode, init: isInit ?? true, keyboard: keyboard, loop: isLoop, modules: modules, mousewheel: mousewheel, navigation: isNavigation ? { nextEl, prevEl } : false, normalizeSlideIndex: normalizeSlideIndex, pagination: pagination, preventClicks: preventClicks, preventClicksPropagation: preventClicksPropagation, scrollbar: isScrollbar, simulateTouch: simulateTouch, slidesPerView: slidesPerView, spaceBetween: spaceBetween, speed: speed ?? 500, zoom: {
83
+ minRatio: minZoom,
84
+ maxRatio: maxZoom,
85
+ enabled: isZoomEnabled,
86
+ toggle: true,
87
+ }, onInit: onInitSwiper, onSlideChange: onSlideChange, onSlideNextTransitionEnd: onSlideNextTransitionEnd, onSlidePrevTransitionEnd: onSlidePrevTransitionEnd, onSwiper: onSwiper, onTransitionStart: onTransitionStart, onUpdate: onUpdate, children: children ||
88
+ items?.map((item, i) => (jsx(SwiperSlide, { className: clsx('swiper-block__item', isZoomEnabled && 'swiper-block__item_zooming', swiperSlideClass, alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), children: isZoomEnabled ? (jsx("div", { className: "swiper-zoom-container", children: item })) : (item) }, `swiper-slide_${i}`))) }), isShowOriginalLink && (jsx(Group, { width: "fill", fill: "surfacePrimary", padding: "1m 0", children: jsx(Text, { size: "m", textColor: "surfaceTextPrimary", onClick: onClickShowOriginalButton, children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B" }) }))] }));
76
89
  }
77
90
  // https://github.com/nolimits4web/swiper/issues/3855#issuecomment-1050694342
78
91
  const useSwiperRef = () => {
@@ -61875,9 +61875,9 @@ h2.react-datepicker__current-month {
61875
61875
  --dropdown-item-size-l-padding: 8px 12px;
61876
61876
  --dropdown-item-size-l-gap: 12px;
61877
61877
 
61878
- /* Size M */
61878
+ /* Size S */
61879
61879
  --dropdown-item-size-s-padding: 6px 8px;
61880
- --dropdown-item-size-s-gap: 0px;
61880
+ --dropdown-item-size-s-gap: 8px;
61881
61881
 
61882
61882
  /* Size XS */
61883
61883
  --dropdown-item-size-xs-padding: 4px 8px;
@@ -79816,7 +79816,7 @@ div.label {
79816
79816
  }
79817
79817
  }
79818
79818
  :root {
79819
- --modal-max-width: 500px;
79819
+ --modal-max-width: 800px;
79820
79820
 
79821
79821
  --modal-xl-gap: 24px;
79822
79822
  --modal-xl-header-padding: 24px 24px 0 24px;
@@ -98954,6 +98954,14 @@ div.swiper-block {
98954
98954
  }
98955
98955
  }
98956
98956
  }
98957
+ .swiper-zoom-container {
98958
+ display: flex;
98959
+ justify-content: center;
98960
+ align-items: center;
98961
+ }
98962
+ .swiper-slide-zoomed {
98963
+ cursor: grab;
98964
+ }
98957
98965
  div.swiper-pagination {
98958
98966
  display: flex;
98959
98967
  &-horizontal {
@@ -0,0 +1,14 @@
1
+ {
2
+ "Chips": {
3
+ "prefix": "chips",
4
+ "body": [
5
+ "<Chips",
6
+ " appearance=\"${1|accent,surface,accentMuted,danger,dangerMuted,disabled,error,errorMuted,info,infoMuted,primary,primaryMuted,secondary,secondaryMuted,success,successMuted,surfaceMuted,warning,warningMuted|}${2|Primary,Secondary,Tertiary|} ${3|sizeXXL,sizeXL,sizeL,sizeM,sizeS,sizeXS,sizeXXS|} ${4|solid,outlined,full,ghost|} ${5|rounded,circular,roundedS,roundedM,roundedL,roundedXL|}\"",
7
+ " label={}",
8
+ " isActive={}",
9
+ " onClick={}",
10
+ "/>"
11
+ ],
12
+ "description": "ITCase-UI Chips Component"
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "Divider": {
3
+ "prefix": "divider",
4
+ "body": [
5
+ "<Divider appearance=\"${1|surface,accent,error,success,warning|}${2|Primary,Secondary,Tertiary,Quaternary|} ${3|sizeL,sizeM,sizeS|}\" width=\"fill\" />"
6
+ ],
7
+ "description": "ITCase-UI Divider Component"
8
+ }
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "Drawer": {
3
+ "prefix": "drawer",
4
+ "body": [
5
+ "<Drawer",
6
+ " appearance=\"surface${1|Primary,Secondary,Tertiary,Quaternary|} sizeH3\"",
7
+ " title=\"Title\"",
8
+ " isOpen={}",
9
+ " onClickClose={}",
10
+ ">",
11
+ " $2",
12
+ "</Drawer>"
13
+ ],
14
+ "description": "ITCase-UI Drawer Component"
15
+ }
16
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "Group": {
3
+ "prefix": "group",
4
+ "body": [
5
+ "<Group width=\"${1|fill,auto}\" direction=\"${2|horizontal,vertical,row-reverse,column-reverse|}\">",
6
+ " $3",
7
+ "</Group>"
8
+ ],
9
+ "description": "ITCase-UI Group Component"
10
+ }
11
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "Icon": {
3
+ "prefix": "icon",
4
+ "body": [
5
+ "<Icon",
6
+ " appearance=\"${1|accent,surface,danger,disabled,error,info,primary,secondary,success,warning|}${2|Primary,Secondary,Tertiary,Quaternary|} ${3|size12_12,size14_12,size14_14,size16_12,size16_14,size16_16,size20_12,size20_14,size20_16,size20_20,size24_12,size24_14,size24_16,size24_20,size24_24,size32_12,size32_14,size32_16,size32_20,size32_24,size32_32,size40_12,size40_14,size40_16,size40_20,size40_24,size40_32,size40_40|} ${4|solid,outlined,full,ghost|} ${5|rounded,circular,roundedXL,roundedL,roundedM,roundedS|}\"",
7
+ " SvgImage={$6}",
8
+ " onClick={}",
9
+ "/>"
10
+ ],
11
+ "description": "ITCase-UI Icon Component"
12
+ }
13
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "Modal": {
3
+ "prefix": "modal",
4
+ "body": [
5
+ "<Modal",
6
+ " appearance=\"surfacePrimary ${1|sizeXL,sizeL,sizeM,sizeS|} ${2|solid,outlined,full,ghost|} ${3|rounded,circular,roundedXL,roundedL,roundedM,roundedS|}\"",
7
+ " title=\"${4:Title}\"",
8
+ " isOpen={}",
9
+ " onCloseModal={}",
10
+ ">",
11
+ " $5",
12
+ "</Modal>"
13
+ ],
14
+ "description": "ITCase-UI Modal Component"
15
+ }
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "Pagination": {
3
+ "prefix": "pagination",
4
+ "body": [
5
+ "<Pagination",
6
+ " appearance=\"${1|accent,surface|}${2|Primary,Secondary|} ${3|sizeXXL,sizeXL,sizeL,sizeM,sizeS,sizeXS|} ${4|solid,outlined,full,ghost|} ${5|rounded,circular,roundedXL,roundedL,roundedM,roundedS|}\"",
7
+ " allItemsCount={}",
8
+ " pageNumber={}",
9
+ " perPageCount={}",
10
+ " isPageCount={true}",
11
+ " onChangePage={}",
12
+ "/>"
13
+ ],
14
+ "description": "ITCase-UI Pagination Component"
15
+ }
16
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "Select": {
3
+ "prefix": "select",
4
+ "body": [
5
+ "<Select",
6
+ " appearance=\"${1|default,disabled,error,require,success|}Primary ${2|sizeXL,sizeL,sizeM,sizeS,sizeXS,sizeXXS|} ${3|solid,outlined,full,ghost|} ${4|rounded,roundedXL,roundedL,roundedM,roundedS|}\"",
7
+ " options={}",
8
+ " placeholder=\"${5:Placeholder}\"",
9
+ " value={}",
10
+ " onChange={}",
11
+ "/>"
12
+ ],
13
+ "description": "ITCase-UI Select Component"
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "Text": {
3
+ "prefix": "text",
4
+ "body": [
5
+ "<Text size=\"${1|xxs,xs,s,m,l,xl,xxl|}\" textColor=\"${2|surface,accent,special,extra,error,warning,success,info,danger,disabled|}${3|TextPrimary,TextSecondary,TextTertiary,TextQuaternary|}\">",
6
+ " $4",
7
+ "</Text>"
8
+ ],
9
+ "description": "ITCase-UI Text Component"
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "Title": {
3
+ "prefix": "title",
4
+ "body": [
5
+ "<Title size=\"${1|h1,h2,h3,h4,h5,h6|}\" textColor=\"${2|surface,accent,special,extra,error,warning,success,info,danger,disabled|}${3|TextPrimary,TextSecondary,TextTertiary,TextQuaternary|}\">",
6
+ " $4",
7
+ "</Title>"
8
+ ],
9
+ "description": "ITCase-UI Title Component"
10
+ }
11
+ }
@@ -3,7 +3,7 @@ declare const paginationAppearanceSize: {
3
3
  size: string;
4
4
  labelTextSize: string;
5
5
  textSize: string;
6
- builderIcon: string;
6
+ builderIcon: any;
7
7
  iconAfterFillSize: string;
8
8
  iconAfterSize: string;
9
9
  iconBeforeFillSize: string;
@@ -23,7 +23,7 @@ declare const paginationAppearanceSize: {
23
23
  size: string;
24
24
  labelTextSize: string;
25
25
  textSize: string;
26
- builderIcon: string;
26
+ builderIcon: any;
27
27
  iconAfterFillSize: string;
28
28
  iconAfterSize: string;
29
29
  iconBeforeFillSize: string;
@@ -42,7 +42,7 @@ declare const paginationAppearanceSize: {
42
42
  size: string;
43
43
  labelTextSize: string;
44
44
  textSize: string;
45
- builderIcon: string;
45
+ builderIcon: any;
46
46
  iconAfterFillSize: string;
47
47
  iconAfterSize: string;
48
48
  iconBeforeFillSize: string;
@@ -61,7 +61,7 @@ declare const paginationAppearanceSize: {
61
61
  labelTextSize: string;
62
62
  textSize: string;
63
63
  beforeSize: string;
64
- builderIcon: string;
64
+ builderIcon: any;
65
65
  iconAfterFillSize: string;
66
66
  nextIcon: string;
67
67
  pageCountDescTextSize: string;
@@ -24,6 +24,8 @@ export interface SwiperProps extends StyleAttributes {
24
24
  items?: ReactNode[];
25
25
  keyboard?: boolean;
26
26
  loop?: boolean;
27
+ maxZoom?: number;
28
+ minZoom?: number;
27
29
  modules?: SwiperModule[];
28
30
  mousewheel?: boolean;
29
31
  nextButton?: ReactNode;
@@ -49,11 +51,11 @@ export interface SwiperProps extends StyleAttributes {
49
51
  isInit?: boolean;
50
52
  isNavigation?: boolean;
51
53
  isScrollbar?: boolean;
54
+ isZoomEnabled?: boolean;
52
55
  onSlideNextTransitionEnd?: (swiper: SwiperClass) => void;
53
56
  onSlidePrevTransitionEnd?: (swiper: SwiperClass) => void;
54
57
  onSwiper?: (swiper: SwiperClass) => void;
55
58
  onUpdate?: (swiper: SwiperClass) => void;
56
- set?: string;
57
59
  setNextBtnDisabled?: (isDisabled: boolean) => void;
58
60
  setPrevBtnDisabled?: (isDisabled: boolean) => void;
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.19",
3
+ "version": "1.9.21",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -102,11 +102,11 @@
102
102
  "dependencies": {
103
103
  "@emotion/is-prop-valid": "^1.4.0",
104
104
  "@itcase/common": "^1.2.34",
105
- "@itcase/icons": "^1.2.23",
106
- "@itcase/storybook-config": "^1.2.28",
107
- "@itcase/tokens-am": "^1.1.35",
108
- "@itcase/tokens-baikal": "^1.1.35",
109
- "@itcase/tokens-palette": "^1.1.35",
105
+ "@itcase/icons": "^1.2.27",
106
+ "@itcase/storybook-config": "^1.2.29",
107
+ "@itcase/tokens-am": "^1.1.37",
108
+ "@itcase/tokens-baikal": "^1.1.37",
109
+ "@itcase/tokens-palette": "^1.1.37",
110
110
  "clsx": "^2.1.1",
111
111
  "date-fns": "^4.1.0",
112
112
  "framer-motion": "^12.23.24",
@@ -117,7 +117,7 @@
117
117
  "rc-slider": "^11.1.9",
118
118
  "react": "^18.3.1",
119
119
  "react-dadata": "^2.27.4",
120
- "react-datepicker": "^8.9.0",
120
+ "react-datepicker": "^8.10.0",
121
121
  "react-dom": "^18.3.1",
122
122
  "react-indiana-drag-scroll": "^3.0.3-alpha",
123
123
  "react-inlinesvg": "^4.2.0",
@@ -139,7 +139,7 @@
139
139
  "@babel/preset-react": "^7.28.5",
140
140
  "@commitlint/cli": "^20.1.0",
141
141
  "@commitlint/config-conventional": "^20.0.0",
142
- "@itcase/config": "^1.0.68",
142
+ "@itcase/config": "^1.0.70",
143
143
  "@itcase/lint": "^1.1.69",
144
144
  "@itcase/types": "^1.1.0",
145
145
  "@rollup/plugin-alias": "^6.0.0",
@@ -151,10 +151,10 @@
151
151
  "@rollup/plugin-terser": "^0.4.4",
152
152
  "@rollup/plugin-typescript": "^12.3.0",
153
153
  "@semantic-release/changelog": "^6.0.3",
154
- "@semantic-release/release-notes-generator": "14.1.0",
155
154
  "@semantic-release/git": "^10.0.1",
155
+ "@semantic-release/release-notes-generator": "14.1.0",
156
156
  "@types/js-cookie": "^3.0.6",
157
- "@types/lodash": "^4.17.20",
157
+ "@types/lodash": "^4.17.21",
158
158
  "@types/luxon": "^3.7.1",
159
159
  "@types/react": "^19",
160
160
  "@types/react-datepicker": "^7.0.0",
@@ -170,12 +170,12 @@
170
170
  "prettier": "^3.6.2",
171
171
  "rollup": "^4.53.3",
172
172
  "rollup-plugin-copy": "^3.5.0",
173
- "rollup-plugin-dts": "^6.2.3",
173
+ "rollup-plugin-dts": "^6.3.0",
174
174
  "rollup-plugin-peer-deps-external": "^2.2.4",
175
175
  "rollup-preserve-directives": "^1.1.3",
176
176
  "semantic-release": "^24.2.9",
177
- "storybook": "^10.0.8",
178
- "stylelint": "^16.25.0",
177
+ "storybook": "^10.1.0",
178
+ "stylelint": "^16.26.0",
179
179
  "typescript": "^5.9.3"
180
180
  }
181
181
  }