oa-componentbook 0.18.329 → 0.18.330
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.
|
@@ -8,5 +8,5 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _templateObject;
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
-
const DocumentViewerContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .customDocumentViewerOverlay .react-transform-component {\n background-color: var(--color-primary-content);\n // height: ", ";\n height: calc(100vh - 114px);\n display: flex;\n justify-content: center;\n width: 100%;\n padding: 0;\n margin: 0;\n flex-direction: column;\n align-items: center;\n position: relative;\n overflow: hidden;\n }\n .onlyDocumentView .react-transform-component{\n height: calc(100vh - 114px + 61px);\n }\n .react-pdf__Document {\n height: -webkit-fill-available;\n overflow: auto;\n }\n\n .react-pdf__Page {\n cursor: grab;\n }\n .viewerContainer > div {\n position: rtelative;\n }\n .documentPdfHeight {\n height: calc(100vh - 114px);\n }\n .pdfHeaderStyle .react-transform-component {\n display: block;\n }\n .react-transform-component img {\n cursor: grab;\n pointer-events: auto;\n }\n .customDocumentViewerOverlayHeader {\n position: absolute;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%); /* Center horizontally */\n\n padding: 0 16px;\n height: 40px;\n width: fit-content;\n border-radius: 4px;\n z-index: 99;\n background: rgba(0, 0, 0, 0.7);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.34);\n\n padding: 0 16px;\n height: 40px;\n width: fit-content;\n border-radius: 4px;\n z-index: 99;\n background: rgba(0, 0, 0, 0.7);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.34);\n\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .customDocumentViewerOverlayHeaderIcons {\n display: flex;\n padding: 8px 0;\n flex-direction: row;\n gap: 16px;\n }\n\n .downloadIcon {\n border-left: solid 1px #fff;\n padding-left: 16px;\n margin-left: 16px;\n height: 100%;\n align-items: center;\n display: flex;\n }\n .pageNumber {\n border-right: solid 1px #fff;\n padding-right: 16px;\n margin-right: 16px;\n height: 100%;\n align-items: center;\n display: flex;\n }\n .ant-radio-group {\n display: flex;\n white-space: nowrap;\n }\n .oaImgCenter {\n // height: calc(-114px + 100vh);\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n }\n\n"])), props => props.documentViewerOverlayHeight, props => props.oaImgCenterHeight);
|
|
11
|
+
const DocumentViewerContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .customDocumentViewerOverlay .react-transform-component {\n background-color: var(--color-primary-content);\n // height: ", ";\n height: calc(100vh - 114px);\n display: flex;\n justify-content: center;\n width: 100%;\n padding: 0;\n margin: 0;\n flex-direction: column;\n align-items: center;\n position: relative;\n overflow: hidden;\n }\n .onlyDocumentView .react-transform-component{\n height: calc(100vh - 114px + 61px);\n }\n .react-pdf__Document {\n height: -webkit-fill-available;\n overflow: auto;\n }\n\n .react-pdf__Page {\n cursor: grab;\n display: contents;\n }\n .react-pdf__Page canvas{\n max-width: 100% !important;\n height: -webkit-fill-available !important;\n }\n .viewerContainer > div {\n position: rtelative;\n }\n .documentPdfHeight {\n height: calc(100vh - 114px);\n }\n .pdfHeaderStyle .react-transform-component {\n display: block;\n }\n .react-transform-component img {\n cursor: grab;\n pointer-events: auto;\n }\n .customDocumentViewerOverlayHeader {\n position: absolute;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%); /* Center horizontally */\n\n padding: 0 16px;\n height: 40px;\n width: fit-content;\n border-radius: 4px;\n z-index: 99;\n background: rgba(0, 0, 0, 0.7);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.34);\n\n padding: 0 16px;\n height: 40px;\n width: fit-content;\n border-radius: 4px;\n z-index: 99;\n background: rgba(0, 0, 0, 0.7);\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.34);\n\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .customDocumentViewerOverlayHeaderIcons {\n display: flex;\n padding: 8px 0;\n flex-direction: row;\n gap: 16px;\n }\n\n .downloadIcon {\n border-left: solid 1px #fff;\n padding-left: 16px;\n margin-left: 16px;\n height: 100%;\n align-items: center;\n display: flex;\n }\n .pageNumber {\n border-right: solid 1px #fff;\n padding-right: 16px;\n margin-right: 16px;\n height: 100%;\n align-items: center;\n display: flex;\n }\n .ant-radio-group {\n display: flex;\n white-space: nowrap;\n }\n .oaImgCenter {\n // height: calc(-114px + 100vh);\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n }\n\n"])), props => props.documentViewerOverlayHeight, props => props.oaImgCenterHeight);
|
|
12
12
|
var _default = exports.default = DocumentViewerContainer;
|