docusaurus-plugin-gitbook 0.1.0

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 (204) hide show
  1. package/README.md +210 -0
  2. package/lib/index.d.ts +51 -0
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +39 -0
  5. package/lib/index.js.map +1 -0
  6. package/lib/parser/index.d.ts +6 -0
  7. package/lib/parser/index.d.ts.map +1 -0
  8. package/lib/parser/index.js +6 -0
  9. package/lib/parser/index.js.map +1 -0
  10. package/lib/parser/parser.d.ts +43 -0
  11. package/lib/parser/parser.d.ts.map +1 -0
  12. package/lib/parser/parser.js +192 -0
  13. package/lib/parser/parser.js.map +1 -0
  14. package/lib/parser/tokenizer.d.ts +37 -0
  15. package/lib/parser/tokenizer.d.ts.map +1 -0
  16. package/lib/parser/tokenizer.js +172 -0
  17. package/lib/parser/tokenizer.js.map +1 -0
  18. package/lib/rehype/index.d.ts +7 -0
  19. package/lib/rehype/index.d.ts.map +1 -0
  20. package/lib/rehype/index.js +6 -0
  21. package/lib/rehype/index.js.map +1 -0
  22. package/lib/rehype/plugin.d.ts +18 -0
  23. package/lib/rehype/plugin.d.ts.map +1 -0
  24. package/lib/rehype/plugin.js +31 -0
  25. package/lib/rehype/plugin.js.map +1 -0
  26. package/lib/rehype/transformers/all.d.ts +8 -0
  27. package/lib/rehype/transformers/all.d.ts.map +1 -0
  28. package/lib/rehype/transformers/all.js +10 -0
  29. package/lib/rehype/transformers/all.js.map +1 -0
  30. package/lib/rehype/transformers/button.d.ts +17 -0
  31. package/lib/rehype/transformers/button.d.ts.map +1 -0
  32. package/lib/rehype/transformers/button.js +46 -0
  33. package/lib/rehype/transformers/button.js.map +1 -0
  34. package/lib/rehype/transformers/cards.d.ts +17 -0
  35. package/lib/rehype/transformers/cards.d.ts.map +1 -0
  36. package/lib/rehype/transformers/cards.js +111 -0
  37. package/lib/rehype/transformers/cards.js.map +1 -0
  38. package/lib/rehype/transformers/expression.d.ts +17 -0
  39. package/lib/rehype/transformers/expression.d.ts.map +1 -0
  40. package/lib/rehype/transformers/expression.js +50 -0
  41. package/lib/rehype/transformers/expression.js.map +1 -0
  42. package/lib/rehype/transformers/icon.d.ts +18 -0
  43. package/lib/rehype/transformers/icon.d.ts.map +1 -0
  44. package/lib/rehype/transformers/icon.js +48 -0
  45. package/lib/rehype/transformers/icon.js.map +1 -0
  46. package/lib/rehype/transformers/index.d.ts +26 -0
  47. package/lib/rehype/transformers/index.d.ts.map +1 -0
  48. package/lib/rehype/transformers/index.js +31 -0
  49. package/lib/rehype/transformers/index.js.map +1 -0
  50. package/lib/remark/index.d.ts +8 -0
  51. package/lib/remark/index.d.ts.map +1 -0
  52. package/lib/remark/index.js +7 -0
  53. package/lib/remark/index.js.map +1 -0
  54. package/lib/remark/plugin.d.ts +22 -0
  55. package/lib/remark/plugin.d.ts.map +1 -0
  56. package/lib/remark/plugin.js +231 -0
  57. package/lib/remark/plugin.js.map +1 -0
  58. package/lib/remark/transformers/all.d.ts +14 -0
  59. package/lib/remark/transformers/all.d.ts.map +1 -0
  60. package/lib/remark/transformers/all.js +16 -0
  61. package/lib/remark/transformers/all.js.map +1 -0
  62. package/lib/remark/transformers/code.d.ts +13 -0
  63. package/lib/remark/transformers/code.d.ts.map +1 -0
  64. package/lib/remark/transformers/code.js +35 -0
  65. package/lib/remark/transformers/code.js.map +1 -0
  66. package/lib/remark/transformers/columns.d.ts +17 -0
  67. package/lib/remark/transformers/columns.d.ts.map +1 -0
  68. package/lib/remark/transformers/columns.js +41 -0
  69. package/lib/remark/transformers/columns.js.map +1 -0
  70. package/lib/remark/transformers/embed.d.ts +12 -0
  71. package/lib/remark/transformers/embed.d.ts.map +1 -0
  72. package/lib/remark/transformers/embed.js +23 -0
  73. package/lib/remark/transformers/embed.js.map +1 -0
  74. package/lib/remark/transformers/file.d.ts +13 -0
  75. package/lib/remark/transformers/file.d.ts.map +1 -0
  76. package/lib/remark/transformers/file.js +26 -0
  77. package/lib/remark/transformers/file.js.map +1 -0
  78. package/lib/remark/transformers/hint.d.ts +19 -0
  79. package/lib/remark/transformers/hint.d.ts.map +1 -0
  80. package/lib/remark/transformers/hint.js +37 -0
  81. package/lib/remark/transformers/hint.js.map +1 -0
  82. package/lib/remark/transformers/include.d.ts +16 -0
  83. package/lib/remark/transformers/include.d.ts.map +1 -0
  84. package/lib/remark/transformers/include.js +28 -0
  85. package/lib/remark/transformers/include.js.map +1 -0
  86. package/lib/remark/transformers/index.d.ts +27 -0
  87. package/lib/remark/transformers/index.d.ts.map +1 -0
  88. package/lib/remark/transformers/index.js +32 -0
  89. package/lib/remark/transformers/index.js.map +1 -0
  90. package/lib/remark/transformers/openapi.d.ts +17 -0
  91. package/lib/remark/transformers/openapi.d.ts.map +1 -0
  92. package/lib/remark/transformers/openapi.js +30 -0
  93. package/lib/remark/transformers/openapi.js.map +1 -0
  94. package/lib/remark/transformers/stepper.d.ts +17 -0
  95. package/lib/remark/transformers/stepper.d.ts.map +1 -0
  96. package/lib/remark/transformers/stepper.js +44 -0
  97. package/lib/remark/transformers/stepper.js.map +1 -0
  98. package/lib/remark/transformers/tabs.d.ts +18 -0
  99. package/lib/remark/transformers/tabs.d.ts.map +1 -0
  100. package/lib/remark/transformers/tabs.js +45 -0
  101. package/lib/remark/transformers/tabs.js.map +1 -0
  102. package/lib/remark/transformers/updates.d.ts +17 -0
  103. package/lib/remark/transformers/updates.d.ts.map +1 -0
  104. package/lib/remark/transformers/updates.js +44 -0
  105. package/lib/remark/transformers/updates.js.map +1 -0
  106. package/lib/remark/utils.d.ts +39 -0
  107. package/lib/remark/utils.d.ts.map +1 -0
  108. package/lib/remark/utils.js +139 -0
  109. package/lib/remark/utils.js.map +1 -0
  110. package/lib/theme/FAIcon/index.d.ts +10 -0
  111. package/lib/theme/FAIcon/index.d.ts.map +1 -0
  112. package/lib/theme/FAIcon/index.js +5 -0
  113. package/lib/theme/FAIcon/index.js.map +1 -0
  114. package/lib/theme/GitBookButton/index.d.ts +9 -0
  115. package/lib/theme/GitBookButton/index.d.ts.map +1 -0
  116. package/lib/theme/GitBookButton/index.js +6 -0
  117. package/lib/theme/GitBookButton/index.js.map +1 -0
  118. package/lib/theme/GitBookButton/styles.module.css +66 -0
  119. package/lib/theme/GitBookCard/index.d.ts +9 -0
  120. package/lib/theme/GitBookCard/index.d.ts.map +1 -0
  121. package/lib/theme/GitBookCard/index.js +6 -0
  122. package/lib/theme/GitBookCard/index.js.map +1 -0
  123. package/lib/theme/GitBookCard/styles.module.css +51 -0
  124. package/lib/theme/GitBookCards/index.d.ts +9 -0
  125. package/lib/theme/GitBookCards/index.d.ts.map +1 -0
  126. package/lib/theme/GitBookCards/index.js +6 -0
  127. package/lib/theme/GitBookCards/index.js.map +1 -0
  128. package/lib/theme/GitBookCards/styles.module.css +16 -0
  129. package/lib/theme/GitBookCodeBlock/index.d.ts +9 -0
  130. package/lib/theme/GitBookCodeBlock/index.d.ts.map +1 -0
  131. package/lib/theme/GitBookCodeBlock/index.js +6 -0
  132. package/lib/theme/GitBookCodeBlock/index.js.map +1 -0
  133. package/lib/theme/GitBookCodeBlock/styles.module.css +59 -0
  134. package/lib/theme/GitBookColumn/index.d.ts +9 -0
  135. package/lib/theme/GitBookColumn/index.d.ts.map +1 -0
  136. package/lib/theme/GitBookColumn/index.js +6 -0
  137. package/lib/theme/GitBookColumn/index.js.map +1 -0
  138. package/lib/theme/GitBookColumn/styles.module.css +16 -0
  139. package/lib/theme/GitBookColumns/index.d.ts +9 -0
  140. package/lib/theme/GitBookColumns/index.d.ts.map +1 -0
  141. package/lib/theme/GitBookColumns/index.js +6 -0
  142. package/lib/theme/GitBookColumns/index.js.map +1 -0
  143. package/lib/theme/GitBookColumns/styles.module.css +17 -0
  144. package/lib/theme/GitBookEmbed/index.d.ts +9 -0
  145. package/lib/theme/GitBookEmbed/index.d.ts.map +1 -0
  146. package/lib/theme/GitBookEmbed/index.js +71 -0
  147. package/lib/theme/GitBookEmbed/index.js.map +1 -0
  148. package/lib/theme/GitBookEmbed/styles.module.css +37 -0
  149. package/lib/theme/GitBookExpression/index.d.ts +13 -0
  150. package/lib/theme/GitBookExpression/index.d.ts.map +1 -0
  151. package/lib/theme/GitBookExpression/index.js +12 -0
  152. package/lib/theme/GitBookExpression/index.js.map +1 -0
  153. package/lib/theme/GitBookExpression/styles.module.css +16 -0
  154. package/lib/theme/GitBookFile/index.d.ts +9 -0
  155. package/lib/theme/GitBookFile/index.d.ts.map +1 -0
  156. package/lib/theme/GitBookFile/index.js +42 -0
  157. package/lib/theme/GitBookFile/index.js.map +1 -0
  158. package/lib/theme/GitBookFile/styles.module.css +61 -0
  159. package/lib/theme/GitBookInclude/index.d.ts +19 -0
  160. package/lib/theme/GitBookInclude/index.d.ts.map +1 -0
  161. package/lib/theme/GitBookInclude/index.js +8 -0
  162. package/lib/theme/GitBookInclude/index.js.map +1 -0
  163. package/lib/theme/GitBookInclude/styles.module.css +77 -0
  164. package/lib/theme/GitBookOpenAPI/index.d.ts +14 -0
  165. package/lib/theme/GitBookOpenAPI/index.d.ts.map +1 -0
  166. package/lib/theme/GitBookOpenAPI/index.js +73 -0
  167. package/lib/theme/GitBookOpenAPI/index.js.map +1 -0
  168. package/lib/theme/GitBookOpenAPI/styles.module.css +214 -0
  169. package/lib/theme/GitBookStep/index.d.ts +13 -0
  170. package/lib/theme/GitBookStep/index.d.ts.map +1 -0
  171. package/lib/theme/GitBookStep/index.js +6 -0
  172. package/lib/theme/GitBookStep/index.js.map +1 -0
  173. package/lib/theme/GitBookStep/styles.module.css +62 -0
  174. package/lib/theme/GitBookStepper/index.d.ts +9 -0
  175. package/lib/theme/GitBookStepper/index.d.ts.map +1 -0
  176. package/lib/theme/GitBookStepper/index.js +6 -0
  177. package/lib/theme/GitBookStepper/index.js.map +1 -0
  178. package/lib/theme/GitBookStepper/styles.module.css +7 -0
  179. package/lib/theme/GitBookTab/index.d.ts +12 -0
  180. package/lib/theme/GitBookTab/index.d.ts.map +1 -0
  181. package/lib/theme/GitBookTab/index.js +9 -0
  182. package/lib/theme/GitBookTab/index.js.map +1 -0
  183. package/lib/theme/GitBookTab/styles.module.css +15 -0
  184. package/lib/theme/GitBookTabs/index.d.ts +9 -0
  185. package/lib/theme/GitBookTabs/index.d.ts.map +1 -0
  186. package/lib/theme/GitBookTabs/index.js +32 -0
  187. package/lib/theme/GitBookTabs/index.js.map +1 -0
  188. package/lib/theme/GitBookTabs/styles.module.css +57 -0
  189. package/lib/theme/GitBookUpdate/index.d.ts +9 -0
  190. package/lib/theme/GitBookUpdate/index.d.ts.map +1 -0
  191. package/lib/theme/GitBookUpdate/index.js +21 -0
  192. package/lib/theme/GitBookUpdate/index.js.map +1 -0
  193. package/lib/theme/GitBookUpdate/styles.module.css +68 -0
  194. package/lib/theme/GitBookUpdates/index.d.ts +9 -0
  195. package/lib/theme/GitBookUpdates/index.d.ts.map +1 -0
  196. package/lib/theme/GitBookUpdates/index.js +6 -0
  197. package/lib/theme/GitBookUpdates/index.js.map +1 -0
  198. package/lib/theme/GitBookUpdates/styles.module.css +15 -0
  199. package/lib/theme/gitbook.css +205 -0
  200. package/lib/theme-types.d.ts +129 -0
  201. package/lib/theme-types.d.ts.map +1 -0
  202. package/lib/theme-types.js +5 -0
  203. package/lib/theme-types.js.map +1 -0
  204. package/package.json +69 -0
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from './styles.module.css';
3
+ export default function GitBookStep({ stepNumber, children, }) {
4
+ return (_jsxs("div", { className: styles.step, children: [_jsxs("div", { className: styles.stepIndicator, children: [_jsx("div", { className: styles.stepNumber, children: stepNumber }), _jsx("div", { className: styles.stepLine })] }), _jsx("div", { className: styles.stepContent, children: children })] }));
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookStep/index.tsx"],"names":[],"mappings":";AAQA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAOzC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,UAAU,EACV,QAAQ,GACS;IACjB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAK,SAAS,EAAE,MAAM,CAAC,aAAa,aAClC,cAAK,SAAS,EAAE,MAAM,CAAC,UAAU,YAAG,UAAU,GAAO,EACrD,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,IAC/B,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,YAAG,QAAQ,GAAO,IAChD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * GitBook Step styles
3
+ */
4
+
5
+ .step {
6
+ display: flex;
7
+ position: relative;
8
+ }
9
+
10
+ .stepIndicator {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ margin-right: 1rem;
15
+ }
16
+
17
+ .stepNumber {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ width: 2rem;
22
+ height: 2rem;
23
+ border-radius: 50%;
24
+ background-color: var(--gitbook-step-bg, #0969da);
25
+ color: var(--gitbook-step-color, #fff);
26
+ font-weight: 600;
27
+ font-size: 0.875rem;
28
+ flex-shrink: 0;
29
+ }
30
+
31
+ .stepLine {
32
+ width: 2px;
33
+ flex: 1;
34
+ background-color: var(--gitbook-step-line, #e0e0e0);
35
+ margin-top: 0.5rem;
36
+ }
37
+
38
+ .step:last-child .stepLine {
39
+ display: none;
40
+ }
41
+
42
+ .stepContent {
43
+ flex: 1;
44
+ padding-bottom: 1.5rem;
45
+ }
46
+
47
+ .stepContent > *:first-child {
48
+ margin-top: 0;
49
+ }
50
+
51
+ .stepContent > *:last-child {
52
+ margin-bottom: 0;
53
+ }
54
+
55
+ /* Dark mode */
56
+ :global([data-theme='dark']) .stepNumber {
57
+ background-color: var(--gitbook-step-bg-dark, #58a6ff);
58
+ }
59
+
60
+ :global([data-theme='dark']) .stepLine {
61
+ background-color: var(--gitbook-step-line-dark, #444);
62
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * GitBook Stepper component
3
+ *
4
+ * Container for sequential steps
5
+ */
6
+ import type { ReactElement } from 'react';
7
+ import type { StepperProps } from '../../theme-types.js';
8
+ export default function GitBookStepper({ children }: StepperProps): ReactElement;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/GitBookStepper/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,GAAG,YAAY,CAE/E"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './styles.module.css';
3
+ export default function GitBookStepper({ children }) {
4
+ return _jsx("div", { className: styles.stepper, children: children });
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookStepper/index.tsx"],"names":[],"mappings":";AASA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAgB;IAC/D,OAAO,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAAG,QAAQ,GAAO,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * GitBook Stepper styles
3
+ */
4
+
5
+ .stepper {
6
+ margin: 1.5rem 0;
7
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * GitBook Tab component
3
+ *
4
+ * Individual tab content panel
5
+ */
6
+ import React from 'react';
7
+ import type { TabProps } from '../../theme-types.js';
8
+ export interface GitBookTabProps extends TabProps {
9
+ isActive?: boolean;
10
+ }
11
+ export default function GitBookTab({ title: _title, children, isActive, }: GitBookTabProps): React.ReactElement | null;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/GitBookTab/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EAAE,MAAM,EACb,QAAQ,EACR,QAAe,GAChB,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAM7C"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './styles.module.css';
3
+ export default function GitBookTab({ title: _title, children, isActive = true, }) {
4
+ if (!isActive) {
5
+ return null;
6
+ }
7
+ return _jsx("div", { className: styles.tabPanel, children: children });
8
+ }
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookTab/index.tsx"],"names":[],"mappings":";AAQA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EAAE,MAAM,EACb,QAAQ,EACR,QAAQ,GAAG,IAAI,GACC;IAChB,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAAG,QAAQ,GAAO,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * GitBook Tab styles
3
+ */
4
+
5
+ .tabPanel {
6
+ padding: 1rem 0;
7
+ }
8
+
9
+ .tabPanel > *:first-child {
10
+ margin-top: 0;
11
+ }
12
+
13
+ .tabPanel > *:last-child {
14
+ margin-bottom: 0;
15
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * GitBook Tabs component
3
+ *
4
+ * Container for tabbed content with tab bar
5
+ */
6
+ import type { ReactElement } from 'react';
7
+ import type { TabsProps } from '../../theme-types.js';
8
+ export default function GitBookTabs({ children }: TabsProps): ReactElement;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/GitBookTabs/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAatD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,GAAG,YAAY,CA0CzE"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * GitBook Tabs component
4
+ *
5
+ * Container for tabbed content with tab bar
6
+ */
7
+ import { useState, Children, isValidElement, cloneElement } from 'react';
8
+ import styles from './styles.module.css';
9
+ export default function GitBookTabs({ children }) {
10
+ const [activeIndex, setActiveIndex] = useState(0);
11
+ // Extract tab titles from children
12
+ const tabs = [];
13
+ Children.forEach(children, (child, index) => {
14
+ if (isValidElement(child) && child.props.title) {
15
+ tabs.push({
16
+ title: child.props.title,
17
+ index,
18
+ });
19
+ }
20
+ });
21
+ // Render children with isActive prop
22
+ const renderedChildren = Children.map(children, (child, index) => {
23
+ if (isValidElement(child)) {
24
+ return cloneElement(child, {
25
+ isActive: index === activeIndex,
26
+ });
27
+ }
28
+ return child;
29
+ });
30
+ return (_jsxs("div", { className: styles.tabs, children: [_jsx("div", { className: styles.tabList, role: "tablist", children: tabs.map((tab) => (_jsx("button", { className: `${styles.tab} ${tab.index === activeIndex ? styles.active : ''}`, role: "tab", "aria-selected": tab.index === activeIndex, onClick: () => setActiveIndex(tab.index), children: tab.title }, tab.index))) }), _jsx("div", { className: styles.tabPanels, children: renderedChildren })] }));
31
+ }
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookTabs/index.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGhF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAYzC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAa;IACzD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElD,mCAAmC;IACnC,MAAM,IAAI,GAAc,EAAE,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC1C,IAAI,cAAc,CAAgB,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC9D,IAAI,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK;gBACxB,KAAK;aACN,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,qCAAqC;IACrC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC/D,IAAI,cAAc,CAAgB,KAAK,CAAC,EAAE,CAAC;YACzC,OAAO,YAAY,CAAC,KAAK,EAAE;gBACzB,QAAQ,EAAE,KAAK,KAAK,WAAW;aAChC,CAAC,CAAC;QACL,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAC,SAAS,YAC3C,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,iBAEE,SAAS,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAC5E,IAAI,EAAC,KAAK,mBACK,GAAG,CAAC,KAAK,KAAK,WAAW,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,YAEvC,GAAG,CAAC,KAAK,IANL,GAAG,CAAC,KAAK,CAOP,CACV,CAAC,GACE,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAAG,gBAAgB,GAAO,IACtD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * GitBook Tabs styles
3
+ */
4
+
5
+ .tabs {
6
+ margin: 1rem 0;
7
+ }
8
+
9
+ .tabList {
10
+ display: flex;
11
+ border-bottom: 1px solid var(--gitbook-tabs-border, #e0e0e0);
12
+ margin-bottom: 0;
13
+ }
14
+
15
+ .tab {
16
+ padding: 0.75rem 1rem;
17
+ border: none;
18
+ background: none;
19
+ cursor: pointer;
20
+ font-size: 0.9rem;
21
+ font-weight: 500;
22
+ color: var(--gitbook-tab-color, #666);
23
+ border-bottom: 2px solid transparent;
24
+ margin-bottom: -1px;
25
+ transition: color 0.2s, border-color 0.2s;
26
+ }
27
+
28
+ .tab:hover {
29
+ color: var(--gitbook-tab-hover-color, #333);
30
+ }
31
+
32
+ .tab.active {
33
+ color: var(--gitbook-tab-active-color, #0969da);
34
+ border-bottom-color: var(--gitbook-tab-active-border, #0969da);
35
+ }
36
+
37
+ .tabPanels {
38
+ padding: 0;
39
+ }
40
+
41
+ /* Dark mode */
42
+ :global([data-theme='dark']) .tabList {
43
+ border-color: var(--gitbook-tabs-border-dark, #444);
44
+ }
45
+
46
+ :global([data-theme='dark']) .tab {
47
+ color: var(--gitbook-tab-color-dark, #aaa);
48
+ }
49
+
50
+ :global([data-theme='dark']) .tab:hover {
51
+ color: var(--gitbook-tab-hover-color-dark, #ddd);
52
+ }
53
+
54
+ :global([data-theme='dark']) .tab.active {
55
+ color: var(--gitbook-tab-active-color-dark, #58a6ff);
56
+ border-bottom-color: var(--gitbook-tab-active-border-dark, #58a6ff);
57
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * GitBook Update component
3
+ *
4
+ * Individual update entry in an updates timeline
5
+ */
6
+ import type { ReactElement } from 'react';
7
+ import type { UpdateProps } from '../../theme-types.js';
8
+ export default function GitBookUpdate({ date, children, }: UpdateProps): ReactElement;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/GitBookUpdate/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,QAAQ,GACT,EAAE,WAAW,GAAG,YAAY,CA4B5B"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from './styles.module.css';
3
+ export default function GitBookUpdate({ date, children, }) {
4
+ // Format date if provided
5
+ let formattedDate = date;
6
+ try {
7
+ if (date) {
8
+ const dateObj = new Date(date);
9
+ formattedDate = dateObj.toLocaleDateString('en-US', {
10
+ year: 'numeric',
11
+ month: 'long',
12
+ day: 'numeric',
13
+ });
14
+ }
15
+ }
16
+ catch {
17
+ // Keep original date string if parsing fails
18
+ }
19
+ return (_jsxs("div", { className: styles.update, children: [_jsxs("div", { className: styles.timeline, children: [_jsx("div", { className: styles.dot }), _jsx("div", { className: styles.line })] }), _jsxs("div", { className: styles.content, children: [date && _jsx("time", { className: styles.date, children: formattedDate }), _jsx("div", { className: styles.body, children: children })] })] }));
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookUpdate/index.tsx"],"names":[],"mappings":";AASA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,QAAQ,GACI;IACZ,0BAA0B;IAC1B,IAAI,aAAa,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC;QACH,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,aAAa,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE;gBAClD,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,MAAM;gBACb,GAAG,EAAE,SAAS;aACf,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,6CAA6C;IAC/C,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,cAAK,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,EAC9B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC3B,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC3B,IAAI,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,aAAa,GAAQ,EAC7D,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,QAAQ,GAAO,IACzC,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * GitBook Update styles
3
+ */
4
+
5
+ .update {
6
+ display: flex;
7
+ position: relative;
8
+ }
9
+
10
+ .timeline {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ margin-right: 1rem;
15
+ }
16
+
17
+ .dot {
18
+ width: 0.75rem;
19
+ height: 0.75rem;
20
+ border-radius: 50%;
21
+ background-color: var(--gitbook-update-dot, #0969da);
22
+ flex-shrink: 0;
23
+ }
24
+
25
+ .line {
26
+ width: 2px;
27
+ flex: 1;
28
+ background-color: var(--gitbook-update-line, #e0e0e0);
29
+ margin-top: 0.5rem;
30
+ }
31
+
32
+ .update:last-child .line {
33
+ display: none;
34
+ }
35
+
36
+ .content {
37
+ flex: 1;
38
+ padding-bottom: 1.5rem;
39
+ }
40
+
41
+ .date {
42
+ display: block;
43
+ font-size: 0.85rem;
44
+ color: var(--gitbook-update-date-color, #666);
45
+ margin-bottom: 0.5rem;
46
+ font-weight: 500;
47
+ }
48
+
49
+ .body > *:first-child {
50
+ margin-top: 0;
51
+ }
52
+
53
+ .body > *:last-child {
54
+ margin-bottom: 0;
55
+ }
56
+
57
+ /* Dark mode */
58
+ :global([data-theme='dark']) .dot {
59
+ background-color: var(--gitbook-update-dot-dark, #58a6ff);
60
+ }
61
+
62
+ :global([data-theme='dark']) .line {
63
+ background-color: var(--gitbook-update-line-dark, #444);
64
+ }
65
+
66
+ :global([data-theme='dark']) .date {
67
+ color: var(--gitbook-update-date-color-dark, #aaa);
68
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * GitBook Updates component
3
+ *
4
+ * Container for changelog/update entries
5
+ */
6
+ import type { ReactElement } from 'react';
7
+ import type { UpdatesProps } from '../../theme-types.js';
8
+ export default function GitBookUpdates({ format, children, }: UpdatesProps): ReactElement;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/GitBookUpdates/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAe,EACf,QAAQ,GACT,EAAE,YAAY,GAAG,YAAY,CAI7B"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import styles from './styles.module.css';
3
+ export default function GitBookUpdates({ format = 'full', children, }) {
4
+ return (_jsx("div", { className: `${styles.updates} ${styles[format]}`, children: children }));
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/GitBookUpdates/index.tsx"],"names":[],"mappings":";AASA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAM,GAAG,MAAM,EACf,QAAQ,GACK;IACb,OAAO,CACL,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,YAAG,QAAQ,GAAO,CACxE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * GitBook Updates styles
3
+ */
4
+
5
+ .updates {
6
+ margin: 1.5rem 0;
7
+ }
8
+
9
+ .compact {
10
+ /* Compact mode - smaller spacing */
11
+ }
12
+
13
+ .compact > div {
14
+ padding-bottom: 1rem;
15
+ }
@@ -0,0 +1,205 @@
1
+ /**
2
+ * GitBook Theme - Global CSS Variables
3
+ *
4
+ * This file defines all CSS variables used by GitBook components.
5
+ * Import this file in your custom.css to ensure consistent theming.
6
+ *
7
+ * Usage:
8
+ * @import 'docusaurus-plugin-gitbook/theme/gitbook.css';
9
+ *
10
+ * Or override variables in your own CSS:
11
+ * :root {
12
+ * --gitbook-primary: #0969da;
13
+ * }
14
+ */
15
+
16
+ /* ========================================
17
+ Light Mode Variables (Default)
18
+ ======================================== */
19
+
20
+ :root {
21
+ /* Primary accent color */
22
+ --gitbook-primary: #0969da;
23
+ --gitbook-primary-hover: #0756b3;
24
+
25
+ /* Tab colors */
26
+ --gitbook-tabs-border: #e0e0e0;
27
+ --gitbook-tab-color: #666;
28
+ --gitbook-tab-hover-color: #333;
29
+ --gitbook-tab-active-color: #0969da;
30
+ --gitbook-tab-active-border: #0969da;
31
+
32
+ /* Step/Stepper colors */
33
+ --gitbook-step-bg: #0969da;
34
+ --gitbook-step-color: #fff;
35
+ --gitbook-step-line: #e0e0e0;
36
+
37
+ /* Update/Timeline colors */
38
+ --gitbook-update-dot: #0969da;
39
+ --gitbook-update-line: #e0e0e0;
40
+ --gitbook-update-date-color: #666;
41
+
42
+ /* Button colors */
43
+ --gitbook-button-primary-bg: #0969da;
44
+ --gitbook-button-primary-color: #fff;
45
+ --gitbook-button-primary-hover-bg: #0756b3;
46
+ --gitbook-button-secondary-color: #0969da;
47
+ --gitbook-button-secondary-border: #0969da;
48
+ --gitbook-button-secondary-hover-bg: rgba(9, 105, 218, 0.1);
49
+
50
+ /* Card colors */
51
+ --gitbook-card-border: #e0e0e0;
52
+ --gitbook-card-bg: #fff;
53
+ --gitbook-card-hover-border: #0969da;
54
+ --gitbook-card-title-color: #0969da;
55
+ --gitbook-card-content-color: #666;
56
+
57
+ /* File block colors */
58
+ --gitbook-file-border: #e0e0e0;
59
+ --gitbook-file-bg: #f9f9f9;
60
+ --gitbook-file-link-color: #0969da;
61
+ --gitbook-file-desc-color: #666;
62
+
63
+ /* Embed colors */
64
+ --gitbook-embed-bg: #f5f5f5;
65
+ --gitbook-embed-link-color: #0969da;
66
+
67
+ /* Expression colors */
68
+ --gitbook-expression-bg: #f0f0f0;
69
+
70
+ /* Code block colors */
71
+ --gitbook-code-border: #e0e0e0;
72
+ --gitbook-code-header-bg: #f6f8fa;
73
+ --gitbook-code-title-color: #666;
74
+
75
+ /* Include block colors */
76
+ --gitbook-include-border: #e0e0e0;
77
+ --gitbook-include-bg: #f9f9f9;
78
+ --gitbook-include-label-color: #666;
79
+ --gitbook-include-path-color: #0969da;
80
+ --gitbook-include-hint-color: #888;
81
+ --gitbook-include-code-bg: #f0f0f0;
82
+
83
+ /* OpenAPI block colors */
84
+ --gitbook-openapi-border: #e0e0e0;
85
+ --gitbook-openapi-header-bg: #f9f9f9;
86
+ --gitbook-openapi-path-color: #333;
87
+ --gitbook-openapi-label-color: #666;
88
+ --gitbook-openapi-link-color: #0969da;
89
+ }
90
+
91
+ /* ========================================
92
+ Dark Mode Variables
93
+ ======================================== */
94
+
95
+ [data-theme='dark'] {
96
+ /* Primary accent color */
97
+ --gitbook-primary: #58a6ff;
98
+ --gitbook-primary-hover: #79b8ff;
99
+
100
+ /* Tab colors */
101
+ --gitbook-tabs-border: #444;
102
+ --gitbook-tabs-border-dark: #444;
103
+ --gitbook-tab-color: #aaa;
104
+ --gitbook-tab-color-dark: #aaa;
105
+ --gitbook-tab-hover-color: #ddd;
106
+ --gitbook-tab-hover-color-dark: #ddd;
107
+ --gitbook-tab-active-color: #58a6ff;
108
+ --gitbook-tab-active-color-dark: #58a6ff;
109
+ --gitbook-tab-active-border: #58a6ff;
110
+ --gitbook-tab-active-border-dark: #58a6ff;
111
+
112
+ /* Step/Stepper colors */
113
+ --gitbook-step-bg: #58a6ff;
114
+ --gitbook-step-bg-dark: #58a6ff;
115
+ --gitbook-step-line: #444;
116
+ --gitbook-step-line-dark: #444;
117
+
118
+ /* Update/Timeline colors */
119
+ --gitbook-update-dot: #58a6ff;
120
+ --gitbook-update-dot-dark: #58a6ff;
121
+ --gitbook-update-line: #444;
122
+ --gitbook-update-line-dark: #444;
123
+ --gitbook-update-date-color: #aaa;
124
+ --gitbook-update-date-color-dark: #aaa;
125
+
126
+ /* Button colors */
127
+ --gitbook-button-primary-bg: #58a6ff;
128
+ --gitbook-button-primary-bg-dark: #58a6ff;
129
+ --gitbook-button-primary-color: #000;
130
+ --gitbook-button-primary-color-dark: #000;
131
+ --gitbook-button-primary-hover-bg: #79b8ff;
132
+ --gitbook-button-primary-hover-bg-dark: #79b8ff;
133
+ --gitbook-button-secondary-color: #58a6ff;
134
+ --gitbook-button-secondary-color-dark: #58a6ff;
135
+ --gitbook-button-secondary-border: #58a6ff;
136
+ --gitbook-button-secondary-border-dark: #58a6ff;
137
+ --gitbook-button-secondary-hover-bg: rgba(88, 166, 255, 0.1);
138
+ --gitbook-button-secondary-hover-bg-dark: rgba(88, 166, 255, 0.1);
139
+
140
+ /* Card colors */
141
+ --gitbook-card-border: #444;
142
+ --gitbook-card-border-dark: #444;
143
+ --gitbook-card-bg: #2a2a2a;
144
+ --gitbook-card-bg-dark: #2a2a2a;
145
+ --gitbook-card-hover-border: #58a6ff;
146
+ --gitbook-card-hover-border-dark: #58a6ff;
147
+ --gitbook-card-title-color: #58a6ff;
148
+ --gitbook-card-title-color-dark: #58a6ff;
149
+ --gitbook-card-content-color: #aaa;
150
+ --gitbook-card-content-color-dark: #aaa;
151
+
152
+ /* File block colors */
153
+ --gitbook-file-border: #444;
154
+ --gitbook-file-border-dark: #444;
155
+ --gitbook-file-bg: #2a2a2a;
156
+ --gitbook-file-bg-dark: #2a2a2a;
157
+ --gitbook-file-link-color: #58a6ff;
158
+ --gitbook-file-link-color-dark: #58a6ff;
159
+ --gitbook-file-desc-color: #aaa;
160
+ --gitbook-file-desc-color-dark: #aaa;
161
+
162
+ /* Embed colors */
163
+ --gitbook-embed-bg: #2a2a2a;
164
+ --gitbook-embed-bg-dark: #2a2a2a;
165
+ --gitbook-embed-link-color: #58a6ff;
166
+ --gitbook-embed-link-color-dark: #58a6ff;
167
+
168
+ /* Expression colors */
169
+ --gitbook-expression-bg: #3a3a3a;
170
+ --gitbook-expression-bg-dark: #3a3a3a;
171
+
172
+ /* Code block colors */
173
+ --gitbook-code-border: #444;
174
+ --gitbook-code-border-dark: #444;
175
+ --gitbook-code-header-bg: #2a2a2a;
176
+ --gitbook-code-header-bg-dark: #2a2a2a;
177
+ --gitbook-code-title-color: #aaa;
178
+ --gitbook-code-title-color-dark: #aaa;
179
+
180
+ /* Include block colors */
181
+ --gitbook-include-border: #444;
182
+ --gitbook-include-border-dark: #444;
183
+ --gitbook-include-bg: #2a2a2a;
184
+ --gitbook-include-bg-dark: #2a2a2a;
185
+ --gitbook-include-label-color: #aaa;
186
+ --gitbook-include-label-color-dark: #aaa;
187
+ --gitbook-include-path-color: #58a6ff;
188
+ --gitbook-include-path-color-dark: #58a6ff;
189
+ --gitbook-include-hint-color: #777;
190
+ --gitbook-include-hint-color-dark: #777;
191
+ --gitbook-include-code-bg: #3a3a3a;
192
+ --gitbook-include-code-bg-dark: #3a3a3a;
193
+
194
+ /* OpenAPI block colors */
195
+ --gitbook-openapi-border: #444;
196
+ --gitbook-openapi-border-dark: #444;
197
+ --gitbook-openapi-header-bg: #2a2a2a;
198
+ --gitbook-openapi-header-bg-dark: #2a2a2a;
199
+ --gitbook-openapi-path-color: #ddd;
200
+ --gitbook-openapi-path-color-dark: #ddd;
201
+ --gitbook-openapi-label-color: #aaa;
202
+ --gitbook-openapi-label-color-dark: #aaa;
203
+ --gitbook-openapi-link-color: #58a6ff;
204
+ --gitbook-openapi-link-color-dark: #58a6ff;
205
+ }