quickblox-react-ui-kit 0.4.6-beta.3 → 0.4.6-beta.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 (149) hide show
  1. package/.env +1 -0
  2. package/dist/index-ui.js +94 -95
  3. package/dist/index-ui.js.map +1 -1
  4. package/package.json +1 -1
  5. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +8 -10
  6. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +4 -3
  7. package/src/Data/source/remote/RemoteDataSource.ts +7 -1
  8. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +4 -6
  9. package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +14 -13
  10. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +1 -3
  11. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +3 -3
  12. package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +6 -5
  13. package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +2 -2
  14. package/src/Presentation/ui-components/Avatar/Avatar.scss +1 -1
  15. package/src/Presentation/ui-components/Avatar/Avatar.tsx +5 -3
  16. package/src/Presentation/ui-components/Badge/Badge.scss +1 -1
  17. package/src/Presentation/ui-components/Badge/Badge.tsx +1 -1
  18. package/src/Presentation/ui-components/Button/Button.scss +5 -5
  19. package/src/Presentation/ui-components/Button/Button.tsx +3 -3
  20. package/src/Presentation/ui-components/CheckBox/CheckBox.scss +1 -1
  21. package/src/Presentation/ui-components/CheckBox/CheckBox.tsx +1 -1
  22. package/src/Presentation/ui-components/Loader/Loader.scss +1 -1
  23. package/src/Presentation/ui-components/Loader/Loader.tsx +3 -1
  24. package/src/Presentation/ui-components/Message/Message.tsx +21 -27
  25. package/src/Presentation/ui-components/TextField/TextField.scss +1 -1
  26. package/src/Presentation/ui-components/TextField/TextField.tsx +8 -8
  27. package/src/Presentation/ui-components/Toast/Toast.scss +2 -2
  28. package/src/Presentation/ui-components/Toast/ToastProvider.tsx +3 -3
  29. package/src/QBconfig.ts +7 -7
  30. package/storybook-static/161.53da4e03.iframe.bundle.js +2 -0
  31. package/storybook-static/161.53da4e03.iframe.bundle.js.LICENSE.txt +9 -0
  32. package/storybook-static/167.88fc69a9.iframe.bundle.js +1 -0
  33. package/storybook-static/217.3c66ff1e.iframe.bundle.js +405 -0
  34. package/storybook-static/217.3c66ff1e.iframe.bundle.js.LICENSE.txt +9 -0
  35. package/storybook-static/217.3c66ff1e.iframe.bundle.js.map +1 -0
  36. package/storybook-static/294.b81cdbca.iframe.bundle.js +1 -0
  37. package/storybook-static/363.2cb21716.iframe.bundle.js +2 -0
  38. package/storybook-static/363.2cb21716.iframe.bundle.js.LICENSE.txt +44 -0
  39. package/storybook-static/364.988cd801.iframe.bundle.js +1 -0
  40. package/storybook-static/488.3cd3942e.iframe.bundle.js +1 -0
  41. package/storybook-static/559.9e64a6f5.iframe.bundle.js +2 -0
  42. package/storybook-static/559.9e64a6f5.iframe.bundle.js.LICENSE.txt +5 -0
  43. package/storybook-static/735.82f96f8a.iframe.bundle.js +2 -0
  44. package/storybook-static/735.82f96f8a.iframe.bundle.js.LICENSE.txt +9 -0
  45. package/storybook-static/844.6041e1a5.iframe.bundle.js +95 -0
  46. package/storybook-static/844.6041e1a5.iframe.bundle.js.LICENSE.txt +19 -0
  47. package/storybook-static/844.6041e1a5.iframe.bundle.js.map +1 -0
  48. package/storybook-static/936.8546c1d8.iframe.bundle.js +1 -0
  49. package/storybook-static/961.c94da456.iframe.bundle.js +2 -0
  50. package/storybook-static/961.c94da456.iframe.bundle.js.LICENSE.txt +9 -0
  51. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +2 -0
  52. package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js.LICENSE.txt +5 -0
  53. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +2 -0
  54. package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js.LICENSE.txt +5 -0
  55. package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +2 -0
  56. package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js.LICENSE.txt +5 -0
  57. package/storybook-static/Presentation-ui-components-DialogBanner-DialogBanner-stories.cd797979.iframe.bundle.js +1 -0
  58. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +2 -0
  59. package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt +5 -0
  60. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +2 -0
  61. package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js.LICENSE.txt +15 -0
  62. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +2 -0
  63. package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js.LICENSE.txt +5 -0
  64. package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +2 -0
  65. package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js.LICENSE.txt +5 -0
  66. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +2 -0
  67. package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js.LICENSE.txt +5 -0
  68. package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +2 -0
  69. package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js.LICENSE.txt +5 -0
  70. package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4aa88de3.iframe.bundle.js +1 -0
  71. package/storybook-static/Presentation-ui-components-MessageSeparator-MessageSeparator-stories.b927d1e1.iframe.bundle.js +1 -0
  72. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js +2 -0
  73. package/storybook-static/Presentation-ui-components-Placeholder-Placeholder-stories.34dfadb1.iframe.bundle.js.LICENSE.txt +5 -0
  74. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js +2 -0
  75. package/storybook-static/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.9b4eff15.iframe.bundle.js.LICENSE.txt +5 -0
  76. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +2 -0
  77. package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js.LICENSE.txt +5 -0
  78. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +2 -0
  79. package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js.LICENSE.txt +5 -0
  80. package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +1 -0
  81. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +2 -0
  82. package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt +5 -0
  83. package/storybook-static/docs-Introduction-mdx.5addfa61.iframe.bundle.js +1 -0
  84. package/storybook-static/docs-Styling-mdx.9f4235f1.iframe.bundle.js +1 -0
  85. package/storybook-static/favicon.svg +1 -7
  86. package/storybook-static/iframe.html +511 -0
  87. package/storybook-static/index.html +100 -46
  88. package/storybook-static/index.json +1 -1
  89. package/storybook-static/main.59f682e8.iframe.bundle.js +1 -0
  90. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  91. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  92. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  93. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  94. package/storybook-static/project.json +1 -1
  95. package/storybook-static/runtime~main.5a7ba727.iframe.bundle.js +1 -0
  96. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +331 -0
  97. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +51 -0
  98. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
  99. package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +12 -0
  100. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +402 -0
  101. package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +242 -0
  102. package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +3 -0
  103. package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +3 -0
  104. package/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +3 -0
  105. package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +3 -0
  106. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +222 -0
  107. package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +127 -0
  108. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  109. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  110. package/storybook-static/sb-manager/globals-module-info.js +1051 -1
  111. package/storybook-static/sb-manager/globals-runtime.js +41591 -0
  112. package/storybook-static/sb-manager/globals.js +48 -1
  113. package/storybook-static/sb-manager/runtime.js +12048 -1
  114. package/storybook-static/sb-preview/globals.js +33 -1
  115. package/storybook-static/sb-preview/runtime.js +7723 -90
  116. package/storybook-static/favicon.ico +0 -0
  117. package/storybook-static/logo192.png +0 -0
  118. package/storybook-static/logo512.png +0 -0
  119. package/storybook-static/manifest.json +0 -25
  120. package/storybook-static/robots.txt +0 -3
  121. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  122. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  123. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  124. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  125. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -62
  126. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
  127. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js +0 -3
  128. package/storybook-static/sb-addons/essentials-measure-5/manager-bundle.js.LEGAL.txt +0 -0
  129. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js +0 -3
  130. package/storybook-static/sb-addons/essentials-outline-6/manager-bundle.js.LEGAL.txt +0 -0
  131. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js +0 -3
  132. package/storybook-static/sb-addons/essentials-toolbars-4/manager-bundle.js.LEGAL.txt +0 -0
  133. package/storybook-static/sb-addons/interactions-7/manager-bundle.js +0 -12
  134. package/storybook-static/sb-addons/interactions-7/manager-bundle.js.LEGAL.txt +0 -0
  135. package/storybook-static/sb-addons/links-0/manager-bundle.js +0 -3
  136. package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  137. package/storybook-static/sb-addons/viewport-8/manager-bundle.js +0 -3
  138. package/storybook-static/sb-addons/viewport-8/manager-bundle.js.LEGAL.txt +0 -0
  139. package/storybook-static/sb-common-assets/fonts.css +0 -31
  140. package/storybook-static/sb-manager/WithTooltip-V3YHNWJZ-MXTFSDU5.js +0 -1
  141. package/storybook-static/sb-manager/chunk-5QAFKPS7.js +0 -7
  142. package/storybook-static/sb-manager/chunk-7PRFHFSS.js +0 -9
  143. package/storybook-static/sb-manager/chunk-XE6LDGTE.js +0 -406
  144. package/storybook-static/sb-manager/chunk-YDUB7CS6.js +0 -348
  145. package/storybook-static/sb-manager/chunk-ZEU7PDD3.js +0 -1
  146. package/storybook-static/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
  147. package/storybook-static/sb-manager/index.js +0 -1
  148. package/storybook-static/sb-manager/syntaxhighlighter-MJWPISIS-JOSCT6CQ.js +0 -1
  149. package/storybook-static/stories.json +0 -1
@@ -0,0 +1,2 @@
1
+ /*! For license information please see Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[585],{"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if("string"==typeof arg||"number"==typeof arg)return arg;if("object"!=typeof arg)return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".loader{animation:spin 2s linear infinite;min-width:44;min-height:44}.loader svg path{fill:var(--main-elements)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}","",{version:3,sources:["webpack://./src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss"],names:[],mappings:"AAIA,QACE,iCAAA,CAEA,YANmB,CAOnB,aANoB,CAIpB,iBAAA,yBANyB,CAW3B,gBACE,GACE,sBAAA,CAEF,KACE,wBAAA,CAAA",sourcesContent:["$default-background-color: var(--main-elements);\n$default-width-icon: 44;\n$default-height-icon: 44;\n\n.loader {\n animation: spin 2s linear infinite;\n svg path {fill: $default-background-color};\n min-width: $default-width-icon;\n min-height: $default-height-icon;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".list{display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.list .spinner{display:block;height:16px;left:0;position:absolute;right:0;top:-16px;transition:all .2s ease}.list .spinner.active{top:8px}.list .list-content{flex:1;overflow-x:hidden;overflow-y:auto;width:100%}.list ::-webkit-scrollbar{display:none;width:0px !important;background:rgba(0,0,0,0)}.list ::-webkit-scrollbar-thumb{background:rgba(0,0,0,0)}","",{version:3,sources:["webpack://./src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss"],names:[],mappings:"AAAA,MACE,YAAA,CACA,qBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CAIF,eACE,aAAA,CACA,WAAA,CACA,MAAA,CACA,iBAAA,CACA,OAAA,CACA,SAAA,CACA,uBAAA,CAGF,sBACE,OAAA,CAGF,oBACE,MAAA,CACA,iBAAA,CAEA,eAAA,CACA,UAAA,CAIA,0BACE,YAAA,CACA,oBAAA,CACA,wBAAA,CAEF,gCACE,wBAAA",sourcesContent:[".list {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n position: relative;\n width: 100%;\n\n}\n\n.list .spinner {\n display: block;\n height: 16px;\n left: 0;\n position: absolute;\n right: 0;\n top: -16px;\n transition: all 0.2s ease;\n}\n\n.list .spinner.active {\n top: 8px;\n}\n\n.list .list-content {\n flex: 1;\n overflow-x: hidden;\n //overflow-y: hidden;\n overflow-y: auto;\n width: 100%;\n}\n\n.list {\n ::-webkit-scrollbar{\n display: none;\n width: 0px !important;\n background: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background: transparent;\n }\n //:hover{\n // overflow-y: scroll;\n //}\n}\n\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".avatar{display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background-color:var(--disabled-elements);color:var(--secondary-text)}.avatar,.avatar *{box-sizing:border-box}.avatar svg{height:26px;width:26px;fill:var(--tertiary-elements)}.avatar__image{object-fit:cover;width:100%;height:100%}.avatar--xs{width:32px;height:32px}.avatar--sm{width:36px;height:36px}.avatar--md{width:40px;height:40px}.avatar--lg{width:56px;height:56px}.avatar--lg svg{height:33px;width:33px}.avatar--xl{width:64px;height:64px}.avatar--xxl{width:80px;height:80px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Avatar/Avatar.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,QACE,YAAA,CACA,aAAA,CACA,kBAAA,CACA,sBAAA,CAEA,eAAA,CACA,iBAAA,CACA,yCAAA,CACA,2BAAA,CCVA,kBAEE,qBAAA,CDYF,YACE,WAAA,CACA,UAAA,CACA,6BAAA,CAGF,eACE,gBAAA,CACA,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAEA,gBACE,WAAA,CACA,UAAA,CAIJ,YACE,UAAA,CACA,WAAA,CAGF,aACE,UAAA,CACA,WAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.avatar {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n border-radius: 50%;\n background-color: var(--disabled-elements);\n color: var(--secondary-text);\n\n @include applyBorderBox;\n\n svg {\n height: 26px;\n width: 26px;\n fill: var(--tertiary-elements);\n }\n\n &__image {\n object-fit: cover;\n width: 100%;\n height: 100%;\n }\n\n &--xs {\n width: 32px;\n height: 32px;\n }\n\n &--sm {\n width: 36px;\n height: 36px;\n }\n\n &--md {\n width: 40px;\n height: 40px;\n }\n\n &--lg {\n width: 56px;\n height: 56px;\n\n svg {\n height: 33px;\n width: 33px;\n }\n }\n\n &--xl {\n width: 64px;\n height: 64px;\n }\n\n &--xxl {\n width: 80px;\n height: 80px;\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/CheckBox/CheckBox.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".checkbox,.checkbox-field{display:flex;align-items:center;flex-shrink:0;border-radius:4px;padding:4px;justify-content:center}.checkbox-field>input{z-index:-1;opacity:0}.checkbox-field .icon-checkmark{width:18px;height:18px;fill:var(--main-elements)}.checkbox-field .icon-check{width:18px;height:18px;fill:var(--secondary-elements)}.checkbox-field.disabled .icon-check{fill:var(--disabled-elements);cursor:not-allowed}","",{version:3,sources:["webpack://./src/Presentation/ui-components/CheckBox/CheckBox.scss"],names:[],mappings:"AAAA,0BACE,YAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CACA,WAAA,CACA,sBAAA,CAKF,sBAEE,UAAA,CACA,SAAA,CAGF,gCAEE,UAAA,CACA,WAAA,CACA,yBAAA,CAIF,4BAEE,UAAA,CACA,WAAA,CACA,8BAAA,CAGF,qCACE,6BAAA,CACA,kBAAA",sourcesContent:[".checkbox, .checkbox-field {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 4px;\n justify-content: center;\n //width: 18px;\n //height: 18px;\n}\n\n.checkbox-field > input {\n //position: fixed;\n z-index: -1;\n opacity: 0;\n}\n\n.checkbox-field .icon-checkmark {\n //position: fixed;\n width: 18px;\n height: 18px;\n fill: var(--main-elements);\n\n}\n\n.checkbox-field .icon-check {\n //position: fixed;\n width: 18px;\n height: 18px;\n fill: var(--secondary-elements);\n}\n\n.checkbox-field.disabled .icon-check{\n fill: var(--disabled-elements);\n cursor: not-allowed;\n}\n\n\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/UserListItem/UserListItem.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".user-list-item{display:flex;align-items:center;justify-content:space-between;height:56px;padding:8px 19px 8px 16px;gap:16px;border-bottom:1px solid var(--divider)}.user-list-item--disabled{cursor:not-allowed;color:var(--disabled-elements);fill:var(--disabled-elements)}.user-list-item__avatar{display:flex;align-items:center;justify-content:space-between}.user-list-item__name{margin-left:16px;font-weight:400;font-size:16px;line-height:24px;letter-spacing:.15px;color:var(--main-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:180px}@media only screen and (max-width: 980px){.user-list-item__name{width:130px}}","",{version:3,sources:["webpack://./src/Presentation/ui-components/UserListItem/UserListItem.scss"],names:[],mappings:"AAAA,gBACE,YAAA,CACA,kBAAA,CACA,6BAAA,CAEA,WAAA,CACA,yBAAA,CACA,QAAA,CACA,sCAAA,CAGA,0BACE,kBAAA,CACA,8BAAA,CACA,6BAAA,CAGF,wBACE,YAAA,CACA,kBAAA,CACA,6BAAA,CAGF,sBACE,gBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,oBAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CACA,WAAA,CAGA,0CAbF,sBAcI,WAAA,CAAA",sourcesContent:[".user-list-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n height: 56px;\n padding: 8px 19px 8px 16px;\n gap: 16px;\n border-bottom: 1px solid var(--divider);\n\n\n &--disabled {\n cursor: not-allowed;\n color: var(--disabled-elements);\n fill: var(--disabled-elements);\n }\n\n &__avatar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n &__name {\n margin-left: 16px;\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n letter-spacing: 0.15px;\n color: var(--main-text);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 180px;\n\n\n @media only screen and (max-width: 980px) {\n width: 130px;\n }\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/Presentation/ui-components/Avatar/Avatar.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Avatar_Avatar_Avatar});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Avatar=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Avatar.A,options);Avatar.A&&Avatar.A.locals&&Avatar.A.locals;function Avatar_Avatar_Avatar(_ref){let{icon=react.createElement(icons.Uh,null),size="md",className,src}=_ref;return src?react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},react.createElement("img",{src,className:"avatar__image",alt:"Avatar"})):react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},icon)}Avatar_Avatar_Avatar.__docgenInfo={description:"",methods:[],displayName:"Avatar",props:{size:{required:!1,tsType:{name:"union",raw:"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'",elements:[{name:"literal",value:"'xs'"},{name:"literal",value:"'sm'"},{name:"literal",value:"'md'"},{name:"literal",value:"'lg'"},{name:"literal",value:"'xl'"},{name:"literal",value:"'xxl'"}]},description:"",defaultValue:{value:"'md'",computed:!1}},icon:{required:!1,tsType:{name:"ReactElement"},description:"",defaultValue:{value:"<UserSvg />",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""},src:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/CheckBox/CheckBox.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>CheckBox_CheckBox_CheckBox});var react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),CheckBox=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/CheckBox/CheckBox.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(CheckBox.A,options);CheckBox.A&&CheckBox.A.locals&&CheckBox.A.locals;var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts");function CheckBox_CheckBox_CheckBox(_ref){let{disabled,checked,onChange}=_ref;return react.createElement("label",{className:classnames_default()("checkbox-field",{disabled})},checked?react.createElement(icons.uM,{className:"icon-checkmark"}):react.createElement(icons.av,{className:"icon-check"}),react.createElement("input",{type:"checkbox",onChange:()=>onChange?.(!checked),disabled}))}CheckBox_CheckBox_CheckBox.__docgenInfo={description:"",methods:[],displayName:"CheckBox",props:{disabled:{required:!0,tsType:{name:"boolean"},description:""},checked:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(isSelected: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isSelected"}],return:{name:"void"}}},description:""}}}},"./src/Presentation/ui-components/UserListItem/UserListItem.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{UserList:()=>UserList,UserListItemDefault:()=>UserListItemDefault,__namedExportsOrder:()=>__namedExportsOrder,default:()=>UserListItem_stories});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx"),CheckBox=__webpack_require__("./src/Presentation/ui-components/CheckBox/CheckBox.tsx"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),UserListItem=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/UserListItem/UserListItem.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(UserListItem.A,options);UserListItem.A&&UserListItem.A.locals&&UserListItem.A.locals;function UserListItem_UserListItem_UserListItem(_ref){let{avatarUrl,userName,checked=!1,disabled=!1,onChange,className}=_ref;return react.createElement("div",{className:classnames_default()("user-list-item",{"user-list-item--disabled":disabled},className)},react.createElement("div",{className:"user-list-item__avatar"},react.createElement(Avatar.A,{src:avatarUrl}),react.createElement("span",{className:"user-list-item__name"},userName)),onChange&&react.createElement(CheckBox.A,{onChange,disabled,checked}))}UserListItem_UserListItem_UserListItem.__docgenInfo={description:"",methods:[],displayName:"UserListItem",props:{userName:{required:!0,tsType:{name:"string"},description:""},avatarUrl:{required:!1,tsType:{name:"string"},description:""},checked:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(checked: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"checked"}],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};var ScrollableContainer=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss"),ScrollableContainer_options={};ScrollableContainer_options.styleTagTransform=styleTagTransform_default(),ScrollableContainer_options.setAttributes=setAttributesWithoutAttributes_default(),ScrollableContainer_options.insert=insertBySelector_default().bind(null,"head"),ScrollableContainer_options.domAPI=styleDomAPI_default(),ScrollableContainer_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ScrollableContainer.A,ScrollableContainer_options);ScrollableContainer.A&&ScrollableContainer.A.locals&&ScrollableContainer.A.locals;var LoaderComponent=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss"),LoaderComponent_options={};LoaderComponent_options.styleTagTransform=styleTagTransform_default(),LoaderComponent_options.setAttributes=setAttributesWithoutAttributes_default(),LoaderComponent_options.insert=insertBySelector_default().bind(null,"head"),LoaderComponent_options.domAPI=styleDomAPI_default(),LoaderComponent_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(LoaderComponent.A,LoaderComponent_options);LoaderComponent.A&&LoaderComponent.A.locals&&LoaderComponent.A.locals;var icons=__webpack_require__("./src/Presentation/icons/index.ts");function LoaderComponent_LoaderComponent_LoaderComponent(){let theme=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;const loaderStyles=theme?{animation:"spin 1s linear infinite",svg:{path:{fill:theme?.color?theme?.color:""}},minWidth:theme?.width,minHeight:theme?.height,Loader:{fill:theme?.color?theme?.color:""},fill:theme?.color?theme?.color:""}:{},loaderClasses=[theme&&Object.keys(theme).length>0?"":"loader"].join(" ");return React.createElement("div",{style:loaderStyles,className:loaderClasses},React.createElement(icons.iO,{className:"loader"}))}function ScrollableContainer_ScrollableContainer_ScrollableContainer(props){const{className,rootStyles,mainContainerStyles,data,ListEmptyComponent,onEndReached,onEndReachedThreshold,refreshing,autoScrollToBottom,renderItem}=props,container=(0,react.useRef)(null),messageEndRef=(0,react.useRef)(null),scrollToBottom=()=>{console.log("call scrollToBottom start"),autoScrollToBottom&&messageEndRef.current?.scrollIntoView({behavior:"smooth"})};return(0,react.useEffect)((()=>{console.log("useEffect []"),autoScrollToBottom&&scrollToBottom()}),[]),(0,react.useEffect)((()=>{console.log("useEffect messages"),autoScrollToBottom&&scrollToBottom()}),[data.length]),console.log("çount items to scroll:",data.length),console.log("data to scrolling: ",JSON.stringify(data)),react.createElement("div",{style:rootStyles,className:classnames_default()("list",className)},refreshing&&react.createElement("div",null,react.createElement(LoaderComponent_LoaderComponent_LoaderComponent,{width:"44",height:"44",color:"var(--color-background-info)"})),data&&data.length?react.createElement("div",{style:mainContainerStyles,className:"list-content",onScroll:()=>{if(console.log("call scrollHandler"),container.current){const{scrollHeight,clientHeight,scrollTop}=container.current,scrollOffset=(scrollTop+clientHeight)/scrollHeight;let endReached=!1;"number"==typeof onEndReachedThreshold?scrollOffset>=onEndReachedThreshold&&(endReached=!0):scrollOffset>=.99&&(endReached=!0),endReached&&onEndReached&&onEndReached()}},ref:container},data.map(((it,index)=>renderItem(it,index))),react.createElement("div",{style:{float:"left",clear:"both"},ref:messageEndRef})):!refreshing&&ListEmptyComponent&&react.createElement(ListEmptyComponent,null))}LoaderComponent_LoaderComponent_LoaderComponent.__docgenInfo={description:"",methods:[],displayName:"LoaderComponent"},ScrollableContainer_ScrollableContainer_ScrollableContainer.__docgenInfo={description:"",methods:[],displayName:"ScrollableContainer",props:{className:{required:!1,tsType:{name:"string"},description:""},rootStyles:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:""},mainContainerStyles:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:""},data:{required:!0,tsType:{name:"Array",elements:[{name:"T"}],raw:"Array<T>"},description:""},ListEmptyComponent:{required:!1,tsType:{name:"union",raw:"React.ComponentClass | React.FunctionComponent",elements:[{name:"ReactComponentClass",raw:"React.ComponentClass"},{name:"ReactFunctionComponent",raw:"React.FunctionComponent"}]},description:""},onEndReached:{required:!1,tsType:{name:"VoidFunction"},description:""},onEndReachedThreshold:{required:!1,tsType:{name:"number"},description:""},refreshing:{required:!1,tsType:{name:"boolean"},description:""},autoScrollToBottom:{required:!1,tsType:{name:"boolean"},description:""},renderItem:{required:!0,tsType:{name:"signature",type:"function",raw:"(item: T, index: number) => React.ReactElement | null",signature:{arguments:[{type:{name:"T"},name:"item"},{type:{name:"number"},name:"index"}],return:{name:"union",raw:"React.ReactElement | null",elements:[{name:"ReactReactElement",raw:"React.ReactElement"},{name:"null"}]}}},description:""}}};const UserListItem_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/UserListItem",component:UserListItem_UserListItem_UserListItem,tags:["autodocs"],parameters:{layout:"centered"},args:{className:"",disabled:!1,checked:!1,userName:"",avatarUrl:""},argTypes:{avatarUrl:{table:{type:{summary:"url"}},description:"Avatar image source"},userName:{table:{type:{summary:"string"},defaultValue:{summary:""}},description:"User name"},disabled:{table:{type:{summary:"boolean"},defaultValue:{summary:"false"}},description:"Active"},checked:{table:{type:{summary:"boolean"},defaultValue:{summary:"true"}},description:"Checkbox"},onChange:{table:{defaultValue:{summary:"(checked: boolean) => void"},type:{summary:"function"}},description:"Checkbox control"},className:{table:{defaultValue:{summary:"string"},type:{summary:"string"}},description:"Additional classes"}}};function UserListExample(){const[users,setUser]=(0,react.useState)([{name:"User 1",id:0,checked:!0},{name:"User 2",id:1,checked:!1},{name:"User 3",id:2,checked:!1},{name:"User 4",id:3,checked:!0},{name:"User 5",id:4,checked:!0}]);return react.createElement(ScrollableContainer_ScrollableContainer_ScrollableContainer,{data:users,renderItem:user=>react.createElement(UserListItem_UserListItem_UserListItem,{userName:user.name,checked:user.checked,onChange:value=>{setUser((prevUsers=>prevUsers.map((prevUser=>prevUser.id===user.id?{...prevUser,checked:value}:prevUser))))}}),onEndReachedThreshold:.8,refreshing:!1})}function UserListItemExample(){const[checked,setChecked]=(0,react.useState)(!1);return react.createElement(UserListItem_UserListItem_UserListItem,{userName:"User name",checked,onChange:value=>{setChecked(value)}})}const UserListItemDefault={name:"UserListItem Default",render:()=>react.createElement(UserListItemExample,null)},UserList={name:"UserListItem Multiple",render:()=>react.createElement(UserListExample,null)},__namedExportsOrder=["UserListItemDefault","UserList"];UserListItemDefault.parameters={...UserListItemDefault.parameters,docs:{...UserListItemDefault.parameters?.docs,source:{originalSource:"{\n name: 'UserListItem Default',\n render: () => <UserListItemExample />\n}",...UserListItemDefault.parameters?.docs?.source}}},UserList.parameters={...UserList.parameters,docs:{...UserList.parameters?.docs,source:{originalSource:"{\n name: 'UserListItem Multiple',\n render: () => <UserListExample />\n}",...UserList.parameters?.docs?.source}}}}}]);
@@ -0,0 +1,5 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
@@ -0,0 +1 @@
1
+ (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[485],{"./node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}},"./node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext},"./src/docs/Introduction.mdx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/blocks/dist/index.mjs");function _createMdxContent(props){const _components={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h3:"h3",h4:"h4",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"📕 Documentation/Introduction"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"introduction",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#importing-dependencies-in-the-project",rel:"nofollow",children:"Introduction"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The QuickBlox UIKit for React comprises a collection of pre-assembled UI components that enable effortless creation of an in-app chat equipped with all the necessary messaging functionalities. Our development kit encompasses light and dark themes, colors, and various other features. These components can be personalized to fashion an engaging messaging interface that reflects your brand's distinct identity."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The QuickBlox UIKit fully supports both private and group dialogs. To initiate the process of sending a message from the ground up using Java or Kotlin, please refer to the instructions provided in the guide below."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"installation",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#step2-adding-dependencies-to-a-react-project",rel:"nofollow",children:"Installation"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To successfully integrate QuickBlox functionality into your React project, you need to add two main dependencies: quickblox and quickblox-react-ui-kit. By following the documentation, you can easily add these packages to your project."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-bash",children:"npm install quickblox --save\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-bash",children:"npm install quickblox-react-ui-kit --save\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h4,{id:"importing-dependencies-in-the-project",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#importing-dependencies-in-the-project",rel:"nofollow",children:"Importing Dependencies in the Project"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Open the file where you want to use QuickBlox functionality, such as App.tsx\nAdd the following lines at the beginning of the file to import the dependencies:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.blockquote,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Note: We are using // @ts-ignor in TypeScript because QuickBlox SDK doesn't share types."})}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"// @ts-ignore\nimport * as QB from 'quickblox/quickblox';\nimport 'quickblox-react-ui-kit';\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"adding-qbconfigts-file-to-your-react-application",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#step-3-adding-qbconfigts-file-to-your-react-application",rel:"nofollow",children:"Adding QBconfig.ts File to Your React Application"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To ensure proper configuration and functionality of the QuickBlox UIKit in your React application, it is essential to add a QBconfig.ts file to the src folder. This file allows you to define the necessary parameters for the QuickBlox UIKit.\nThe QBconfig.ts file contains various configuration settings that determine how the QuickBlox UIKit interacts with the QuickBlox JavaScript SDK and the backend services. These settings include:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"appId: This parameter represents the unique identifier assigned to your QuickBlox application. It helps establish a connection between the frontend and backend components.\nauthKey and authSecret: These parameters are used for authentication purposes. They ensure secure communication between your application and the QuickBlox backend.\naccountKey: This parameter identifies your QuickBlox account and provides access to the associated services.\napiEndpoint and chatEndpoint: These parameters define the API and chat endpoints provided by QuickBlox. They specify the URLs to which the QuickBlox UIKit will send requests for various functionalities."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"export const QBConfig = {\n credentials: {\n appId: YOUR_APP_ID_FROM_ADMIN_PANEL,\n accountKey: 'YOUR_ACCOUNT_KEY_FROM_ADMIN_PANEL',\n authKey: 'YOUR_AUTH_KEY_FROM_ADMIN_PANEL',\n authSecret: 'YOUR_AUTH_SECRET_FROM_ADMIN_PANEL',\n sessionToken: '',\n },\n appConfig: {\n chatProtocol: {\n Active: 2,\n },\n debug: false,\n endpoints: {\n apiEndpoint: 'https://api.quickblox.com',\n chatEndpoint: 'chat.quickblox.com',\n },\n on: {\n async sessionExpired(handleResponse: any, retry: any) {\n console.log(`Test sessionExpired… ${handleResponse} ${retry}`);\n },\n },\n streamManagement: {\n Enable: true,\n },\n },\n};\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"In this example, make sure to replace the placeholder values (YOUR_APP_ID_FROM_ADMIN_PANEL, YOUR_ACCOUNT_KEY_FROM_ADMIN_PANEL, YOUR_AUTH_KEY_FROM_ADMIN_PANEL, YOUR_AUTH_SECRET_FROM_ADMIN_PANEL) with the actual values obtained from your QuickBlox application.\nBy adding the QBconfig.ts file to your React application, you ensure that the QuickBlox UIKit is properly configured and can interact seamlessly with the QuickBlox backend services."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.blockquote,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong,{children:"Note: If you initialize your SDK using a session token, you need to not only fill the sessionToken field in QBConfig but also fill other properties in the same way as when using the initWithAppId method. See the link initialize QuickBlox SDK without Authorization Key and Secret."})}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Now we can add dependecies in our code. (Open your App.tsx and add that lines.)"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"import * as QB from 'quickblox/quickblox';\nimport 'quickblox-react-ui-kit';\nimport { QBConfig } from './QBconfig'; // this line is new\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"updating-the-project-structure-according-to-your-needs",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#step-4-updating-the-project-structure-according-to-your-needs",rel:"nofollow",children:"Updating the project structure according to your needs"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:'In order to enhance the organization and maintainability of your project, it is recommended to make changes to the structure of the App.tsx in the src folder.\nYou need to add a constant called "currentUser" inside the App() function in the App.tsx file, which describes your user registered in the admin panel, and configure the QuickBloxUIKitProvider. Additionally, import the necessary entities from quickblox-react-ui-kit.\nAs a result, you should have the code like code below:'}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"import React from 'react';\nimport type { QBSession, QBUser } from 'quickblox/quickblox';\nimport {\n QuickBloxUIKitProvider,\n QuickBloxUIKitDesktopLayout,\n} from 'quickblox-react-ui-kit';\nimport { QBConfig } from '../../configs/QBconfig';\nimport Header from '../../components/Header';\nimport SettingModal from '../../components/modals/SettingModal';\nimport LogoutModal from '../../components/modals/LogoutModal';\n\ninterface AppProps {\n session: QBSession;\n logout: VoidFunction;\n}\n\nconst App = (props: AppProps) => {\n const { session, logout } = props;\n const [user, setUser] = useState<QBUser | null>(null);\n\n return (\n <QuickBloxUIKitProvider\n maxFileSize={100 * 1000000}\n accountData={{ ...QBConfig.credentials, sessionToken: session.token }}\n qbConfig={{ ...QBConfig }}\n >\n <Header\n avatarUrl={avatarUrl}\n options={options}\n handleChange={handleChange}\n user={user}\n regex={regex}\n />\n <QuickBloxUIKitDesktopLayout uikitHeightOffset={'40px'} />\n <SettingModal\n user={user}\n avatarUrl={avatarUrl}\n selectedValue={selectedValue}\n setSelectedValue={setSelectedValue}\n regex={regex}\n setUser={setUser}\n />\n <LogoutModal\n selectedValue={selectedValue}\n setSelectedValue={setSelectedValue}\n handleLogout={logout}\n />\n </QuickBloxUIKitProvider>\n );\n};\n\nexport default App;\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"QuickBloxUIKitProvider can accept up to three parameters:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"maxFileSize - controls the maximum size of uploaded files."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"accountData - information about the application's account data."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"loginData - information about the logged-in user."}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Let's add the QuickBlox UIKit chat layer - QuickBloxUIKitDesktopLayout - to the markup of the main component of the application."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"If we do not specify a sessionToken in accountData, it means that the login and session start process occurs within our application. In this case, it is necessary to perform the following fifth step in our instruction.\nHowever, if the session start and application login process is already performed in another application, such as on a server, and we already have a ready sessionToken, then we can skip the next step."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h3,{id:"configure-quickbloxuikitprovider",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-send-your-first-message#step-5-configure-quickbloxuikitprovider",rel:"nofollow",children:"Configure QuickBloxUIKitProvider"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To configure QuickBloxUIKitProvider and use QuickBloxUIKit in your application, follow these steps:\nInitialize DataContext:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ol,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"To work with QuickBlox, it is necessary to initialize the UI Kit react DataContext. It contains important data and settings for using QuickBloxSDK. The DataContext connects various components of the application and provides them access to shared data."}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"const qbUIKitContext: QBDataContextType = React.useContext(qbDataContext);\n\nconst [isUserAuthorized, setUserAuthorized] = React.useState(false);\nconst [isSDKInitialized, setSDKInitialized] = React.useState(false);\n\nconst prepareSDK = async (): Promise<void> => {\n // check if we have installed SDK\n if ((window as any).QB === undefined) {\n if (QB !== undefined) {\n (window as any).QB = QB;\n } else {\n let QBLib = require('quickblox/quickblox.min');\n (window as any).QB = QBLib;\n }\n }\n\n const APPLICATION_ID = QBConfig.credentials.appId;\n const AUTH_KEY = QBConfig.credentials.authKey;\n const AUTH_SECRET = QBConfig.credentials.authSecret;\n const ACCOUNT_KEY = QBConfig.credentials.accountKey;\n const CONFIG = QBConfig.appConfig;\n\n QB.init(APPLICATION_ID, AUTH_KEY, AUTH_SECRET, ACCOUNT_KEY, CONFIG);\n};\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ol,{start:"2",children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"We need to add user authentication, so to do this, we will introduce two states and use the useEffect hook:"}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"const [authorized, setAuthorized] = React.useState(false);\nconst [initedSDK, setInitedSDK] = React.useState(false);\n\n......\n\n useEffect(() => {\n if (!isSDKInitialized) {\n prepareSDK().then(result => {\n\n QB.createSession(currentUser, async function (errorCreateSession: any, session: any) {\n if (errorCreateSession) {\n console.log('Create User Session has error:', JSON.stringify(errorCreateSession));\n } else {\n const userId: number = session.user_id;\n const password: string = session.token;\n const paramsConnect = { userId, password };\n\n QB.chat.connect(paramsConnect, async function (errorConnect: any, resultConnect: any) {\n if (errorConnect) {\n console.log('Can not connect to chat server: ', errorConnect);\n } else {\n const authData: AuthorizationData = {\n userId: userId,\n password: password,\n userName: currentUser.login,\n sessionToken: session.token\n };\n await qbUIKitContext.authorize(authData);\n setSDKInitialized(true);\n setUserAuthorized(true);\n }\n });\n }\n });\n }).catch(\n e => {\n console.log('init SDK has error: ', e)\n });\n }\n }, []);\n\n ......\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"After implementing all the steps, your App.tsx file should look like this. You can compare it this your code or copy it instead of."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"import React, { useEffect } from 'react';\n\n// @ts-ignore\nimport * as QB from 'quickblox/quickblox';\nimport {\n QuickBloxUIKitProvider,\n qbDataContext,\n QuickBloxUIKitDesktopLayout,\n LoginData,\n AuthorizationData,\n QBDataContextType,\n} from 'quickblox-react-ui-kit';\nimport { QBConfig } from './QBconfig';\nimport './App.css';\n\nfunction App() {\n const currentUser: LoginData = {\n login: '',\n password: '',\n };\n\n const qbUIKitContext: QBDataContextType = React.useContext(qbDataContext);\n\n const [isUserAuthorized, setUserAuthorized] = React.useState(false);\n const [isSDKInitialized, setSDKInitialized] = React.useState(false);\n\n const prepareSDK = async (): Promise<void> => {\n // check if we have installed SDK\n if ((window as any).QB === undefined) {\n if (QB !== undefined) {\n (window as any).QB = QB;\n } else {\n let QBLib = require('quickblox/quickblox.min');\n (window as any).QB = QBLib;\n }\n }\n\n const APPLICATION_ID = QBConfig.credentials.appId;\n const AUTH_KEY = QBConfig.credentials.authKey;\n const AUTH_SECRET = QBConfig.credentials.authSecret;\n const ACCOUNT_KEY = QBConfig.credentials.accountKey;\n const CONFIG = QBConfig.appConfig;\n\n QB.init(APPLICATION_ID, AUTH_KEY, AUTH_SECRET, ACCOUNT_KEY, CONFIG);\n };\n\n useEffect(() => {\n if (!isSDKInitialized) {\n prepareSDK()\n .then((result) => {\n QB.createSession(\n currentUser,\n async function (errorCreateSession: any, session: any) {\n if (errorCreateSession) {\n console.log(\n 'Create User Session has error:',\n JSON.stringify(errorCreateSession),\n );\n } else {\n const userId: number = session.user_id;\n const password: string = session.token;\n const paramsConnect = { userId, password };\n\n QB.chat.connect(\n paramsConnect,\n async function (errorConnect: any, resultConnect: any) {\n if (errorConnect) {\n console.log(\n 'Can not connect to chat server: ',\n errorConnect,\n );\n } else {\n const authData: AuthorizationData = {\n userId: userId,\n password: password,\n userName: currentUser.login,\n sessionToken: session.token,\n };\n await qbUIKitContext.authorize(authData);\n setSDKInitialized(true);\n setUserAuthorized(true);\n }\n },\n );\n }\n },\n );\n })\n .catch((e) => {\n console.log('init SDK has error: ', e);\n });\n }\n }, []);\n\n return (\n <div>\n <QuickBloxUIKitProvider\n maxFileSize={100 * 1000000}\n accountData={{ ...QBConfig.credentials }}\n loginData={{\n login: currentUser.login,\n password: currentUser.password,\n }}\n >\n <div className=\"App\">\n {\n // React states indicating the ability to render UI\n isSDKInitialized && isUserAuthorized ? (\n <QuickBloxUIKitDesktopLayout />\n ) : (\n <div>wait while SDK is initializing...</div>\n )\n }\n </div>\n </QuickBloxUIKitProvider>\n </div>\n );\n}\n\nexport default App;\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"You should run the application using the command:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-bash",children:"npm start\n"})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[234],{"./node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}},"./node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext},"./src/docs/Styling.mdx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/blocks/dist/index.mjs");function _createMdxContent(props){const _components={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",li:"li",p:"p",pre:"pre",ul:"ul",...(0,_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"📕 Documentation/Styling"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"customization",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-customization",rel:"nofollow",children:"Customization"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The QuickBlox UIKit for React allows you to create your own unique view of the UIKit."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"default-themes",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://docs.quickblox.com/docs/react-uikit-customization#default-themes",rel:"nofollow",children:"Default themes"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"The QuickBlox UIKit for React has 2 built in themes: Dark and Light."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"color-theme",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"",children:"Color Theme"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://files.readme.io/393b8d6-ColorTheme.png",alt:"Image"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Default theme for UIKit is Light.\nTo set theme you need to set value 'dark' to key data-theme in global styles (html[data-theme=\"dark”]).\nFor example, you can use pure JavaScript:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-js",children:"document.documentElement.setAttribute('data-theme', 'dark');\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"use-your-own-theme",children:"Use your own theme"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"There are two options how you can create your own theme:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"Customize current theme using css"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"Create your own theme to customize selected components"}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To customize the current theme you just need to set the new colors in css variables."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Or you can create your own theme. To do this you need to create a new class that implements the UiKitTheme interface."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To use your own theme using css you need to create _theme_colors_scheme.scss and set colors"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-scss",children:"$background-overlay-light: rgba(19, 29, 40, 0.8);\n$background-overlay-dark: rgba(144, 151, 159, 0.8);\n$primary-50: #e7efff;\n$primary-100: #c4d7fe;\n$primary-200: #9cbcfe;\n$primary-300: #74a1fd;\n$primary-400: #578cfc;\n$primary-500: #3978fc;\n$primary-600: #3370fc;\n$primary-700: #2c65fb;\n$primary-800: #245bfb;\n$primary-900: #1748fa;\n$primary-a-100: #ffffff;\n$primary-a-200: #f7f9ff;\n$primary-a-400: #c4cfff;\n$primary-a-700: #abbaff;\n$secondary-50: #e4e6e8;\n$secondary-100: #bcc1c5;\n$secondary-200: #90979f;\n$secondary-300: #636d78;\n$secondary-400: #414e5b;\n$secondary-500: #202f3e;\n$secondary-600: #1c2a38;\n$secondary-700: #182330;\n$secondary-800: #131d28;\n$secondary-900: #0b121b;\n$secondary-a-100: #74a1fd;\n$secondary-a-200: #3978fc;\n$secondary-a-400: #245bfb;\n$secondary-a-700: #0050dc;\n$system-green-100: #c8f1d6;\n$system-green-200: #a4e7bb;\n$system-green-300: #80dda0;\n$system-green-400: #64d68b;\n$system-green-500: #49cf77;\n$error-100: #ffc4c1;\n$error-200: #ff9d98;\n$error-300: #ff766e;\n$error-400: #ff584f;\n$error-500: #ff3b30;\n$information: #fdb0ff;\n$highlight: #fffdc1;\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To use your own new theme colors create _theme_dark.scss and _theme_light.scss files and set color variable."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-scss",children:"// _theme_dark.scss:\n\nhtml[data-theme='dark'] {\n --color-background-info: #{$primary-500};\n --tertiary-elements: #{$background-overlay-dark};\n --main-elements: #{$primary-300};\n --secondary-elements: #{$primary-a-100};\n --input-elements: #{$secondary-200};\n --disabled-elements: #{$secondary-300};\n --field-border: #{$secondary-200};\n --main-text: #{$primary-a-100};\n --secondary-text: #{$secondary-200};\n --caption: #{$secondary-100};\n --main-background: #{$secondary-500};\n --secondary-background: #{$secondary-800};\n --incoming-background: #{$secondary-400};\n --outgoing-background: #{$primary-500};\n --dropdown-background: #{$secondary-400};\n --chat-input: #{$secondary-800};\n --divider: #{$secondary-400};\n --error: #{$error-300};\n --hightlight: #{$highlight};\n}\n\n// _theme_light.scss:\n:root {\n --color-background-info: #{$primary-100};\n --tertiary-elements: #{$secondary-300};\n --main-elements: #{$primary-500};\n --secondary-elements: #{$secondary-500};\n --input-elements: #{$secondary-500};\n --disabled-elements: #{$secondary-100};\n --field-border: #{$secondary-200};\n --main-text: #{$secondary-900};\n --secondary-text: #{$secondary-300};\n --caption: #{$secondary-200};\n --main-background: #{$primary-a-100};\n --secondary-background: #{$primary-a-100};\n --secondary-background-modal: #{$background-overlay-light};\n --incoming-background: #{$secondary-50};\n --outgoing-background: #{$primary-50};\n --dropdown-background: #{$primary-a-100};\n --chat-input: #{$primary-a-200};\n --divider: #{$primary-50};\n --error: #{$error-500};\n --hightlight: #{$highlight};\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To create your own theme to customize selected components you need to create a new class that implements the UiKitTheme interface."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"//DefaultTheme implements UiKitTheme\nexport default class CustomTheme extends DefaultTheme {\n divider = (): string => 'var(--divider)';\n mainText = (): string => '#FFFFFF';\n fontFamily = (): string => 'Roboto';\n /*\n The DefaultTheme contains other theme methods :\n caption = (): string => 'var(--caption)';\n chatInput = (): string => 'var(--chat-input)';\n disabledElements = (): string => 'var(--disabled-elements)';\n dropdownBackground = (): string => 'var(--dropdown-background)';\n error = (): string => 'var(--error)';\n fieldBorder = (): string => 'var(--field-border)';\n hightlight = (): string => 'var(--hightlight)';\n incomingBackground = (): string => 'var(--incoming-background)';\n inputElements = (): string => 'var(--input-elements)';\n mainBackground = (): string => 'var(--main-background)';\n mainElements = (): string => 'var(--main-elements)';\n outgoingBackground = (): string => 'var(--outgoing-background)';\n secondaryBackground = (): string => 'var(--secondary-background)';\n secondaryElements = (): string => 'var(--secondary-elements)';\n secondaryText = (): string => 'var(--secondary-text)';\n */\n}\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"and specify selected components:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"desktop layout container"}),"\n"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"<QuickBloxUIKitDesktopLayout theme={new CustomTheme()}>\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"custom-styling",children:"Custom styling"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"We have developed our components with the ability to be customized to individual needs, so each component accepts a prop called className, allowing the user to apply their own styles to the component."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-ts",children:"import { Button } from '../../ui-components';\nimport './style.scss';\n\n<Button className=\"button\">Button</Button>;\n"})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,_Users_artemkoltunov_Desktop_01_react_ui_kit_private_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}}}]);
@@ -1,7 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="164" height="164">
2
- <svg width="164" height="164" viewBox="0 0 164 164" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M22.467 147.762 17.5 15.402a8.062 8.062 0 0 1 7.553-8.35L137.637.016a8.061 8.061 0 0 1 8.565 8.047v144.23a8.063 8.063 0 0 1-8.424 8.054l-107.615-4.833a8.062 8.062 0 0 1-7.695-7.752Z" fill="#FF4785"></path>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="m128.785.57-15.495.968-.755 18.172a1.203 1.203 0 0 0 1.928 1.008l7.06-5.354 5.962 4.697a1.202 1.202 0 0 0 1.946-.987L128.785.569Zm-12.059 60.856c-2.836 2.203-23.965 3.707-23.965.57.447-11.969-4.912-12.494-7.889-12.494-2.828 0-7.59.855-7.59 7.267 0 6.534 6.96 10.223 15.13 14.553 11.607 6.15 25.654 13.594 25.654 32.326 0 17.953-14.588 27.871-33.194 27.871-19.201 0-35.981-7.769-34.086-34.702.744-3.163 25.156-2.411 25.156 0-.298 11.114 2.232 14.383 8.633 14.383 4.912 0 7.144-2.708 7.144-7.267 0-6.9-7.252-10.973-15.595-15.657C64.827 81.933 51.53 74.468 51.53 57.34c0-17.098 11.76-28.497 32.747-28.497 20.988 0 32.449 11.224 32.449 32.584Z" fill="#fff"></path>
5
- </svg>
6
- <style>@media (prefers-color-scheme: light) { :root { filter: none; } }</style>
7
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:svgjs="http://svgjs.com/svgjs" xmlns:xlink="http://www.w3.org/1999/xlink" width="164" height="164" version="1.1"><svg xmlns="http://www.w3.org/2000/svg" width="164" height="164" fill="none" viewBox="0 0 164 164"><path fill="#FF4785" d="M22.467 147.762 17.5 15.402a8.062 8.062 0 0 1 7.553-8.35L137.637.016a8.061 8.061 0 0 1 8.565 8.047v144.23a8.063 8.063 0 0 1-8.424 8.054l-107.615-4.833a8.062 8.062 0 0 1-7.695-7.752Z"/><path fill="#fff" fill-rule="evenodd" d="m128.785.57-15.495.968-.755 18.172a1.203 1.203 0 0 0 1.928 1.008l7.06-5.354 5.962 4.697a1.202 1.202 0 0 0 1.946-.987L128.785.569Zm-12.059 60.856c-2.836 2.203-23.965 3.707-23.965.57.447-11.969-4.912-12.494-7.889-12.494-2.828 0-7.59.855-7.59 7.267 0 6.534 6.96 10.223 15.13 14.553 11.607 6.15 25.654 13.594 25.654 32.326 0 17.953-14.588 27.871-33.194 27.871-19.201 0-35.981-7.769-34.086-34.702.744-3.163 25.156-2.411 25.156 0-.298 11.114 2.232 14.383 8.633 14.383 4.912 0 7.144-2.708 7.144-7.267 0-6.9-7.252-10.973-15.595-15.657C64.827 81.933 51.53 74.468 51.53 57.34c0-17.098 11.76-28.497 32.747-28.497 20.988 0 32.449 11.224 32.449 32.584Z" clip-rule="evenodd"/></svg><style>@media (prefers-color-scheme:light){:root{filter:none}}</style></svg>