@itcase/ui 1.5.0 → 1.6.0

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 (63) hide show
  1. package/dist/{Badge-CURAYlMs.js → Badge-JXM0G_0I.js} +1 -1
  2. package/dist/{Badge-LjfcZycz.js → Badge-ydSHGXSG.js} +1 -1
  3. package/dist/{Button-iPtstCWk.js → Button-BmSyIDb_.js} +2 -2
  4. package/dist/{Button-CMB-ELfe.js → Button-DCtRrkgc.js} +2 -2
  5. package/dist/{DropdownItem-CBJeJPbP.js → DropdownItem-B2yfeMxS.js} +0 -1
  6. package/dist/{DropdownItem-C8CumsgX.js → DropdownItem-Cr7XLcHZ.js} +0 -1
  7. package/dist/{Icon-CoBJRPlP.js → Icon-BOEOspTF.js} +1 -1
  8. package/dist/{Icon-Ch-L2dOj.js → Icon-DU2T-nfY.js} +1 -1
  9. package/dist/{Link-C04g00r2.js → Link-UmzWKcxT.js} +3 -3
  10. package/dist/{Link-Sr03Kia9.js → Link-aBsZ1d0Q.js} +3 -3
  11. package/dist/cjs/components/Accordion.js +2 -2
  12. package/dist/cjs/components/Avatar.js +2 -2
  13. package/dist/cjs/components/Badge.js +3 -3
  14. package/dist/cjs/components/Breadcrumbs.js +2 -2
  15. package/dist/cjs/components/Button.js +3 -3
  16. package/dist/cjs/components/Cell.js +2 -2
  17. package/dist/cjs/components/Checkbox.js +1 -1
  18. package/dist/cjs/components/Chips.js +2 -3
  19. package/dist/cjs/components/Choice.js +2 -2
  20. package/dist/cjs/components/CookiesWarning.js +3 -3
  21. package/dist/cjs/components/DatePicker.js +3 -3
  22. package/dist/cjs/components/Dropdown.js +1 -1
  23. package/dist/cjs/components/Icon.js +2 -2
  24. package/dist/cjs/components/InputPassword.js +2 -2
  25. package/dist/cjs/components/Link.js +1 -1
  26. package/dist/cjs/components/List.js +1 -1
  27. package/dist/cjs/components/Logo.js +1 -1
  28. package/dist/cjs/components/MenuItem.js +1 -1
  29. package/dist/cjs/components/Pagination.js +3 -3
  30. package/dist/cjs/components/Response.js +3 -4
  31. package/dist/cjs/components/Search.js +2 -2
  32. package/dist/cjs/components/Select.js +3 -3
  33. package/dist/cjs/components/Switch.js +5 -5
  34. package/dist/cjs/components/Tab.js +3 -3
  35. package/dist/cjs/components/Tile.js +3 -3
  36. package/dist/components/Accordion.js +2 -2
  37. package/dist/components/Avatar.js +2 -2
  38. package/dist/components/Badge.js +3 -3
  39. package/dist/components/Breadcrumbs.js +2 -2
  40. package/dist/components/Button.js +3 -3
  41. package/dist/components/Cell.js +2 -2
  42. package/dist/components/Checkbox.js +1 -1
  43. package/dist/components/Chips.js +2 -3
  44. package/dist/components/Choice.js +2 -2
  45. package/dist/components/CookiesWarning.js +3 -3
  46. package/dist/components/DatePicker.js +3 -3
  47. package/dist/components/Dropdown.js +1 -1
  48. package/dist/components/Icon.js +2 -2
  49. package/dist/components/InputPassword.js +2 -2
  50. package/dist/components/Link.js +1 -1
  51. package/dist/components/List.js +1 -1
  52. package/dist/components/Logo.js +1 -1
  53. package/dist/components/MenuItem.js +1 -1
  54. package/dist/components/Pagination.js +3 -3
  55. package/dist/components/Response.js +3 -4
  56. package/dist/components/Search.js +2 -2
  57. package/dist/components/Select.js +3 -3
  58. package/dist/components/Switch.js +5 -5
  59. package/dist/components/Tab.js +3 -3
  60. package/dist/components/Tile.js +3 -3
  61. package/dist/css/components/Switch/Switch.css +65 -25
  62. package/dist/types/components/Link/Link.interface.d.ts +1 -0
  63. package/package.json +4 -4
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon } from '../Icon-CoBJRPlP.js';
6
+ import { I as Icon } from '../Icon-BOEOspTF.js';
7
7
  import { I as Image } from '../Image-CSzHhlA1.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import 'lodash/camelCase';
@@ -20,7 +20,7 @@ import 'react-inlinesvg';
20
20
  import '../hooks/useStyles/useStyles.js';
21
21
  import 'lodash/maxBy';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
- import '../Link-Sr03Kia9.js';
23
+ import '../Link-aBsZ1d0Q.js';
24
24
  import '../Tooltip-EOu0a93a.js';
25
25
  import '../Title-CaXw1KBQ.js';
26
26
 
@@ -1,4 +1,4 @@
1
- export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-LjfcZycz.js';
1
+ export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-ydSHGXSG.js';
2
2
  import '../tslib.es6-Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'clsx';
@@ -17,9 +17,9 @@ import '../utils/setViewportProperty.js';
17
17
  import '../hooks/useStyles/useStyles.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Icon-CoBJRPlP.js';
20
+ import '../Icon-BOEOspTF.js';
21
21
  import 'react-inlinesvg';
22
- import '../Link-Sr03Kia9.js';
22
+ import '../Link-aBsZ1d0Q.js';
23
23
  import '../Tooltip-EOu0a93a.js';
24
24
  import '../Text-CI2prtf6.js';
25
25
  import '../Title-CaXw1KBQ.js';
@@ -5,8 +5,8 @@ import clsx from 'clsx';
5
5
  import camelCase from 'lodash/camelCase';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { I as Icon } from '../Icon-CoBJRPlP.js';
9
- import { a as LinkWrapper } from '../Link-Sr03Kia9.js';
8
+ import { I as Icon } from '../Icon-BOEOspTF.js';
9
+ import { a as LinkWrapper } from '../Link-aBsZ1d0Q.js';
10
10
  import { T as Text } from '../Text-CI2prtf6.js';
11
11
  import 'lodash/castArray';
12
12
  import 'lodash/upperFirst';
@@ -1,9 +1,9 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-CMB-ELfe.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-DCtRrkgc.js';
2
2
  import '../tslib.es6-Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'clsx';
6
- import '../Icon-CoBJRPlP.js';
6
+ import '../Icon-BOEOspTF.js';
7
7
  import 'react-inlinesvg';
8
8
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import 'lodash/camelCase';
@@ -19,7 +19,7 @@ import '../utils/setViewportProperty.js';
19
19
  import '../hooks/useStyles/useStyles.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Link-Sr03Kia9.js';
22
+ import '../Link-aBsZ1d0Q.js';
23
23
  import '../Tooltip-EOu0a93a.js';
24
24
  import '../Text-CI2prtf6.js';
25
25
  import '../Title-CaXw1KBQ.js';
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
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-CoBJRPlP.js';
6
+ import { I as Icon } from '../Icon-BOEOspTF.js';
7
7
  import { L as Label } from '../Label-CfE08vBy.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import 'react';
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
22
  import 'react-inlinesvg';
23
- import '../Link-Sr03Kia9.js';
23
+ import '../Link-aBsZ1d0Q.js';
24
24
  import '../Tooltip-EOu0a93a.js';
25
25
  import '../Title-CaXw1KBQ.js';
26
26
 
@@ -65,7 +65,7 @@ function Checkbox(props) {
65
65
  var stateBorderColorDisabledClass = propsGenerator.getClassName(checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled', { prefix: 'border-color_' });
66
66
  return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), isSkeleton && "checkbox_skeleton"), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass), children: [jsx("input", {
67
67
  // @ts-expect-error
68
- id: id, className: "checkbox__input", type: "checkbox", disabled: disabled, checked: checked, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsx("div", { className: clsx('checkbox__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateShapeClass && "checkbox__state_shape_".concat(stateShapeClass), stateBorderWidthClass && "border-width_".concat(stateBorderWidthClass)), children: "\u00A0" }), jsx("div", { className: "checkbox__state-checkmark", children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextColor), textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
68
+ id: id, className: "checkbox__input", type: "checkbox", disabled: disabled, checked: checked, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsx("div", { className: clsx('checkbox__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateShapeClass && "checkbox__state_shape_".concat(stateShapeClass), stateBorderWidthClass && "border-width_".concat(stateBorderWidthClass)), children: "\u00A0" }), jsx("div", { className: "checkbox__state-checkmark", children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
69
69
  }
70
70
 
71
71
  export { Checkbox, checkboxAppearance, checkboxConfig, checkboxState };
@@ -4,7 +4,7 @@ import { useMemo } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon } from '../Icon-CoBJRPlP.js';
7
+ import { I as Icon } from '../Icon-BOEOspTF.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -19,7 +19,7 @@ import '../utils/setViewportProperty.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
21
  import 'react-inlinesvg';
22
- import '../Link-Sr03Kia9.js';
22
+ import '../Link-aBsZ1d0Q.js';
23
23
  import '../Tooltip-EOu0a93a.js';
24
24
  import '../Title-CaXw1KBQ.js';
25
25
 
@@ -129,7 +129,6 @@ function Chips(props) {
129
129
  var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
130
130
  // @ts-expect-error
131
131
  var chipsStyles = useStyles(props).styles;
132
- console.log(fillClass);
133
132
  return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', fillClass && !isActive
134
133
  ? "fill_".concat(fillClass)
135
134
  : "fill_active_".concat(fillActiveClass), !isActive
@@ -4,7 +4,7 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon } from '../Icon-CoBJRPlP.js';
7
+ import { I as Icon } from '../Icon-BOEOspTF.js';
8
8
  import { L as Loader } from '../Loader-CRN4MAbm.js';
9
9
  import { T as Text } from '../Text-CI2prtf6.js';
10
10
  import 'lodash/camelCase';
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
22
  import 'react-inlinesvg';
23
- import '../Link-Sr03Kia9.js';
23
+ import '../Link-aBsZ1d0Q.js';
24
24
  import '../Tooltip-EOu0a93a.js';
25
25
  import '../Title-CaXw1KBQ.js';
26
26
 
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import Cookies from 'js-cookie';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { B as Button } from '../Button-CMB-ELfe.js';
6
+ import { B as Button } from '../Button-DCtRrkgc.js';
7
7
  import { G as Group } from '../Group-OkygpKiJ.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import '../tslib.es6-Bwu1Cn-t.js';
@@ -17,12 +17,12 @@ import '../context/UIContext.js';
17
17
  import '../hooks/useMediaQueries/useMediaQueries.js';
18
18
  import 'react-responsive';
19
19
  import '../utils/setViewportProperty.js';
20
- import '../Icon-CoBJRPlP.js';
20
+ import '../Icon-BOEOspTF.js';
21
21
  import 'react-inlinesvg';
22
22
  import '../hooks/useStyles/useStyles.js';
23
23
  import 'lodash/maxBy';
24
24
  import '../hooks/useStyles/styleAttributes.js';
25
- import '../Link-Sr03Kia9.js';
25
+ import '../Link-aBsZ1d0Q.js';
26
26
  import '../Tooltip-EOu0a93a.js';
27
27
  import '../Title-CaXw1KBQ.js';
28
28
  import '../Loader-CRN4MAbm.js';
@@ -6,8 +6,8 @@ import { ru } from 'date-fns/locale';
6
6
  import DatePicker from 'react-datepicker';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { useStyles } from '../hooks/useStyles/useStyles.js';
9
- import { B as Button } from '../Button-CMB-ELfe.js';
10
- import { I as Icon } from '../Icon-CoBJRPlP.js';
9
+ import { B as Button } from '../Button-DCtRrkgc.js';
10
+ import { I as Icon } from '../Icon-BOEOspTF.js';
11
11
  import { I as Input } from '../Input-ChiH90mV.js';
12
12
  import { L as Label } from '../Label-CfE08vBy.js';
13
13
  import { T as Text } from '../Text-CI2prtf6.js';
@@ -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 '../Link-Sr03Kia9.js';
26
+ import '../Link-aBsZ1d0Q.js';
27
27
  import '../Loader-CRN4MAbm.js';
28
28
  import 'react-inlinesvg';
29
29
  import '../Tooltip-EOu0a93a.js';
@@ -1,4 +1,4 @@
1
- export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-C8CumsgX.js';
1
+ export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-Cr7XLcHZ.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-CoBJRPlP.js';
1
+ export { I as Icon, a as iconAppearance, i as iconConfig } from '../Icon-BOEOspTF.js';
2
2
  import '../tslib.es6-Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
18
18
  import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Link-Sr03Kia9.js';
21
+ import '../Link-aBsZ1d0Q.js';
22
22
  import '../Tooltip-EOu0a93a.js';
23
23
  import '../Text-CI2prtf6.js';
24
24
  import '../Title-CaXw1KBQ.js';
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useMemo, useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { I as Icon } from '../Icon-CoBJRPlP.js';
6
+ import { I as Icon } from '../Icon-BOEOspTF.js';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
9
9
  import 'lodash/upperFirst';
@@ -18,7 +18,7 @@ import 'react-inlinesvg';
18
18
  import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Link-Sr03Kia9.js';
21
+ import '../Link-aBsZ1d0Q.js';
22
22
  import '../Tooltip-EOu0a93a.js';
23
23
  import '../Text-CI2prtf6.js';
24
24
  import '../Title-CaXw1KBQ.js';
@@ -1,4 +1,4 @@
1
- export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link-Sr03Kia9.js';
1
+ export { L as Link, a as LinkWrapper, b as linkAppearance, l as linkConfig } from '../Link-aBsZ1d0Q.js';
2
2
  import '../tslib.es6-Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles/useStyles.js';
5
- import { L as Link } from '../Link-Sr03Kia9.js';
5
+ import { L as Link } from '../Link-aBsZ1d0Q.js';
6
6
  import '../tslib.es6-Bwu1Cn-t.js';
7
7
  import 'react';
8
8
  import 'lodash/camelCase';
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { a as LinkWrapper } from '../Link-Sr03Kia9.js';
6
+ import { a as LinkWrapper } from '../Link-aBsZ1d0Q.js';
7
7
  import 'react';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { L as Link } from '../Link-Sr03Kia9.js';
7
+ import { L as Link } from '../Link-aBsZ1d0Q.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -5,8 +5,8 @@ import clsx from 'clsx';
5
5
  import ceil from 'lodash/ceil';
6
6
  import ReactPaginate from 'react-paginate';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem-C8CumsgX.js';
9
- import { I as Icon } from '../Icon-CoBJRPlP.js';
8
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem-Cr7XLcHZ.js';
9
+ import { I as Icon } from '../Icon-BOEOspTF.js';
10
10
  import { T as Text } from '../Text-CI2prtf6.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -23,7 +23,7 @@ import 'lodash/maxBy';
23
23
  import '../hooks/useStyles/styleAttributes.js';
24
24
  import '../Divider-DhXzYcNF.js';
25
25
  import 'react-inlinesvg';
26
- import '../Link-Sr03Kia9.js';
26
+ import '../Link-aBsZ1d0Q.js';
27
27
  import '../Tooltip-EOu0a93a.js';
28
28
  import '../Title-CaXw1KBQ.js';
29
29
 
@@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
  import SVG from 'react-inlinesvg';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { B as Button } from '../Button-CMB-ELfe.js';
8
+ import { B as Button } from '../Button-DCtRrkgc.js';
9
9
  import { G as Group } from '../Group-OkygpKiJ.js';
10
10
  import { T as Text } from '../Text-CI2prtf6.js';
11
11
  import 'lodash/camelCase';
@@ -20,8 +20,8 @@ import 'react-responsive';
20
20
  import '../utils/setViewportProperty.js';
21
21
  import 'lodash/maxBy';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
- import '../Icon-CoBJRPlP.js';
24
- import '../Link-Sr03Kia9.js';
23
+ import '../Icon-BOEOspTF.js';
24
+ import '../Link-aBsZ1d0Q.js';
25
25
  import '../Tooltip-EOu0a93a.js';
26
26
  import '../Title-CaXw1KBQ.js';
27
27
  import '../Loader-CRN4MAbm.js';
@@ -238,7 +238,6 @@ function Response(props) {
238
238
  var ImageComponent = useMemo(function () {
239
239
  var src = imageSrc || svgSrc;
240
240
  var Image = SvgImage;
241
- console.log(src);
242
241
  if (Image) {
243
242
  var sizes = {};
244
243
  if (width) {
@@ -4,7 +4,7 @@ import React, { useCallback } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { I as Icon } from '../Icon-CoBJRPlP.js';
7
+ import { I as Icon } from '../Icon-BOEOspTF.js';
8
8
  import { T as Text } from '../Text-CI2prtf6.js';
9
9
  import { S as Scrollbar } from '../Scrollbar-CThJeCLF.js';
10
10
  import 'lodash/camelCase';
@@ -20,7 +20,7 @@ import '../utils/setViewportProperty.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
22
  import 'react-inlinesvg';
23
- import '../Link-Sr03Kia9.js';
23
+ import '../Link-aBsZ1d0Q.js';
24
24
  import '../Tooltip-EOu0a93a.js';
25
25
  import '../Title-CaXw1KBQ.js';
26
26
  import 'react-scrollbars-custom';
@@ -1,13 +1,13 @@
1
1
  import { _ as __assign } from '../tslib.es6-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 } from '../Icon-CoBJRPlP.js';
4
+ import { I as Icon } from '../Icon-BOEOspTF.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';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { T as Text } from '../Text-CI2prtf6.js';
10
- import { B as Badge } from '../Badge-LjfcZycz.js';
10
+ import { B as Badge } from '../Badge-ydSHGXSG.js';
11
11
  import { G as Group } from '../Group-OkygpKiJ.js';
12
12
  import { D as Divider } from '../Divider-DhXzYcNF.js';
13
13
  import 'react-inlinesvg';
@@ -23,7 +23,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
23
23
  import 'react-responsive';
24
24
  import '../utils/setViewportProperty.js';
25
25
  import '../hooks/useStyles/styleAttributes.js';
26
- import '../Link-Sr03Kia9.js';
26
+ import '../Link-aBsZ1d0Q.js';
27
27
  import '../Tooltip-EOu0a93a.js';
28
28
  import '../Title-CaXw1KBQ.js';
29
29
  import 'lodash/castArray';
@@ -29,16 +29,16 @@ var switchConfig = {
29
29
  },
30
30
  };
31
31
  var Switch = React.forwardRef(function Switch(props, ref) {
32
- var id = props.id, className = props.className, appearance = props.appearance, size = props.size, title = props.title, desc = props.desc, disabled = props.disabled, checked = props.checked, onChange = props.onChange;
32
+ var id = props.id, className = props.className, appearance = props.appearance, _a = props.align, align = _a === void 0 ? 'left' : _a, size = props.size, title = props.title, desc = props.desc, disabled = props.disabled, checked = props.checked, onChange = props.onChange;
33
33
  var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
34
34
  var _a;
35
35
  return (__assign(__assign({}, resultAppearance), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
36
36
  }, {});
37
37
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
38
- var titleDescColor = propsGenerator.titleDescColor, titleDescSize = propsGenerator.titleDescSize, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize;
39
- return (jsxs("div", { className: clsx('switch', className, size && "switch_size_".concat(size)), children: [title && (jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: clsx('switch__desc'), size: titleDescSize, textColor: titleDescColor, children: desc })), jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", disabled: disabled, checked: checked,
40
- // @ts-expect-error
41
- ref: ref, onChange: onChange }), jsx("div", { className: "switch__bg", children: "\u00A0" }), jsx("div", { className: "switch__toggle", children: "\u00A0" })] }));
38
+ var titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize;
39
+ return (jsxs("div", { className: clsx('switch', className, align && "switch_align_".concat(align), size && "switch_size_".concat(size)), children: [title && (jsx(Text, { className: clsx('switch__title'), size: titleTextSize, textColor: titleTextColor, children: title })), desc && (jsx(Text, { className: clsx('switch__desc'), size: descTextSize, textColor: descTextColor, children: desc })), jsxs("div", { className: 'switch__item', children: [jsx("input", { id: id, className: "switch__checkbox", type: "checkbox", disabled: disabled, checked: checked,
40
+ // @ts-expect-error
41
+ ref: ref, onChange: onChange }), jsx("div", { className: "switch__bg", children: "\u00A0" }), jsx("div", { className: "switch__toggle", children: "\u00A0" })] })] }));
42
42
  });
43
43
 
44
44
  export { Switch, switchAppearance, switchConfig };
@@ -4,9 +4,9 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge } from '../Badge-LjfcZycz.js';
7
+ import { B as Badge } from '../Badge-ydSHGXSG.js';
8
8
  import { D as Divider } from '../Divider-DhXzYcNF.js';
9
- import { L as Link } from '../Link-Sr03Kia9.js';
9
+ import { L as Link } from '../Link-aBsZ1d0Q.js';
10
10
  import { T as Text } from '../Text-CI2prtf6.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -20,7 +20,7 @@ import 'react-responsive';
20
20
  import '../utils/setViewportProperty.js';
21
21
  import 'lodash/maxBy';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
- import '../Icon-CoBJRPlP.js';
23
+ import '../Icon-BOEOspTF.js';
24
24
  import 'react-inlinesvg';
25
25
  import '../Tooltip-EOu0a93a.js';
26
26
  import '../Title-CaXw1KBQ.js';
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { B as Badge } from '../Badge-LjfcZycz.js';
6
+ import { B as Badge } from '../Badge-ydSHGXSG.js';
7
7
  import { T as Text } from '../Text-CI2prtf6.js';
8
8
  import { T as Title } from '../Title-CaXw1KBQ.js';
9
9
  import 'react';
@@ -19,9 +19,9 @@ import 'react-responsive';
19
19
  import '../utils/setViewportProperty.js';
20
20
  import 'lodash/maxBy';
21
21
  import '../hooks/useStyles/styleAttributes.js';
22
- import '../Icon-CoBJRPlP.js';
22
+ import '../Icon-BOEOspTF.js';
23
23
  import 'react-inlinesvg';
24
- import '../Link-Sr03Kia9.js';
24
+ import '../Link-aBsZ1d0Q.js';
25
25
  import '../Tooltip-EOu0a93a.js';
26
26
 
27
27
  var tileAppearance = {
@@ -1,30 +1,42 @@
1
1
  .switch {
2
- position: relative;
3
- height: 100%;
4
- border-radius: 50px;
5
- cursor: pointer;
6
- transition: 0.4s;
7
- overflow: hidden;
8
- display: flex;
2
+ display: grid;
3
+ &__title {
4
+ padding: 0 8px 0 0;
5
+ align-self: start;
6
+ }
7
+ &__desc {
8
+ padding: 0 8px 0 0;
9
+ align-self: start;
10
+ }
11
+ &__item {
12
+ border-radius: 50px;
13
+ position: relative;
14
+ overflow: hidden;
15
+ display: flex;
16
+ align-self: start;
17
+ transition: 0.4s;
18
+ cursor: pointer;
19
+ grid-row: 1/3;
20
+ }
9
21
  &__checkbox {
10
- position: absolute;
11
22
  width: 100%;
12
23
  height: 100%;
24
+ margin: 0;
25
+ border: 0;
26
+ position: absolute;
13
27
  left: 0;
14
28
  top: 0;
29
+ z-index: 2;
15
30
  cursor: pointer;
16
31
  appearance: none;
17
- border: 0;
18
- margin: 0;
19
- z-index: 2;
20
32
  &:checked {
21
33
  & + .switch__bg {
22
34
  background: var(--color-accent-primary);
23
35
  }
24
36
  & ~ .switch__toggle {
25
- left: 100%;
26
- margin: 0 0 0 -3px;
27
37
  background: var(--color-accent-item-primary);
38
+ margin: 0 0 0 -3px;
39
+ left: 100%;
28
40
  transform: translate(-100%, -50%);
29
41
  }
30
42
  }
@@ -36,32 +48,60 @@
36
48
  }
37
49
  &__bg {
38
50
  width: 100%;
39
- flex: 1;
40
51
  background: var(--color-surface-tertiary);
52
+ flex: 1;
41
53
  transition: all 0.25s;
42
54
  }
43
55
  &__toggle {
44
- box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
45
56
  height: calc(100% - 6px);
46
- position: absolute;
47
57
  aspect-ratio: 1/1;
48
- top: 50%;
49
- transform: translate(3px, -50%);
50
- left: 0;
51
58
  background: #fff;
52
59
  border-radius: 50%;
53
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
60
+ position: absolute;
61
+ box-shadow: inset 0 0 5px rgb(0, 0, 0, 0.2);
62
+ box-shadow: 0 0 5px rgb(0, 0, 0, 0.2);
63
+ left: 0;
64
+ top: 50%;
65
+ transform: translate(3px, -50%);
54
66
  transition: all 0.25s;
55
67
  }
56
68
  }
69
+ .switch {
70
+ &_align {
71
+ &_left {
72
+ grid-template-columns: 1fr auto;
73
+ ^^&__title,
74
+ ^^&__desc {
75
+ grid-column-start: 2;
76
+ padding: 0 0 0 8px;
77
+ }
78
+ ^^&__item {
79
+ grid-column-start: 1;
80
+ }
81
+ }
82
+ &_right {
83
+ grid-template-columns: auto 1fr;
84
+ ^^&__title,
85
+ ^^&__desc {
86
+ grid-column-start: 1;
87
+ padding: 0 8px 0 0;
88
+ }
89
+ ^^&__item {
90
+ grid-column-start: 2;
91
+ }
92
+ }
93
+ }
94
+ }
57
95
  .switch {
58
96
  &&_size {
59
- @each $size in xxl, xl, l, m, s, xs, xxs, normal, compact, s, m {
97
+ @each $size in xxl, xl, l, m, s, xs, xxs {
60
98
  &_$(size) {
61
- min-width: var(--switch-size-$(size)-width);
62
- min-height: var(--switch-size-$(size)-height);
63
- max-width: var(--switch-size-$(size)-width);
64
- max-height: var(--switch-size-$(size)-height);
99
+ & .switch__item {
100
+ min-width: var(--switch-size-$(size)-width);
101
+ min-height: var(--switch-size-$(size)-height);
102
+ max-width: var(--switch-size-$(size)-width);
103
+ max-height: var(--switch-size-$(size)-height);
104
+ }
65
105
  }
66
106
  }
67
107
  }
@@ -28,6 +28,7 @@ export type LinkAppearanceType = {
28
28
  [key in AppearanceKeys]?: LinkThemeColor;
29
29
  };
30
30
  export interface LinkConfig {
31
+ appearance: any;
31
32
  LinkComponent: ElementType | undefined;
32
33
  setLinkComponent: (LinkComponent: ElementType) => void;
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -107,10 +107,10 @@
107
107
  "date-fns": "^4.1.0",
108
108
  "eslint-import-resolver-alias": "^1.1.2",
109
109
  "eslint-plugin-import": "^2.31.0",
110
- "framer-motion": "^12.8.0",
110
+ "framer-motion": "^12.9.1",
111
111
  "js-cookie": "^3.0.5",
112
112
  "lodash": "^4.17.21",
113
- "motion": "^12.8.0",
113
+ "motion": "^12.9.1",
114
114
  "rc-slider": "^11.1.8",
115
115
  "react": "^18.3.1",
116
116
  "react-dadata": "^2.27.4",
@@ -135,7 +135,7 @@
135
135
  "@babel/preset-react": "^7.26.3",
136
136
  "@commitlint/cli": "^19.8.0",
137
137
  "@commitlint/config-conventional": "^19.8.0",
138
- "@itcase/lint": "^1.1.8",
138
+ "@itcase/lint": "^1.1.9",
139
139
  "@rollup/plugin-alias": "^5.1.1",
140
140
  "@rollup/plugin-babel": "^6.0.4",
141
141
  "@rollup/plugin-commonjs": "^28.0.3",