quickblox-react-ui-kit 0.3.1-beta.6 → 0.3.1-beta.7
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.
- package/dist/Presentation/ui-components/TextField/TextField.d.ts +1 -1
- package/dist/index-ui.js +5 -38
- package/dist/index-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/Presentation/Views/DialogList/DialogList.tsx +0 -37
- package/src/Presentation/Views/EditDialog/EditDialog.tsx +1 -0
- package/src/Presentation/ui-components/MessageInput/AttachmentUploader/AttachmentUploader.tsx +2 -0
- package/src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss +1 -1
- package/src/Presentation/ui-components/Toast/Toast.scss +1 -1
- package/storybook-static/{703.2cbec951.iframe.bundle.js → 703.776b9f13.iframe.bundle.js} +2 -2
- package/storybook-static/{703.2cbec951.iframe.bundle.js.map → 703.776b9f13.iframe.bundle.js.map} +1 -1
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.0d1800d9.iframe.bundle.js +1 -0
- package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.33c5683e.iframe.bundle.js → Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js} +2 -2
- package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.33c5683e.iframe.bundle.js.map → Presentation-ui-components-TextField-TextField-stories.fd8caf6c.iframe.bundle.js.map} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.2f520e2d.iframe.bundle.js → runtime~main.3464b25a.iframe.bundle.js} +1 -1
- package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.2a9e5bc3.chunk.css → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css} +2 -2
- package/storybook-static/static/css/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.2a9e5bc3.chunk.css.map → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.6d563072.chunk.css.map} +1 -1
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css +3 -0
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.31cd021e.chunk.css.map +1 -0
- package/storybook-static/static/css/{Presentation-ui-components-Toast-Toast-stories.3c874f4c.chunk.css → Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css} +2 -2
- package/storybook-static/static/css/{Presentation-ui-components-Toast-Toast-stories.3c874f4c.chunk.css.map → Presentation-ui-components-Toast-Toast-stories.a5b284f4.chunk.css.map} +1 -1
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.bf8a24d1.iframe.bundle.js +0 -1
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css +0 -3
- package/storybook-static/static/css/Presentation-ui-components-PreviewFileMessage-PreviewFileMessage-stories.015ac417.chunk.css.map +0 -1
|
@@ -9,5 +9,5 @@ interface TextFieldProps extends Omit<HTMLInputProps, 'onChange'> {
|
|
|
9
9
|
value: string;
|
|
10
10
|
onChange: (value: string) => void;
|
|
11
11
|
}
|
|
12
|
-
declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "id" | "name" | "size" | "type" | "value" | "children" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "
|
|
12
|
+
declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "id" | "name" | "size" | "type" | "value" | "children" | "loading" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "width" | "hidden" | "color" | "icon" | "multiple" | "disabled" | "className" | "height" | "onClick" | "key" | "translate" | "onChange" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "placeholder" | "readOnly" | "required" | "src" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
13
13
|
export default TextField;
|
package/dist/index-ui.js
CHANGED
|
@@ -4480,7 +4480,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4480
4480
|
|
|
4481
4481
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
4482
4482
|
// Module
|
|
4483
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".preview-file-message {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n.preview-file-message__image {\n object-fit: cover;\n display:
|
|
4483
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".preview-file-message {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n.preview-file-message__image {\n object-fit: cover;\n display: flex;\n width: 32px;\n height: 32px;\n background: var(--incoming-background, #e4e6e8);\n border-radius: 8px;\n flex-shrink: 0;\n}\n.preview-file-message__icon {\n fill: var(--caption);\n padding: 6px;\n}\n.preview-file-message__name {\n color: var(--secondary-text);\n text-align: left;\n font: 400 12px/16px \"Roboto\", sans-serif;\n letter-spacing: 0.4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}", "",{"version":3,"sources":["webpack://./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss"],"names":[],"mappings":"AAAA;EACE,aAAA;EACA,QAAA;EACA,mBAAA;AACF;AACE;EACE,iBAAA;EACA,aAAA;EACA,WAAA;EACA,YAAA;EACA,+CAAA;EACA,kBAAA;EACA,cAAA;AACJ;AAEE;EACE,oBAAA;EACA,YAAA;AAAJ;AAGE;EACE,4BAAA;EACA,gBAAA;EACA,wCAAA;EACA,qBAAA;EACA,gBAAA;EACA,mBAAA;EACA,uBAAA;AADJ","sourcesContent":[".preview-file-message {\n display: flex;\n gap: 8px;\n align-items: center;\n\n &__image {\n object-fit: cover;\n display: flex;\n width: 32px;\n height: 32px;\n background: var(--incoming-background, #e4e6e8);\n border-radius: 8px;\n flex-shrink: 0;\n }\n\n &__icon {\n fill: var(--caption);\n padding: 6px;\n }\n\n &__name {\n color: var(--secondary-text);\n text-align: left;\n font: 400 12px/16px \"Roboto\", sans-serif;\n letter-spacing: 0.4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n"],"sourceRoot":""}]);
|
|
4484
4484
|
// Exports
|
|
4485
4485
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
4486
4486
|
|
|
@@ -4561,7 +4561,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4561
4561
|
|
|
4562
4562
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
4563
4563
|
// Module
|
|
4564
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".container {\n width:
|
|
4564
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".container {\n width: 25%;\n}\n\n.toast {\n min-height: 24px;\n padding: 4px 12px;\n opacity: 60% !important;\n border-radius: 4px;\n background-color: var(--toast-color);\n}\n.toast__body {\n padding: 0;\n font-family: \"Roboto\";\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5px;\n color: var(--main-background);\n text-align: center;\n}", "",{"version":3,"sources":["webpack://./src/Presentation/ui-components/Toast/Toast.scss"],"names":[],"mappings":"AAAA;EACE,UAAA;AACF;;AAEA;EACE,gBAAA;EACA,iBAAA;EACA,uBAAA;EACA,kBAAA;EACA,oCAAA;AACF;AACE;EACE,UAAA;EACA,qBAAA;EACA,gBAAA;EACA,eAAA;EACA,iBAAA;EACA,qBAAA;EACA,6BAAA;EACA,kBAAA;AACJ","sourcesContent":[".container {\n width: 25%;\n}\n\n.toast {\n min-height: 24px;\n padding: 4px 12px;\n opacity: 60% !important;\n border-radius: 4px;\n background-color: var(--toast-color);\n\n &__body {\n padding: 0;\n font-family: 'Roboto';\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5px;\n color: var(--main-background);\n text-align: center;\n }\n}\n"],"sourceRoot":""}]);
|
|
4565
4565
|
// Exports
|
|
4566
4566
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
4567
4567
|
|
|
@@ -25381,42 +25381,6 @@ var DialogList = function (_a) {
|
|
|
25381
25381
|
}
|
|
25382
25382
|
return AvatarComponent;
|
|
25383
25383
|
};
|
|
25384
|
-
/*
|
|
25385
|
-
import React, {useState, useEffect} from 'react';
|
|
25386
|
-
|
|
25387
|
-
// предполагая, что dialogListViewModel определен в родительском компоненте и передан в этот компонент как проп
|
|
25388
|
-
const YourComponent = ({ dialogListViewModel }) => {
|
|
25389
|
-
const [pointerEventsValue, setPointerEvents] = useState('auto');
|
|
25390
|
-
|
|
25391
|
-
// поведение на 12 секунд
|
|
25392
|
-
useEffect(() => {
|
|
25393
|
-
let timeout;
|
|
25394
|
-
if (dialogListViewModel && dialogListViewModel.loading) {
|
|
25395
|
-
setPointerEvents('none');
|
|
25396
|
-
timeout = setTimeout(() => {
|
|
25397
|
-
setPointerEvents('auto');
|
|
25398
|
-
}, 12000); // блокировать нажатие на 12 секунд
|
|
25399
|
-
}
|
|
25400
|
-
|
|
25401
|
-
// поведение на отмену эффекта
|
|
25402
|
-
return () => {
|
|
25403
|
-
if (timeout) {
|
|
25404
|
-
clearTimeout(timeout);
|
|
25405
|
-
}
|
|
25406
|
-
}
|
|
25407
|
-
}, [dialogListViewModel]);
|
|
25408
|
-
|
|
25409
|
-
return (
|
|
25410
|
-
<div
|
|
25411
|
-
style={{
|
|
25412
|
-
pointerEventsValue: pointerEventsValue
|
|
25413
|
-
}}
|
|
25414
|
-
>
|
|
25415
|
-
...
|
|
25416
|
-
</div>
|
|
25417
|
-
);
|
|
25418
|
-
}
|
|
25419
|
-
*/
|
|
25420
25384
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", __assign({ onClick: function () {
|
|
25421
25385
|
setDialogsToView(function (prevState) {
|
|
25422
25386
|
// const newState = [...prevState];
|
|
@@ -26092,6 +26056,7 @@ var EditDialog = function (_a) {
|
|
|
26092
26056
|
return;
|
|
26093
26057
|
}
|
|
26094
26058
|
var fileSize = (file === null || file === void 0 ? void 0 : file.size) || 0;
|
|
26059
|
+
console.log('MAX_FILE_SIZE', maxUploadFileSize, ' fileSize', fileSize);
|
|
26095
26060
|
if (fileSize >= maxUploadFileSize) {
|
|
26096
26061
|
setErrorMessageUpload(errorMessageUploadMaxSize);
|
|
26097
26062
|
return;
|
|
@@ -31845,6 +31810,8 @@ var AttachmentUploader = function (_a) {
|
|
|
31845
31810
|
cursor: 'pointer',
|
|
31846
31811
|
} }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { children: icon }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("input", { id: "btnUploadAttachment", type: "file", accept: "image/*, audio/*, video/*, .pdf, .txt, .apk, .zip, .ipa, .ppt, .pptx, .doc, .docx, .xls, .xlsx, .json, .log", style: { display: 'none' }, onChange: function (event) {
|
|
31847
31812
|
onChangeFile(event);
|
|
31813
|
+
// eslint-disable-next-line no-param-reassign
|
|
31814
|
+
event.target.value = '';
|
|
31848
31815
|
}, disabled: disableAction })] })));
|
|
31849
31816
|
};
|
|
31850
31817
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AttachmentUploader);
|