@xyd-js/framework 0.1.0-xyd.12 → 0.1.0-xyd.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js DELETED
@@ -1,694 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // packages/react/index.ts
30
- var react_exports = {};
31
- __export(react_exports, {
32
- Framework: () => Framework,
33
- FwBreadcrumbs: () => FwBreadcrumbs,
34
- FwNav: () => FwNav,
35
- FwNavLinks: () => FwNavLinks,
36
- FwSidebarGroups: () => FwSidebarGroups,
37
- FwSubNav: () => FwSubNav,
38
- FwToc: () => FwToc,
39
- useMatchedSubNav: () => useMatchedSubNav
40
- });
41
- module.exports = __toCommonJS(react_exports);
42
-
43
- // packages/react/components/index.tsx
44
- var import_react6 = __toESM(require("react"));
45
- var import_react_router3 = require("react-router");
46
- var import_ui3 = require("@xyd-js/ui");
47
- var import_writer2 = require("@xyd-js/components/writer");
48
-
49
- // packages/react/contexts/framework.tsx
50
- var import_react = __toESM(require("react"));
51
- var framework = {
52
- settings: {},
53
- sidebarGroups: []
54
- };
55
- var FrameworkContext = (0, import_react.createContext)(framework);
56
- function Framework(props) {
57
- return /* @__PURE__ */ import_react.default.createElement(FrameworkContext.Provider, { value: {
58
- settings: props.settings,
59
- sidebarGroups: props.sidebarGroups,
60
- toc: props.toc,
61
- breadcrumbs: props.breadcrumbs,
62
- navlinks: props.navlinks
63
- } }, props.children);
64
- }
65
- function useSidebarGroups() {
66
- const ctx = (0, import_react.useContext)(FrameworkContext);
67
- return ctx.sidebarGroups;
68
- }
69
- function useSettings() {
70
- const ctx = (0, import_react.useContext)(FrameworkContext);
71
- return ctx.settings;
72
- }
73
- function useToC() {
74
- const ctx = (0, import_react.useContext)(FrameworkContext);
75
- return ctx.toc;
76
- }
77
- function useBreadcrumbs() {
78
- const ctx = (0, import_react.useContext)(FrameworkContext);
79
- return ctx.breadcrumbs;
80
- }
81
- function useNavLinks() {
82
- const ctx = (0, import_react.useContext)(FrameworkContext);
83
- return ctx.navlinks;
84
- }
85
-
86
- // packages/react/components/sidebar/sidebar-group.tsx
87
- var import_react3 = __toESM(require("react"));
88
- var import_react_router = require("react-router");
89
-
90
- // packages/react/contexts/ui.tsx
91
- var import_react2 = require("react");
92
- var UIContext = (0, import_react2.createContext)({
93
- href: "",
94
- setHref: (v) => {
95
- }
96
- });
97
-
98
- // packages/react/components/sidebar/sidebar-group.tsx
99
- var groupContext = (0, import_react3.createContext)({
100
- active: () => [false, () => {
101
- }],
102
- onClick: () => null
103
- // TODO: should be deprecated?
104
- });
105
- function FwSidebarGroupContext({
106
- children,
107
- onePathBehaviour,
108
- clientSideRouting,
109
- initialActiveItems
110
- }) {
111
- let groupBehaviour;
112
- if (onePathBehaviour) {
113
- groupBehaviour = useOnePathBehaviour(initialActiveItems);
114
- } else {
115
- groupBehaviour = useDefaultBehaviour(initialActiveItems);
116
- }
117
- const location = (0, import_react_router.useLocation)();
118
- const [href, setHref] = (0, import_react3.useState)(location.pathname);
119
- return /* @__PURE__ */ import_react3.default.createElement(UIContext.Provider, { value: {
120
- href,
121
- setHref: (value) => {
122
- setHref(value);
123
- }
124
- } }, /* @__PURE__ */ import_react3.default.createElement(groupContext.Provider, { value: {
125
- active: groupBehaviour,
126
- onClick: clientSideRouting ? (event, item) => {
127
- setHref(item.href);
128
- scrollToDataSlug(event, item);
129
- } : void 0
130
- } }, children));
131
- }
132
- function useGroup() {
133
- return (0, import_react3.useContext)(groupContext);
134
- }
135
- function getLastValue(set) {
136
- let value;
137
- for (value of set) ;
138
- return value;
139
- }
140
- function stringify(item) {
141
- var _a;
142
- return JSON.stringify({
143
- title: item.title,
144
- href: item.href,
145
- items: (_a = item.items) == null ? void 0 : _a.map((item2) => stringify(item2))
146
- });
147
- }
148
- function recursiveSearch(items, href, levels = []) {
149
- for (let i = 0; i < items.length; i++) {
150
- const item = items[i];
151
- if (item.href === href) {
152
- return [...levels, i];
153
- }
154
- if (item.items) {
155
- const result = recursiveSearch(item.items, href, [...levels, i]);
156
- if (result) {
157
- return result;
158
- }
159
- }
160
- }
161
- return null;
162
- }
163
- function calcActive(groups, url) {
164
- const initialActiveItems = [];
165
- groups.forEach((group) => {
166
- const activeLevels = recursiveSearch(group.items, url) || [];
167
- activeLevels.reduce((acc, index) => {
168
- initialActiveItems.push({
169
- ...acc[index],
170
- active: true
171
- });
172
- return acc[index].items;
173
- }, group.items);
174
- return group;
175
- });
176
- return initialActiveItems;
177
- }
178
- function useDefaultBehaviour(initialActiveItems) {
179
- const groups = useSidebarGroups();
180
- const [weakSet] = (0, import_react3.useState)(() => new Set(initialActiveItems.map((item) => stringify(item))));
181
- const [, setForceUpdate] = (0, import_react3.useState)(0);
182
- (0, import_react3.useEffect)(() => {
183
- window.addEventListener("xyd.history.pushState", (event) => {
184
- var _a;
185
- const url = (_a = event.detail) == null ? void 0 : _a.url;
186
- if (!url) {
187
- return;
188
- }
189
- const active = calcActive(groups, url);
190
- weakSet.clear();
191
- active.forEach((item) => {
192
- addItem(item);
193
- });
194
- });
195
- }, []);
196
- const forceUpdate = () => setForceUpdate((prev) => prev + 1);
197
- const addItem = (item) => {
198
- weakSet.add(stringify(item));
199
- forceUpdate();
200
- };
201
- const deleteItem = (item) => {
202
- weakSet.delete(stringify(item));
203
- forceUpdate();
204
- };
205
- const hasItem = (item) => {
206
- return weakSet.has(stringify(item));
207
- };
208
- return (item) => [
209
- hasItem(item) || false,
210
- () => {
211
- if (hasItem(item)) {
212
- deleteItem(item);
213
- } else {
214
- addItem(item);
215
- }
216
- }
217
- ];
218
- }
219
- function useOnePathBehaviour(initialActiveItems) {
220
- const [weakSet] = (0, import_react3.useState)(() => new Set(initialActiveItems.map((item) => stringify(item))));
221
- const [lastLevel, setLastLevel] = (0, import_react3.useState)(false);
222
- const [, setForceUpdate] = (0, import_react3.useState)(0);
223
- const forceUpdate = () => setForceUpdate((prev) => prev + 1);
224
- const addItem = (item) => {
225
- weakSet.add(stringify(item));
226
- forceUpdate();
227
- };
228
- const deleteItem = (item) => {
229
- weakSet.delete(stringify(item));
230
- forceUpdate();
231
- };
232
- const hasItem = (item) => {
233
- return weakSet.has(stringify(item));
234
- };
235
- const clear = () => {
236
- weakSet.clear();
237
- forceUpdate();
238
- };
239
- return (item) => [
240
- hasItem(item),
241
- () => {
242
- setLastLevel(item.level);
243
- if (hasItem(item) && item.level == 0) {
244
- setLastLevel(false);
245
- clear();
246
- return;
247
- }
248
- if (hasItem(item)) {
249
- setLastLevel(false);
250
- deleteItem(item);
251
- return;
252
- }
253
- if ((item.level || 0) > (lastLevel || 0) || lastLevel == false) {
254
- addItem(item);
255
- } else {
256
- const v = getLastValue(weakSet);
257
- deleteItem(JSON.parse(v));
258
- addItem(item);
259
- }
260
- }
261
- ];
262
- }
263
- function scrollToDataSlug(event, item) {
264
- event.preventDefault();
265
- const dataSlug = document.querySelector(`[data-slug="${item.href}"]`);
266
- if (dataSlug) {
267
- dataSlug.scrollIntoView({ block: "start", inline: "nearest" });
268
- }
269
- }
270
-
271
- // packages/react/components/sidebar/sidebar.tsx
272
- var import_react4 = __toESM(require("react"));
273
- var import_writer = require("@xyd-js/components/writer");
274
- var import_ui2 = require("@xyd-js/ui");
275
- function FwSidebarItemGroup(props) {
276
- return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(import_ui2.UISidebar.ItemHeader, null, props.group), props.items.map((item, index) => /* @__PURE__ */ import_react4.default.createElement(
277
- FwSidebarItem,
278
- {
279
- key: index + item.href,
280
- title: item.title,
281
- href: item.href,
282
- items: item.items,
283
- active: item.active,
284
- level: 0
285
- }
286
- )));
287
- }
288
- var components = {
289
- Frontmatter: {
290
- // TODO: css
291
- Title: ({ children }) => /* @__PURE__ */ import_react4.default.createElement("div", { style: {
292
- display: "flex",
293
- alignItems: "center",
294
- justifyContent: "space-between",
295
- width: "100%",
296
- gap: "10px"
297
- } }, children)
298
- },
299
- Badge: ({ children }) => /* @__PURE__ */ import_react4.default.createElement(import_writer.Badge, null, children)
300
- };
301
- function mdxExport(code, components2) {
302
- const scope = {
303
- Fragment: import_react4.default.Fragment,
304
- jsxs: import_react4.default.createElement,
305
- jsx: import_react4.default.createElement,
306
- jsxDEV: import_react4.default.createElement,
307
- _jsxs: import_react4.default.createElement,
308
- _jsx: import_react4.default.createElement,
309
- ...components2
310
- };
311
- const fn = new Function(...Object.keys(scope), `return ${code}`);
312
- return fn(...Object.values(scope));
313
- }
314
- function FwSidebarItem(props) {
315
- var _a, _b, _c;
316
- const { active, onClick } = useGroup();
317
- const [isActive, setActive] = active(props);
318
- let Title;
319
- if (typeof props.title === "object" && "code" in props.title) {
320
- const code = props.title.code;
321
- Title = () => mdxExport(
322
- // TODO: in the future better mechanism + support props + better components (provider?) - similar to codehik
323
- code.replace("() => ", ""),
324
- components
325
- );
326
- } else {
327
- Title = () => props.title;
328
- }
329
- return /* @__PURE__ */ import_react4.default.createElement(
330
- import_ui2.UISidebar.Item,
331
- {
332
- button: !!((_a = props.items) == null ? void 0 : _a.length),
333
- href: props.href,
334
- active: isActive,
335
- onClick: () => {
336
- setActive();
337
- }
338
- },
339
- /* @__PURE__ */ import_react4.default.createElement(Title, null),
340
- ((_b = props.items) == null ? void 0 : _b.length) && /* @__PURE__ */ import_react4.default.createElement(import_ui2.UISidebar.SubTree, { isOpen: isActive }, /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, (_c = props.items) == null ? void 0 : _c.map((item, index) => /* @__PURE__ */ import_react4.default.createElement(
341
- FwSidebarItem,
342
- {
343
- key: index + item.href,
344
- title: item.title,
345
- href: item.href,
346
- items: item.items,
347
- active: active(item)[0],
348
- level: (props.level || 0) + 1
349
- }
350
- ))))
351
- );
352
- }
353
-
354
- // packages/react/components/index.tsx
355
- var import_ui4 = require("@xyd-js/ui");
356
-
357
- // packages/react/utils/manualHydration.ts
358
- var import_react5 = __toESM(require("react"));
359
- function manualHydration(obj, key = 0) {
360
- if (typeof obj !== "object" || obj === null) {
361
- return import_react5.default.createElement(import_react5.default.Fragment, { key });
362
- }
363
- const { type, props } = obj || {};
364
- if (typeof type !== "string" && typeof type !== "function") {
365
- return import_react5.default.createElement(import_react5.default.Fragment, { key });
366
- }
367
- let children = [];
368
- if (props == null ? void 0 : props.children) {
369
- if (Array.isArray(props.children)) {
370
- children = props.children.map((child, i) => manualHydration(child, key + i)) || [];
371
- } else {
372
- children = [manualHydration(props.children, key)];
373
- }
374
- }
375
- const elementProps = { ...props, children, key };
376
- return import_react5.default.createElement(type, elementProps);
377
- }
378
-
379
- // packages/react/hooks/useMatchedNav.tsx
380
- var import_react_router2 = require("react-router");
381
- function normalizeHref(href) {
382
- if (href.startsWith("/")) {
383
- return href;
384
- }
385
- return `/${href}`;
386
- }
387
- function useMatchedSubNav() {
388
- var _a, _b, _c;
389
- const settings = useSettings();
390
- const location = (0, import_react_router2.useLocation)();
391
- const matchedSubnav = (_c = (_b = (_a = settings.structure) == null ? void 0 : _a.header) == null ? void 0 : _b.filter((item) => item.sub)) == null ? void 0 : _c.find((item) => {
392
- var _a2;
393
- return normalizeHref(location.pathname).startsWith(normalizeHref(((_a2 = item.sub) == null ? void 0 : _a2.match) || ""));
394
- });
395
- if (!matchedSubnav) {
396
- return null;
397
- }
398
- return matchedSubnav.sub || null;
399
- }
400
-
401
- // packages/react/components/index.tsx
402
- function FwNavLogo() {
403
- var _a, _b, _c;
404
- const settings = useSettings();
405
- const logo = (0, import_react6.isValidElement)((_a = settings == null ? void 0 : settings.styling) == null ? void 0 : _a.logo) ? (_b = settings == null ? void 0 : settings.styling) == null ? void 0 : _b.logo : manualHydration((_c = settings == null ? void 0 : settings.styling) == null ? void 0 : _c.logo);
406
- return /* @__PURE__ */ import_react6.default.createElement("a", { href: "/" }, logo);
407
- }
408
- function FwNav({ kind }) {
409
- var _a, _b, _c;
410
- const matchedSubnav = useMatchedSubNav();
411
- const location = (0, import_react_router3.useLocation)();
412
- const settings = useSettings();
413
- const headers = matchedSubnav ? matchedSubnav == null ? void 0 : matchedSubnav.items : (_a = settings == null ? void 0 : settings.structure) == null ? void 0 : _a.header;
414
- const active = headers == null ? void 0 : headers.find((item) => location.pathname.startsWith(item.url || ""));
415
- return /* @__PURE__ */ import_react6.default.createElement(
416
- import_ui4.Nav,
417
- {
418
- value: (active == null ? void 0 : active.url) || "",
419
- kind,
420
- logo: /* @__PURE__ */ import_react6.default.createElement(FwNavLogo, null),
421
- onChange: () => {
422
- }
423
- },
424
- (_c = (_b = settings == null ? void 0 : settings.structure) == null ? void 0 : _b.header) == null ? void 0 : _c.map((item, index) => {
425
- return /* @__PURE__ */ import_react6.default.createElement(
426
- import_ui4.Nav.Item,
427
- {
428
- key: index + (item.url || "") + item.name,
429
- href: (item == null ? void 0 : item.url) || "",
430
- value: item.url
431
- },
432
- item.name
433
- );
434
- })
435
- );
436
- }
437
- function FwSubNav() {
438
- const matchedSubnav = useMatchedSubNav();
439
- const location = (0, import_react_router3.useLocation)();
440
- if (!matchedSubnav) {
441
- return null;
442
- }
443
- const active = matchedSubnav == null ? void 0 : matchedSubnav.items.findLast((item) => location.pathname.startsWith(item.url || ""));
444
- return /* @__PURE__ */ import_react6.default.createElement(
445
- import_ui3.SubNav,
446
- {
447
- title: (matchedSubnav == null ? void 0 : matchedSubnav.name) || "",
448
- value: (active == null ? void 0 : active.url) || "",
449
- onChange: () => {
450
- }
451
- },
452
- matchedSubnav == null ? void 0 : matchedSubnav.items.map((item, index) => {
453
- return /* @__PURE__ */ import_react6.default.createElement(import_ui3.SubNav.Item, { value: item.url || "", href: item.url }, item.name);
454
- })
455
- );
456
- }
457
- function recursiveSearch2(items, href, levels = []) {
458
- for (let i = 0; i < items.length; i++) {
459
- const item = items[i];
460
- if (item.href === href) {
461
- return [...levels, i];
462
- }
463
- if (item.items) {
464
- const result = recursiveSearch2(item.items, href, [...levels, i]);
465
- if (result) {
466
- return result;
467
- }
468
- }
469
- }
470
- return null;
471
- }
472
- function FwSidebarGroups(props) {
473
- var _a, _b, _c;
474
- const groups = useSidebarGroups();
475
- const settings = useSettings();
476
- const footerItems = (_c = (_b = (_a = settings.structure) == null ? void 0 : _a.anchors) == null ? void 0 : _b.bottom) == null ? void 0 : _c.map((anchor) => {
477
- let icon;
478
- if (typeof anchor.icon === "string") {
479
- switch (anchor.icon) {
480
- case "icon-cookbook": {
481
- icon = /* @__PURE__ */ import_react6.default.createElement(IconCookbook, null);
482
- break;
483
- }
484
- case "icon-community": {
485
- icon = /* @__PURE__ */ import_react6.default.createElement(IconCommunity, null);
486
- break;
487
- }
488
- case "icon-marketplace": {
489
- icon = /* @__PURE__ */ import_react6.default.createElement(IconMarketplace, null);
490
- break;
491
- }
492
- case "icon-sdk": {
493
- icon = /* @__PURE__ */ import_react6.default.createElement(IconSDK, null);
494
- break;
495
- }
496
- default: {
497
- icon = null;
498
- }
499
- }
500
- } else {
501
- icon = (0, import_react6.isValidElement)(anchor.icon) ? anchor.icon : manualHydration(anchor.icon);
502
- }
503
- return /* @__PURE__ */ import_react6.default.createElement(import_ui3.UISidebar.FooterItem, { href: anchor.url, icon }, anchor.name);
504
- });
505
- const location = (0, import_react_router3.useLocation)();
506
- const initialActiveItems = [];
507
- groups.forEach((group) => {
508
- const activeLevels = recursiveSearch2(group.items, location.pathname) || [];
509
- activeLevels.reduce((acc, index) => {
510
- initialActiveItems.push(acc[index]);
511
- acc[index].active = true;
512
- return acc[index].items;
513
- }, group.items);
514
- return group;
515
- });
516
- return /* @__PURE__ */ import_react6.default.createElement(
517
- FwSidebarGroupContext,
518
- {
519
- onePathBehaviour: props.onePathBehaviour,
520
- clientSideRouting: props.clientSideRouting,
521
- initialActiveItems
522
- },
523
- /* @__PURE__ */ import_react6.default.createElement(import_ui3.UISidebar, { footerItems: footerItems && footerItems }, groups == null ? void 0 : groups.map((group, index) => /* @__PURE__ */ import_react6.default.createElement(
524
- FwSidebarItemGroup,
525
- {
526
- key: index + group.group,
527
- ...group
528
- }
529
- )))
530
- );
531
- }
532
- function FwToc() {
533
- var _a;
534
- const toc = useToC();
535
- if (!toc) {
536
- return null;
537
- }
538
- const flatToc = [];
539
- const flatten = (toc2) => {
540
- if (!toc2) {
541
- return;
542
- }
543
- toc2.forEach((item) => {
544
- flatToc.push({
545
- depth: item.depth,
546
- value: item.value
547
- });
548
- flatten(item.children);
549
- });
550
- };
551
- flatten(toc);
552
- const tocFinal = flatToc.filter((item) => item.depth === 2);
553
- const location = (0, import_react_router3.useLocation)();
554
- const defaultValue = location.hash ? location.hash.replace("#", "") : (_a = tocFinal[0]) == null ? void 0 : _a.value;
555
- return /* @__PURE__ */ import_react6.default.createElement(import_ui3.Toc, { defaultValue }, tocFinal.map((item, index) => /* @__PURE__ */ import_react6.default.createElement(
556
- import_ui3.Toc.Item,
557
- {
558
- key: index + item.value + item.depth,
559
- value: item.value
560
- },
561
- item.value
562
- )));
563
- }
564
- function FwBreadcrumbs() {
565
- const breadcrumbs = useBreadcrumbs();
566
- return /* @__PURE__ */ import_react6.default.createElement(
567
- import_writer2.Breadcrumbs,
568
- {
569
- items: breadcrumbs || []
570
- }
571
- );
572
- }
573
- function FwNavLinks() {
574
- var _a, _b;
575
- const navlinks = useNavLinks();
576
- if (typeof ((_a = navlinks == null ? void 0 : navlinks.prev) == null ? void 0 : _a.title) !== "string" || typeof ((_b = navlinks == null ? void 0 : navlinks.next) == null ? void 0 : _b.title) !== "string") {
577
- return null;
578
- }
579
- if ((navlinks == null ? void 0 : navlinks.prev) || (navlinks == null ? void 0 : navlinks.next)) {
580
- return /* @__PURE__ */ import_react6.default.createElement(
581
- import_writer2.NavLinks,
582
- {
583
- prev: navlinks.prev,
584
- next: navlinks.next
585
- }
586
- );
587
- }
588
- return null;
589
- }
590
- function IconCookbook() {
591
- return /* @__PURE__ */ import_react6.default.createElement(
592
- "svg",
593
- {
594
- xmlns: "http://www.w3.org/2000/svg",
595
- viewBox: "0 0 24 24",
596
- width: "1em",
597
- height: "1em"
598
- },
599
- /* @__PURE__ */ import_react6.default.createElement(
600
- "path",
601
- {
602
- fillRule: "evenodd",
603
- d: "M14.447 7.106a1 1 0 0 1 .447 1.341l-4 8a1 1 0 1 1-1.788-.894l4-8a1 1 0 0 1 1.341-.447ZM6.6 7.2a1 1 0 0 1 .2 1.4L4.25 12l2.55 3.4a1 1 0 0 1-1.6 1.2l-3-4a1 1 0 0 1 0-1.2l3-4a1 1 0 0 1 1.4-.2Zm10.8 0a1 1 0 0 1 1.4.2l3 4a1 1 0 0 1 0 1.2l-3 4a1 1 0 0 1-1.6-1.2l2.55-3.4-2.55-3.4a1 1 0 0 1 .2-1.4Z",
604
- clipRule: "evenodd"
605
- }
606
- )
607
- );
608
- }
609
- function IconCommunity() {
610
- return /* @__PURE__ */ import_react6.default.createElement(
611
- "svg",
612
- {
613
- xmlns: "http://www.w3.org/2000/svg",
614
- fill: "currentColor",
615
- viewBox: "0 0 24 24",
616
- width: "1em",
617
- height: "1em"
618
- },
619
- /* @__PURE__ */ import_react6.default.createElement(
620
- "path",
621
- {
622
- fillRule: "evenodd",
623
- d: "M10.5 8.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM12 5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM3 9.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm16 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-3 1a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM8 18c0-.974.438-1.684 1.142-2.185C9.876 15.293 10.911 15 12 15c1.09 0 2.124.293 2.858.815.704.5 1.142 1.21 1.142 2.185a1 1 0 1 0 2 0c0-1.692-.812-2.982-1.983-3.815C14.876 13.373 13.411 13 12 13c-1.41 0-2.876.373-4.017 1.185C6.812 15.018 6 16.308 6 18a1 1 0 1 0 2 0Zm-3.016-3.675a1 1 0 0 1-.809 1.16C2.79 15.732 2 16.486 2 17.5a1 1 0 1 1-2 0c0-2.41 1.978-3.655 3.825-3.985a1 1 0 0 1 1.16.81Zm14.84 1.16a1 1 0 1 1 .351-1.97C22.022 13.845 24 15.09 24 17.5a1 1 0 1 1-2 0c0-1.014-.79-1.768-2.175-2.015Z",
624
- clipRule: "evenodd"
625
- }
626
- )
627
- );
628
- }
629
- function IconMarketplace() {
630
- return /* @__PURE__ */ import_react6.default.createElement(
631
- "svg",
632
- {
633
- xmlns: "http://www.w3.org/2000/svg",
634
- viewBox: "0 0 24 24",
635
- fill: "none",
636
- width: "1em",
637
- height: "1em"
638
- },
639
- /* @__PURE__ */ import_react6.default.createElement(
640
- "path",
641
- {
642
- "fill-rule": "evenodd",
643
- "clip-rule": "evenodd",
644
- d: "M3.78163 3.28449C3.8768 2.96725 4.16879 2.75 4.5 2.75H19.5C19.8312 2.75 20.1232 2.96725 20.2184 3.28449L21.7184 8.28449C21.7393 8.3544 21.75 8.42701 21.75 8.5C21.75 10.5711 20.0711 12.25 18 12.25C16.7733 12.25 15.6842 11.661 15 10.7504C14.3158 11.661 13.2267 12.25 12 12.25C10.7733 12.25 9.68417 11.661 9 10.7504C8.31583 11.661 7.2267 12.25 6 12.25C3.92893 12.25 2.25 10.5711 2.25 8.5C2.25 8.42701 2.26066 8.3544 2.28163 8.28449L3.78163 3.28449ZM9.75 8.5C9.75 9.74264 10.7574 10.75 12 10.75C13.2426 10.75 14.25 9.74264 14.25 8.5C14.25 8.08579 14.5858 7.75 15 7.75C15.4142 7.75 15.75 8.08579 15.75 8.5C15.75 9.74264 16.7574 10.75 18 10.75C19.2083 10.75 20.1942 9.79754 20.2477 8.60244L18.942 4.25H5.05802L3.75229 8.60244C3.80584 9.79753 4.79169 10.75 6 10.75C7.24264 10.75 8.25 9.74264 8.25 8.5C8.25 8.08579 8.58579 7.75 9 7.75C9.41421 7.75 9.75 8.08579 9.75 8.5Z"
645
- }
646
- ),
647
- /* @__PURE__ */ import_react6.default.createElement(
648
- "path",
649
- {
650
- "fill-rule": "evenodd",
651
- "clip-rule": "evenodd",
652
- d: "M4 10.25C4.41421 10.25 4.75 10.5858 4.75 11V19.75H6.5C6.91421 19.75 7.25 20.0858 7.25 20.5C7.25 20.9142 6.91421 21.25 6.5 21.25H4C3.58579 21.25 3.25 20.9142 3.25 20.5V11C3.25 10.5858 3.58579 10.25 4 10.25ZM20 10.25C20.4142 10.25 20.75 10.5858 20.75 11V20.5C20.75 20.9142 20.4142 21.25 20 21.25H10.5C10.0858 21.25 9.75 20.9142 9.75 20.5C9.75 20.0858 10.0858 19.75 10.5 19.75H19.25V11C19.25 10.5858 19.5858 10.25 20 10.25Z"
653
- }
654
- ),
655
- /* @__PURE__ */ import_react6.default.createElement(
656
- "path",
657
- {
658
- d: "M12.003 19C11.31 18.9996 10.6384 18.7598 10.102 18.3213C9.56564 17.8829 9.19745 17.2726 9.05983 16.594C8.92222 15.9154 9.02364 15.2101 9.34693 14.5976C9.67022 13.9852 10.1955 13.5032 10.8337 13.2333C11.5673 12.9262 12.393 12.9221 13.1296 13.2222C13.8661 13.5222 14.4536 14.1018 14.7631 14.8338C15.0727 15.5659 15.0791 16.3907 14.7808 17.1274C14.4827 17.8642 13.9042 18.4527 13.1724 18.7641C12.8025 18.9205 12.4047 19.0007 12.003 19ZM11.1458 14.7215C11.1124 14.7215 11.0803 14.7348 11.0567 14.7584C11.0331 14.782 11.0198 14.8141 11.0198 14.8475V17.1923C11.0198 17.2258 11.0331 17.2578 11.0567 17.2814C11.0803 17.305 11.1124 17.3183 11.1458 17.3183C11.1671 17.3183 11.188 17.3128 11.2065 17.3024L13.3399 16.13C13.3597 16.1192 13.3761 16.1032 13.3876 16.0838C13.3991 16.0644 13.4052 16.0423 13.4052 16.0197C13.4052 15.9972 13.3991 15.9751 13.3876 15.9557C13.3761 15.9362 13.3597 15.9203 13.3399 15.9094L11.2063 14.7373C11.1879 14.727 11.1671 14.7215 11.1458 14.7215Z"
659
- }
660
- )
661
- );
662
- }
663
- function IconSDK() {
664
- return /* @__PURE__ */ import_react6.default.createElement(
665
- "svg",
666
- {
667
- viewBox: "0 0 15 15",
668
- xmlns: "http://www.w3.org/2000/svg",
669
- width: "1em",
670
- height: "1em"
671
- },
672
- /* @__PURE__ */ import_react6.default.createElement(
673
- "path",
674
- {
675
- d: "M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",
676
- fill: "currentColor",
677
- fillRule: "evenodd",
678
- clipRule: "evenodd"
679
- }
680
- )
681
- );
682
- }
683
- // Annotate the CommonJS export names for ESM import in node:
684
- 0 && (module.exports = {
685
- Framework,
686
- FwBreadcrumbs,
687
- FwNav,
688
- FwNavLinks,
689
- FwSidebarGroups,
690
- FwSubNav,
691
- FwToc,
692
- useMatchedSubNav
693
- });
694
- //# sourceMappingURL=react.js.map