@redocly/theme 0.64.0-next.1 → 0.64.0-next.2

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 (121) hide show
  1. package/lib/components/Banner/Banner.js +3 -3
  2. package/lib/components/Catalog/CatalogActionsRow.d.ts +3 -3
  3. package/lib/components/Catalog/CatalogCardView/CatalogCard.js +4 -6
  4. package/lib/components/Catalog/CatalogEntities.d.ts +2 -2
  5. package/lib/components/Catalog/CatalogEntities.js +1 -1
  6. package/lib/components/Catalog/CatalogEntity/CatalogEntity.d.ts +1 -8
  7. package/lib/components/Catalog/CatalogEntity/CatalogEntityMetadata.js +1 -1
  8. package/lib/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.js +1 -1
  9. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.js +1 -0
  10. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.js +2 -1
  11. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.js +2 -6
  12. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.js +5 -5
  13. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.js +1 -1
  14. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.js +15 -7
  15. package/lib/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.js +2 -2
  16. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.d.ts +3 -3
  17. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.js +4 -1
  18. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.d.ts +3 -3
  19. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.js +14 -2
  20. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.js +1 -1
  21. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.d.ts +3 -3
  22. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.js +1 -1
  23. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.d.ts +2 -2
  24. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.d.ts +3 -3
  25. package/lib/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.js +13 -3
  26. package/lib/components/Catalog/CatalogEntity/CatalogEntitySchema.js +4 -3
  27. package/lib/components/Catalog/CatalogEntityTypeIcon.d.ts +3 -2
  28. package/lib/components/Catalog/CatalogEntityTypeIcon.js +9 -9
  29. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.d.ts +2 -3
  30. package/lib/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.d.ts +2 -3
  31. package/lib/components/Catalog/CatalogPageDescription.js +1 -1
  32. package/lib/components/Catalog/CatalogSortButton.d.ts +4 -5
  33. package/lib/components/Catalog/CatalogTableView/CatalogDomainsCell.js +6 -2
  34. package/lib/components/Catalog/CatalogTableView/CatalogEntityCell.js +2 -2
  35. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.d.ts +5 -0
  36. package/lib/components/Catalog/CatalogTableView/CatalogLastUpdateCell.js +45 -0
  37. package/lib/components/Catalog/CatalogTableView/CatalogOwnersCell.js +5 -3
  38. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.d.ts +2 -3
  39. package/lib/components/Catalog/CatalogTableView/CatalogTableHeaderCell.js +3 -2
  40. package/lib/components/Catalog/CatalogTableView/CatalogTableView.d.ts +1 -2
  41. package/lib/components/Catalog/CatalogTableView/CatalogTableView.js +15 -5
  42. package/lib/components/Catalog/CatalogTableView/CatalogTagsCell.js +3 -2
  43. package/lib/components/Catalog/CatalogTableView/CatalogUserEntityCell.js +2 -2
  44. package/lib/components/Catalog/CatalogTags.d.ts +11 -0
  45. package/lib/components/Catalog/CatalogTags.js +62 -0
  46. package/lib/components/Catalog/variables.js +22 -14
  47. package/lib/components/Search/SearchDialog.js +118 -116
  48. package/lib/core/constants/catalog.d.ts +1 -1
  49. package/lib/core/constants/catalog.js +1 -1
  50. package/lib/core/hooks/catalog/use-catalog-entity-link.d.ts +8 -0
  51. package/lib/core/hooks/catalog/use-catalog-entity-link.js +42 -0
  52. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.d.ts +2 -1
  53. package/lib/core/hooks/catalog/use-catalog-table-header-cell-actions.js +5 -3
  54. package/lib/core/hooks/index.d.ts +1 -0
  55. package/lib/core/hooks/index.js +1 -0
  56. package/lib/core/styles/dark.d.ts +3 -1
  57. package/lib/core/styles/dark.js +8 -1
  58. package/lib/core/styles/global.d.ts +6 -2
  59. package/lib/core/styles/global.js +18 -10
  60. package/lib/core/styles/palette.d.ts +6 -0
  61. package/lib/core/styles/palette.dark.d.ts +3 -0
  62. package/lib/core/styles/palette.dark.js +216 -0
  63. package/lib/core/styles/palette.js +179 -0
  64. package/lib/core/types/catalog.d.ts +23 -7
  65. package/lib/core/types/hooks.d.ts +6 -4
  66. package/lib/index.d.ts +1 -1
  67. package/lib/index.js +1 -1
  68. package/lib/markdoc/components/Heading/Heading.js +2 -2
  69. package/package.json +2 -2
  70. package/src/components/Banner/Banner.tsx +7 -7
  71. package/src/components/Catalog/CatalogActionsRow.tsx +3 -3
  72. package/src/components/Catalog/CatalogCardView/CatalogCard.tsx +4 -6
  73. package/src/components/Catalog/CatalogEntities.tsx +3 -3
  74. package/src/components/Catalog/CatalogEntity/CatalogEntity.tsx +3 -24
  75. package/src/components/Catalog/CatalogEntity/CatalogEntityMetadata.tsx +1 -1
  76. package/src/components/Catalog/CatalogEntity/CatalogEntityMethodAndPath.tsx +1 -1
  77. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityProperties.tsx +1 -0
  78. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/CatalogEntityPropertyCard.tsx +2 -1
  79. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/ContactProperty.tsx +8 -10
  80. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/DomainsProperty.tsx +13 -8
  81. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/FormatProperty.tsx +1 -0
  82. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/OwnersProperty.tsx +27 -15
  83. package/src/components/Catalog/CatalogEntity/CatalogEntityProperties/TagsProperty.tsx +2 -2
  84. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityApiDescriptionRelations.tsx +9 -9
  85. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityDefaultRelations.tsx +17 -9
  86. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelations.tsx +1 -1
  87. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTable.tsx +4 -8
  88. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityRelationsTableContent.tsx +2 -2
  89. package/src/components/Catalog/CatalogEntity/CatalogEntityRelations/CatalogEntityTeamRelations.tsx +16 -10
  90. package/src/components/Catalog/CatalogEntity/CatalogEntitySchema.tsx +4 -3
  91. package/src/components/Catalog/CatalogEntityTypeIcon.tsx +18 -11
  92. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBar.tsx +3 -3
  93. package/src/components/Catalog/CatalogMobileTopBar/CatalogMobileTopBarControls.tsx +2 -3
  94. package/src/components/Catalog/CatalogPageDescription.tsx +1 -1
  95. package/src/components/Catalog/CatalogSortButton.tsx +5 -6
  96. package/src/components/Catalog/CatalogTableView/CatalogDomainsCell.tsx +6 -2
  97. package/src/components/Catalog/CatalogTableView/CatalogEntityCell.tsx +2 -2
  98. package/src/components/Catalog/CatalogTableView/CatalogLastUpdateCell.tsx +54 -0
  99. package/src/components/Catalog/CatalogTableView/CatalogOwnersCell.tsx +5 -2
  100. package/src/components/Catalog/CatalogTableView/CatalogTableHeaderCell.tsx +4 -3
  101. package/src/components/Catalog/CatalogTableView/CatalogTableView.tsx +17 -7
  102. package/src/components/Catalog/CatalogTableView/CatalogTagsCell.tsx +3 -2
  103. package/src/components/Catalog/CatalogTableView/CatalogUserEntityCell.tsx +2 -2
  104. package/src/components/Catalog/CatalogTags.tsx +115 -0
  105. package/src/components/Catalog/variables.ts +22 -14
  106. package/src/components/Search/SearchDialog.tsx +299 -293
  107. package/src/core/constants/catalog.ts +1 -1
  108. package/src/core/hooks/catalog/use-catalog-entity-link.ts +46 -0
  109. package/src/core/hooks/catalog/use-catalog-table-header-cell-actions.ts +10 -2
  110. package/src/core/hooks/index.ts +1 -0
  111. package/src/core/styles/dark.ts +10 -2
  112. package/src/core/styles/global.ts +20 -12
  113. package/src/core/styles/palette.dark.ts +214 -0
  114. package/src/core/styles/palette.ts +177 -0
  115. package/src/core/types/catalog.ts +24 -8
  116. package/src/core/types/hooks.ts +5 -10
  117. package/src/index.ts +1 -1
  118. package/src/markdoc/components/Heading/Heading.tsx +2 -1
  119. package/lib/components/Catalog/CatalogTagsWithTooltip.d.ts +0 -10
  120. package/lib/components/Catalog/CatalogTagsWithTooltip.js +0 -57
  121. package/src/components/Catalog/CatalogTagsWithTooltip.tsx +0 -101
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activeBrandPaletteDark = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ function brandPaletteDark(palette) {
6
+ switch (palette) {
7
+ case 'default':
8
+ return (0, styled_components_1.css) `
9
+ --color-brand-1: var(--color-blueberry-1);
10
+ --color-brand-2: var(--color-blueberry-2);
11
+ --color-brand-3: var(--color-blueberry-3);
12
+ --color-brand-4: var(--color-blueberry-4);
13
+ --color-brand-5: var(--color-blueberry-5);
14
+ --color-brand-6: var(--color-blueberry-6);
15
+ --color-brand-7: var(--color-blueberry-7);
16
+ --color-brand-8: var(--color-blueberry-8);
17
+ --color-brand-9: var(--color-blueberry-9);
18
+ --color-brand-10: var(--color-blueberry-10);
19
+ --color-brand-11: var(--color-blueberry-11);
20
+ `;
21
+ case 'slate':
22
+ return (0, styled_components_1.css) `
23
+ --color-brand-1: #2a2b33;
24
+ --color-brand-2: #3b3c45;
25
+ --color-brand-3: #555761;
26
+ --color-brand-4: #6e6f7a;
27
+ --color-brand-5: #9b9ca8;
28
+ --color-brand-6: #fbfbfc;
29
+ --color-brand-7: #ededf2;
30
+ --color-brand-8: #dcdde5;
31
+ --color-brand-9: #c4c6d1;
32
+ --color-brand-10: #9b9ca8;
33
+ --color-brand-11: #6e6f7a;
34
+ --color-brand-subtle-1: #2a2b3366;
35
+ --color-brand-subtle-2: #3b3c4566;
36
+ --color-brand-subtle-3: #55576166;
37
+ --color-brand-subtle-4: #6e6f7a66;
38
+ --text-color-on-color: #000000;
39
+ `;
40
+ case 'pink':
41
+ return (0, styled_components_1.css) `
42
+ --color-brand-1: #4f2841;
43
+ --color-brand-2: #6a3055;
44
+ --color-brand-3: #853668;
45
+ --color-brand-4: #a03a7b;
46
+ --color-brand-5: #bb3d8d;
47
+ --color-brand-6: #d6409f;
48
+ --color-brand-7: #de59ad;
49
+ --color-brand-8: #e677bd;
50
+ --color-brand-9: #ef99cf;
51
+ --color-brand-10: #f7bfe2;
52
+ --color-brand-11: #ffe8f7;
53
+ --color-brand-subtle-1: #4f284166;
54
+ --color-brand-subtle-2: #6a305566;
55
+ --color-brand-subtle-3: #85366866;
56
+ --color-brand-subtle-4: #a03a7b66;
57
+ --text-color-on-color: #ffffff;
58
+ `;
59
+ case 'coral':
60
+ return (0, styled_components_1.css) `
61
+ --color-brand-1: #4f282b;
62
+ --color-brand-2: #6d3338;
63
+ --color-brand-3: #8b3c42;
64
+ --color-brand-4: #a9434c;
65
+ --color-brand-5: #c74b55;
66
+ --color-brand-6: #e5535f;
67
+ --color-brand-7: #ea6a75;
68
+ --color-brand-8: #ef858d;
69
+ --color-brand-9: #f5a3aa;
70
+ --color-brand-10: #fac5c9;
71
+ --color-brand-11: #ffe8ea;
72
+ --color-brand-subtle-1: #4f282b66;
73
+ --color-brand-subtle-2: #6d333866;
74
+ --color-brand-subtle-3: #8b3c4266;
75
+ --color-brand-subtle-4: #a9434c66;
76
+ --text-color-on-color: #ffffff;
77
+ `;
78
+ case 'amber':
79
+ return (0, styled_components_1.css) `
80
+ --color-brand-1: #4f3c28;
81
+ --color-brand-2: #71512e;
82
+ --color-brand-3: #93632f;
83
+ --color-brand-4: #b6732a;
84
+ --color-brand-5: #d88121;
85
+ --color-brand-6: #fa8d15;
86
+ --color-brand-7: #fb9f3a;
87
+ --color-brand-8: #fcb261;
88
+ --color-brand-9: #fdc78c;
89
+ --color-brand-10: #feddba;
90
+ --color-brand-11: #fff4e8;
91
+ --color-brand-subtle-1: #4f3c2866;
92
+ --color-brand-subtle-2: #71512e66;
93
+ --color-brand-subtle-3: #93632f66;
94
+ --color-brand-subtle-4: #b6732a66;
95
+ --text-color-on-color: #ffffff;
96
+ `;
97
+ case 'jade':
98
+ return (0, styled_components_1.css) `
99
+ --color-brand-1: #284f45;
100
+ --color-brand-2: #2a6052;
101
+ --color-brand-3: #2b715e;
102
+ --color-brand-4: #2b816b;
103
+ --color-brand-5: #2a9277;
104
+ --color-brand-6: #29a383;
105
+ --color-brand-7: #42b597;
106
+ --color-brand-8: #61c8ad;
107
+ --color-brand-9: #88dac4;
108
+ --color-brand-10: #b5edde;
109
+ --color-brand-11: #e8fff9;
110
+ --color-brand-subtle-1: #284f4566;
111
+ --color-brand-subtle-2: #2a605266;
112
+ --color-brand-subtle-3: #2b715e66;
113
+ --color-brand-subtle-4: #2b816b66;
114
+ --text-color-on-color: #ffffff;
115
+ `;
116
+ case 'cyan':
117
+ return (0, styled_components_1.css) `
118
+ --color-brand-1: #28484f;
119
+ --color-brand-2: #285c67;
120
+ --color-brand-3: #246e7f;
121
+ --color-brand-4: #1b8097;
122
+ --color-brand-5: #0f91af;
123
+ --color-brand-6: #00a2c7;
124
+ --color-brand-7: #22b2d2;
125
+ --color-brand-8: #4ac2dd;
126
+ --color-brand-9: #79d4e9;
127
+ --color-brand-10: #aee7f4;
128
+ --color-brand-11: #e8fbff;
129
+ --color-brand-subtle-1: #28484f66;
130
+ --color-brand-subtle-2: #285c6766;
131
+ --color-brand-subtle-3: #246e7f66;
132
+ --color-brand-subtle-4: #1b809766;
133
+ --text-color-on-color: #ffffff;
134
+ `;
135
+ case 'ocean':
136
+ return (0, styled_components_1.css) `
137
+ --color-brand-1: #283e4f;
138
+ --color-brand-2: #2d5472;
139
+ --color-brand-3: #2a6795;
140
+ --color-brand-4: #2277b9;
141
+ --color-brand-5: #1384dc;
142
+ --color-brand-6: #0090ff;
143
+ --color-brand-7: #29a2ff;
144
+ --color-brand-8: #56b5ff;
145
+ --color-brand-9: #85caff;
146
+ --color-brand-10: #b6dfff;
147
+ --color-brand-11: #e8f5ff;
148
+ --color-brand-subtle-1: #283e4f66;
149
+ --color-brand-subtle-2: #2d547266;
150
+ --color-brand-subtle-3: #2a679566;
151
+ --color-brand-subtle-4: #2277b966;
152
+ --text-color-on-color: #ffffff;
153
+ `;
154
+ case 'indigo':
155
+ return (0, styled_components_1.css) `
156
+ --color-brand-1: #28314f;
157
+ --color-brand-2: #303e6b;
158
+ --color-brand-3: #364988;
159
+ --color-brand-4: #3952a4;
160
+ --color-brand-5: #3c5bc1;
161
+ --color-brand-6: #3e63dd;
162
+ --color-brand-7: #5879e4;
163
+ --color-brand-8: #7691eb;
164
+ --color-brand-9: #99aef1;
165
+ --color-brand-10: #bfcdf8;
166
+ --color-brand-11: #e8edff;
167
+ --color-brand-subtle-1: #28314f66;
168
+ --color-brand-subtle-2: #303e6b66;
169
+ --color-brand-subtle-3: #36498866;
170
+ --color-brand-subtle-4: #3952a466;
171
+ --text-color-on-color: #ffffff;
172
+ `;
173
+ case 'iris':
174
+ return (0, styled_components_1.css) `
175
+ --color-brand-1: #2e2e4f;
176
+ --color-brand-2: #3a3a6a;
177
+ --color-brand-3: #434385;
178
+ --color-brand-4: #4c4ca0;
179
+ --color-brand-5: #5353bb;
180
+ --color-brand-6: #5b5bd6;
181
+ --color-brand-7: #7070de;
182
+ --color-brand-8: #8a8ae6;
183
+ --color-brand-9: #a7a7ef;
184
+ --color-brand-10: #c8c8f7;
185
+ --color-brand-11: #ebebff;
186
+ --color-brand-subtle-1: #2e2e4f80;
187
+ --color-brand-subtle-2: #3a3a6a80;
188
+ --color-brand-subtle-3: #43438580;
189
+ --color-brand-subtle-4: #4c4ca080;
190
+ --text-color-on-color: #ffffff;
191
+ `;
192
+ default:
193
+ return (0, styled_components_1.css) `
194
+ --color-brand-1: #232a61;
195
+ --color-brand-2: #222d7a;
196
+ --color-brand-3: #1e2f93;
197
+ --color-brand-4: #2f46b7;
198
+ --color-brand-5: #4561db;
199
+ --color-brand-6: #5f81ff;
200
+ --color-brand-7: #87a3ff;
201
+ --color-brand-8: #9fb7ff;
202
+ --color-brand-9: #bfd0ff;
203
+ --color-brand-10: #dfe8ff;
204
+ --color-brand-11: #f0f4ff;
205
+ --color-brand-subtle-1: #232a6166;
206
+ --color-brand-subtle-2: #222d7a66;
207
+ --color-brand-subtle-3: #1e2f9366;
208
+ --color-brand-subtle-4: #2f46b766;
209
+ --text-color-on-color: #ffffff;
210
+ `;
211
+ }
212
+ }
213
+ exports.activeBrandPaletteDark = (0, styled_components_1.css) `
214
+ ${({ palette }) => brandPaletteDark(palette)}
215
+ `;
216
+ //# sourceMappingURL=palette.dark.js.map
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.activeBrandPaletteLight = void 0;
4
+ const styled_components_1 = require("styled-components");
5
+ function brandPaletteLight(palette) {
6
+ switch (palette) {
7
+ case 'default':
8
+ return (0, styled_components_1.css) `
9
+ --color-brand-1: var(--color-blueberry-1);
10
+ --color-brand-2: var(--color-blueberry-2);
11
+ --color-brand-3: var(--color-blueberry-3);
12
+ --color-brand-4: var(--color-blueberry-4);
13
+ --color-brand-5: var(--color-blueberry-5);
14
+ --color-brand-6: var(--color-blueberry-6);
15
+ --color-brand-7: var(--color-blueberry-7);
16
+ --color-brand-8: var(--color-blueberry-8);
17
+ --color-brand-9: var(--color-blueberry-9);
18
+ --color-brand-10: var(--color-blueberry-10);
19
+ --color-brand-11: var(--color-blueberry-11);
20
+ `;
21
+ case 'slate':
22
+ return (0, styled_components_1.css) `
23
+ --color-brand-1: #ededf2;
24
+ --color-brand-2: #dcdde5;
25
+ --color-brand-3: #c4c6d1;
26
+ --color-brand-4: #9b9ca8;
27
+ --color-brand-5: #6e6f7a;
28
+ --color-brand-6: #1a1c21;
29
+ --color-brand-7: #22242b;
30
+ --color-brand-8: #2a2b33;
31
+ --color-brand-9: #3b3c45;
32
+ --color-brand-10: #555761;
33
+ --color-brand-11: #6e6f7a;
34
+ --text-color-on-color: #ffffff;
35
+ `;
36
+ case 'pink':
37
+ return (0, styled_components_1.css) `
38
+ --color-brand-1: #ffe8f7;
39
+ --color-brand-2: #f7bfe2;
40
+ --color-brand-3: #ef99cf;
41
+ --color-brand-4: #e677bd;
42
+ --color-brand-5: #de59ad;
43
+ --color-brand-6: #d6409f;
44
+ --color-brand-7: #bb3d8d;
45
+ --color-brand-8: #a03a7b;
46
+ --color-brand-9: #853668;
47
+ --color-brand-10: #6a3055;
48
+ --color-brand-11: #4f2841;
49
+ --text-color-on-color: #ffffff;
50
+ `;
51
+ case 'coral':
52
+ return (0, styled_components_1.css) `
53
+ --color-brand-1: #ffe8ea;
54
+ --color-brand-2: #fac5c9;
55
+ --color-brand-3: #f5a3aa;
56
+ --color-brand-4: #ef858d;
57
+ --color-brand-5: #ea6a75;
58
+ --color-brand-6: #e5535f;
59
+ --color-brand-7: #c74b55;
60
+ --color-brand-8: #a9434c;
61
+ --color-brand-9: #8b3c42;
62
+ --color-brand-10: #6d3338;
63
+ --color-brand-11: #4f282b;
64
+ --text-color-on-color: #ffffff;
65
+ `;
66
+ case 'amber':
67
+ return (0, styled_components_1.css) `
68
+ --color-brand-1: #fff4e8;
69
+ --color-brand-2: #feddba;
70
+ --color-brand-3: #fdc78c;
71
+ --color-brand-4: #fcb261;
72
+ --color-brand-5: #fb9f3a;
73
+ --color-brand-6: #fa8d15;
74
+ --color-brand-7: #d88121;
75
+ --color-brand-8: #b6732a;
76
+ --color-brand-9: #93632f;
77
+ --color-brand-10: #71512e;
78
+ --color-brand-11: #4f3c28;
79
+ --text-color-on-color: #ffffff;
80
+ `;
81
+ case 'jade':
82
+ return (0, styled_components_1.css) `
83
+ --color-brand-1: #e8fff9;
84
+ --color-brand-2: #b5edde;
85
+ --color-brand-3: #88dac4;
86
+ --color-brand-4: #61c8ad;
87
+ --color-brand-5: #42b597;
88
+ --color-brand-6: #29a383;
89
+ --color-brand-7: #2a9277;
90
+ --color-brand-8: #2b816b;
91
+ --color-brand-9: #2b715e;
92
+ --color-brand-10: #2a6052;
93
+ --color-brand-11: #284f45;
94
+ --text-color-on-color: #ffffff;
95
+ `;
96
+ case 'cyan':
97
+ return (0, styled_components_1.css) `
98
+ --color-brand-1: #e8fbff;
99
+ --color-brand-2: #aee7f4;
100
+ --color-brand-3: #79d4e9;
101
+ --color-brand-4: #4ac2dd;
102
+ --color-brand-5: #22b2d2;
103
+ --color-brand-6: #00a2c7;
104
+ --color-brand-7: #0f91af;
105
+ --color-brand-8: #1b8097;
106
+ --color-brand-9: #246e7f;
107
+ --color-brand-10: #285c67;
108
+ --color-brand-11: #28484f;
109
+ --text-color-on-color: #ffffff;
110
+ `;
111
+ case 'ocean':
112
+ return (0, styled_components_1.css) `
113
+ --color-brand-1: #e8f5ff;
114
+ --color-brand-2: #b6dfff;
115
+ --color-brand-3: #85caff;
116
+ --color-brand-4: #56b5ff;
117
+ --color-brand-5: #29a2ff;
118
+ --color-brand-6: #0090ff;
119
+ --color-brand-7: #1384dc;
120
+ --color-brand-8: #2277b9;
121
+ --color-brand-9: #2a6795;
122
+ --color-brand-10: #2d5472;
123
+ --color-brand-11: #283e4f;
124
+ --text-color-on-color: #ffffff;
125
+ `;
126
+ case 'indigo':
127
+ return (0, styled_components_1.css) `
128
+ --color-brand-1: #e8edff;
129
+ --color-brand-2: #b5d7ff;
130
+ --color-brand-3: #99aef1;
131
+ --color-brand-4: #7691eb;
132
+ --color-brand-5: #5879e4;
133
+ --color-brand-6: #3e63dd;
134
+ --color-brand-7: #3c5bc1;
135
+ --color-brand-8: #3952a4;
136
+ --color-brand-9: #364988;
137
+ --color-brand-10: #303e6b;
138
+ --color-brand-11: #28314f;
139
+ --text-color-on-color: #ffffff;
140
+ `;
141
+ case 'iris':
142
+ return (0, styled_components_1.css) `
143
+ --color-brand-1: #ebebff;
144
+ --color-brand-2: #c8c8f7;
145
+ --color-brand-3: #a7a7ef;
146
+ --color-brand-4: #8a8ae6;
147
+ --color-brand-5: #7070de;
148
+ --color-brand-6: #5b5bd6;
149
+ --color-brand-7: #5353bb;
150
+ --color-brand-8: #4c4ca0;
151
+ --color-brand-9: #434385;
152
+ --color-brand-10: #3a3a6a;
153
+ --color-brand-11: #2e2e4f;
154
+ --text-color-on-color: #ffffff;
155
+ `;
156
+ default:
157
+ return (0, styled_components_1.css) `
158
+ --color-brand-1: #f0f4ff;
159
+ --color-brand-2: #dfe8ff;
160
+ --color-brand-3: #bfd0ff;
161
+ --color-brand-4: #9fb7ff;
162
+ --color-brand-5: #87a3ff;
163
+ --color-brand-6: #5f81ff;
164
+ --color-brand-7: #4561db;
165
+ --color-brand-8: #2f46b7;
166
+ --color-brand-9: #1e2f93;
167
+ --color-brand-10: #222d7a;
168
+ --color-brand-11: #232a61;
169
+ --text-color-on-color: #ffffff;
170
+ `;
171
+ }
172
+ }
173
+ /**
174
+ * @tokens Palette
175
+ */
176
+ exports.activeBrandPaletteLight = (0, styled_components_1.css) `
177
+ ${({ palette }) => brandPaletteLight(palette)}
178
+ `;
179
+ //# sourceMappingURL=palette.js.map
@@ -2,7 +2,6 @@ import { InfiniteData, UseInfiniteQueryResult } from '@tanstack/react-query';
2
2
  import { ENTITY_RELATION_TYPES } from '@redocly/config';
3
3
  import type { CatalogEntityConfig, EntitiesCatalogConfig, LayoutVariant } from '@redocly/config';
4
4
  import type { CatalogFilterConfig } from '../../config';
5
- export type SortOption = 'title' | '-title' | 'type' | '-type';
6
5
  export type FilterResult = {
7
6
  value: string;
8
7
  count: number;
@@ -20,8 +19,8 @@ export type UseCatalogResponse = {
20
19
  filterQuery: string;
21
20
  searchQuery: string;
22
21
  setSearchQuery: (query: string) => void;
23
- sortOption: SortOption | null;
24
- setSortOption: (option: SortOption | null) => void;
22
+ sortOption: string | null;
23
+ setSortOption: (option: string | null) => void;
25
24
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
26
25
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
27
26
  viewMode: CatalogViewMode;
@@ -34,8 +33,8 @@ export type UseCatalogResponse = {
34
33
  collapsedSidebar: boolean;
35
34
  };
36
35
  export type UseCatalogSortResponse = {
37
- sortOption: SortOption | null;
38
- setSortOption: (option: SortOption | null) => void;
36
+ sortOption: string | null;
37
+ setSortOption: (option: string | null) => void;
39
38
  handleSortClick: (sortKey: string, direction: 'asc' | 'desc') => void;
40
39
  isColumnSorted: (sortKey: string, direction: 'asc' | 'desc') => boolean;
41
40
  };
@@ -134,8 +133,8 @@ export type BffCatalogRelatedEntity = {
134
133
  metadata?: Record<string, any>;
135
134
  version?: string | null;
136
135
  revision?: string | null;
137
- readonly createdAt: string | null;
138
- readonly updatedAt: string | null;
136
+ readonly createdAt: string;
137
+ readonly updatedAt: string;
139
138
  };
140
139
  export type BffCatalogEntity = {
141
140
  readonly id: string;
@@ -220,3 +219,20 @@ export type SidebarConnectedEntity = {
220
219
  key: string;
221
220
  version?: string;
222
221
  };
222
+ export type CatalogEntityPageProps = {
223
+ status: 'success';
224
+ entity: BffCatalogEntity;
225
+ relatedEntity: BffCatalogRelatedEntity | null;
226
+ relations: BffCatalogRelatedEntityList;
227
+ entitiesCatalogConfig: EntitiesCatalogConfig;
228
+ catalogConfig: CatalogEntityConfig;
229
+ sharedDataIds?: Record<string, string>;
230
+ };
231
+ export type CatalogEntityProps = {
232
+ RedocSchema: React.ComponentType<any>;
233
+ StoreProvider: React.ComponentType<any>;
234
+ GraphqlTypeRenderer?: React.ComponentType<{
235
+ sdl: string;
236
+ typeName: string;
237
+ }>;
238
+ };
@@ -1,11 +1,12 @@
1
+ import type { ResolvedBannerConfig } from '@redocly/config';
1
2
  import type { AsyncApiRealmUI } from '@redocly/realm-asyncapi-sdk';
2
- import type { BannerConfig, PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
3
+ import type { PageData, PageProps, ResolvedNavItemWithLink, Version } from '@redocly/config';
3
4
  import type { ShikiTransformer } from '@shikijs/types';
4
5
  import type { Callback, TFunction as TFunc } from 'i18next';
5
6
  import type { To, Location, NavigateFunction } from 'react-router-dom';
6
7
  import type { UseQueryResult } from '@tanstack/react-query';
7
8
  import type { CatalogConfig, ProductUiConfig } from '../../config';
8
- import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults, SortOption } from './catalog';
9
+ import type { UseCatalogResponse, FilteredCatalog, UseCatalogSortResponse, UseCatalogSearchResponse, UseCatalogProps, CatalogApiParams, CatalogApiResults } from './catalog';
9
10
  import type { UserMenuData } from './user-menu';
10
11
  import type { ItemState } from './sidebar';
11
12
  import type { SearchItemData, SearchFacet, SearchFilterItem, SearchFacetQuery, AiSearchConversationItem, ToolCallName, ContentSegment } from './search';
@@ -65,7 +66,7 @@ export type ThemeHooks = {
65
66
  currentItemSiblings?: BreadcrumbItem[];
66
67
  };
67
68
  useBanner: () => {
68
- banner: BannerConfig | undefined;
69
+ banner: ResolvedBannerConfig | undefined;
69
70
  dismissBanner: (content: string) => void;
70
71
  };
71
72
  useSearch: (product?: string, autoSearchDisabled?: boolean) => {
@@ -111,6 +112,7 @@ export type ThemeHooks = {
111
112
  contentSegments: ContentSegment[];
112
113
  };
113
114
  useMarkdownText: (text: string) => React.ReactNode;
115
+ useMarkdocRenderer: (ast: unknown) => React.ReactNode;
114
116
  useFacetQuery: (field: string) => {
115
117
  searchFacet: SearchFacet | null;
116
118
  setSearchFacet: React.Dispatch<React.SetStateAction<SearchFacet | null>>;
@@ -137,7 +139,7 @@ export type ThemeHooks = {
137
139
  nextPage?: ResolvedNavItemWithLink;
138
140
  } | undefined;
139
141
  useCatalog: (props?: UseCatalogProps) => UseCatalogResponse;
140
- useCatalogSort: (defaultSortOption?: SortOption | null) => UseCatalogSortResponse;
142
+ useCatalogSort: (defaultSortOption?: string | null) => UseCatalogSortResponse;
141
143
  useCatalogSearch: () => UseCatalogSearchResponse;
142
144
  useFetchCatalogEntities: (params: CatalogApiParams, initialData?: BffCatalogEntityList) => CatalogApiResults<BffCatalogEntity>;
143
145
  useFetchCatalogEntitiesRelations: (params: CatalogApiParams & {
package/lib/index.d.ts CHANGED
@@ -115,7 +115,7 @@ export * from './components/Catalog/CatalogTableView/CatalogTableHeaderCell';
115
115
  export * from './components/Catalog/CatalogTableView/CatalogTableView';
116
116
  export * from './components/Catalog/CatalogSelector';
117
117
  export * from './components/Catalog/CatalogSortButton';
118
- export * from './components/Catalog/CatalogTagsWithTooltip';
118
+ export * from './components/Catalog/CatalogTags';
119
119
  export * from './components/Catalog/CatalogViewModeToggle';
120
120
  export * from './components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton';
121
121
  export * from './components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar';
package/lib/index.js CHANGED
@@ -173,7 +173,7 @@ __exportStar(require("./components/Catalog/CatalogTableView/CatalogTableHeaderCe
173
173
  __exportStar(require("./components/Catalog/CatalogTableView/CatalogTableView"), exports);
174
174
  __exportStar(require("./components/Catalog/CatalogSelector"), exports);
175
175
  __exportStar(require("./components/Catalog/CatalogSortButton"), exports);
176
- __exportStar(require("./components/Catalog/CatalogTagsWithTooltip"), exports);
176
+ __exportStar(require("./components/Catalog/CatalogTags"), exports);
177
177
  __exportStar(require("./components/Catalog/CatalogViewModeToggle"), exports);
178
178
  __exportStar(require("./components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistoryButton"), exports);
179
179
  __exportStar(require("./components/Catalog/CatalogEntity/CatalogEntityHistory/CatalogEntityHistorySidebar"), exports);
@@ -70,11 +70,11 @@ function renderWithSpanWrapper(children) {
70
70
  */
71
71
  const mdClassName = 'md';
72
72
  function Heading({ level, id, children, 'data-source': dataSource, 'data-hash': dataHash, className, __idx, }) {
73
- var _a;
73
+ var _a, _b;
74
74
  const { pathname } = (0, react_router_dom_1.useLocation)();
75
75
  const { usePageProps } = (0, hooks_1.useThemeHooks)();
76
76
  const pageProps = usePageProps();
77
- const isMarkdownPage = ((_a = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _a === void 0 ? void 0 : _a.type) === 'markdown';
77
+ const isMarkdownPage = ((_a = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _a === void 0 ? void 0 : _a.type) === 'markdown' || ((_b = pageProps === null || pageProps === void 0 ? void 0 : pageProps.metadata) === null || _b === void 0 ? void 0 : _b.type) === 'asciidoc';
78
78
  const linkEl = (react_1.default.createElement("a", { "aria-label": `link to ${id}`, href: `#${id}`, className: (0, utils_1.concatClassNames)('anchor', 'before') },
79
79
  react_1.default.createElement(LinkIcon_1.LinkIcon, { size: "14px", color: "--heading-anchor-color" })));
80
80
  return (0, react_1.createElement)(`h${level}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.64.0-next.1",
3
+ "version": "0.64.0-next.2",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -81,7 +81,7 @@
81
81
  "openapi-sampler": "^1.7.2",
82
82
  "react-calendar": "5.1.0",
83
83
  "react-date-picker": "11.0.0",
84
- "@redocly/config": "0.44.1"
84
+ "@redocly/config": "0.44.2"
85
85
  },
86
86
  "scripts": {
87
87
  "watch": "tsc -p tsconfig.build.json && (concurrently \"tsc -w -p tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\")",
@@ -1,7 +1,7 @@
1
1
  import React, { useRef, useEffect, useState } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import type { BannerConfig } from '@redocly/config';
4
+ import type { ResolvedBannerConfig } from '@redocly/config';
5
5
  import type { JSX } from 'react';
6
6
 
7
7
  import { useThemeHooks } from '@redocly/theme/core/hooks';
@@ -23,11 +23,12 @@ function setBannerHeight(height: number): void {
23
23
  }
24
24
 
25
25
  export function Banner({ className }: BannerProps): JSX.Element | null {
26
- const { useBanner, useMarkdownText } = useThemeHooks();
26
+ const { useBanner, useMarkdocRenderer } = useThemeHooks();
27
27
  const { banner, dismissBanner } = useBanner();
28
- const [displayBanner, setDisplayBanner] = useState<BannerConfig | undefined>(undefined);
28
+ const [displayBanner, setDisplayBanner] = useState<ResolvedBannerConfig | undefined>(undefined);
29
29
  const [isVisible, setIsVisible] = useState(false);
30
- const markdownContent = useMarkdownText(displayBanner?.content || '');
30
+
31
+ const markdownContent = useMarkdocRenderer(displayBanner?.ast);
31
32
  const bannerRef = useRef<HTMLDivElement>(null);
32
33
 
33
34
  useEffect(() => {
@@ -101,8 +102,7 @@ export function Banner({ className }: BannerProps): JSX.Element | null {
101
102
  return null;
102
103
  }
103
104
 
104
- const bannerColor =
105
- ((displayBanner as BannerConfig & { color?: BannerColor }).color as BannerColor) || 'info';
105
+ const bannerColor = displayBanner.color || 'info';
106
106
 
107
107
  return (
108
108
  <BannerWrapper
@@ -120,7 +120,7 @@ export function Banner({ className }: BannerProps): JSX.Element | null {
120
120
  variant="ghost"
121
121
  size="var(--banner-button-size)"
122
122
  icon={<CloseIcon color={`var(--banner-${bannerColor}-icon-color)`} size="16px" />}
123
- onClick={() => dismissBanner(displayBanner.content)}
123
+ onClick={() => dismissBanner(displayBanner.hash)}
124
124
  aria-label="Dismiss banner"
125
125
  />
126
126
  )}
@@ -1,7 +1,7 @@
1
1
  import React, { JSX } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
 
4
- import { SortOption, CatalogViewMode } from '@redocly/theme/core/types';
4
+ import { CatalogViewMode } from '@redocly/theme/core/types';
5
5
  import { FilterInput } from '@redocly/theme/components/Filter/FilterInput';
6
6
  import { CatalogSortButton } from '@redocly/theme/components/Catalog/CatalogSortButton';
7
7
  import { CatalogViewModeToggle } from '@redocly/theme/components/Catalog/CatalogViewModeToggle';
@@ -10,8 +10,8 @@ import { breakpoints } from '@redocly/theme/core';
10
10
  export type CatalogActionsRowProps = {
11
11
  searchQuery: string;
12
12
  setSearchQuery: (updatedTerm: string) => void;
13
- sortOption: SortOption | null;
14
- setSortOption: (option: SortOption | null) => void;
13
+ sortOption: string | null;
14
+ setSortOption: (option: string | null) => void;
15
15
  viewMode?: CatalogViewMode;
16
16
  onViewModeChange?: (mode: CatalogViewMode) => void;
17
17
  isDetailsPage?: boolean;
@@ -9,7 +9,7 @@ import { CatalogHighlight } from '@redocly/theme/components/Catalog/CatalogHighl
9
9
  import { GraphIcon } from '@redocly/theme/icons/GraphIcon/GraphIcon';
10
10
  import { ArrowRightIcon } from '@redocly/theme/icons/ArrowRightIcon/ArrowRightIcon';
11
11
  import { ArrowUpRightIcon } from '@redocly/theme/icons/ArrowUpRightIcon/ArrowUpRightIcon';
12
- import { CatalogTagsWithTooltip } from '@redocly/theme/components/Catalog/CatalogTagsWithTooltip';
12
+ import { CatalogTags } from '@redocly/theme/components/Catalog/CatalogTags';
13
13
  import { CatalogEntityIcon } from '@redocly/theme/components/Catalog/CatalogEntityIcon';
14
14
  import { getPathPrefix } from '@redocly/theme/core/utils';
15
15
 
@@ -54,7 +54,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
54
54
  <CardMetadataSection>
55
55
  <MetadataRow>
56
56
  <MetadataLabel>{translate('catalog.metadata.domains', 'Domains:')}</MetadataLabel>
57
- <CatalogTagsWithTooltip
57
+ <CatalogTags
58
58
  items={entity.domains?.map((domain) => domain.title) || []}
59
59
  showPlaceholder={true}
60
60
  tagProps={{
@@ -71,7 +71,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
71
71
 
72
72
  <MetadataRow>
73
73
  <MetadataLabel>{translate('catalog.metadata.owners', 'Owners:')}</MetadataLabel>
74
- <CatalogTagsWithTooltip
74
+ <CatalogTags
75
75
  items={entity.owners?.map((owner) => owner.key) || []}
76
76
  showPlaceholder={true}
77
77
  showAvatars={true}
@@ -80,7 +80,6 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
80
80
  fontSize: 'var(--catalog-card-font-size)',
81
81
  backgroundColor: 'var(--catalog-card-icon-bg-color)',
82
82
  borderRadius: 'var(--border-radius-xl)',
83
- paddingLeft: 'var(--catalog-card-metadata-owner-tag-left-padding)',
84
83
  },
85
84
  textTransform: 'none',
86
85
  variant: 'outline',
@@ -93,7 +92,7 @@ export function CatalogCard({ entity, catalogConfig }: CatalogCardProps): JSX.El
93
92
  <Divider />
94
93
 
95
94
  <CardFooter hasTags={!!entity.tags?.length}>
96
- <CatalogTagsWithTooltip
95
+ <CatalogTags
97
96
  items={entity.tags || []}
98
97
  tagProps={{
99
98
  style: {
@@ -179,7 +178,6 @@ const ArrowCircle = styled.div`
179
178
  const CardContent = styled.div`
180
179
  min-width: 0;
181
180
  padding: var(--catalog-card-padding-vertical) var(--catalog-card-padding-horizontal);
182
- height: 100%;
183
181
  `;
184
182
 
185
183
  const CardFooter = styled.div<{ hasTags: boolean }>`