docusaurus-theme-openapi-docs 1.1.10 → 1.1.11

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.
@@ -23,7 +23,10 @@ function FormTextInput({
23
23
  password,
24
24
  onChange
25
25
  }) {
26
- return <input className={_stylesModule.default.input} type={password ? "password" : "text"} placeholder={placeholder} value={value} onChange={onChange} autoComplete="off" />;
26
+ var _placeholder;
27
+
28
+ placeholder = (_placeholder = placeholder) === null || _placeholder === void 0 ? void 0 : _placeholder.split("\n")[0];
29
+ return <input className={_stylesModule.default.input} type={password ? "password" : "text"} placeholder={placeholder} title={placeholder} value={value} onChange={onChange} autoComplete="off" />;
27
30
  }
28
31
 
29
32
  var _default = FormTextInput;
@@ -229,11 +229,11 @@ function SchemaTabsComponent(props) {
229
229
  (tabItem) => tabItem.props.value === selectedValue
230
230
  )[0],
231
231
  {
232
- className: clsx("margin-vert--md", styles.schemaTabsContainer),
232
+ className: "margin-vert--md",
233
233
  }
234
234
  )
235
235
  ) : (
236
- <div className={clsx("margin-vert--md", styles.schemaTabsContainer)}>
236
+ <div className="margin-vert--md">
237
237
  {children.map((tabItem, i) =>
238
238
  cloneElement(tabItem, {
239
239
  key: i,
@@ -59,7 +59,10 @@
59
59
  }
60
60
 
61
61
  .schemaTabsContainer {
62
+ display: flex;
63
+ align-items: center;
62
64
  max-width: 600px;
65
+ overflow: hidden;
63
66
  }
64
67
 
65
68
  /* Tab Arrows */
@@ -8,11 +8,13 @@ import React from "react";
8
8
  import styles from "./styles.module.css";
9
9
 
10
10
  function FormTextInput({ value, placeholder, password, onChange }) {
11
+ placeholder = placeholder?.split("\n")[0];
11
12
  return (
12
13
  <input
13
14
  className={styles.input}
14
15
  type={password ? "password" : "text"}
15
16
  placeholder={placeholder}
17
+ title={placeholder}
16
18
  value={value}
17
19
  onChange={onChange}
18
20
  autoComplete="off"
@@ -229,11 +229,11 @@ function SchemaTabsComponent(props) {
229
229
  (tabItem) => tabItem.props.value === selectedValue
230
230
  )[0],
231
231
  {
232
- className: clsx("margin-vert--md", styles.schemaTabsContainer),
232
+ className: "margin-vert--md",
233
233
  }
234
234
  )
235
235
  ) : (
236
- <div className={clsx("margin-vert--md", styles.schemaTabsContainer)}>
236
+ <div className="margin-vert--md">
237
237
  {children.map((tabItem, i) =>
238
238
  cloneElement(tabItem, {
239
239
  key: i,
@@ -59,7 +59,10 @@
59
59
  }
60
60
 
61
61
  .schemaTabsContainer {
62
+ display: flex;
63
+ align-items: center;
62
64
  max-width: 600px;
65
+ overflow: hidden;
63
66
  }
64
67
 
65
68
  /* Tab Arrows */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-theme-openapi-docs",
3
3
  "description": "OpenAPI theme for Docusaurus.",
4
- "version": "1.1.10",
4
+ "version": "1.1.11",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -50,7 +50,7 @@
50
50
  "buffer": "^6.0.3",
51
51
  "clsx": "^1.1.1",
52
52
  "crypto-js": "^4.1.1",
53
- "docusaurus-plugin-openapi-docs": "^1.1.9",
53
+ "docusaurus-plugin-openapi-docs": "^1.1.11",
54
54
  "immer": "^9.0.7",
55
55
  "lodash": "^4.17.20",
56
56
  "process": "^0.11.10",
@@ -69,5 +69,5 @@
69
69
  "engines": {
70
70
  "node": ">=14"
71
71
  },
72
- "gitHead": "507eaaaf45e1fff8cb95bfdcd097a4fa4ba1ea05"
72
+ "gitHead": "329709c2d588d2a689a2f84d392b5cc11d6cdd02"
73
73
  }
@@ -17,11 +17,13 @@ interface Props {
17
17
  }
18
18
 
19
19
  function FormTextInput({ value, placeholder, password, onChange }: Props) {
20
+ placeholder = placeholder?.split("\n")[0];
20
21
  return (
21
22
  <input
22
23
  className={styles.input}
23
24
  type={password ? "password" : "text"}
24
25
  placeholder={placeholder}
26
+ title={placeholder}
25
27
  value={value}
26
28
  onChange={onChange}
27
29
  autoComplete="off"
@@ -229,11 +229,11 @@ function SchemaTabsComponent(props) {
229
229
  (tabItem) => tabItem.props.value === selectedValue
230
230
  )[0],
231
231
  {
232
- className: clsx("margin-vert--md", styles.schemaTabsContainer),
232
+ className: "margin-vert--md",
233
233
  }
234
234
  )
235
235
  ) : (
236
- <div className={clsx("margin-vert--md", styles.schemaTabsContainer)}>
236
+ <div className="margin-vert--md">
237
237
  {children.map((tabItem, i) =>
238
238
  cloneElement(tabItem, {
239
239
  key: i,
@@ -59,7 +59,10 @@
59
59
  }
60
60
 
61
61
  .schemaTabsContainer {
62
+ display: flex;
63
+ align-items: center;
62
64
  max-width: 600px;
65
+ overflow: hidden;
63
66
  }
64
67
 
65
68
  /* Tab Arrows */