@redocly/theme 0.18.3-patch.8 → 0.18.4-patch.1

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 (97) hide show
  1. package/lib/components/Button/Button.js +1 -1
  2. package/lib/components/Catalog/Catalog.js +6 -1
  3. package/lib/components/Catalog/CatalogCard.js +2 -0
  4. package/lib/components/Catalog/styledVariables.js +3 -4
  5. package/lib/components/CodeBlock/styledVariables.js +5 -5
  6. package/lib/components/EditPageButton/EditPageButton.d.ts +1 -3
  7. package/lib/components/EditPageButton/EditPageButton.js +12 -7
  8. package/lib/components/Filter/Filter.js +1 -1
  9. package/lib/components/Filter/styledVariables.js +6 -6
  10. package/lib/components/Footer/FooterColumn.js +3 -1
  11. package/lib/components/Markdown/MarkdownLayout.d.ts +0 -2
  12. package/lib/components/Markdown/MarkdownLayout.js +1 -6
  13. package/lib/components/Menu/MenuItem.js +1 -1
  14. package/lib/components/Menu/styledVariables.js +1 -1
  15. package/lib/components/Navbar/Navbar.js +11 -3
  16. package/lib/components/Navbar/NavbarItem.js +7 -2
  17. package/lib/components/Navbar/styledVariables.js +2 -3
  18. package/lib/components/PageNavigation/NextButton.js +1 -1
  19. package/lib/components/PageNavigation/PreviousButton.js +1 -1
  20. package/lib/components/Product/ProductPicker.js +5 -4
  21. package/lib/components/Product/styledVariables.js +1 -0
  22. package/lib/components/Select/Select.js +0 -1
  23. package/lib/components/Select/styledVariables.js +1 -1
  24. package/lib/components/Sidebar/HeaderWrapper.js +1 -1
  25. package/lib/components/Sidebar/VersionPicker.js +1 -0
  26. package/lib/components/TableOfContent/TableOfContent.js +2 -0
  27. package/lib/components/TableOfContent/styledVariables.js +2 -1
  28. package/lib/components/Tag/Tag.d.ts +1 -1
  29. package/lib/components/Tag/styledVariables.js +13 -9
  30. package/lib/config.d.ts +14 -154
  31. package/lib/config.js +4 -25
  32. package/lib/globalStyle.js +4 -4
  33. package/lib/i18n/index.d.ts +2 -0
  34. package/lib/{I18n → i18n}/index.js +2 -2
  35. package/lib/icons/EditIcon/EditIcon.d.ts +6 -0
  36. package/lib/icons/EditIcon/EditIcon.js +18 -0
  37. package/lib/icons/EditIcon/index.d.ts +1 -0
  38. package/lib/icons/EditIcon/index.js +18 -0
  39. package/lib/icons/ExternalIcon/ExternalIcon.js +3 -3
  40. package/lib/icons/RocketIcon/RocketIcon.d.ts +7 -0
  41. package/lib/icons/RocketIcon/RocketIcon.js +15 -0
  42. package/lib/icons/RocketIcon/index.d.ts +1 -0
  43. package/lib/icons/RocketIcon/index.js +18 -0
  44. package/lib/icons/index.d.ts +2 -0
  45. package/lib/icons/index.js +2 -0
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +1 -1
  48. package/lib/mocks/hooks/index.js +0 -1
  49. package/lib/ui/darkColors.js +7 -7
  50. package/package.json +1 -1
  51. package/src/components/Button/Button.tsx +1 -1
  52. package/src/components/Catalog/Catalog.tsx +6 -1
  53. package/src/components/Catalog/CatalogCard.tsx +2 -0
  54. package/src/components/Catalog/styledVariables.ts +3 -4
  55. package/src/components/CodeBlock/styledVariables.ts +5 -5
  56. package/src/components/EditPageButton/EditPageButton.tsx +19 -9
  57. package/src/components/Filter/Filter.tsx +1 -1
  58. package/src/components/Filter/styledVariables.ts +6 -6
  59. package/src/components/Footer/FooterColumn.tsx +2 -0
  60. package/src/components/Markdown/MarkdownLayout.tsx +2 -15
  61. package/src/components/Menu/MenuItem.tsx +1 -1
  62. package/src/components/Menu/styledVariables.ts +1 -1
  63. package/src/components/Navbar/Navbar.tsx +11 -3
  64. package/src/components/Navbar/NavbarItem.tsx +5 -0
  65. package/src/components/Navbar/styledVariables.ts +2 -3
  66. package/src/components/PageNavigation/NextButton.tsx +0 -1
  67. package/src/components/PageNavigation/PreviousButton.tsx +0 -1
  68. package/src/components/Product/ProductPicker.tsx +5 -4
  69. package/src/components/Product/styledVariables.ts +1 -0
  70. package/src/components/Select/Select.tsx +0 -1
  71. package/src/components/Select/styledVariables.ts +1 -1
  72. package/src/components/Sidebar/HeaderWrapper.tsx +1 -1
  73. package/src/components/Sidebar/VersionPicker.tsx +1 -0
  74. package/src/components/TableOfContent/TableOfContent.tsx +2 -0
  75. package/src/components/TableOfContent/styledVariables.ts +2 -1
  76. package/src/components/Tag/Tag.tsx +1 -1
  77. package/src/components/Tag/styledVariables.ts +13 -9
  78. package/src/config.ts +6 -28
  79. package/src/globalStyle.ts +3 -3
  80. package/src/i18n/index.ts +2 -0
  81. package/src/icons/EditIcon/EditIcon.tsx +30 -0
  82. package/src/icons/EditIcon/index.ts +1 -0
  83. package/src/icons/ExternalIcon/ExternalIcon.tsx +4 -4
  84. package/src/icons/RocketIcon/RocketIcon.tsx +32 -0
  85. package/src/icons/RocketIcon/index.tsx +1 -0
  86. package/src/icons/index.ts +2 -0
  87. package/src/index.ts +1 -1
  88. package/src/mocks/hooks/index.ts +0 -1
  89. package/src/ui/darkColors.tsx +7 -7
  90. package/lib/I18n/index.d.ts +0 -2
  91. package/src/I18n/index.ts +0 -2
  92. /package/lib/{I18n → i18n}/LanguagePicker.d.ts +0 -0
  93. /package/lib/{I18n → i18n}/LanguagePicker.js +0 -0
  94. /package/lib/{I18n → i18n}/styledVariables.d.ts +0 -0
  95. /package/lib/{I18n → i18n}/styledVariables.js +0 -0
  96. /package/src/{I18n → i18n}/LanguagePicker.tsx +0 -0
  97. /package/src/{I18n → i18n}/styledVariables.ts +0 -0
package/lib/config.d.ts CHANGED
@@ -58,13 +58,6 @@ declare const markdownConfigSchema: {
58
58
  readonly baseUrl: {
59
59
  readonly type: "string";
60
60
  };
61
- readonly icon: {
62
- readonly type: "string";
63
- };
64
- readonly text: {
65
- readonly type: "string";
66
- readonly default: "Edit this page";
67
- };
68
61
  };
69
62
  readonly additionalProperties: false;
70
63
  readonly default: {};
@@ -202,15 +195,18 @@ declare const googleAnalyticsConfigSchema: {
202
195
  readonly trackingId: {
203
196
  readonly type: "string";
204
197
  };
198
+ readonly conversionId: {
199
+ readonly type: "string";
200
+ };
201
+ readonly floodlightId: {
202
+ readonly type: "string";
203
+ };
205
204
  readonly head: {
206
205
  readonly type: "boolean";
207
206
  };
208
207
  readonly respectDNT: {
209
208
  readonly type: "boolean";
210
209
  };
211
- readonly anonymize: {
212
- readonly type: "boolean";
213
- };
214
210
  readonly exclude: {
215
211
  readonly type: "array";
216
212
  readonly items: {
@@ -220,78 +216,12 @@ declare const googleAnalyticsConfigSchema: {
220
216
  readonly optimizeId: {
221
217
  readonly type: "string";
222
218
  };
223
- readonly experimentId: {
224
- readonly type: "string";
225
- };
226
- readonly variationId: {
227
- readonly type: "string";
228
- };
229
- readonly enableWebVitalsTracking: {
230
- readonly type: "boolean";
231
- };
232
- readonly defer: {
233
- readonly type: "boolean";
234
- };
235
- readonly sampleRate: {
236
- readonly type: "number";
237
- };
238
- readonly name: {
239
- readonly type: "string";
240
- };
241
- readonly clientId: {
242
- readonly type: "string";
243
- };
244
- readonly siteSpeedSampleRate: {
245
- readonly type: "number";
246
- };
247
- readonly alwaysSendReferrer: {
219
+ readonly anonymizeIp: {
248
220
  readonly type: "boolean";
249
221
  };
250
- readonly allowAnchor: {
251
- readonly type: "boolean";
252
- };
253
- readonly cookieName: {
254
- readonly type: "string";
255
- };
256
- readonly cookieFlags: {
257
- readonly type: "string";
258
- };
259
- readonly cookieDomain: {
260
- readonly type: "string";
261
- };
262
222
  readonly cookieExpires: {
263
223
  readonly type: "number";
264
224
  };
265
- readonly storeGac: {
266
- readonly type: "boolean";
267
- };
268
- readonly legacyCookieDomain: {
269
- readonly type: "string";
270
- };
271
- readonly legacyHistoryImport: {
272
- readonly type: "boolean";
273
- };
274
- readonly allowLinker: {
275
- readonly type: "boolean";
276
- };
277
- readonly storage: {
278
- readonly type: "string";
279
- };
280
- readonly allowAdFeatures: {
281
- readonly type: "boolean";
282
- };
283
- readonly dataSource: {
284
- readonly type: "string";
285
- };
286
- readonly queueTime: {
287
- readonly type: "number";
288
- };
289
- readonly forceSSL: {
290
- readonly type: "boolean";
291
- };
292
- readonly transport: {
293
- readonly type: "string";
294
- };
295
225
  };
296
226
  readonly additionalProperties: false;
297
227
  readonly required: readonly ["trackingId"];
@@ -1362,13 +1292,6 @@ export declare const themeConfigSchema: {
1362
1292
  readonly baseUrl: {
1363
1293
  readonly type: "string";
1364
1294
  };
1365
- readonly icon: {
1366
- readonly type: "string";
1367
- };
1368
- readonly text: {
1369
- readonly type: "string";
1370
- readonly default: "Edit this page";
1371
- };
1372
1295
  };
1373
1296
  readonly additionalProperties: false;
1374
1297
  readonly default: {};
@@ -1559,15 +1482,18 @@ export declare const themeConfigSchema: {
1559
1482
  readonly trackingId: {
1560
1483
  readonly type: "string";
1561
1484
  };
1485
+ readonly conversionId: {
1486
+ readonly type: "string";
1487
+ };
1488
+ readonly floodlightId: {
1489
+ readonly type: "string";
1490
+ };
1562
1491
  readonly head: {
1563
1492
  readonly type: "boolean";
1564
1493
  };
1565
1494
  readonly respectDNT: {
1566
1495
  readonly type: "boolean";
1567
1496
  };
1568
- readonly anonymize: {
1569
- readonly type: "boolean";
1570
- };
1571
1497
  readonly exclude: {
1572
1498
  readonly type: "array";
1573
1499
  readonly items: {
@@ -1577,78 +1503,12 @@ export declare const themeConfigSchema: {
1577
1503
  readonly optimizeId: {
1578
1504
  readonly type: "string";
1579
1505
  };
1580
- readonly experimentId: {
1581
- readonly type: "string";
1582
- };
1583
- readonly variationId: {
1584
- readonly type: "string";
1585
- };
1586
- readonly enableWebVitalsTracking: {
1587
- readonly type: "boolean";
1588
- };
1589
- readonly defer: {
1590
- readonly type: "boolean";
1591
- };
1592
- readonly sampleRate: {
1593
- readonly type: "number";
1594
- };
1595
- readonly name: {
1596
- readonly type: "string";
1597
- };
1598
- readonly clientId: {
1599
- readonly type: "string";
1600
- };
1601
- readonly siteSpeedSampleRate: {
1602
- readonly type: "number";
1603
- };
1604
- readonly alwaysSendReferrer: {
1506
+ readonly anonymizeIp: {
1605
1507
  readonly type: "boolean";
1606
1508
  };
1607
- readonly allowAnchor: {
1608
- readonly type: "boolean";
1609
- };
1610
- readonly cookieName: {
1611
- readonly type: "string";
1612
- };
1613
- readonly cookieFlags: {
1614
- readonly type: "string";
1615
- };
1616
- readonly cookieDomain: {
1617
- readonly type: "string";
1618
- };
1619
1509
  readonly cookieExpires: {
1620
1510
  readonly type: "number";
1621
1511
  };
1622
- readonly storeGac: {
1623
- readonly type: "boolean";
1624
- };
1625
- readonly legacyCookieDomain: {
1626
- readonly type: "string";
1627
- };
1628
- readonly legacyHistoryImport: {
1629
- readonly type: "boolean";
1630
- };
1631
- readonly allowLinker: {
1632
- readonly type: "boolean";
1633
- };
1634
- readonly storage: {
1635
- readonly type: "string";
1636
- };
1637
- readonly allowAdFeatures: {
1638
- readonly type: "boolean";
1639
- };
1640
- readonly dataSource: {
1641
- readonly type: "string";
1642
- };
1643
- readonly queueTime: {
1644
- readonly type: "number";
1645
- };
1646
- readonly forceSSL: {
1647
- readonly type: "boolean";
1648
- };
1649
- readonly transport: {
1650
- readonly type: "string";
1651
- };
1652
1512
  };
1653
1513
  readonly additionalProperties: false;
1654
1514
  readonly required: readonly ["trackingId"];
package/lib/config.js CHANGED
@@ -85,7 +85,7 @@ const markdownConfigSchema = {
85
85
  },
86
86
  editPage: {
87
87
  type: 'object',
88
- properties: Object.assign({ baseUrl: { type: 'string' }, icon: { type: 'string' }, text: { type: 'string', default: 'Edit this page' } }, hideConfigSchema.properties),
88
+ properties: Object.assign({ baseUrl: { type: 'string' } }, hideConfigSchema.properties),
89
89
  additionalProperties: false,
90
90
  default: {},
91
91
  },
@@ -173,35 +173,14 @@ const googleAnalyticsConfigSchema = {
173
173
  properties: {
174
174
  includeInDevelopment: { type: 'boolean' },
175
175
  trackingId: { type: 'string' },
176
+ conversionId: { type: 'string' },
177
+ floodlightId: { type: 'string' },
176
178
  head: { type: 'boolean' },
177
179
  respectDNT: { type: 'boolean' },
178
- anonymize: { type: 'boolean' },
179
180
  exclude: { type: 'array', items: { type: 'string' } },
180
181
  optimizeId: { type: 'string' },
181
- experimentId: { type: 'string' },
182
- variationId: { type: 'string' },
183
- enableWebVitalsTracking: { type: 'boolean' },
184
- defer: { type: 'boolean' },
185
- sampleRate: { type: 'number' },
186
- name: { type: 'string' },
187
- clientId: { type: 'string' },
188
- siteSpeedSampleRate: { type: 'number' },
189
- alwaysSendReferrer: { type: 'boolean' },
190
- allowAnchor: { type: 'boolean' },
191
- cookieName: { type: 'string' },
192
- cookieFlags: { type: 'string' },
193
- cookieDomain: { type: 'string' },
182
+ anonymizeIp: { type: 'boolean' },
194
183
  cookieExpires: { type: 'number' },
195
- storeGac: { type: 'boolean' },
196
- legacyCookieDomain: { type: 'string' },
197
- legacyHistoryImport: { type: 'boolean' },
198
- allowLinker: { type: 'boolean' },
199
- storage: { type: 'string' },
200
- allowAdFeatures: { type: 'boolean' },
201
- dataSource: { type: 'string' },
202
- queueTime: { type: 'number' },
203
- forceSSL: { type: 'boolean' },
204
- transport: { type: 'string' },
205
184
  },
206
185
  additionalProperties: false,
207
186
  required: ['trackingId'],
@@ -18,7 +18,7 @@ const Menu_1 = require("./components/Menu");
18
18
  const Panel_1 = require("./components/Panel");
19
19
  const CodeBlock_1 = require("./components/CodeBlock");
20
20
  const Product_1 = require("./components/Product");
21
- const I18n_1 = require("./I18n");
21
+ const i18n_1 = require("./i18n");
22
22
  const Select_1 = require("./components/Select");
23
23
  const Profile_1 = require("./components/Profile");
24
24
  const Dropdown_1 = require("./components/Dropdown");
@@ -349,8 +349,8 @@ const borders = (0, styled_components_1.css) `
349
349
  * @presenter Color
350
350
  */
351
351
 
352
- --border-primary: #d5d5d5; // 12% opacity. Raised dividers
353
- --border-secondary: #f0f0f0; // 6% opacity. Default dividers, borders
352
+ --border-primary: #00000021; // 13% opacity. Raised dividers
353
+ --border-secondary: #00000017; // 9% opacity. Default dividers, borders
354
354
 
355
355
  /**
356
356
  * @tokens Border Radius
@@ -929,7 +929,7 @@ exports.styles = (0, styled_components_1.css) `
929
929
  ${Footer_1.footer}
930
930
  ${headingsTypography}
931
931
  ${inputs}
932
- ${I18n_1.languagePicker}
932
+ ${i18n_1.languagePicker}
933
933
  ${LastUpdated_1.lastUpdated}
934
934
  ${links}
935
935
  ${loadProgressBar}
@@ -0,0 +1,2 @@
1
+ export { LanguagePicker } from '../i18n/LanguagePicker';
2
+ export * from '../i18n/styledVariables';
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LanguagePicker = void 0;
18
- var LanguagePicker_1 = require("../I18n/LanguagePicker");
18
+ var LanguagePicker_1 = require("../i18n/LanguagePicker");
19
19
  Object.defineProperty(exports, "LanguagePicker", { enumerable: true, get: function () { return LanguagePicker_1.LanguagePicker; } });
20
- __exportStar(require("../I18n/styledVariables"), exports);
20
+ __exportStar(require("../i18n/styledVariables"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface IconProps {
3
+ className?: string;
4
+ }
5
+ export declare const EditIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
6
+ export {};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EditIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Icon = ({ className }) => (react_1.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", className: className, fill: "none", "data-component-name": "icons/EditIcon" },
10
+ react_1.default.createElement("rect", { width: "16", height: "16", fill: "white", style: { mixBlendMode: 'multiply' } }),
11
+ react_1.default.createElement("path", { d: "M15 13H1V14H15V13Z", fill: "currentColor" }),
12
+ react_1.default.createElement("path", { d: "M12.7 4.5C13.1 4.1 13.1 3.5 12.7 3.1L10.9 1.3C10.5 0.9 9.9 0.9 9.5 1.3L2 8.8V12H5.2L12.7 4.5ZM10.2 2L12 3.8L10.5 5.3L8.7 3.5L10.2 2ZM3 11V9.2L8 4.2L9.8 6L4.8 11H3Z", fill: "currentColor" })));
13
+ exports.EditIcon = (0, styled_components_1.default)(Icon) `
14
+ width: 1em;
15
+ height: 1em;
16
+ vertical-align: middle;
17
+ `;
18
+ //# sourceMappingURL=EditIcon.js.map
@@ -0,0 +1 @@
1
+ export * from '../../icons/EditIcon/EditIcon';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../../icons/EditIcon/EditIcon"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -7,8 +7,8 @@ exports.ExternalIcon = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  // TODO use with "Sidebar/ExternalIcon"
10
- const Icon = ({ className, dataComponentName, }) => (react_1.default.createElement("span", { "data-component-name": dataComponentName },
11
- react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0px", y: "0px", viewBox: "0 0 100 125", enableBackground: "new 0 0 100 100", className: className },
10
+ const Icon = ({ className, dataComponentName, }) => (react_1.default.createElement("span", { "data-component-name": dataComponentName !== null && dataComponentName !== void 0 ? dataComponentName : 'icons/ExternalIcon' },
11
+ react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0px", y: "0px", viewBox: "0 0 110 110", enableBackground: "new 0 0 110 110", className: className },
12
12
  react_1.default.createElement("path", { d: "M-408.167-318.5" }),
13
13
  react_1.default.createElement("line", { fill: "none", stroke: "#ffffff", strokeWidth: "0.25", strokeMiterlimit: "10", x1: "57.5", y1: "11.75", x2: "57.5", y2: "17.5" }),
14
14
  react_1.default.createElement("path", { d: "M98.57,4.784c-0.024-0.113-0.047-0.223-0.074-0.334c-0.035-0.117-0.075-0.231-0.117-0.346 c-0.023-0.062-0.037-0.125-0.064-0.187c-0.016-0.032-0.03-0.06-0.049-0.092c-0.048-0.119-0.107-0.227-0.17-0.336 c-0.05-0.089-0.095-0.179-0.152-0.265c-0.062-0.1-0.139-0.195-0.209-0.292C97.67,2.85,97.611,2.77,97.545,2.69 c-0.081-0.092-0.172-0.178-0.258-0.262c-0.07-0.068-0.139-0.139-0.212-0.202c-0.093-0.083-0.196-0.158-0.3-0.232 c-0.08-0.058-0.152-0.114-0.236-0.163c-0.104-0.069-0.219-0.128-0.329-0.186c-0.091-0.046-0.175-0.093-0.262-0.132 c-0.044-0.019-0.081-0.043-0.121-0.061c-0.074-0.03-0.154-0.046-0.234-0.072c-0.095-0.033-0.19-0.065-0.288-0.092 c-0.123-0.034-0.246-0.059-0.369-0.083c-0.096-0.019-0.188-0.036-0.289-0.046c-0.131-0.018-0.263-0.022-0.393-0.028 c-0.064-0.002-0.12-0.012-0.186-0.012L63.77,1.305c-2.535,0.017-4.566,2.078-4.554,4.605c0.019,2.525,2.084,4.563,4.604,4.546 l19.258-0.121l-29.79,30.162c-1.112,1.126-1.526,2.678-1.233,4.118c0.174,0.863,0.596,1.691,1.272,2.357 c0.897,0.888,2.073,1.325,3.245,1.32c1.17-0.007,2.337-0.459,3.227-1.361l0.002-0.001l29.787-30.158l0.121,19.255 c0.014,2.523,2.07,4.564,4.602,4.545c1.268-0.005,2.408-0.526,3.233-1.357c0.817-0.834,1.325-1.98,1.317-3.242L98.675,5.665 c0-0.063-0.016-0.124-0.016-0.189c-0.009-0.123-0.015-0.25-0.032-0.375C98.616,4.992,98.592,4.89,98.57,4.784z" }),
@@ -17,6 +17,6 @@ exports.ExternalIcon = (0, styled_components_1.default)(Icon) `
17
17
  width: 10px;
18
18
  height: 10px;
19
19
  margin-left: 5px;
20
- fill: var(--sidebar-group-item-chevron-color);
20
+ fill: currentColor;
21
21
  `;
22
22
  //# sourceMappingURL=ExternalIcon.js.map
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface IconProps {
3
+ className?: string;
4
+ color?: string;
5
+ }
6
+ export declare const RocketIcon: import("styled-components").StyledComponent<({ className }: IconProps) => JSX.Element, any, {}, never>;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.RocketIcon = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_components_1 = __importDefault(require("styled-components"));
9
+ const Icon = ({ className }) => (react_1.default.createElement("svg", { "data-component-name": "icons/RocketIcon", className: className, xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
10
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.7002 1.55068C13.5251 1.49305 13.3388 1.47772 13.1567 1.50596L13.152 1.50671C11.8258 1.7252 9.24768 2.44828 6.43935 4.8604C5.65751 4.58592 4.81217 4.53466 3.99912 4.71587C3.07823 4.92111 2.24649 5.41394 1.62419 6.12309C1.45038 6.32115 1.46012 6.62011 1.64645 6.80644L3.21653 8.37652C3.16682 8.44409 3.11716 8.51231 3.06755 8.5812C2.92429 8.78013 2.94639 9.05359 3.11974 9.22694L3.17618 9.28339L2.5864 9.87317L2.58535 9.87422C2.36806 10.0928 2.24609 10.3885 2.24609 10.6967C2.24609 11.0049 2.36806 11.3006 2.58535 11.5192L2.5864 11.5203L4.47974 13.4136L4.48079 13.4147C4.69938 13.632 4.99507 13.7539 5.30329 13.7539C5.56764 13.7539 5.82278 13.6642 6.02797 13.5016C6.07134 13.4785 6.11147 13.449 6.14684 13.4136L6.72662 12.8338L6.77307 12.8803C6.94695 13.0542 7.22146 13.0758 7.42044 12.9313C7.48845 12.8819 7.55583 12.8324 7.62256 12.783L9.19307 14.3535C9.3794 14.5398 9.67836 14.5495 9.87642 14.3757C10.5856 13.7534 11.0784 12.9217 11.2836 12.0008C11.4657 11.1839 11.4131 10.3345 11.1352 9.54961C13.5373 6.75034 14.273 4.18993 14.4869 2.84653C14.5165 2.66498 14.5027 2.479 14.4467 2.30378C14.3906 2.1282 14.2937 1.96841 14.164 1.83751C14.0342 1.7066 13.8753 1.60831 13.7002 1.55068ZM10.3358 10.4241C9.77433 11.0018 9.13889 11.5852 8.41986 12.166L9.54647 13.2927C9.91995 12.8623 10.1826 12.3441 10.3076 11.7833C10.4077 11.334 10.4163 10.8719 10.3358 10.4241ZM7.40379 11.6944C12.1351 8.03789 13.2477 4.2709 13.4995 2.68816L13.4999 2.68582C13.5041 2.65984 13.5022 2.63321 13.4942 2.60813C13.4862 2.58305 13.4723 2.56022 13.4538 2.54152C13.4352 2.52282 13.4125 2.50878 13.3875 2.50054C13.363 2.49248 13.337 2.49021 13.3115 2.49391C12.1198 2.69072 9.6488 3.36687 6.93487 5.75486C6.90034 5.79743 6.85946 5.8334 6.81428 5.86196C5.99258 6.5985 5.15012 7.49283 4.31544 8.57889C4.29366 8.6174 4.26636 8.65363 4.23355 8.68644C4.23319 8.6868 4.23283 8.68716 4.23247 8.68752C4.19837 8.73243 4.16429 8.77767 4.13023 8.82323L4.18811 8.8811C4.20578 8.89449 4.22276 8.90921 4.23893 8.92526L7.09226 11.7586C7.12536 11.7915 7.15338 11.8285 7.17583 11.8684C7.22546 11.831 7.27471 11.7936 7.32359 11.7562C7.34864 11.7325 7.37553 11.7119 7.40379 11.6944ZM3.83102 7.57679C4.40831 6.85775 4.98895 6.22264 5.56449 5.66166C5.12019 5.58338 4.66217 5.59262 4.21666 5.69192C3.65578 5.81692 3.13757 6.07956 2.70726 6.45303L3.83102 7.57679ZM3.29456 10.5792L3.88329 9.9905L6.01952 12.1267L5.51323 12.633C5.47994 12.6533 5.44888 12.6775 5.42079 12.7055C5.38956 12.7365 5.34732 12.7539 5.30329 12.7539C5.25942 12.7539 5.21732 12.7366 5.18613 12.7058L3.29456 10.8142C3.2637 10.783 3.24609 10.7406 3.24609 10.6967C3.24609 10.6528 3.26371 10.6104 3.29456 10.5792Z", fill: "currentColor", fillOpacity: "0.87" })));
11
+ exports.RocketIcon = (0, styled_components_1.default)(Icon) `
12
+ width: 1em;
13
+ height: 1em;
14
+ `;
15
+ //# sourceMappingURL=RocketIcon.js.map
@@ -0,0 +1 @@
1
+ export * from '../../icons/RocketIcon/RocketIcon';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../../icons/RocketIcon/RocketIcon"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -19,3 +19,5 @@ export * from '../icons/LanguageIcon';
19
19
  export * from '../icons/PointingArrowIcon';
20
20
  export * from '../icons/CheckboxIcon';
21
21
  export * from '../icons/ErrorIcon';
22
+ export * from '../icons/EditIcon';
23
+ export * from '../icons/RocketIcon';
@@ -35,4 +35,6 @@ __exportStar(require("../icons/LanguageIcon"), exports);
35
35
  __exportStar(require("../icons/PointingArrowIcon"), exports);
36
36
  __exportStar(require("../icons/CheckboxIcon"), exports);
37
37
  __exportStar(require("../icons/ErrorIcon"), exports);
38
+ __exportStar(require("../icons/EditIcon"), exports);
39
+ __exportStar(require("../icons/RocketIcon"), exports);
38
40
  //# sourceMappingURL=index.js.map
package/lib/index.d.ts CHANGED
@@ -7,4 +7,4 @@ export * from './globalStyle';
7
7
  export * from './types/config';
8
8
  export * from './config';
9
9
  export * from './ui';
10
- export * from './I18n';
10
+ export * from './i18n';
package/lib/index.js CHANGED
@@ -23,5 +23,5 @@ __exportStar(require("./globalStyle"), exports);
23
23
  __exportStar(require("./types/config"), exports);
24
24
  __exportStar(require("./config"), exports);
25
25
  __exportStar(require("./ui"), exports);
26
- __exportStar(require("./I18n"), exports);
26
+ __exportStar(require("./i18n"), exports);
27
27
  //# sourceMappingURL=index.js.map
@@ -26,7 +26,6 @@ function useThemeConfig(_useProductConfig = true) {
26
26
  lastUpdatedBlock: { hide: false, format: 'timeago', locale: 'en-US' },
27
27
  editPage: {
28
28
  baseUrl: '',
29
- text: 'Edit this page',
30
29
  },
31
30
  frontMatterKeysToResolve: ['image', 'links'],
32
31
  },
@@ -203,11 +203,11 @@ exports.darkMode = (0, styled_components_1.css) `
203
203
  * @presenter Color
204
204
  */
205
205
 
206
- --bg-sunken: #0d0d0d; // Sunken is the lowest elevation available.
207
- --bg-base: #141414; // The default elevation is the baseline with respect to all other layers.
208
- --bg-raised: #1f1f1f; // Cards, elements, inputs
209
- --bg-overlay: #282828; // Overlay is the highest elevation available. Use for hovers
210
- --bg-modal-overlay: #282828c2;
206
+ --bg-sunken: #2c2d33; // Sunken is the lowest elevation available.
207
+ --bg-base: #1b1c21; // The default elevation is the baseline with respect to all other layers.
208
+ --bg-raised: #24262b; // Cards, elements, inputs
209
+ --bg-overlay: #3a3c42; // Overlay is the highest elevation available. Use for hovers
210
+ --bg-modal-overlay: #3a3c42c2;
211
211
 
212
212
  --bg-base-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Elements
213
213
  --bg-raised-shadow: 0px 8px 12px rgba(0, 0, 0, 0.4), 0px 1px 4px rgba(0, 0, 0, 0.5); // Hovers for base. Menu
@@ -217,8 +217,8 @@ exports.darkMode = (0, styled_components_1.css) `
217
217
  * @tokens Border Colors
218
218
  * @presenter Color
219
219
  */
220
- --border-primary: #424242; // Raised dividers
221
- --border-secondary: #222222; // Default dividers, borders
220
+ --border-primary: #ffffff21; // Raised dividers
221
+ --border-secondary: #ffffff17; // Default dividers, borders
222
222
 
223
223
  // @tokens End
224
224
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.18.3-patch.8",
3
+ "version": "0.18.4-patch.1",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -50,7 +50,7 @@ export const baseButtonStyles = css`
50
50
  display: flex;
51
51
  align-items: center;
52
52
  justify-content: center;
53
- gap: 5px;
53
+ gap: var(--spacing-xs);
54
54
  outline: none;
55
55
  margin: var(--button-margin);
56
56
  cursor: pointer;
@@ -133,9 +133,12 @@ export const FilterControls = styled.div`
133
133
 
134
134
  export const CatalogPageContent = styled.main`
135
135
  flex: 1;
136
- padding: var(--mobile-catalog-page-padding);
136
+ width: 90%;
137
+ margin: 0 auto;
138
+ padding: 0;
137
139
 
138
140
  ${({ theme }) => theme.mediaQueries.medium} {
141
+ width: 100%;
139
142
  padding: var(--catalog-page-padding);
140
143
  }
141
144
  `;
@@ -196,6 +199,8 @@ export const CatalogPageWrapper = styled.div`
196
199
  `;
197
200
 
198
201
  const FilterTagsWrapper = styled.div.attrs({ 'data-cy': 'Catalog/FilterTags' })`
202
+ width: 90%;
203
+ margin: 0 auto;
199
204
  padding: var(--filter-tags-wrapper-padding);
200
205
  display: flex;
201
206
  overflow-x: scroll;
@@ -143,7 +143,9 @@ const CardFooter = styled.div`
143
143
  const CardTags = styled.div`
144
144
  display: flex;
145
145
  flex-wrap: wrap;
146
+ align-items: center;
146
147
  gap: var(--spacing-xxs);
148
+ min-height: var(--spacing-xl);
147
149
  `;
148
150
 
149
151
  const CardTag = styled(Tag)`
@@ -8,7 +8,6 @@ export const catalog = css`
8
8
  --catalog-page-padding-vertical: var(--spacing-lg);
9
9
  --catalog-page-padding-horizontal: var(--spacing-xl);
10
10
  --catalog-page-padding: var(--catalog-page-padding-vertical) var(--catalog-page-padding-horizontal);
11
- --mobile-catalog-page-padding: 0 var(--spacing-base) var(--spacing-base) var(--spacing-base);
12
11
 
13
12
  --mobile-catalog-filter-padding-vertical: var(--spacing-sm);
14
13
  --mobile-catalog-filter-padding-horizontal: var(--spacing-base);
@@ -32,7 +31,7 @@ export const catalog = css`
32
31
  /**
33
32
  * @tokens Catalog page separator
34
33
  */
35
- --catalog-separator-color: var(--text-description);
34
+ --catalog-separator-color: var(--text-secondary);
36
35
  --catalog-separator-font-size: var(--font-size-base);
37
36
  --catalog-separator-font-weight: var(--font-weight-regular);
38
37
  --catalog-separator-border-color: var(--border-secondary);
@@ -42,8 +41,8 @@ export const catalog = css`
42
41
  --catalog-separator-count-height: var(--control-height-xs);
43
42
  --catalog-separator-count-padding: 0 var(--spacing-xxs);
44
43
  --catalog-separator-count-border-radius: var(--border-radius-xlg);
45
- --catalog-separator-count-border-color: var(--border-secondary);
46
- --catalog-separator-count-background: var(--bg-raised);
44
+ --catalog-separator-count-border-color: var(--border-primary);
45
+ --catalog-separator-count-background: var(--bg-overlay);
47
46
 
48
47
  /**
49
48
  * @tokens Catalog card
@@ -66,24 +66,24 @@ export const code = css`
66
66
  --code-block-tokens-constant-color: var(--code-block-tokens-default-color); // @presenter Color
67
67
  --code-block-tokens-symbol-color: var(--code-block-tokens-default-color); // @presenter Color
68
68
  --code-block-tokens-boolean-color: var(--color-geekblue-7); // @presenter Color
69
- --code-block-tokens-string-color: var(--color-cyan-6); // @presenter Color
69
+ --code-block-tokens-string-color: var(--color-cyan-7); // @presenter Color
70
70
  --code-block-tokens-property-string-color: var(--text-secondary); // @presenter Color
71
71
  --code-block-tokens-selector-color: var(--code-block-tokens-string-color); // @presenter Color
72
72
  --code-block-tokens-attr-name-color: var(--code-block-tokens-string-color); // @presenter Color
73
73
  --code-block-tokens-char-color: var(--code-block-tokens-string-color); // @presenter Color
74
74
  --code-block-tokens-builtin-color: var(--code-block-tokens-string-color); // @presenter Color
75
75
  --code-block-tokens-inserted-color: var(--code-block-tokens-string-color); // @presenter Color
76
- --code-block-tokens-link-color: var(--color-blue-6); // @presenter Color
76
+ --code-block-tokens-link-color: var(--color-blue-7); // @presenter Color
77
77
  --code-block-tokens-operator-color: var(--color-gold-7); // @presenter Color
78
78
  --code-block-tokens-entity-color: var(--code-block-tokens-operator-color); // @presenter Color
79
79
  --code-block-tokens-url-color: var(--code-block-tokens-operator-color); // @presenter Color
80
80
  --code-block-tokens-variable-color: var(--code-block-tokens-operator-color); // @presenter Color
81
- --code-block-tokens-keyword-color: var(--color-magneta-6); // @presenter Color
81
+ --code-block-tokens-keyword-color: var(--color-magenta-7); // @presenter Color
82
82
  --code-block-tokens-atrule-color: var(--code-block-tokens-keyword-color); // @presenter Color
83
83
  --code-block-tokens-attr-value-color: var(--code-block-tokens-keyword-color); // @presenter Color
84
- --code-block-tokens-regex-color: var(--color-gold-5); // @presenter Color
84
+ --code-block-tokens-regex-color: var(--color-yellow-7); // @presenter Color
85
85
  --code-block-tokens-important-color: var(--code-block-tokens-regex-color); // @presenter Color
86
- --code-block-tokens-deleted-color: var(--color-red-6); // @presenter Color
86
+ --code-block-tokens-deleted-color: var(--color-red-7); // @presenter Color
87
87
 
88
88
  // @tokens End
89
89
  `;