@itcase/ui 1.9.18 → 1.9.20

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.
@@ -336,7 +336,6 @@ function ChipsGroup(props) {
336
336
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
337
337
  // @ts-expect-error
338
338
  const { styles: groupStyles } = useStyles.useStyles(props);
339
- console.log();
340
339
  return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
341
340
  ? children
342
341
  : chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, isDisabled: item.isDisabled, onClick: () => onClick(item) }, item.id))) }));
@@ -334,7 +334,6 @@ function ChipsGroup(props) {
334
334
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
335
335
  // @ts-expect-error
336
336
  const { styles: groupStyles } = useStyles(props);
337
- console.log();
338
337
  return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
339
338
  ? children
340
339
  : chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, isDisabled: item.isDisabled, onClick: () => onClick(item) }, item.id))) }));
@@ -86,16 +86,31 @@ const datePickerAppearance = {
86
86
  ...datePickerStyle,
87
87
  };
88
88
 
89
+ const getWeekRange = (date) => {
90
+ // "getDay" return from 0(sunday) to 6 (saturday).
91
+ // When 0(sunday) - we set as 7(end of week from 1(monday))
92
+ const weekDayIndex = date.getDay() || 7;
93
+ // Collect monday of week from selected date
94
+ const mondayDate = new Date(date);
95
+ mondayDate.setDate(date.getDate() - (weekDayIndex - 1));
96
+ // Collect sunday of week from selected date
97
+ const sundayDate = new Date(mondayDate);
98
+ sundayDate.setDate(mondayDate.getDate() + 6);
99
+ return {
100
+ mondayDate,
101
+ sundayDate,
102
+ };
103
+ };
104
+
89
105
  const datePickerConfig = {
90
106
  appearance: datePickerAppearance,
91
107
  setAppearance: (appearanceConfig) => {
92
108
  datePickerConfig.appearance = appearanceConfig;
93
109
  },
94
110
  };
95
- const INPUT_CLASSNAME = 'datepicker__input';
96
111
  function DatePickerInput(props) {
97
112
  const { className, datePickerProps = {}, endValue, inputProps = {}, value, onChange, } = props;
98
- const { appearance, customTimeInput, disablePastDays, monthsShown, selectsRange, showWeekPicker, } = datePickerProps;
113
+ const { appearance, customTimeInput, disablePastDays, monthsShown, selectsRange, showWeekNumbers, showWeekPicker, } = datePickerProps;
99
114
  const appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, datePickerConfig);
100
115
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(datePickerProps, appearanceConfig);
101
116
  const { daySize, dayTextColor, dayTextShape, dayTextSize, iconFill, iconFillHover, iconFillSize, iconItemFill, iconLeft, iconRight, iconShape, monthTextColor, monthTextSize, monthTextWeight, popper, popperPlacement, sizeClass, widthClass, yearTextColor, yearTextSize, yearTextWeight, isClearable, } = propsGenerator;
@@ -124,16 +139,9 @@ function DatePickerInput(props) {
124
139
  const handleChange = React.useCallback((selected) => {
125
140
  const valuesList = Array.isArray(selected) ? selected : [selected];
126
141
  const [selectedDateStart, selectedDateEnd] = valuesList;
142
+ // "showWeekPicker" means to select full weak by one of day
127
143
  if (selectedDateStart && showWeekPicker) {
128
- // "getDay" return from 0(sunday) to 6 (saturday).
129
- // When 0(sunday) - we set as 7(end of week from 1(monday))
130
- const weekDayIndex = selectedDateStart.getDay() || 7;
131
- // Collect monday of week from selected date
132
- const mondayDate = new Date(selectedDateStart);
133
- mondayDate.setDate(selectedDateStart.getDate() - (weekDayIndex - 1));
134
- // Collect sunday of week from selected date
135
- const sundayDate = new Date(mondayDate);
136
- sundayDate.setDate(mondayDate.getDate() + 6);
144
+ const { mondayDate, sundayDate } = getWeekRange(selectedDateStart);
137
145
  // Selected date can be wednesday, but for week picker
138
146
  // we return start and end of selected week.
139
147
  onChange(mondayDate, sundayDate);
@@ -142,6 +150,10 @@ function DatePickerInput(props) {
142
150
  onChange(selectedDateStart, selectedDateEnd);
143
151
  }
144
152
  }, [showWeekPicker, onChange]);
153
+ const handleWeekSelect = React.useCallback((startDateOfSelectedWeek) => {
154
+ const { mondayDate, sundayDate } = getWeekRange(startDateOfSelectedWeek);
155
+ onChange(mondayDate, sundayDate);
156
+ }, [onChange]);
145
157
  const renderDayContents = React.useCallback((day, date) => {
146
158
  return (jsxRuntime.jsx(Button.Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
147
159
  }, [daySize, dayTextColor, dayTextShape, dayTextSize]);
@@ -161,7 +173,7 @@ function DatePickerInput(props) {
161
173
  yearTextWeight,
162
174
  ]);
163
175
  const { styles: datePickerStyles } = useStyles.useStyles(props);
164
- return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && `datepicker_size_${sizeClass}`, widthClass && `datepicker_width_${widthClass}`), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, { ref: datepickerRef, minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: locale.ru, outsideClickIgnoreClass: INPUT_CLASSNAME, popperClassName: popper && `react-datepicker-popper-${popper}`, popperPlacement: popperPlacement, preventOpenOnFocus: true, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: handleChange, ...datePickerProps,
176
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && `datepicker_size_${sizeClass}`, widthClass && `datepicker_width_${widthClass}`), style: datePickerStyles, children: jsxRuntime.jsx(DatePicker, { ref: datepickerRef, minDate: disablePastDays ? new Date() : undefined, customInput: jsxRuntime.jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: locale.ru, outsideClickIgnoreClass: "react-datepicker-popper", popperClassName: popper && `react-datepicker-popper-${popper}`, popperPlacement: popperPlacement, preventOpenOnFocus: true, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: handleChange, onWeekSelect: showWeekNumbers ? handleWeekSelect : undefined, ...datePickerProps,
165
177
  // Important for use custom clear button
166
178
  isClearable: false }) }));
167
179
  }
@@ -174,13 +186,14 @@ const DatePickerCustomInput = React.forwardRef((props, ref) => {
174
186
  }
175
187
  return '';
176
188
  }, [value]);
177
- return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Input.Input, { ...props, ...inputProps, className: clsx(inputProps.className, INPUT_CLASSNAME), ref: ref, autocomplete: "off", value: multipleValue, isReadOnly: true }), inputIcon && jsxRuntime.jsx(DatePickerInputIcon, { ...inputProps }), isClearable && jsxRuntime.jsx(DatePickerClearButton, { ...inputProps })] }));
189
+ return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(Input.Input, { ...props, ...inputProps, className: clsx(inputProps.className, 'datepicker__input'), ref: ref, autocomplete: "off", value: multipleValue, isReadOnly: true }), inputIcon && jsxRuntime.jsx(DatePickerInputIcon, { ...inputProps }), isClearable && jsxRuntime.jsx(DatePickerClearButton, { ...inputProps })] }));
178
190
  });
179
191
  function DatePickerClearButton(props) {
180
192
  const { clearIcon, clearIconFill, clearIconFillHover, clearIconFillSize, clearIconItemFill, clearIconItemFillHover, clearIconShape, clearIconSize, clearIconSrc, clearLabel, clearLabelTextColor, clearLabelTextColorHover, clearLabelTextSize, datepickerRef, } = props;
181
193
  const onClick = React.useCallback((event) => {
182
194
  datepickerRef?.current?.onClearClick(event);
183
195
  datepickerRef?.current?.handleFocus(event);
196
+ // eslint-disable-next-line react-hooks/exhaustive-deps
184
197
  }, []);
185
198
  return (jsxRuntime.jsx(React.Fragment, { children: clearLabel ? (jsxRuntime.jsx(Label.Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))) }));
186
199
  }
@@ -84,16 +84,31 @@ const datePickerAppearance = {
84
84
  ...datePickerStyle,
85
85
  };
86
86
 
87
+ const getWeekRange = (date) => {
88
+ // "getDay" return from 0(sunday) to 6 (saturday).
89
+ // When 0(sunday) - we set as 7(end of week from 1(monday))
90
+ const weekDayIndex = date.getDay() || 7;
91
+ // Collect monday of week from selected date
92
+ const mondayDate = new Date(date);
93
+ mondayDate.setDate(date.getDate() - (weekDayIndex - 1));
94
+ // Collect sunday of week from selected date
95
+ const sundayDate = new Date(mondayDate);
96
+ sundayDate.setDate(mondayDate.getDate() + 6);
97
+ return {
98
+ mondayDate,
99
+ sundayDate,
100
+ };
101
+ };
102
+
87
103
  const datePickerConfig = {
88
104
  appearance: datePickerAppearance,
89
105
  setAppearance: (appearanceConfig) => {
90
106
  datePickerConfig.appearance = appearanceConfig;
91
107
  },
92
108
  };
93
- const INPUT_CLASSNAME = 'datepicker__input';
94
109
  function DatePickerInput(props) {
95
110
  const { className, datePickerProps = {}, endValue, inputProps = {}, value, onChange, } = props;
96
- const { appearance, customTimeInput, disablePastDays, monthsShown, selectsRange, showWeekPicker, } = datePickerProps;
111
+ const { appearance, customTimeInput, disablePastDays, monthsShown, selectsRange, showWeekNumbers, showWeekPicker, } = datePickerProps;
97
112
  const appearanceConfig = useAppearanceConfig(appearance, datePickerConfig);
98
113
  const propsGenerator = useDevicePropsGenerator(datePickerProps, appearanceConfig);
99
114
  const { daySize, dayTextColor, dayTextShape, dayTextSize, iconFill, iconFillHover, iconFillSize, iconItemFill, iconLeft, iconRight, iconShape, monthTextColor, monthTextSize, monthTextWeight, popper, popperPlacement, sizeClass, widthClass, yearTextColor, yearTextSize, yearTextWeight, isClearable, } = propsGenerator;
@@ -122,16 +137,9 @@ function DatePickerInput(props) {
122
137
  const handleChange = useCallback((selected) => {
123
138
  const valuesList = Array.isArray(selected) ? selected : [selected];
124
139
  const [selectedDateStart, selectedDateEnd] = valuesList;
140
+ // "showWeekPicker" means to select full weak by one of day
125
141
  if (selectedDateStart && showWeekPicker) {
126
- // "getDay" return from 0(sunday) to 6 (saturday).
127
- // When 0(sunday) - we set as 7(end of week from 1(monday))
128
- const weekDayIndex = selectedDateStart.getDay() || 7;
129
- // Collect monday of week from selected date
130
- const mondayDate = new Date(selectedDateStart);
131
- mondayDate.setDate(selectedDateStart.getDate() - (weekDayIndex - 1));
132
- // Collect sunday of week from selected date
133
- const sundayDate = new Date(mondayDate);
134
- sundayDate.setDate(mondayDate.getDate() + 6);
142
+ const { mondayDate, sundayDate } = getWeekRange(selectedDateStart);
135
143
  // Selected date can be wednesday, but for week picker
136
144
  // we return start and end of selected week.
137
145
  onChange(mondayDate, sundayDate);
@@ -140,6 +148,10 @@ function DatePickerInput(props) {
140
148
  onChange(selectedDateStart, selectedDateEnd);
141
149
  }
142
150
  }, [showWeekPicker, onChange]);
151
+ const handleWeekSelect = useCallback((startDateOfSelectedWeek) => {
152
+ const { mondayDate, sundayDate } = getWeekRange(startDateOfSelectedWeek);
153
+ onChange(mondayDate, sundayDate);
154
+ }, [onChange]);
143
155
  const renderDayContents = useCallback((day, date) => {
144
156
  return (jsx(Button, { className: "react-datepicker__day-button", size: daySize, label: date.getDate().toString(), labelTextColor: dayTextColor, labelTextSize: dayTextSize, shape: dayTextShape }));
145
157
  }, [daySize, dayTextColor, dayTextShape, dayTextSize]);
@@ -159,7 +171,7 @@ function DatePickerInput(props) {
159
171
  yearTextWeight,
160
172
  ]);
161
173
  const { styles: datePickerStyles } = useStyles(props);
162
- return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && `datepicker_size_${sizeClass}`, widthClass && `datepicker_width_${widthClass}`), style: datePickerStyles, children: jsx(DatePicker, { ref: datepickerRef, minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: ru, outsideClickIgnoreClass: INPUT_CLASSNAME, popperClassName: popper && `react-datepicker-popper-${popper}`, popperPlacement: popperPlacement, preventOpenOnFocus: true, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: handleChange, ...datePickerProps,
174
+ return (jsx("div", { className: clsx(className, 'datepicker', monthsShown && 'datepicker_multiple-months', customTimeInput && 'datepicker_button', sizeClass && `datepicker_size_${sizeClass}`, widthClass && `datepicker_width_${widthClass}`), style: datePickerStyles, children: jsx(DatePicker, { ref: datepickerRef, minDate: disablePastDays ? new Date() : undefined, customInput: jsx(DatePickerCustomInput, { datepickerRef: datepickerRef, inputProps: inputProps, isClearable: isClearable }), endDate: selectsRange ? dateEnd : undefined, locale: ru, outsideClickIgnoreClass: "react-datepicker-popper", popperClassName: popper && `react-datepicker-popper-${popper}`, popperPlacement: popperPlacement, preventOpenOnFocus: true, renderCustomHeader: renderCustomHeader, renderDayContents: renderDayContents, selected: dateStart, startDate: dateStart, onChange: handleChange, onWeekSelect: showWeekNumbers ? handleWeekSelect : undefined, ...datePickerProps,
163
175
  // Important for use custom clear button
164
176
  isClearable: false }) }));
165
177
  }
@@ -172,13 +184,14 @@ const DatePickerCustomInput = React.forwardRef((props, ref) => {
172
184
  }
173
185
  return '';
174
186
  }, [value]);
175
- return (jsxs(React.Fragment, { children: [jsx(Input, { ...props, ...inputProps, className: clsx(inputProps.className, INPUT_CLASSNAME), ref: ref, autocomplete: "off", value: multipleValue, isReadOnly: true }), inputIcon && jsx(DatePickerInputIcon, { ...inputProps }), isClearable && jsx(DatePickerClearButton, { ...inputProps })] }));
187
+ return (jsxs(React.Fragment, { children: [jsx(Input, { ...props, ...inputProps, className: clsx(inputProps.className, 'datepicker__input'), ref: ref, autocomplete: "off", value: multipleValue, isReadOnly: true }), inputIcon && jsx(DatePickerInputIcon, { ...inputProps }), isClearable && jsx(DatePickerClearButton, { ...inputProps })] }));
176
188
  });
177
189
  function DatePickerClearButton(props) {
178
190
  const { clearIcon, clearIconFill, clearIconFillHover, clearIconFillSize, clearIconItemFill, clearIconItemFillHover, clearIconShape, clearIconSize, clearIconSrc, clearLabel, clearLabelTextColor, clearLabelTextColorHover, clearLabelTextSize, datepickerRef, } = props;
179
191
  const onClick = useCallback((event) => {
180
192
  datepickerRef?.current?.onClearClick(event);
181
193
  datepickerRef?.current?.handleFocus(event);
194
+ // eslint-disable-next-line react-hooks/exhaustive-deps
182
195
  }, []);
183
196
  return (jsx(React.Fragment, { children: clearLabel ? (jsx(Label, { className: clsx('react-datepicker__clear-label', 'cursor_type_pointer'), label: clearLabel, labelTextColor: clearLabelTextColor, labelTextColorHover: clearLabelTextColorHover, labelTextSize: clearLabelTextSize, onClick: onClick })) : ((clearIcon || clearIconSrc) && (jsx(Icon, { className: clsx('react-datepicker__clear-icon', 'cursor_type_pointer'), size: clearIconSize, fill: clearIconFill, fillHover: clearIconFillHover, fillSize: clearIconFillSize, iconFill: clearIconItemFill, iconFillHover: clearIconItemFillHover, imageSrc: clearIconSrc, shape: clearIconShape, SvgImage: clearIcon, onClick: onClick }))) }));
184
197
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ChipsGroup = require('../../ChipsGroup_cjs_mhZzYQ51.js');
3
+ var ChipsGroup = require('../../ChipsGroup_cjs_D0bGehZY.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
@@ -7,8 +7,8 @@ var luxon = require('luxon');
7
7
  var common = require('@itcase/common');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
- var ChipsGroup = require('../../ChipsGroup_cjs_mhZzYQ51.js');
11
- var DatePicker = require('../../DatePicker_cjs_ChjvvsGh.js');
10
+ var ChipsGroup = require('../../ChipsGroup_cjs_D0bGehZY.js');
11
+ var DatePicker = require('../../DatePicker_cjs_Cm50AX0J.js');
12
12
  require('react-select');
13
13
  require('../../Icon_cjs_BgGtdviU.js');
14
14
  var SelectContainer = require('../../SelectContainer_cjs_tjM35jHG.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../../DatePicker_cjs_ChjvvsGh.js');
3
+ var DatePicker = require('../../DatePicker_cjs_Cm50AX0J.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -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',
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CyW110FA.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_DWvsJ5bu.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -5,8 +5,8 @@ import { DateTime } from 'luxon';
5
5
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CyW110FA.js';
9
- import { D as DatePickerInput } from '../DatePicker_es_D6PQaING.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DWvsJ5bu.js';
9
+ import { D as DatePickerInput } from '../DatePicker_es_B-WPA9y9.js';
10
10
  import 'react-select';
11
11
  import '../Icon_es_CtZHchZc.js';
12
12
  import { a as SelectContainer } from '../SelectContainer_es_BKIz5i19.js';
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_D6PQaING.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_B-WPA9y9.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -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',
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ type WeekRange = {
2
+ mondayDate: Date;
3
+ sundayDate: Date;
4
+ };
5
+ declare const getWeekRange: (date: Date) => WeekRange;
6
+ export { getWeekRange };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.18",
3
+ "version": "1.9.20",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -104,9 +104,9 @@
104
104
  "@itcase/common": "^1.2.34",
105
105
  "@itcase/icons": "^1.2.23",
106
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",
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",
@@ -154,7 +154,7 @@
154
154
  "@semantic-release/release-notes-generator": "14.1.0",
155
155
  "@semantic-release/git": "^10.0.1",
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",
@@ -175,7 +175,7 @@
175
175
  "rollup-preserve-directives": "^1.1.3",
176
176
  "semantic-release": "^24.2.9",
177
177
  "storybook": "^10.0.8",
178
- "stylelint": "^16.25.0",
178
+ "stylelint": "^16.26.0",
179
179
  "typescript": "^5.9.3"
180
180
  }
181
181
  }