@itcase/ui 1.4.1 → 1.4.5

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 (147) hide show
  1. package/dist/{Badge-CGHosmYx.js → Badge-C68XnlcL.js} +3 -4
  2. package/dist/{Badge-BX4N91_C.js → Badge-C6SNRExV.js} +3 -4
  3. package/dist/{Button-BtAUGGPc.js → Button-Bsrw4D7p.js} +3 -3
  4. package/dist/{Button-HKkjJ38v.js → Button-WZZpsxTk.js} +3 -3
  5. package/dist/{Label-XTFwl1aq.js → Label-DF2a2Mlx.js} +2 -2
  6. package/dist/{Label-Dpeq55TV.js → Label-I9WNpCXa.js} +2 -2
  7. package/dist/{Loader-CsPvc-9g.js → Loader-D4_r7LML.js} +6 -6
  8. package/dist/{Loader-CBEbIRnd.js → Loader-DpYaDhe9.js} +6 -6
  9. package/dist/cjs/components/Avatar.js +2 -2
  10. package/dist/cjs/components/Badge.js +1 -1
  11. package/dist/cjs/components/Button.js +2 -2
  12. package/dist/cjs/components/Cell.js +1 -1
  13. package/dist/cjs/components/Checkbox.js +12 -10
  14. package/dist/cjs/components/Checkmark.js +36 -9
  15. package/dist/cjs/components/Chips.js +3 -3
  16. package/dist/cjs/components/Choice.js +19 -11
  17. package/dist/cjs/components/CookiesWarning.js +2 -2
  18. package/dist/cjs/components/DatePicker.js +3 -3
  19. package/dist/cjs/components/Label.js +1 -1
  20. package/dist/cjs/components/Loader.js +1 -1
  21. package/dist/cjs/components/MenuItem.js +39 -11
  22. package/dist/cjs/components/Modal.js +1 -1
  23. package/dist/cjs/components/Response.js +89 -104
  24. package/dist/cjs/components/Select.js +1 -1
  25. package/dist/cjs/components/Tab.js +1 -1
  26. package/dist/cjs/components/Tile.js +1 -1
  27. package/dist/cjs/context/Notifications.js +2 -2
  28. package/dist/components/Avatar.js +2 -2
  29. package/dist/components/Badge.js +1 -1
  30. package/dist/components/Button.js +2 -2
  31. package/dist/components/Cell.js +1 -1
  32. package/dist/components/Checkbox.js +12 -10
  33. package/dist/components/Checkmark.js +36 -9
  34. package/dist/components/Chips.js +3 -3
  35. package/dist/components/Choice.js +19 -11
  36. package/dist/components/CookiesWarning.js +2 -2
  37. package/dist/components/DatePicker.js +3 -3
  38. package/dist/components/Label.js +1 -1
  39. package/dist/components/Loader.js +1 -1
  40. package/dist/components/MenuItem.js +40 -8
  41. package/dist/components/Modal.js +1 -1
  42. package/dist/components/Response.js +89 -104
  43. package/dist/components/Select.js +1 -1
  44. package/dist/components/Tab.js +1 -1
  45. package/dist/components/Tile.js +1 -1
  46. package/dist/context/Notifications.js +2 -2
  47. package/dist/css/components/Avatar/Avatar.css +2 -2
  48. package/dist/css/components/Badge/Badge.css +50 -0
  49. package/dist/css/components/Button/Button.css +24 -0
  50. package/dist/css/components/Checkbox/Checkbox.css +25 -2
  51. package/dist/css/components/Checkmark/Checkmark.css +6 -8
  52. package/dist/css/components/Label/Label.css +11 -13
  53. package/dist/css/components/Loader/Loader.css +40 -3
  54. package/dist/css/components/Response/Response.css +5 -12
  55. package/dist/css/components/Video/Video.css +0 -14
  56. package/dist/css/styles/svg-color/svg_path_fill.css +1 -2
  57. package/dist/stories/Cell.mdx +1 -17
  58. package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +9 -0
  59. package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +9 -0
  60. package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +16 -0
  61. package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +11 -0
  62. package/dist/types/components/Flex/stories/args.d.ts +8 -8
  63. package/dist/types/components/Grid/stories/args.d.ts +5 -5
  64. package/dist/types/components/Group/stories/args.d.ts +5 -5
  65. package/dist/types/components/Loader/appearance/loaderAccent.d.ts +1 -1
  66. package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +1 -1
  67. package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +1 -1
  68. package/dist/types/components/Response/Response.interface.d.ts +12 -10
  69. package/dist/types/components/Tab/stories/args.d.ts +13 -13
  70. package/dist/types/context/Notifications.d.ts +4 -3
  71. package/dist/types/types/componentProps/align.d.ts +1 -1
  72. package/dist/types/types/componentProps/alignDirection.d.ts +1 -1
  73. package/dist/types/types/componentProps/alignment.d.ts +1 -1
  74. package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
  75. package/dist/types/types/componentProps/borderColor.d.ts +1 -1
  76. package/dist/types/types/componentProps/borderColorHover.d.ts +1 -1
  77. package/dist/types/types/componentProps/borderType.d.ts +1 -1
  78. package/dist/types/types/componentProps/borderWidth.d.ts +1 -1
  79. package/dist/types/types/componentProps/elevation.d.ts +1 -1
  80. package/dist/types/types/componentProps/fill.d.ts +1 -1
  81. package/dist/types/types/componentProps/fillGradient.d.ts +1 -1
  82. package/dist/types/types/componentProps/fillHover.d.ts +1 -1
  83. package/dist/types/types/componentProps/fillType.d.ts +1 -1
  84. package/dist/types/types/componentProps/flexAlign.d.ts +1 -1
  85. package/dist/types/types/componentProps/flexGrow.d.ts +1 -1
  86. package/dist/types/types/componentProps/flexJustifyContent.d.ts +1 -1
  87. package/dist/types/types/componentProps/flexWrap.d.ts +1 -1
  88. package/dist/types/types/componentProps/gridAlign.d.ts +1 -1
  89. package/dist/types/types/componentProps/gridAlignSelf.d.ts +1 -1
  90. package/dist/types/types/componentProps/gridJustifyItems.d.ts +1 -1
  91. package/dist/types/types/componentProps/gridJustifySelf.d.ts +1 -1
  92. package/dist/types/types/componentProps/height.d.ts +1 -1
  93. package/dist/types/types/componentProps/horizontalContentAlign.d.ts +1 -1
  94. package/dist/types/types/componentProps/horizontalResizeMode.d.ts +1 -1
  95. package/dist/types/types/componentProps/iconFillSize.d.ts +1 -1
  96. package/dist/types/types/componentProps/iconSize.d.ts +1 -1
  97. package/dist/types/types/componentProps/itemColor.d.ts +1 -1
  98. package/dist/types/types/componentProps/justifyContent.d.ts +1 -1
  99. package/dist/types/types/componentProps/overflow.d.ts +1 -1
  100. package/dist/types/types/componentProps/position.d.ts +1 -1
  101. package/dist/types/types/componentProps/resizeMode.d.ts +1 -1
  102. package/dist/types/types/componentProps/shape.d.ts +1 -1
  103. package/dist/types/types/componentProps/size.d.ts +1 -1
  104. package/dist/types/types/componentProps/sizeOption.d.ts +1 -1
  105. package/dist/types/types/componentProps/sizePX.d.ts +1 -1
  106. package/dist/types/types/componentProps/stacking.d.ts +1 -1
  107. package/dist/types/types/componentProps/state.d.ts +1 -1
  108. package/dist/types/types/componentProps/svgFill.d.ts +1 -1
  109. package/dist/types/types/componentProps/textAlign.d.ts +1 -1
  110. package/dist/types/types/componentProps/textGradient.d.ts +1 -1
  111. package/dist/types/types/componentProps/textSize.d.ts +1 -1
  112. package/dist/types/types/componentProps/textStyle.d.ts +1 -1
  113. package/dist/types/types/componentProps/textTag.d.ts +1 -1
  114. package/dist/types/types/componentProps/textWeight.d.ts +1 -1
  115. package/dist/types/types/componentProps/textWrap.d.ts +1 -1
  116. package/dist/types/types/componentProps/titleSize.d.ts +4 -2
  117. package/dist/types/types/componentProps/type.d.ts +1 -1
  118. package/dist/types/types/componentProps/underline.d.ts +1 -1
  119. package/dist/types/types/componentProps/verticalContentAlign.d.ts +1 -1
  120. package/dist/types/types/componentProps/verticalResizeMode.d.ts +1 -1
  121. package/dist/types/types/componentProps/width.d.ts +1 -1
  122. package/dist/types/types/componentProps/wrap.d.ts +1 -1
  123. package/dist/types/types/index.d.ts +0 -2
  124. package/package.json +12 -12
  125. package/dist/MenuItem-Cjlnmfwh.js +0 -40
  126. package/dist/MenuItem-PJkuGghn.js +0 -44
  127. package/dist/cjs/components/Menu.js +0 -45
  128. package/dist/components/Menu.js +0 -41
  129. package/dist/css/components/Menu/Menu.css +0 -65
  130. package/dist/stories/Checkbox.mdx +0 -23
  131. package/dist/stories/Checkmark.mdx +0 -15
  132. package/dist/stories/Chips.mdx +0 -31
  133. package/dist/stories/DevMode.mdx +0 -9
  134. package/dist/stories/Label.mdx +0 -31
  135. package/dist/stories/Loader.mdx +0 -31
  136. package/dist/stories/Message.mdx +0 -15
  137. package/dist/stories/Response.mdx +0 -23
  138. package/dist/stories/WithTooltip.mdx +0 -9
  139. package/dist/types/components/Button/stories/args.d.ts +0 -200
  140. package/dist/types/components/Chips/stories/args.d.ts +0 -45
  141. package/dist/types/components/Menu/Menu.appearance.d.ts +0 -2
  142. package/dist/types/components/Menu/Menu.d.ts +0 -4
  143. package/dist/types/components/Menu/Menu.interface.d.ts +0 -35
  144. package/dist/types/components/Menu/index.d.ts +0 -2
  145. package/dist/types/components/Response/stories/args.d.ts +0 -174
  146. package/dist/types/types/componentProps/captionPosition.d.ts +0 -3
  147. package/dist/types/types/componentProps/emojiSize.d.ts +0 -3
@@ -7,7 +7,7 @@ var clsx = require('clsx');
7
7
  var SVG = require('react-inlinesvg');
8
8
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
9
9
  var useStyles = require('../hooks/useStyles/useStyles.js');
10
- var Button = require('../../Button-HKkjJ38v.js');
10
+ var Button = require('../../Button-WZZpsxTk.js');
11
11
  var Group = require('../../Group-Chtnas-J.js');
12
12
  var Text = require('../../Text-C49zj3jO.js');
13
13
  require('lodash/camelCase');
@@ -23,49 +23,30 @@ require('../../Icon-GVGrUu_Z.js');
23
23
  require('../../Link-B38Hn4G2.js');
24
24
  require('../../Tooltip-DpBQQoNo.js');
25
25
  require('../../Title-BWWyRwLY.js');
26
- require('../../Loader-CBEbIRnd.js');
26
+ require('../../Loader-DpYaDhe9.js');
27
27
 
28
- var img$7 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
28
+ var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
29
29
 
30
- var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23E00000'/%3e%3cpath d='M90.5027 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5027 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
30
+ var img$5 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23E00000'/%3e%3cpath d='M90.5027 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5027 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
31
31
 
32
- var img$5 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M116.144 71.2426C118.487 68.8995 118.487 65.1005 116.144 62.7574C113.801 60.4142 110.002 60.4142 107.659 62.7574L89.4506 80.9654L71.2426 62.7574C68.8995 60.4142 65.1005 60.4142 62.7574 62.7574C60.4142 65.1005 60.4142 68.8995 62.7574 71.2426L80.9654 89.4506L62.7574 107.659C60.4142 110.002 60.4142 113.801 62.7574 116.144C65.1005 118.487 68.8995 118.487 71.2426 116.144L89.4506 97.9359L107.659 116.144C110.002 118.487 113.801 118.487 116.144 116.144C118.487 113.801 118.487 110.002 116.144 107.659L97.9359 89.4506L116.144 71.2426Z' fill='%23747474'/%3e%3c/svg%3e";
32
+ var img$4 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M116.144 71.2426C118.487 68.8995 118.487 65.1005 116.144 62.7574C113.801 60.4142 110.002 60.4142 107.659 62.7574L89.4506 80.9654L71.2426 62.7574C68.8995 60.4142 65.1005 60.4142 62.7574 62.7574C60.4142 65.1005 60.4142 68.8995 62.7574 71.2426L80.9654 89.4506L62.7574 107.659C60.4142 110.002 60.4142 113.801 62.7574 116.144C65.1005 118.487 68.8995 118.487 71.2426 116.144L89.4506 97.9359L107.659 116.144C110.002 118.487 113.801 118.487 116.144 116.144C118.487 113.801 118.487 110.002 116.144 107.659L97.9359 89.4506L116.144 71.2426Z' fill='%23747474'/%3e%3c/svg%3e";
33
33
 
34
- var img$4 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
34
+ var img$3 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M128.811 123.436L110.56 105.386C115.694 99.2993 118.754 91.5088 118.754 82.9879C118.754 63.6507 102.929 48.0001 83.3768 48.0001C63.8246 47.9653 48 63.6159 48 82.9531C48 102.29 63.8246 117.941 83.3768 117.941C88.933 117.941 94.1727 116.689 98.8497 114.428C99.131 114.846 99.4475 115.263 99.8343 115.611L118.261 133.835C121.18 136.722 125.892 136.722 128.811 133.835C131.73 130.983 131.73 126.323 128.811 123.436ZM55.4551 82.9531C55.4551 67.6851 67.9742 55.3385 83.3768 55.3385C98.8145 55.3385 111.298 67.7198 111.298 82.9531C111.298 98.2211 98.7794 110.568 83.3768 110.568C67.9742 110.603 55.4551 98.2211 55.4551 82.9531Z' fill='%23747474'/%3e%3c/svg%3e";
35
35
 
36
- var img$3 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M89.4468 113.833C98.5743 113.833 106.51 108.762 110.56 101.299L116.507 109.116C110.49 117.519 100.612 123 89.4468 123C74.5162 123 61.888 113.2 57.7156 99.7167H51L62.3388 84.8667L73.6777 99.7167H67.55C71.2908 108.036 79.6878 113.833 89.4468 113.833Z' fill='%23747474'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M122.212 84.6833C119.654 68.9858 105.958 57 89.4468 57C77.527 57 67.0747 63.2463 61.2209 72.6261L67.4218 80.5738C71.0963 72.0991 79.5747 66.1667 89.4468 66.1667C100.848 66.1667 110.391 74.0798 112.821 84.6833H106.322L117.661 99.5333L129 84.6833H122.212ZM118.759 84.6833H118.81L118.793 84.6618L118.759 84.6833Z' fill='%23747474'/%3e%3c/svg%3e";
36
+ var img$2 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%2374B43D'/%3e%3cpath d='M61.3408 97.5419L82.9609 118.659L127.71 65.3632' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
37
37
 
38
- var img$2 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M128.811 123.436L110.56 105.386C115.694 99.2993 118.754 91.5088 118.754 82.9879C118.754 63.6507 102.929 48.0001 83.3768 48.0001C63.8246 47.9653 48 63.6159 48 82.9531C48 102.29 63.8246 117.941 83.3768 117.941C88.933 117.941 94.1727 116.689 98.8497 114.428C99.131 114.846 99.4475 115.263 99.8343 115.611L118.261 133.835C121.18 136.722 125.892 136.722 128.811 133.835C131.73 130.983 131.73 126.323 128.811 123.436ZM55.4551 82.9531C55.4551 67.6851 67.9742 55.3385 83.3768 55.3385C98.8145 55.3385 111.298 67.7198 111.298 82.9531C111.298 98.2211 98.7794 110.568 83.3768 110.568C67.9742 110.603 55.4551 98.2211 55.4551 82.9531Z' fill='%23747474'/%3e%3c/svg%3e";
39
-
40
- var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%2374B43D'/%3e%3cpath d='M61.3408 97.5419L82.9609 118.659L127.71 65.3632' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
38
+ var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
41
39
 
42
40
  var img = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23DE8806'/%3e%3cpath d='M90.5028 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5028 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
43
41
 
44
- /* eslint-disable perfectionist/sort-objects */
45
42
  var responseAppearance = {
46
- cantLoadData: {
47
- messageTextColor: 'surfaceTextPrimary',
48
- messageTextSize: 'm',
49
- messageTextWeight: 400,
50
- primaryButtonAppearance: 'surfaceTertiary',
51
- primaryButtonLabelTextSize: 'l',
52
- primaryButtonShape: 'rounded',
53
- primaryButtonSize: 'xxl',
54
- primaryButtonWidth: 'fill',
55
- secondaryButtonAppearance: 'surfaceSecondary',
56
- secondaryButtonLabelTextSize: 'l',
57
- secondaryButtonShape: 'rounded',
58
- secondaryButtonSize: 'xxl',
59
- secondaryButtonWidth: 'fill',
60
- svgSrc: img$7,
43
+ custom: {
61
44
  titleTextColor: 'surfaceTextPrimary',
62
45
  titleTextSize: 'xxl',
63
46
  titleTextWeight: 400,
64
- },
65
- custom: {
66
- messageTextColor: 'surfaceTextPrimary',
67
- messageTextSize: 'm',
68
- messageTextWeight: 400,
47
+ descTextColor: 'surfaceTextPrimary',
48
+ descTextSize: 'm',
49
+ descTextWeight: 400,
69
50
  primaryButtonAppearance: 'accent',
70
51
  primaryButtonLabelTextSize: 'l',
71
52
  primaryButtonShape: 'rounded',
@@ -76,16 +57,15 @@ var responseAppearance = {
76
57
  secondaryButtonShape: 'rounded',
77
58
  secondaryButtonSize: 'xxl',
78
59
  secondaryButtonWidth: 'fill',
60
+ },
61
+ error: {
79
62
  titleTextColor: 'surfaceTextPrimary',
80
63
  titleTextSize: 'xxl',
81
64
  titleTextWeight: 400,
82
- },
83
- dev: {
84
- fill: 'surfaceSecondary',
85
- messageTextColor: 'surfaceTextPrimary',
86
- messageTextSize: 'm',
87
- messageTextWeight: 400,
88
- primaryButtonAppearance: 'surfaceTertiary',
65
+ descTextColor: 'surfaceTextPrimary',
66
+ descTextSize: 'm',
67
+ descTextWeight: 400,
68
+ primaryButtonAppearance: 'secondary',
89
69
  primaryButtonLabelTextSize: 'l',
90
70
  primaryButtonShape: 'rounded',
91
71
  primaryButtonSize: 'xxl',
@@ -95,15 +75,17 @@ var responseAppearance = {
95
75
  secondaryButtonShape: 'rounded',
96
76
  secondaryButtonSize: 'xxl',
97
77
  secondaryButtonWidth: 'fill',
78
+ svgFill: 'surfacePrimary',
79
+ SvgImage: img$5,
80
+ },
81
+ success: {
98
82
  titleTextColor: 'surfaceTextPrimary',
99
83
  titleTextSize: 'xxl',
100
84
  titleTextWeight: 400,
101
- },
102
- error: {
103
- messageTextColor: 'surfaceTextPrimary',
104
- messageTextSize: 'm',
105
- messageTextWeight: 400,
106
- primaryButtonAppearance: 'secondary',
85
+ descTextColor: 'surfaceTextPrimary',
86
+ descTextSize: 'm',
87
+ descTextWeight: 400,
88
+ primaryButtonAppearance: 'accent',
107
89
  primaryButtonLabelTextSize: 'l',
108
90
  primaryButtonShape: 'rounded',
109
91
  primaryButtonSize: 'xxl',
@@ -113,16 +95,17 @@ var responseAppearance = {
113
95
  secondaryButtonShape: 'rounded',
114
96
  secondaryButtonSize: 'xxl',
115
97
  secondaryButtonWidth: 'fill',
116
- svgSrc: img$6,
98
+ svgFill: 'successPrimary',
99
+ SvgImage: img$2,
100
+ },
101
+ warning: {
117
102
  titleTextColor: 'surfaceTextPrimary',
118
103
  titleTextSize: 'xxl',
119
104
  titleTextWeight: 400,
120
- },
121
- fail: {
122
- messageTextColor: 'surfaceTextPrimary',
123
- messageTextSize: 'm',
124
- messageTextWeight: 400,
125
- primaryButtonAppearance: 'surfaceTertiary',
105
+ descTextColor: 'surfaceTextPrimary',
106
+ descTextSize: 'm',
107
+ descTextWeight: 400,
108
+ primaryButtonAppearance: 'primary',
126
109
  primaryButtonLabelTextSize: 'l',
127
110
  primaryButtonShape: 'rounded',
128
111
  primaryButtonSize: 'xxl',
@@ -132,15 +115,16 @@ var responseAppearance = {
132
115
  secondaryButtonShape: 'rounded',
133
116
  secondaryButtonSize: 'xxl',
134
117
  secondaryButtonWidth: 'fill',
135
- svgSrc: img$5,
118
+ svgFill: 'warningPrimary',
119
+ SvgImage: img,
120
+ },
121
+ fail: {
136
122
  titleTextColor: 'surfaceTextPrimary',
137
123
  titleTextSize: 'xxl',
138
124
  titleTextWeight: 400,
139
- },
140
- refresh: {
141
- messageTextColor: 'surfaceTextPrimary',
142
- messageTextSize: 'm',
143
- messageTextWeight: 400,
125
+ descTextColor: 'surfaceTextPrimary',
126
+ descTextSize: 'm',
127
+ descTextWeight: 400,
144
128
  primaryButtonAppearance: 'surfaceTertiary',
145
129
  primaryButtonLabelTextSize: 'l',
146
130
  primaryButtonShape: 'rounded',
@@ -151,36 +135,36 @@ var responseAppearance = {
151
135
  secondaryButtonShape: 'rounded',
152
136
  secondaryButtonSize: 'xxl',
153
137
  secondaryButtonWidth: 'fill',
154
- svgSrc: img$3,
138
+ svgFill: 'surfacePrimary',
139
+ SvgImage: img$4,
140
+ },
141
+ nothingFound: {
155
142
  titleTextColor: 'surfaceTextPrimary',
156
143
  titleTextSize: 'xxl',
157
144
  titleTextWeight: 400,
158
- },
159
- off: {
160
- messageTextColor: 'surfaceTextPrimary',
161
- messageTextSize: 'm',
162
- messageTextWeight: 400,
163
- primaryButtonAppearance: 'success',
145
+ descTextColor: 'surfaceTextPrimary',
146
+ descTextSize: 'm',
147
+ descTextWeight: 400,
148
+ primaryButtonAppearance: 'surfaceTertiary',
164
149
  primaryButtonLabelTextSize: 'l',
165
150
  primaryButtonShape: 'rounded',
166
151
  primaryButtonSize: 'xxl',
167
152
  primaryButtonWidth: 'fill',
168
- secondaryButtonAppearance: 'secondary',
153
+ secondaryButtonAppearance: 'surfaceSecondary',
169
154
  secondaryButtonLabelTextSize: 'l',
170
155
  secondaryButtonShape: 'rounded',
171
156
  secondaryButtonSize: 'xxl',
172
157
  secondaryButtonWidth: 'fill',
173
- svgFill: 'errorPrimary',
174
- svgPathFill: 'surfaceItemTertiary',
175
- svgSrc: img$4,
158
+ svgFill: 'surfacePrimary',
159
+ SvgImage: img$3,
160
+ },
161
+ unableLoadData: {
176
162
  titleTextColor: 'surfaceTextPrimary',
177
163
  titleTextSize: 'xxl',
178
164
  titleTextWeight: 400,
179
- },
180
- search: {
181
- messageTextColor: 'surfaceTextPrimary',
182
- messageTextSize: 'm',
183
- messageTextWeight: 400,
165
+ descTextColor: 'surfaceTextPrimary',
166
+ descTextSize: 'm',
167
+ descTextWeight: 400,
184
168
  primaryButtonAppearance: 'surfaceTertiary',
185
169
  primaryButtonLabelTextSize: 'l',
186
170
  primaryButtonShape: 'rounded',
@@ -191,18 +175,17 @@ var responseAppearance = {
191
175
  secondaryButtonShape: 'rounded',
192
176
  secondaryButtonSize: 'xxl',
193
177
  secondaryButtonWidth: 'fill',
194
- svgFill: 'errorPrimary',
195
- svgPathFill: 'surfaceItemTertiary',
196
- svgSrc: img$2,
178
+ svgFill: 'surfacePrimary',
179
+ SvgImage: img$1,
180
+ },
181
+ refresh: {
197
182
  titleTextColor: 'surfaceTextPrimary',
198
183
  titleTextSize: 'xxl',
199
184
  titleTextWeight: 400,
200
- },
201
- success: {
202
- messageTextColor: 'surfaceTextPrimary',
203
- messageTextSize: 'm',
204
- messageTextWeight: 400,
205
- primaryButtonAppearance: 'accent',
185
+ descTextColor: 'surfaceTextPrimary',
186
+ descTextSize: 'm',
187
+ descTextWeight: 400,
188
+ primaryButtonAppearance: 'surfaceTertiary',
206
189
  primaryButtonLabelTextSize: 'l',
207
190
  primaryButtonShape: 'rounded',
208
191
  primaryButtonSize: 'xxl',
@@ -212,16 +195,17 @@ var responseAppearance = {
212
195
  secondaryButtonShape: 'rounded',
213
196
  secondaryButtonSize: 'xxl',
214
197
  secondaryButtonWidth: 'fill',
215
- svgSrc: img$1,
198
+ svgFill: 'surfacePrimary',
199
+ SvgImage: img$3,
200
+ },
201
+ confirm: {
216
202
  titleTextColor: 'surfaceTextPrimary',
217
203
  titleTextSize: 'xxl',
218
204
  titleTextWeight: 400,
219
- },
220
- warning: {
221
- messageTextColor: 'surfaceTextPrimary',
222
- messageTextSize: 'm',
223
- messageTextWeight: 400,
224
- primaryButtonAppearance: 'primary',
205
+ descTextColor: 'surfaceTextPrimary',
206
+ descTextSize: 'm',
207
+ descTextWeight: 400,
208
+ primaryButtonAppearance: 'secondary',
225
209
  primaryButtonLabelTextSize: 'l',
226
210
  primaryButtonShape: 'rounded',
227
211
  primaryButtonSize: 'xxl',
@@ -231,28 +215,29 @@ var responseAppearance = {
231
215
  secondaryButtonShape: 'rounded',
232
216
  secondaryButtonSize: 'xxl',
233
217
  secondaryButtonWidth: 'fill',
234
- svgSrc: img,
235
- titleTextColor: 'surfaceTextPrimary',
236
- titleTextSize: 'xxl',
237
- titleTextWeight: 400,
218
+ svgFill: 'surfacePrimary',
219
+ SvgImage: img$6,
238
220
  },
239
221
  };
240
222
 
241
223
  var responseConfig = {
242
224
  appearance: responseAppearance,
243
- setAppearance: function (newComponent) {
244
- responseConfig.appearance = newComponent;
225
+ setAppearance: function (appearanceConfig) {
226
+ responseConfig.appearance = appearanceConfig;
245
227
  },
246
228
  };
247
229
  function Response(props) {
248
- var width = props.width, height = props.height, after = props.after, appearance = props.appearance, before = props.before, className = props.className, imageSrc = props.imageSrc, message = props.message, messageTextColor = props.messageTextColor, messageTextSize = props.messageTextSize, messageTextWeight = props.messageTextWeight, primaryButton = props.primaryButton, primaryButtonAfter = props.primaryButtonAfter, primaryButtonAppearance = props.primaryButtonAppearance, primaryButtonBefore = props.primaryButtonBefore, primaryButtonFill = props.primaryButtonFill, primaryButtonFillHover = props.primaryButtonFillHover, primaryButtonLabel = props.primaryButtonLabel, primaryButtonLabelTextColor = props.primaryButtonLabelTextColor, primaryButtonLabelTextSize = props.primaryButtonLabelTextSize, primaryButtonShape = props.primaryButtonShape, primaryButtonSize = props.primaryButtonSize, primaryButtonWidth = props.primaryButtonWidth, secondaryButton = props.secondaryButton, secondaryButtonAfter = props.secondaryButtonAfter, secondaryButtonAppearance = props.secondaryButtonAppearance, secondaryButtonBefore = props.secondaryButtonBefore, secondaryButtonFill = props.secondaryButtonFill, secondaryButtonFillHover = props.secondaryButtonFillHover, secondaryButtonLabel = props.secondaryButtonLabel, secondaryButtonLabelTextColor = props.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = props.secondaryButtonLabelTextSize, secondaryButtonShape = props.secondaryButtonShape, secondaryButtonSize = props.secondaryButtonSize, secondaryButtonWidth = props.secondaryButtonWidth, set = props.set, SvgImage = props.SvgImage, svgSrc = props.svgSrc, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClickPrimaryButton = props.onClickPrimaryButton, onClickSecondaryButton = props.onClickSecondaryButton;
249
- // @ts-expect-error
250
- var appearanceConfig = responseConfig.appearance && responseConfig.appearance[appearance];
230
+ var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, secondaryButton = props.secondaryButton, before = props.before, after = props.after, onClickSecondaryButton = props.onClickSecondaryButton;
231
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
232
+ var _a;
233
+ return (tslib_es6.__assign(tslib_es6.__assign({}, resultAppearance), (_a = responseConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
234
+ }, {});
251
235
  var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
252
- var borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, borderWidthClass = propsGenerator.borderWidthClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, svgPathFillClass = propsGenerator.svgPathFillClass, textAlignClass = propsGenerator.textAlignClass;
236
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textAlignClass = propsGenerator.textAlignClass, primaryButtonAfter = propsGenerator.primaryButtonAfter, primaryButtonAppearance = propsGenerator.primaryButtonAppearance, primaryButtonBefore = propsGenerator.primaryButtonBefore, primaryButtonFill = propsGenerator.primaryButtonFill, primaryButtonFillHover = propsGenerator.primaryButtonFillHover, primaryButtonLabel = propsGenerator.primaryButtonLabel, primaryButtonLabelTextColor = propsGenerator.primaryButtonLabelTextColor, primaryButtonLabelTextSize = propsGenerator.primaryButtonLabelTextSize, primaryButtonShape = propsGenerator.primaryButtonShape, primaryButtonSize = propsGenerator.primaryButtonSize, primaryButtonWidth = propsGenerator.primaryButtonWidth, secondaryButtonAfter = propsGenerator.secondaryButtonAfter, secondaryButtonAppearance = propsGenerator.secondaryButtonAppearance, secondaryButtonBefore = propsGenerator.secondaryButtonBefore, secondaryButtonFill = propsGenerator.secondaryButtonFill, secondaryButtonFillHover = propsGenerator.secondaryButtonFillHover, secondaryButtonLabel = propsGenerator.secondaryButtonLabel, secondaryButtonLabelTextColor = propsGenerator.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = propsGenerator.secondaryButtonLabelTextSize, secondaryButtonShape = propsGenerator.secondaryButtonShape, secondaryButtonSize = propsGenerator.secondaryButtonSize, secondaryButtonWidth = propsGenerator.secondaryButtonWidth, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc, onClickPrimaryButton = propsGenerator.onClickPrimaryButton;
253
237
  var ImageComponent = React.useMemo(function () {
254
- var src = imageSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.imageSrc) || svgSrc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.svgSrc);
255
- var Image = SvgImage || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.SvgImage);
238
+ var src = imageSrc || svgSrc;
239
+ var Image = SvgImage;
240
+ console.log(src);
256
241
  if (Image) {
257
242
  var sizes = {};
258
243
  if (width) {
@@ -265,7 +250,7 @@ function Response(props) {
265
250
  }
266
251
  if (src) {
267
252
  if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
268
- if (svgFillClass || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.svgFill)) {
253
+ if (svgFillClass) {
269
254
  return jsxRuntime.jsx(SVG, { preProcessor: removeFillStroke, src: src });
270
255
  }
271
256
  else {
@@ -278,11 +263,11 @@ function Response(props) {
278
263
  }, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
279
264
  // @ts-expect-error
280
265
  var _a = useStyles.useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
281
- return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "response_set_".concat(set)), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), message && (jsxRuntime.jsx(Text.Text, { className: "response__message", size: messageTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextSize) || 'm', textColor: messageTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextColor), textWeight: messageTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.messageTextWeight), children: message }))] })] }), (primaryButtonLabel ||
266
+ return (jsxRuntime.jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxRuntime.jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsxRuntime.jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxRuntime.jsxs(Group.Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsxRuntime.jsx(Text.Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), desc && (jsxRuntime.jsx(Text.Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
282
267
  primaryButton ||
283
268
  secondaryButtonLabel ||
284
269
  secondaryButton ||
285
- appearanceConfig) && (jsxRuntime.jsxs(Group.Group, { className: "response__button", width: "fill", children: [primaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: primaryButtonWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonWidth) || 'fill', labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabelTextSize), fill: primaryButtonFill, fillHover: primaryButtonFillHover, after: primaryButtonAfter, before: primaryButtonBefore, label: primaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonLabel), shape: primaryButtonShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonShape), size: primaryButtonSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonSize), appearance: primaryButtonAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.primaryButtonAppearance) || 'dev', onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabel) ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", width: secondaryButtonWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonWidth) || 'fill', labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabelTextSize), fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, after: secondaryButtonAfter, before: secondaryButtonBefore, label: secondaryButtonLabel || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonLabel), shape: secondaryButtonShape || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonShape), size: secondaryButtonSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonSize), appearance: secondaryButtonAppearance || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.secondaryButtonAppearance) || 'dev', onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
270
+ appearanceConfig) && (jsxRuntime.jsxs(Group.Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsxRuntime.jsx(Button.Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
286
271
  }
287
272
  var removeFillStroke = function (code) {
288
273
  return code
@@ -9,7 +9,7 @@ var clsx = require('clsx');
9
9
  var CreatableSelect = require('react-select/creatable');
10
10
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
11
11
  var Text = require('../../Text-C49zj3jO.js');
12
- var Badge = require('../../Badge-BX4N91_C.js');
12
+ var Badge = require('../../Badge-C6SNRExV.js');
13
13
  var Group = require('../../Group-Chtnas-J.js');
14
14
  var Divider = require('../../Divider-ImOOytuN.js');
15
15
  require('react-inlinesvg');
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var clsx = require('clsx');
7
7
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
8
  var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Badge = require('../../Badge-BX4N91_C.js');
9
+ var Badge = require('../../Badge-C6SNRExV.js');
10
10
  var Divider = require('../../Divider-ImOOytuN.js');
11
11
  var Link = require('../../Link-B38Hn4G2.js');
12
12
  var Text = require('../../Text-C49zj3jO.js');
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var clsx = require('clsx');
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles/useStyles.js');
8
- var Badge = require('../../Badge-BX4N91_C.js');
8
+ var Badge = require('../../Badge-C6SNRExV.js');
9
9
  var Text = require('../../Text-C49zj3jO.js');
10
10
  var Title = require('../../Title-BWWyRwLY.js');
11
11
  require('react');
@@ -15,8 +15,8 @@ var STATUSES = {
15
15
  };
16
16
  var NotificationsContext = React.createContext([]);
17
17
  var NotificationsAPIContext = React.createContext({
18
- hideNotifications: function () { },
19
- showNotification: function () { },
18
+ hideNotifications: function (targetId) { },
19
+ showNotification: function (notification, onClose) { },
20
20
  notificationStatuses: STATUSES,
21
21
  });
22
22
  function NotificationsProvider(props) {
@@ -32,7 +32,7 @@ var avatarConfig = {
32
32
  },
33
33
  };
34
34
  function Avatar(props) {
35
- var className = props.className, type = props.type, appearance = props.appearance, Dot = props.Dot, _a = props.firstName, firstName = _a === void 0 ? '' : _a, icon = props.icon, mode = props.mode, _b = props.secondName, secondName = _b === void 0 ? '' : _b, _c = props.size, size = _c === void 0 ? '96' : _c, src = props.src, before = props.before, after = props.after, onClick = props.onClick;
35
+ var className = props.className, type = props.type, appearance = props.appearance, _a = props.size, size = _a === void 0 ? '96' : _a, Dot = props.Dot, _b = props.firstName, firstName = _b === void 0 ? '' : _b, icon = props.icon, mode = props.mode, _c = props.secondName, secondName = _c === void 0 ? '' : _c, src = props.src, before = props.before, after = props.after, onClick = props.onClick;
36
36
  var avatarChars = useMemo(function () {
37
37
  var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
38
38
  var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
@@ -44,7 +44,7 @@ function Avatar(props) {
44
44
  }, {});
45
45
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
46
46
  var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, _d = propsGenerator.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = propsGenerator.textSize, textSize = _e === void 0 ? 'l' : _e, _f = propsGenerator.textWeight, textWeight = _f === void 0 ? '600' : _f, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass;
47
- return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsx(Text, { className: "avatar__name", textColor: textColor, textWeight: textWeight, size: textSize, children: avatarChars })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), Dot, after] }) }));
47
+ return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", shape: "geometric", src: src })) : (jsx(Text, { className: "avatar__name", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), Dot, after] }) }));
48
48
  }
49
49
 
50
50
  export { Avatar, avatarAppearance, avatarConfig };
@@ -1,4 +1,4 @@
1
- export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-CGHosmYx.js';
1
+ export { B as Badge, b as badgeAppearance, a as badgeConfig } from '../Badge-C68XnlcL.js';
2
2
  import '../tslib.es6-5FtW-kfi.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'clsx';
@@ -1,4 +1,4 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-BtAUGGPc.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button-Bsrw4D7p.js';
2
2
  import '../tslib.es6-5FtW-kfi.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -20,4 +20,4 @@ import '../Link-BhJ5BdyS.js';
20
20
  import '../Tooltip-BYgzNVYI.js';
21
21
  import '../Text-C6NSmetx.js';
22
22
  import '../Title-Dck3eHNM.js';
23
- import '../Loader-CsPvc-9g.js';
23
+ import '../Loader-D4_r7LML.js';
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
4
4
  import { useStyles } from '../hooks/useStyles/useStyles.js';
5
5
  import { I as Icon } from '../Icon-htF_V35Y.js';
6
- import { L as Label } from '../Label-Dpeq55TV.js';
6
+ import { L as Label } from '../Label-I9WNpCXa.js';
7
7
  import { T as Text } from '../Text-C6NSmetx.js';
8
8
  import '../tslib.es6-5FtW-kfi.js';
9
9
  import 'react';
@@ -1,8 +1,8 @@
1
+ import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
2
  import { jsxs, jsx } from 'react/jsx-runtime';
2
3
  import clsx from 'clsx';
3
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
4
5
  import { T as Text } from '../Text-C6NSmetx.js';
5
- import '../tslib.es6-5FtW-kfi.js';
6
6
  import 'react';
7
7
  import 'lodash/camelCase';
8
8
  import 'lodash/castArray';
@@ -37,18 +37,20 @@ var checkboxState = {
37
37
 
38
38
  var checkboxConfig = {
39
39
  appearance: checkboxAppearance,
40
- setAppearance: function (newComponent) {
41
- checkboxConfig.appearance = newComponent;
42
- },
43
40
  state: checkboxState,
44
- // eslint-disable-next-line perfectionist/sort-objects
45
- setState: function (newComponent) {
46
- checkboxConfig.state = newComponent;
41
+ setAppearance: function (appearanceConfig) {
42
+ checkboxConfig.appearance = appearanceConfig;
43
+ },
44
+ setState: function (appearanceConfig) {
45
+ checkboxConfig.state = appearanceConfig;
47
46
  },
48
47
  };
49
48
  function Checkbox(props) {
50
- var id = props.id, after = props.after, appearance = props.appearance, before = props.before, checked = props.checked, className = props.className, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
51
- var appearanceConfig = checkboxConfig.appearance && checkboxConfig.appearance[appearance];
49
+ var id = props.id, className = props.className, appearance = props.appearance, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, checked = props.checked, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
50
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
51
+ var _a;
52
+ return (__assign(__assign({}, resultAppearance), (_a = checkboxConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
53
+ }, {});
52
54
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
53
55
  var fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass, stateBorderWidthClass = propsGenerator.stateBorderWidthClass, stateShapeClass = propsGenerator.stateShapeClass, widthClass = propsGenerator.widthClass;
54
56
  var stateFillClass = propsGenerator.getClassName(checked ? 'stateFillChecked' : 'stateFill', {
@@ -58,7 +60,7 @@ function Checkbox(props) {
58
60
  var stateCheckmarkFillClass = propsGenerator.getClassName(disabled ? 'stateCheckmarkFillDisabled' : 'stateCheckmarkFill', { prefix: 'checkbox_checkmark_fill_' });
59
61
  var stateBorderColorClass = propsGenerator.getClassName(checked ? 'stateBorderColorChecked' : 'stateBorderColor', { prefix: 'border-color_' });
60
62
  var stateBorderColorDisabledClass = propsGenerator.getClassName(checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled', { prefix: 'border-color_' });
61
- return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), shapeClass && "checkbox_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass), children: [jsx("input", { className: "checkbox__input", checked: checked, disabled: disabled,
63
+ 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", { className: "checkbox__input", checked: checked, disabled: disabled,
62
64
  // @ts-expect-error
63
65
  id: id, type: "checkbox", 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 })] }));
64
66
  }