docusaurus-theme-openapi-docs 0.0.0-1000
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/LICENSE +21 -0
- package/babel.config.js +35 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +81 -0
- package/lib/markdown/createDescription.d.ts +1 -0
- package/lib/markdown/createDescription.js +15 -0
- package/lib/markdown/schema.d.ts +3 -0
- package/lib/markdown/schema.js +149 -0
- package/lib/markdown/utils.d.ts +10 -0
- package/lib/markdown/utils.js +49 -0
- package/lib/markdown/utils.test.d.ts +1 -0
- package/lib/markdown/utils.test.js +43 -0
- package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Accept/index.js +38 -0
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/Accept/slice.js +22 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.d.ts +4 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +35 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +41 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +153 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +147 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +58 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.d.ts +14 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +248 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +59 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +51 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +110 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.js +28 -0
- package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/index.js +160 -0
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
- package/lib/theme/ApiExplorer/Authorization/slice.js +102 -0
- package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/Body/index.js +381 -0
- package/lib/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
- package/lib/theme/ApiExplorer/Body/slice.js +97 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.d.ts +21 -0
- package/lib/theme/ApiExplorer/CodeSnippets/code-snippets-types.js +8 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +389 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.d.ts +5 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.js +95 -0
- package/lib/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.d.ts +15 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.js +271 -0
- package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
- package/lib/theme/ApiExplorer/ContentType/slice.js +22 -0
- package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Export/index.js +57 -0
- package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
- package/lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +173 -0
- package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
- package/lib/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
- package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
- package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.js +168 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.js +86 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +220 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
- package/lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.js +223 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.js +25 -0
- package/lib/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Request/index.js +396 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.js +222 -0
- package/lib/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Response/index.js +193 -0
- package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/Response/slice.js +51 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
- package/lib/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Server/index.js +199 -0
- package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
- package/lib/theme/ApiExplorer/Server/slice.js +33 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
- package/lib/theme/ApiExplorer/buildPostmanRequest.js +465 -0
- package/lib/theme/ApiExplorer/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/index.js +41 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.js +54 -0
- package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
- package/lib/theme/ApiExplorer/storage-utils.js +41 -0
- package/lib/theme/ApiItem/Layout/index.d.ts +3 -0
- package/lib/theme/ApiItem/Layout/index.js +121 -0
- package/lib/theme/ApiItem/Layout/styles.module.css +17 -0
- package/lib/theme/ApiItem/hooks.d.ts +12 -0
- package/lib/theme/ApiItem/hooks.js +13 -0
- package/lib/theme/ApiItem/index.d.ts +2 -0
- package/lib/theme/ApiItem/index.js +238 -0
- package/lib/theme/ApiItem/store.d.ts +46 -0
- package/lib/theme/ApiItem/store.js +53 -0
- package/lib/theme/ApiLogo/index.d.ts +2 -0
- package/lib/theme/ApiLogo/index.js +51 -0
- package/lib/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/lib/theme/ApiTabs/index.d.ts +7 -0
- package/lib/theme/ApiTabs/index.js +270 -0
- package/lib/theme/ArrayBrackets/index.d.ts +3 -0
- package/lib/theme/ArrayBrackets/index.js +50 -0
- package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/lib/theme/DiscriminatorTabs/index.d.ts +3 -0
- package/lib/theme/DiscriminatorTabs/index.js +258 -0
- package/lib/theme/Markdown/Details/_Details.scss +122 -0
- package/lib/theme/Markdown/index.js +179 -0
- package/lib/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/lib/theme/MimeTabs/index.d.ts +6 -0
- package/lib/theme/MimeTabs/index.js +286 -0
- package/lib/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/lib/theme/OperationTabs/index.d.ts +3 -0
- package/lib/theme/OperationTabs/index.js +248 -0
- package/lib/theme/ParamsDetails/index.d.ts +6 -0
- package/lib/theme/ParamsDetails/index.js +85 -0
- package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/lib/theme/ParamsItem/index.d.ts +25 -0
- package/lib/theme/ParamsItem/index.js +218 -0
- package/lib/theme/RequestSchema/index.d.ts +15 -0
- package/lib/theme/RequestSchema/index.js +194 -0
- package/lib/theme/ResponseExamples/index.d.ts +18 -0
- package/lib/theme/ResponseExamples/index.js +193 -0
- package/lib/theme/ResponseHeaders/index.d.ts +13 -0
- package/lib/theme/ResponseHeaders/index.js +39 -0
- package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/lib/theme/ResponseSamples/index.d.ts +8 -0
- package/lib/theme/ResponseSamples/index.js +27 -0
- package/lib/theme/ResponseSchema/index.d.ts +15 -0
- package/lib/theme/ResponseSchema/index.js +159 -0
- package/lib/theme/Schema/index.d.ts +8 -0
- package/lib/theme/Schema/index.js +885 -0
- package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/lib/theme/SchemaItem/index.d.ts +12 -0
- package/lib/theme/SchemaItem/index.js +213 -0
- package/lib/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/lib/theme/SchemaTabs/index.d.ts +3 -0
- package/lib/theme/SchemaTabs/index.js +255 -0
- package/lib/theme/SkeletonLoader/index.d.ts +6 -0
- package/lib/theme/SkeletonLoader/index.js +20 -0
- package/lib/theme/StatusCodes/index.d.ts +9 -0
- package/lib/theme/StatusCodes/index.js +81 -0
- package/lib/theme/styles.scss +212 -0
- package/lib/types.d.ts +157 -0
- package/lib/types.js +8 -0
- package/package.json +83 -0
- package/src/index.ts +85 -0
- package/src/markdown/createDescription.ts +13 -0
- package/src/markdown/schema.ts +181 -0
- package/src/markdown/utils.test.ts +49 -0
- package/src/markdown/utils.ts +59 -0
- package/src/plugin-content-docs.d.ts +20 -0
- package/src/postman-code-generators.d.ts +9 -0
- package/src/react-magic-dropzone.d.ts +9 -0
- package/src/theme/ApiExplorer/Accept/index.tsx +36 -0
- package/src/theme/ApiExplorer/Accept/slice.ts +29 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.tsx +32 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.tsx +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.tsx +134 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.tsx +79 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.tsx +55 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.tsx +166 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +34 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.tsx +48 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.tsx +54 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/index.tsx +45 -0
- package/src/theme/ApiExplorer/Authorization/auth-types.ts +30 -0
- package/src/theme/ApiExplorer/Authorization/index.tsx +158 -0
- package/src/theme/ApiExplorer/Authorization/slice.ts +146 -0
- package/src/theme/ApiExplorer/Body/index.tsx +376 -0
- package/src/theme/ApiExplorer/Body/json2xml.js +43 -0
- package/src/theme/ApiExplorer/Body/slice.ts +133 -0
- package/src/theme/ApiExplorer/CodeSnippets/code-snippets-types.ts +57 -0
- package/src/theme/ApiExplorer/CodeSnippets/index.tsx +338 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.json +1290 -0
- package/src/theme/ApiExplorer/CodeSnippets/languages.ts +96 -0
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +501 -0
- package/src/theme/ApiExplorer/CodeTabs/index.tsx +248 -0
- package/src/theme/ApiExplorer/ContentType/index.tsx +38 -0
- package/src/theme/ApiExplorer/ContentType/slice.ts +29 -0
- package/src/theme/ApiExplorer/Export/index.tsx +47 -0
- package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +27 -0
- package/src/theme/ApiExplorer/FloatingButton/index.tsx +29 -0
- package/src/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss +74 -0
- package/src/theme/ApiExplorer/FormFileUpload/index.tsx +119 -0
- package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/src/theme/ApiExplorer/FormItem/index.tsx +33 -0
- package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/src/theme/ApiExplorer/FormMultiSelect/index.tsx +57 -0
- package/src/theme/ApiExplorer/FormSelect/_FormSelect.scss +43 -0
- package/src/theme/ApiExplorer/FormSelect/index.tsx +38 -0
- package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
- package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +114 -0
- package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +91 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +175 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
- package/src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss +123 -0
- package/src/theme/ApiExplorer/ParamOptions/index.tsx +146 -0
- package/src/theme/ApiExplorer/ParamOptions/slice.ts +37 -0
- package/src/theme/ApiExplorer/Request/_Request.scss +129 -0
- package/src/theme/ApiExplorer/Request/index.tsx +309 -0
- package/src/theme/ApiExplorer/Request/makeRequest.ts +254 -0
- package/src/theme/ApiExplorer/Response/_Response.scss +121 -0
- package/src/theme/ApiExplorer/Response/index.tsx +157 -0
- package/src/theme/ApiExplorer/Response/slice.ts +52 -0
- package/src/theme/ApiExplorer/SecuritySchemes/index.tsx +287 -0
- package/src/theme/ApiExplorer/Server/_Server.scss +26 -0
- package/src/theme/ApiExplorer/Server/index.tsx +130 -0
- package/src/theme/ApiExplorer/Server/slice.ts +39 -0
- package/src/theme/ApiExplorer/buildPostmanRequest.ts +526 -0
- package/src/theme/ApiExplorer/index.tsx +41 -0
- package/src/theme/ApiExplorer/persistanceMiddleware.ts +71 -0
- package/src/theme/ApiExplorer/postman-collection.d.ts +10 -0
- package/src/theme/ApiExplorer/react-modal.d.ts +8 -0
- package/src/theme/ApiExplorer/storage-utils.ts +39 -0
- package/src/theme/ApiItem/Layout/index.tsx +85 -0
- package/src/theme/ApiItem/Layout/styles.module.css +17 -0
- package/src/theme/ApiItem/hooks.ts +13 -0
- package/src/theme/ApiItem/index.tsx +222 -0
- package/src/theme/ApiItem/store.ts +51 -0
- package/src/theme/ApiLogo/index.tsx +52 -0
- package/src/theme/ApiTabs/_ApiTabs.scss +142 -0
- package/src/theme/ApiTabs/index.tsx +238 -0
- package/src/theme/ArrayBrackets/index.tsx +37 -0
- package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +98 -0
- package/src/theme/DiscriminatorTabs/index.tsx +229 -0
- package/src/theme/Markdown/Details/_Details.scss +122 -0
- package/src/theme/Markdown/index.js +179 -0
- package/src/theme/MimeTabs/_MimeTabs.scss +70 -0
- package/src/theme/MimeTabs/index.tsx +257 -0
- package/src/theme/OperationTabs/_OperationTabs.scss +72 -0
- package/src/theme/OperationTabs/index.tsx +220 -0
- package/src/theme/ParamsDetails/index.tsx +81 -0
- package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/src/theme/ParamsItem/index.tsx +205 -0
- package/src/theme/RequestSchema/index.tsx +157 -0
- package/src/theme/ResponseExamples/index.tsx +192 -0
- package/src/theme/ResponseHeaders/index.tsx +49 -0
- package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/src/theme/ResponseSamples/index.tsx +31 -0
- package/src/theme/ResponseSchema/index.tsx +144 -0
- package/src/theme/Schema/index.tsx +939 -0
- package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/src/theme/SchemaItem/index.tsx +198 -0
- package/src/theme/SchemaTabs/_SchemaTabs.scss +61 -0
- package/src/theme/SchemaTabs/index.tsx +224 -0
- package/src/theme/SkeletonLoader/index.tsx +18 -0
- package/src/theme/StatusCodes/index.tsx +72 -0
- package/src/theme/styles.scss +212 -0
- package/src/theme-classic.d.ts +80 -0
- package/src/theme-openapi.d.ts +288 -0
- package/src/theme-translations.d.ts +9 -0
- package/src/types.ts +182 -0
- package/tsconfig.json +16 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
.openapi-tabs__container {
|
|
8
|
+
margin-left: -1px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.openapi-tabs__response-header {
|
|
12
|
+
&.openapi-tabs__heading {
|
|
13
|
+
margin-bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.openapi-tabs__response-code-item {
|
|
18
|
+
border: 1px solid transparent;
|
|
19
|
+
margin-top: 0 !important;
|
|
20
|
+
margin-right: 0.5rem;
|
|
21
|
+
padding: 0.35rem 0.85rem;
|
|
22
|
+
border-radius: var(--ifm-global-radius);
|
|
23
|
+
font-weight: var(--ifm-font-weight-bold);
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
transition: 300ms;
|
|
26
|
+
color: var(--ifm-font-color-secondary);
|
|
27
|
+
|
|
28
|
+
&.success.active {
|
|
29
|
+
background-color: var(--ifm-color-success);
|
|
30
|
+
color: var(--ifm-color-white);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.danger.active {
|
|
34
|
+
background-color: var(--ifm-color-danger);
|
|
35
|
+
color: var(--ifm-color-white);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.info.active {
|
|
39
|
+
background-color: var(--ifm-color-info);
|
|
40
|
+
color: var(--ifm-color-white);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.active,
|
|
44
|
+
&:hover {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover:not(.active) {
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
border: 1px solid var(--ifm-toc-border-color);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.openapi-tabs__response-code-item:not(.active) {
|
|
55
|
+
opacity: 0.65;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.openapi-tabs__response-code-item:hover {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.openapi-tabs__response-code-item:last-child {
|
|
63
|
+
margin-right: 0 !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Open API Response Code Tabs */
|
|
67
|
+
.openapi-tabs__response-header-section {
|
|
68
|
+
border-top: 1px solid var(--ifm-toc-border-color);
|
|
69
|
+
margin-top: 2rem;
|
|
70
|
+
padding-top: 2rem;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.openapi-tabs__response-container {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
max-width: 390px;
|
|
80
|
+
padding-left: 1rem;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.openapi-tabs__response-list-container {
|
|
85
|
+
padding: 0 0.25rem;
|
|
86
|
+
overflow-y: hidden;
|
|
87
|
+
overflow-x: scroll;
|
|
88
|
+
scroll-behavior: smooth;
|
|
89
|
+
scrollbar-width: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.openapi-tabs__response-list-container::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Response Code Tabs - Colored Dots */
|
|
97
|
+
.openapi-tabs__response-dot {
|
|
98
|
+
width: 12.5px;
|
|
99
|
+
height: 12.5px;
|
|
100
|
+
margin-right: 5px;
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.openapi-tabs__response-schema-container {
|
|
105
|
+
max-width: 600px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Tab Arrows */
|
|
109
|
+
.openapi-tabs__arrow {
|
|
110
|
+
content: "";
|
|
111
|
+
height: 1.25rem;
|
|
112
|
+
width: 1.25rem;
|
|
113
|
+
border: none;
|
|
114
|
+
min-width: 1.25rem;
|
|
115
|
+
background: var(--ifm-menu-link-sublist-icon) 50% / 2rem 2rem;
|
|
116
|
+
filter: var(--ifm-menu-link-sublist-icon-filter);
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.left {
|
|
123
|
+
transform: rotate(270deg);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.right {
|
|
127
|
+
transform: rotate(90deg);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@media screen and (max-width: 500px) {
|
|
132
|
+
.openapi-tabs__response-header-section {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.openapi-tabs__response-container {
|
|
138
|
+
width: 100%;
|
|
139
|
+
margin-top: var(--ifm-spacing-vertical);
|
|
140
|
+
padding: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __createBinding =
|
|
9
|
+
(this && this.__createBinding) ||
|
|
10
|
+
(Object.create
|
|
11
|
+
? function (o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (
|
|
15
|
+
!desc ||
|
|
16
|
+
("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
17
|
+
) {
|
|
18
|
+
desc = {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return m[k];
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(o, k2, desc);
|
|
26
|
+
}
|
|
27
|
+
: function (o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
});
|
|
31
|
+
var __setModuleDefault =
|
|
32
|
+
(this && this.__setModuleDefault) ||
|
|
33
|
+
(Object.create
|
|
34
|
+
? function (o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}
|
|
37
|
+
: function (o, v) {
|
|
38
|
+
o["default"] = v;
|
|
39
|
+
});
|
|
40
|
+
var __importStar =
|
|
41
|
+
(this && this.__importStar) ||
|
|
42
|
+
(function () {
|
|
43
|
+
var ownKeys = function (o) {
|
|
44
|
+
ownKeys =
|
|
45
|
+
Object.getOwnPropertyNames ||
|
|
46
|
+
function (o) {
|
|
47
|
+
var ar = [];
|
|
48
|
+
for (var k in o)
|
|
49
|
+
if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
50
|
+
return ar;
|
|
51
|
+
};
|
|
52
|
+
return ownKeys(o);
|
|
53
|
+
};
|
|
54
|
+
return function (mod) {
|
|
55
|
+
if (mod && mod.__esModule) return mod;
|
|
56
|
+
var result = {};
|
|
57
|
+
if (mod != null)
|
|
58
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
59
|
+
if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
60
|
+
__setModuleDefault(result, mod);
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
})();
|
|
64
|
+
var __importDefault =
|
|
65
|
+
(this && this.__importDefault) ||
|
|
66
|
+
function (mod) {
|
|
67
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
68
|
+
};
|
|
69
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70
|
+
exports.default = ApiTabs;
|
|
71
|
+
const react_1 = __importStar(require("react"));
|
|
72
|
+
const internal_1 = require("@docusaurus/theme-common/internal");
|
|
73
|
+
const useIsBrowser_1 = __importDefault(require("@docusaurus/useIsBrowser"));
|
|
74
|
+
const Heading_1 = __importDefault(require("@theme/Heading"));
|
|
75
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
76
|
+
function TabList({
|
|
77
|
+
className,
|
|
78
|
+
block,
|
|
79
|
+
selectedValue,
|
|
80
|
+
selectValue,
|
|
81
|
+
tabValues,
|
|
82
|
+
label = "Responses",
|
|
83
|
+
id = "responses",
|
|
84
|
+
}) {
|
|
85
|
+
const tabRefs = [];
|
|
86
|
+
const { blockElementScrollPositionUntilNextRender } = (0,
|
|
87
|
+
internal_1.useScrollPositionBlocker)();
|
|
88
|
+
const handleTabChange = (event) => {
|
|
89
|
+
const newTab = event.currentTarget;
|
|
90
|
+
const newTabIndex = tabRefs.indexOf(newTab);
|
|
91
|
+
const newTabValue = tabValues[newTabIndex].value;
|
|
92
|
+
if (newTabValue !== selectedValue) {
|
|
93
|
+
blockElementScrollPositionUntilNextRender(newTab);
|
|
94
|
+
selectValue(newTabValue);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const handleKeydown = (event) => {
|
|
98
|
+
let focusElement = null;
|
|
99
|
+
switch (event.key) {
|
|
100
|
+
case "Enter": {
|
|
101
|
+
handleTabChange(event);
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
case "ArrowRight": {
|
|
105
|
+
const nextTab = tabRefs.indexOf(event.currentTarget) + 1;
|
|
106
|
+
focusElement = tabRefs[nextTab] ?? tabRefs[0];
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case "ArrowLeft": {
|
|
110
|
+
const prevTab = tabRefs.indexOf(event.currentTarget) - 1;
|
|
111
|
+
focusElement = tabRefs[prevTab] ?? tabRefs[tabRefs.length - 1];
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
default:
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
focusElement?.focus();
|
|
118
|
+
};
|
|
119
|
+
const tabItemListContainerRef = (0, react_1.useRef)(null);
|
|
120
|
+
const [showTabArrows, setShowTabArrows] = (0, react_1.useState)(false);
|
|
121
|
+
(0, react_1.useEffect)(() => {
|
|
122
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
123
|
+
for (let entry of entries) {
|
|
124
|
+
requestAnimationFrame(() => {
|
|
125
|
+
if (entry.target.clientWidth < entry.target.scrollWidth) {
|
|
126
|
+
setShowTabArrows(true);
|
|
127
|
+
} else {
|
|
128
|
+
setShowTabArrows(false);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
resizeObserver.observe(tabItemListContainerRef.current);
|
|
134
|
+
return () => {
|
|
135
|
+
resizeObserver.disconnect();
|
|
136
|
+
};
|
|
137
|
+
}, []);
|
|
138
|
+
const handleRightClick = () => {
|
|
139
|
+
tabItemListContainerRef.current.scrollLeft += 90;
|
|
140
|
+
};
|
|
141
|
+
const handleLeftClick = () => {
|
|
142
|
+
tabItemListContainerRef.current.scrollLeft -= 90;
|
|
143
|
+
};
|
|
144
|
+
return react_1.default.createElement(
|
|
145
|
+
"div",
|
|
146
|
+
{ className: "openapi-tabs__response-header-section" },
|
|
147
|
+
react_1.default.createElement(
|
|
148
|
+
Heading_1.default,
|
|
149
|
+
{
|
|
150
|
+
as: "h2",
|
|
151
|
+
id: id,
|
|
152
|
+
className: "openapi-tabs__heading openapi-tabs__response-header",
|
|
153
|
+
},
|
|
154
|
+
label
|
|
155
|
+
),
|
|
156
|
+
react_1.default.createElement(
|
|
157
|
+
"div",
|
|
158
|
+
{ className: "openapi-tabs__response-container" },
|
|
159
|
+
showTabArrows &&
|
|
160
|
+
react_1.default.createElement("button", {
|
|
161
|
+
className: "openapi-tabs__arrow left",
|
|
162
|
+
onClick: handleLeftClick,
|
|
163
|
+
}),
|
|
164
|
+
react_1.default.createElement(
|
|
165
|
+
"ul",
|
|
166
|
+
{
|
|
167
|
+
ref: tabItemListContainerRef,
|
|
168
|
+
role: "tablist",
|
|
169
|
+
"aria-orientation": "horizontal",
|
|
170
|
+
className: (0, clsx_1.default)(
|
|
171
|
+
"openapi-tabs__response-list-container",
|
|
172
|
+
"tabs",
|
|
173
|
+
{
|
|
174
|
+
"tabs--block": block,
|
|
175
|
+
},
|
|
176
|
+
className
|
|
177
|
+
),
|
|
178
|
+
},
|
|
179
|
+
tabValues.map(({ value, label, attributes }) =>
|
|
180
|
+
react_1.default.createElement(
|
|
181
|
+
"li",
|
|
182
|
+
{
|
|
183
|
+
// TODO extract TabListItem
|
|
184
|
+
role: "tab",
|
|
185
|
+
tabIndex: selectedValue === value ? 0 : -1,
|
|
186
|
+
"aria-selected": selectedValue === value,
|
|
187
|
+
key: value,
|
|
188
|
+
ref: (tabControl) => {
|
|
189
|
+
tabRefs.push(tabControl);
|
|
190
|
+
},
|
|
191
|
+
onKeyDown: handleKeydown,
|
|
192
|
+
onClick: handleTabChange,
|
|
193
|
+
...attributes,
|
|
194
|
+
className: (0, clsx_1.default)(
|
|
195
|
+
"tabs__item",
|
|
196
|
+
"openapi-tabs__response-code-item",
|
|
197
|
+
attributes?.className,
|
|
198
|
+
parseInt(value) >= 400
|
|
199
|
+
? "danger"
|
|
200
|
+
: parseInt(value) >= 200 && parseInt(value) < 300
|
|
201
|
+
? "success"
|
|
202
|
+
: "info",
|
|
203
|
+
{
|
|
204
|
+
active: selectedValue === value,
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
},
|
|
208
|
+
label ?? value
|
|
209
|
+
)
|
|
210
|
+
)
|
|
211
|
+
),
|
|
212
|
+
showTabArrows &&
|
|
213
|
+
react_1.default.createElement("button", {
|
|
214
|
+
className: "openapi-tabs__arrow right",
|
|
215
|
+
onClick: handleRightClick,
|
|
216
|
+
})
|
|
217
|
+
)
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
function TabContent({ lazy, children, selectedValue }) {
|
|
221
|
+
const childTabs = (Array.isArray(children) ? children : [children]).filter(
|
|
222
|
+
Boolean
|
|
223
|
+
);
|
|
224
|
+
if (lazy) {
|
|
225
|
+
const selectedTabItem = childTabs.find(
|
|
226
|
+
(tabItem) => tabItem.props.value === selectedValue
|
|
227
|
+
);
|
|
228
|
+
if (!selectedTabItem) {
|
|
229
|
+
// fail-safe or fail-fast? not sure what's best here
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
return (0, react_1.cloneElement)(selectedTabItem, {
|
|
233
|
+
className: "margin-top--md",
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return react_1.default.createElement(
|
|
237
|
+
"div",
|
|
238
|
+
{ className: "margin-top--md" },
|
|
239
|
+
childTabs.map((tabItem, i) =>
|
|
240
|
+
(0, react_1.cloneElement)(tabItem, {
|
|
241
|
+
key: i,
|
|
242
|
+
hidden: tabItem.props.value !== selectedValue,
|
|
243
|
+
})
|
|
244
|
+
)
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
function TabsComponent(props) {
|
|
248
|
+
const tabs = (0, internal_1.useTabs)(props);
|
|
249
|
+
return react_1.default.createElement(
|
|
250
|
+
"div",
|
|
251
|
+
{ className: "openapi-tabs__container" },
|
|
252
|
+
react_1.default.createElement(TabList, { ...props, ...tabs }),
|
|
253
|
+
react_1.default.createElement(TabContent, { ...props, ...tabs })
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
function ApiTabs(props) {
|
|
257
|
+
const isBrowser = (0, useIsBrowser_1.default)();
|
|
258
|
+
return react_1.default.createElement(
|
|
259
|
+
TabsComponent,
|
|
260
|
+
// Remount tabs after hydration
|
|
261
|
+
// Temporary fix for https://github.com/facebook/docusaurus/issues/5653
|
|
262
|
+
{
|
|
263
|
+
// Remount tabs after hydration
|
|
264
|
+
// Temporary fix for https://github.com/facebook/docusaurus/issues/5653
|
|
265
|
+
key: String(isBrowser),
|
|
266
|
+
...props,
|
|
267
|
+
},
|
|
268
|
+
(0, internal_1.sanitizeTabsChildren)(props.children)
|
|
269
|
+
);
|
|
270
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* ============================================================================
|
|
3
|
+
* Copyright (c) Palo Alto Networks
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
* ========================================================================== */
|
|
8
|
+
var __importDefault =
|
|
9
|
+
(this && this.__importDefault) ||
|
|
10
|
+
function (mod) {
|
|
11
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ClosingArrayBracket = exports.OpeningArrayBracket = void 0;
|
|
15
|
+
const react_1 = __importDefault(require("react"));
|
|
16
|
+
const OpeningArrayBracket = () =>
|
|
17
|
+
react_1.default.createElement(
|
|
18
|
+
"li",
|
|
19
|
+
null,
|
|
20
|
+
react_1.default.createElement(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
style: {
|
|
24
|
+
fontSize: "var(--ifm-code-font-size)",
|
|
25
|
+
opacity: 0.6,
|
|
26
|
+
marginLeft: "-.5rem",
|
|
27
|
+
paddingBottom: ".5rem",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
"Array ["
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
exports.OpeningArrayBracket = OpeningArrayBracket;
|
|
34
|
+
const ClosingArrayBracket = () =>
|
|
35
|
+
react_1.default.createElement(
|
|
36
|
+
"li",
|
|
37
|
+
null,
|
|
38
|
+
react_1.default.createElement(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
style: {
|
|
42
|
+
fontSize: "var(--ifm-code-font-size)",
|
|
43
|
+
opacity: 0.6,
|
|
44
|
+
marginLeft: "-.5rem",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
"]"
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
exports.ClosingArrayBracket = ClosingArrayBracket;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
* Copyright (c) Palo Alto Networks
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
* ========================================================================== */
|
|
7
|
+
.openapi-tabs__discriminator-item {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 0.35rem 0.7rem;
|
|
12
|
+
border: 1px solid transparent;
|
|
13
|
+
margin-top: 0 !important;
|
|
14
|
+
margin-right: 0.5rem;
|
|
15
|
+
font-weight: var(--ifm-font-weight-bold);
|
|
16
|
+
font-size: 10px;
|
|
17
|
+
font-family: var(--ifm-font-family-monospace);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
transition: 300ms;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
border: 1px solid var(--ifm-toc-border-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.active {
|
|
27
|
+
border: 1px solid var(--ifm-color-primary);
|
|
28
|
+
color: var(--ifm-color-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:last-child {
|
|
32
|
+
margin-right: 0 !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Open API Discriminator Tabs */
|
|
37
|
+
.openapi-tabs__discriminator-top-section {
|
|
38
|
+
margin-top: 1rem;
|
|
39
|
+
margin-left: 0.9rem;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.openapi-tabs__discriminator-top-section + hr {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.openapi-tabs__discriminator-container {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
max-width: 600px;
|
|
53
|
+
padding-left: 3px;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.openapi-tabs__discriminator-list-container {
|
|
58
|
+
padding: 0 0.25rem;
|
|
59
|
+
overflow-y: hidden;
|
|
60
|
+
overflow-x: scroll;
|
|
61
|
+
scroll-behavior: smooth;
|
|
62
|
+
scrollbar-width: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.openapi-tabs__discriminator-list-container::-webkit-scrollbar {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.openapi-tabs__discriminator-tab-label {
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.openapi-discriminator__item {
|
|
74
|
+
list-style: none;
|
|
75
|
+
position: relative;
|
|
76
|
+
margin: 0 !important;
|
|
77
|
+
padding: 5px 0 5px 0 !important;
|
|
78
|
+
border-left: thin solid var(--openapi-tree-line-color) !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.openapi-discriminator__name {
|
|
82
|
+
padding-left: 1rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media screen and (max-width: 500px) {
|
|
86
|
+
.openapi-tabs__discriminator-top-section {
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: flex-start;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.openapi-tabs__discriminator-container {
|
|
92
|
+
width: 100%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.openapi-tabs__discriminator-item {
|
|
96
|
+
height: 100%;
|
|
97
|
+
}
|
|
98
|
+
}
|