@tdacorp/hyle-sdk 0.24.0 → 0.26.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 (46) hide show
  1. package/README.md +7 -5
  2. package/dist/{embed-B7T--kTT.d.cts → brand-CwXvdSkk.d.ts} +14 -2
  3. package/dist/{embed-DavTgSU4.d.ts → brand-IuZSB9UX.d.cts} +14 -2
  4. package/dist/check-routes-bin.js +10 -5
  5. package/dist/{chunk-4REU4HJI.js → chunk-3UQGU62T.js} +22 -5
  6. package/dist/{chunk-SY2FMIRZ.js → chunk-IDBQSMWT.js} +1 -1
  7. package/dist/{chunk-5TKJH2XC.js → chunk-NUQQ6VHH.js} +267 -43
  8. package/dist/{chunk-Y3BACEWA.js → chunk-T4EZAQFU.js} +129 -3
  9. package/dist/chunk-VAR2B7S6.js +82 -0
  10. package/dist/{chunk-U74B7AUG.js → chunk-ZWKAEWEW.js} +22 -74
  11. package/dist/{client-BErei7cE.d.ts → client-B2zi_BGq.d.ts} +11 -4
  12. package/dist/{client-DrB2vcTi.d.cts → client-DBZTvcCh.d.cts} +11 -4
  13. package/dist/comments.cjs +25 -1
  14. package/dist/comments.js +4 -2
  15. package/dist/html.cjs +129 -3
  16. package/dist/html.js +1 -1
  17. package/dist/index.cjs +22 -5
  18. package/dist/index.d.cts +4 -4
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +1 -1
  21. package/dist/next.cjs +674 -211
  22. package/dist/next.d.cts +44 -18
  23. package/dist/next.d.ts +44 -18
  24. package/dist/next.js +241 -135
  25. package/dist/react.cjs +401 -46
  26. package/dist/react.d.cts +114 -4
  27. package/dist/react.d.ts +114 -4
  28. package/dist/react.js +14 -4
  29. package/dist/reactions.cjs +25 -1
  30. package/dist/reactions.js +4 -2
  31. package/dist/{resolve-03IVloXU.d.cts → resolve-0nGnsIHo.d.cts} +1 -1
  32. package/dist/{resolve-BseM68oy.d.ts → resolve-CguSaZLa.d.ts} +1 -1
  33. package/dist/{revalidation-callback-BQl77tQR.d.cts → revalidation-callback-FT9ik1dh.d.cts} +11 -0
  34. package/dist/{revalidation-callback-BQl77tQR.d.ts → revalidation-callback-FT9ik1dh.d.ts} +11 -0
  35. package/dist/share-client.cjs +498 -0
  36. package/dist/share-client.d.cts +99 -0
  37. package/dist/share-client.d.ts +99 -0
  38. package/dist/share-client.js +390 -0
  39. package/dist/styles.css +176 -1
  40. package/dist/{types-Dx-fEiZd.d.cts → types-CdaIzSjg.d.cts} +10 -3
  41. package/dist/{types-Dx-fEiZd.d.ts → types-CdaIzSjg.d.ts} +10 -3
  42. package/dist/use-cache.cjs +10 -5
  43. package/dist/use-cache.d.cts +3 -3
  44. package/dist/use-cache.d.ts +3 -3
  45. package/dist/use-cache.js +2 -2
  46. package/package.json +1 -1
@@ -9,7 +9,7 @@ import {
9
9
  scopeId,
10
10
  stringsFor,
11
11
  youtubeId
12
- } from "./chunk-Y3BACEWA.js";
12
+ } from "./chunk-T4EZAQFU.js";
13
13
  import {
14
14
  hostAssetHtml,
15
15
  themeFontHrefs,
@@ -70,7 +70,31 @@ var SHAPES = {
70
70
  /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
71
71
  /* @__PURE__ */ jsx("path", { d: "m3.8 12.2 8.4-8.4" })
72
72
  ] }),
73
- refresh: /* @__PURE__ */ jsx("path", { d: "M13 8a5 5 0 1 1-1.6-3.7M13 2.5v2.8h-2.8" })
73
+ refresh: /* @__PURE__ */ jsx("path", { d: "M13 8a5 5 0 1 1-1.6-3.7M13 2.5v2.8h-2.8" }),
74
+ lock: /* @__PURE__ */ jsxs(Fragment, { children: [
75
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "7", width: "10", height: "7", rx: "1.3" }),
76
+ /* @__PURE__ */ jsx("path", { d: "M5.2 7V5a2.8 2.8 0 0 1 5.6 0v2" })
77
+ ] }),
78
+ search: /* @__PURE__ */ jsxs(Fragment, { children: [
79
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
80
+ /* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3.5 3.5" })
81
+ ] }),
82
+ sun: /* @__PURE__ */ jsxs(Fragment, { children: [
83
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "2.8" }),
84
+ /* @__PURE__ */ jsx("path", { d: "M8 1.5v1.8M8 12.7v1.8M1.5 8h1.8M12.7 8h1.8M3.4 3.4l1.3 1.3M11.3 11.3l1.3 1.3M3.4 12.6l1.3-1.3M11.3 4.7l1.3-1.3" })
85
+ ] }),
86
+ moon: /* @__PURE__ */ jsx("path", { d: "M13 9.4A5.6 5.6 0 0 1 6.6 3a5.6 5.6 0 1 0 6.4 6.4z" }),
87
+ monitor: /* @__PURE__ */ jsxs(Fragment, { children: [
88
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "3", width: "12", height: "8", rx: "1.3" }),
89
+ /* @__PURE__ */ jsx("path", { d: "M6 14h4M8 11v3" })
90
+ ] }),
91
+ sidebar: /* @__PURE__ */ jsxs(Fragment, { children: [
92
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "3", width: "12", height: "10", rx: "1.3" }),
93
+ /* @__PURE__ */ jsx("path", { d: "M6.5 3v10" })
94
+ ] }),
95
+ shield: /* @__PURE__ */ jsx("path", { d: "M8 1.5 2.5 3.6v4c0 3.2 2.3 5.4 5.5 6.9 3.2-1.5 5.5-3.7 5.5-6.9v-4z" }),
96
+ "arrow-left": /* @__PURE__ */ jsx("path", { d: "M13 8H3M7 4 3 8l4 4" }),
97
+ menu: /* @__PURE__ */ jsx("path", { d: "M2.5 4.5h11M2.5 8h11M2.5 11.5h11" })
74
98
  };
75
99
  function Icon({ name, className }) {
76
100
  return /* @__PURE__ */ jsx("svg", { className: className ? `hyle-ic ${className}` : "hyle-ic", viewBox: "0 0 16 16", "aria-hidden": "true", children: SHAPES[name] });
@@ -995,7 +1019,30 @@ import { HyleReactions } from "./reactions.js";
995
1019
 
996
1020
  // src/react/docs.tsx
997
1021
  import { DocsEnhance } from "./docs-enhance.js";
998
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1022
+
1023
+ // src/react/docs-main.tsx
1024
+ import { Fragment as Fragment9, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1025
+ function DocsMain({ article, c, components, narrowToc, prev, next, eyebrow }) {
1026
+ const { publication: pub } = article;
1027
+ const { s } = c;
1028
+ return /* @__PURE__ */ jsxs9(Fragment9, { children: [
1029
+ eyebrow,
1030
+ /* @__PURE__ */ jsx10("h1", { className: "hyle-title", children: pub.title }),
1031
+ pub.description ? /* @__PURE__ */ jsx10("p", { className: "hyle-desc", children: pub.description }) : null,
1032
+ /* @__PURE__ */ jsxs9("p", { className: "hyle-updated", children: [
1033
+ /* @__PURE__ */ jsx10(Icon, { name: "calendar" }),
1034
+ s.updated,
1035
+ " ",
1036
+ /* @__PURE__ */ jsx10("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1037
+ ] }),
1038
+ narrowToc,
1039
+ /* @__PURE__ */ jsx10(Body, { article, components, locale: c.locale }),
1040
+ /* @__PURE__ */ jsx10(Pager, { prev, next, c })
1041
+ ] });
1042
+ }
1043
+
1044
+ // src/react/docs.tsx
1045
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
999
1046
  var ROOT_ID = "hyle-docs";
1000
1047
  var NAV_ID = "hyle-docs-nav";
1001
1048
  function navTreeOf(article) {
@@ -1019,15 +1066,15 @@ function pathTo(nodes, path) {
1019
1066
  }
1020
1067
  function Branch({ nodes, current, onPath, c }) {
1021
1068
  const { Link } = c;
1022
- return /* @__PURE__ */ jsx10("ul", { children: nodes.map((node) => {
1023
- const link = /* @__PURE__ */ jsx10(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1024
- if (node.children.length === 0) return /* @__PURE__ */ jsx10("li", { children: link }, node.canonical_path);
1025
- return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsxs9("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1026
- /* @__PURE__ */ jsxs9("summary", { children: [
1027
- /* @__PURE__ */ jsx10(Icon, { name: "chev" }),
1069
+ return /* @__PURE__ */ jsx11("ul", { children: nodes.map((node) => {
1070
+ const link = /* @__PURE__ */ jsx11(Link, { href: c.href(node.canonical_path), ...node.canonical_path === current ? { "aria-current": "page" } : {}, children: node.title });
1071
+ if (node.children.length === 0) return /* @__PURE__ */ jsx11("li", { children: link }, node.canonical_path);
1072
+ return /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsxs10("details", { ...onPath.has(node.canonical_path) ? { open: true } : {}, children: [
1073
+ /* @__PURE__ */ jsxs10("summary", { children: [
1074
+ /* @__PURE__ */ jsx11(Icon, { name: "chev" }),
1028
1075
  link
1029
1076
  ] }),
1030
- /* @__PURE__ */ jsx10(Branch, { nodes: node.children, current, onPath, c })
1077
+ /* @__PURE__ */ jsx11(Branch, { nodes: node.children, current, onPath, c })
1031
1078
  ] }) }, node.canonical_path);
1032
1079
  }) });
1033
1080
  }
@@ -1041,52 +1088,224 @@ function DocsPage({ article, ...base }) {
1041
1088
  const siteName = article.breadcrumbs[0]?.title ?? "";
1042
1089
  const headingIds = article.toc.filter((t) => t.depth === 2 || t.depth === 3).map((t) => scopeId(t.id));
1043
1090
  const notTranslated = article.fallback ? s.fallbackTitle.replace("{language}", languageName(article.fallback.requested_locale, c.locale)) : void 0;
1044
- return /* @__PURE__ */ jsx10(Shell, { theme: article.theme, children: /* @__PURE__ */ jsxs9("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1045
- /* @__PURE__ */ jsx10(DocsEnhance, { headingIds, rootId: ROOT_ID }),
1046
- /* @__PURE__ */ jsxs9("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1047
- /* @__PURE__ */ jsx10(Icon, { name: "file" }),
1091
+ return /* @__PURE__ */ jsx11(Shell, { theme: article.theme, children: /* @__PURE__ */ jsxs10("div", { className: "hyle-docs", id: ROOT_ID, lang: c.locale, children: [
1092
+ /* @__PURE__ */ jsx11(DocsEnhance, { headingIds, rootId: ROOT_ID }),
1093
+ /* @__PURE__ */ jsxs10("button", { type: "button", className: "hyle-nav-bar", popoverTarget: NAV_ID, children: [
1094
+ /* @__PURE__ */ jsx11(Icon, { name: "file" }),
1048
1095
  s.menu,
1049
- /* @__PURE__ */ jsx10("span", { className: "cur", children: pub.title }),
1050
- /* @__PURE__ */ jsx10(Icon, { name: "chev-down", className: "hyle-chev" })
1096
+ /* @__PURE__ */ jsx11("span", { className: "cur", children: pub.title }),
1097
+ /* @__PURE__ */ jsx11(Icon, { name: "chev-down", className: "hyle-chev" })
1051
1098
  ] }),
1052
- /* @__PURE__ */ jsxs9("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1053
- /* @__PURE__ */ jsxs9("div", { className: "hyle-side-head", children: [
1054
- /* @__PURE__ */ jsx10("b", { children: siteName }),
1055
- /* @__PURE__ */ jsx10(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1056
- /* @__PURE__ */ jsx10("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ jsx10(Icon, { name: "x" }) })
1099
+ /* @__PURE__ */ jsxs10("aside", { className: "hyle-nav-d", id: NAV_ID, popover: "auto", "aria-label": s.docs, children: [
1100
+ /* @__PURE__ */ jsxs10("div", { className: "hyle-side-head", children: [
1101
+ /* @__PURE__ */ jsx11("b", { children: siteName }),
1102
+ /* @__PURE__ */ jsx11(Slot, { name: "docs.version", slots: base.slots, tag: "span" }),
1103
+ /* @__PURE__ */ jsx11("button", { type: "button", className: "hyle-nav-x", popoverTarget: NAV_ID, popoverTargetAction: "hide", "aria-label": s.closeMenu, children: /* @__PURE__ */ jsx11(Icon, { name: "x" }) })
1057
1104
  ] }),
1058
- /* @__PURE__ */ jsx10(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1059
- /* @__PURE__ */ jsx10("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ jsx10(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1060
- /* @__PURE__ */ jsx10(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1105
+ /* @__PURE__ */ jsx11(Slot, { name: "docs.sidebar-header", slots: base.slots, className: "hyle-side-slot" }),
1106
+ /* @__PURE__ */ jsx11("nav", { className: "hyle-tree", "aria-label": s.docs, children: /* @__PURE__ */ jsx11(Branch, { nodes: tree, current: pub.canonical_path, onPath, c }) }),
1107
+ /* @__PURE__ */ jsx11(Slot, { name: "docs.sidebar-footer", slots: base.slots, className: "hyle-side-slot" })
1061
1108
  ] }),
1062
- /* @__PURE__ */ jsxs9("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1063
- notTranslated ? /* @__PURE__ */ jsxs9("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1064
- /* @__PURE__ */ jsx10(Icon, { name: "alert" }),
1065
- /* @__PURE__ */ jsxs9("div", { children: [
1066
- /* @__PURE__ */ jsx10("b", { children: notTranslated }),
1109
+ /* @__PURE__ */ jsxs10("div", { className: "hyle-docs-main", "data-hyle-page": "docs", children: [
1110
+ notTranslated ? /* @__PURE__ */ jsxs10("div", { className: "hyle-banner", "data-kind": "warn", role: "status", children: [
1111
+ /* @__PURE__ */ jsx11(Icon, { name: "alert" }),
1112
+ /* @__PURE__ */ jsxs10("div", { children: [
1113
+ /* @__PURE__ */ jsx11("b", { children: notTranslated }),
1067
1114
  " ",
1068
1115
  s.fallbackBody
1069
1116
  ] })
1070
1117
  ] }) : null,
1071
- /* @__PURE__ */ jsx10("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ jsx10("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ jsx10("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ jsx10(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1072
- /* @__PURE__ */ jsx10("h1", { className: "hyle-title", children: pub.title }),
1073
- pub.description ? /* @__PURE__ */ jsx10("p", { className: "hyle-desc", children: pub.description }) : null,
1074
- /* @__PURE__ */ jsxs9("p", { className: "hyle-updated", children: [
1075
- /* @__PURE__ */ jsx10(Icon, { name: "calendar" }),
1076
- s.updated,
1077
- " ",
1078
- /* @__PURE__ */ jsx10("time", { dateTime: pub.updated_at, title: pub.updated_at, children: formatDate(pub.updated_at, c.locale) })
1079
- ] }),
1080
- toc.narrow,
1081
- /* @__PURE__ */ jsx10(Body, { article, components: base.components, locale: c.locale }),
1082
- /* @__PURE__ */ jsx10(Pager, { prev: article.prev, next: article.next, c }),
1083
- /* @__PURE__ */ jsx10(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1084
- /* @__PURE__ */ jsx10("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1118
+ /* @__PURE__ */ jsx11("nav", { className: "hyle-crumbs", "aria-label": s.crumbs, children: /* @__PURE__ */ jsx11("ol", { children: article.breadcrumbs.map((b, i) => /* @__PURE__ */ jsx11("li", { "aria-current": i === article.breadcrumbs.length - 1 ? "page" : void 0, children: i === article.breadcrumbs.length - 1 ? b.title : /* @__PURE__ */ jsx11(Link, { href: c.href(b.canonical_path), children: b.title }) }, b.canonical_path)) }) }),
1119
+ /* @__PURE__ */ jsx11(DocsMain, { article, c, components: base.components, narrowToc: toc.narrow, prev: article.prev, next: article.next }),
1120
+ /* @__PURE__ */ jsx11(Slot, { name: "docs.after", slots: base.slots, className: "hyle-after" }),
1121
+ /* @__PURE__ */ jsx11("span", { className: "hyle-docs-end", "aria-hidden": "true" })
1085
1122
  ] }),
1086
1123
  toc.wide
1087
1124
  ] }) });
1088
1125
  }
1089
1126
 
1127
+ // src/react/share/chrome.tsx
1128
+ import { ShareDrawerClose, ShareExpiryChip, ShareExpiryNotice, ShareFoldButton, ShareFrame, ShareMenuButton, ShareSearch, ShareThemeMenu } from "./share-client.js";
1129
+
1130
+ // src/react/share/model.ts
1131
+ var THEME_COOKIE = "hyle_theme";
1132
+ var SIDE_COOKIE = "hyle_share_side";
1133
+ var SOON_MS = 24 * 60 * 60 * 1e3;
1134
+ function expiryState(expiresAt, now) {
1135
+ if (expiresAt === null) return "none";
1136
+ const end = Date.parse(expiresAt);
1137
+ if (Number.isNaN(end) || now >= end) return "expired";
1138
+ return end - now <= SOON_MS ? "soon" : "ok";
1139
+ }
1140
+ function shareDate(iso, locale) {
1141
+ const date = new Date(iso);
1142
+ const text = new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short", timeZone: "UTC" }).format(date);
1143
+ return `${text} UTC`;
1144
+ }
1145
+ function themeFromCookie(value) {
1146
+ return value === "light" || value === "dark" ? value : "system";
1147
+ }
1148
+ function actFor(choice) {
1149
+ return choice === "system" ? void 0 : choice;
1150
+ }
1151
+
1152
+ // src/react/share/brand.tsx
1153
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1154
+ function brandFor(host, fill) {
1155
+ if (fill) return /* @__PURE__ */ jsx12("div", { className: "hyle-brand", "data-slot": "chrome.brand", children: fill });
1156
+ if (!host) return null;
1157
+ return /* @__PURE__ */ jsxs11("a", { className: "hyle-brand", href: host.href ?? "/", children: [
1158
+ host.logo,
1159
+ /* @__PURE__ */ jsx12("span", { className: "nm", children: host.name })
1160
+ ] });
1161
+ }
1162
+
1163
+ // src/react/share/chrome.tsx
1164
+ import { Fragment as Fragment10, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1165
+ function ShareChrome(props) {
1166
+ const { name, expiresAt, documents, article, docSlug, host, theme = "system", sidebarOpen = true, htmlTheme = false, hrefFor, lockAction, slug, now = Date.now(), ...base } = props;
1167
+ const { publication: pub } = article;
1168
+ const c = ctx(base, pub.locale);
1169
+ const s = c.s.share;
1170
+ const list = [...documents].sort((a, b) => a.position - b.position || (a.doc_slug < b.doc_slug ? -1 : 1));
1171
+ const index = list.findIndex((d) => d.doc_slug === docSlug);
1172
+ const single = list.length <= 1;
1173
+ const initial = expiryState(expiresAt, now);
1174
+ const labels = {
1175
+ protectedTag: s.protectedTag,
1176
+ noExpiry: s.noExpiry,
1177
+ expires: s.expires,
1178
+ expiresSoon: s.expiresSoon,
1179
+ expired: s.expired,
1180
+ soonNotice: s.soonNotice,
1181
+ endedNotice: s.endedNotice
1182
+ };
1183
+ const navItem = (d) => ({ slug: d.doc_slug, title: d.title, description: d.description ?? null, canonical_path: hrefFor(d.doc_slug) });
1184
+ const prev = index > 0 ? navItem(list[index - 1]) : null;
1185
+ const next = index >= 0 && index < list.length - 1 ? navItem(list[index + 1]) : null;
1186
+ const searchDocs = list.map((d) => ({ slug: d.doc_slug, title: d.title, description: d.description ?? null, href: hrefFor(d.doc_slug) }));
1187
+ const when = expiresAt === null ? s.noExpiry : s.expires.replace("{when}", shareDate(expiresAt, c.locale));
1188
+ const toc = Toc({ toc: article.toc, c });
1189
+ const side = single ? "none" : sidebarOpen ? "open" : "closed";
1190
+ const eyebrow = single || index < 0 ? void 0 : /* @__PURE__ */ jsx13("p", { className: "hyle-eyebrow", children: s.documentPosition.replace("{i}", String(index + 1)).replace("{n}", String(list.length)) });
1191
+ return /* @__PURE__ */ jsxs12(Fragment10, { children: [
1192
+ /* @__PURE__ */ jsx13(HyleTheme, { theme: article.theme }),
1193
+ /* @__PURE__ */ jsxs12(ShareFrame, { sidebarOpen, single, act: actFor(theme), lang: c.locale, children: [
1194
+ /* @__PURE__ */ jsx13("a", { className: "hyle-skip", href: "#hyle-main", children: s.skip }),
1195
+ /* @__PURE__ */ jsxs12("header", { className: "hyle-bar", children: [
1196
+ single ? null : /* @__PURE__ */ jsx13(ShareMenuButton, { label: s.showDocuments }),
1197
+ single ? null : /* @__PURE__ */ jsx13(ShareFoldButton, { show: s.showDocuments, hide: s.hideDocuments }),
1198
+ brandFor(host, base.slots?.["chrome.brand"]),
1199
+ /* @__PURE__ */ jsxs12("div", { className: "hyle-bar-title", children: [
1200
+ /* @__PURE__ */ jsx13("span", { className: "share", children: name }),
1201
+ /* @__PURE__ */ jsx13("span", { className: "sep", "aria-hidden": "true", children: "/" }),
1202
+ /* @__PURE__ */ jsx13("span", { className: "doc", children: pub.title })
1203
+ ] }),
1204
+ /* @__PURE__ */ jsx13("span", { className: "sp" }),
1205
+ /* @__PURE__ */ jsx13(ShareSearch, { docs: searchDocs, labels: { label: s.searchLabel, hint: s.searchHint, none: s.searchNone, scope: s.searchScope, count: s.searchCount, one: s.searchOne, close: s.close } }),
1206
+ /* @__PURE__ */ jsx13(ShareThemeMenu, { choice: theme, htmlTheme, labels: { label: s.theme, light: s.themeLight, dark: s.themeDark, system: s.themeSystem } }),
1207
+ /* @__PURE__ */ jsx13(ShareExpiryChip, { expiresAt, initial, locale: c.locale, labels }),
1208
+ /* @__PURE__ */ jsxs12("form", { className: "hyle-lock-form", method: "post", action: lockAction, children: [
1209
+ /* @__PURE__ */ jsx13("input", { type: "hidden", name: "slug", value: slug }),
1210
+ /* @__PURE__ */ jsx13("input", { type: "hidden", name: "lock", value: "1" }),
1211
+ /* @__PURE__ */ jsxs12("button", { className: "hyle-lock", type: "submit", "aria-label": s.lock, title: s.lockTitle, children: [
1212
+ /* @__PURE__ */ jsx13(Icon, { name: "lock" }),
1213
+ /* @__PURE__ */ jsx13("span", { children: s.lock })
1214
+ ] })
1215
+ ] })
1216
+ ] }),
1217
+ /* @__PURE__ */ jsx13(ShareExpiryNotice, { expiresAt, initial, labels }),
1218
+ /* @__PURE__ */ jsx13("div", { className: "hyle-statusrow", children: /* @__PURE__ */ jsx13(ShareExpiryChip, { expiresAt, initial, locale: c.locale, labels }) }),
1219
+ /* @__PURE__ */ jsxs12("div", { className: "hyle-share-body", "data-side": side, children: [
1220
+ single ? null : /* @__PURE__ */ jsx13(Fragment10, { children: /* @__PURE__ */ jsxs12("aside", { className: "hyle-side", id: "hyle-side", popover: "auto", "aria-label": s.documents, children: [
1221
+ /* @__PURE__ */ jsxs12("div", { className: "hyle-side-head", children: [
1222
+ /* @__PURE__ */ jsxs12("div", { children: [
1223
+ /* @__PURE__ */ jsx13("span", { className: "nm", children: name }),
1224
+ /* @__PURE__ */ jsx13("span", { className: "n", children: s.documentCount.replace("{n}", String(list.length)) })
1225
+ ] }),
1226
+ /* @__PURE__ */ jsx13(ShareDrawerClose, { label: s.closeDocuments })
1227
+ ] }),
1228
+ /* @__PURE__ */ jsx13("nav", { className: "hyle-side-list", "aria-label": s.documents, children: /* @__PURE__ */ jsx13("ol", { children: list.map((d) => /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(c.Link, { href: hrefFor(d.doc_slug), title: d.title, ...d.doc_slug === docSlug ? { "aria-current": "page" } : {}, children: /* @__PURE__ */ jsx13("span", { children: d.title }) }) }, d.doc_slug)) }) }),
1229
+ /* @__PURE__ */ jsxs12("div", { className: "hyle-side-foot", children: [
1230
+ /* @__PURE__ */ jsxs12("p", { children: [
1231
+ /* @__PURE__ */ jsx13(Icon, { name: "clock" }),
1232
+ /* @__PURE__ */ jsx13("span", { children: when })
1233
+ ] }),
1234
+ /* @__PURE__ */ jsxs12("p", { children: [
1235
+ /* @__PURE__ */ jsx13(Icon, { name: "lock" }),
1236
+ /* @__PURE__ */ jsx13("span", { children: s.privateCopy })
1237
+ ] }),
1238
+ /* @__PURE__ */ jsx13(Slot, { name: "chrome.sidebar-footer", slots: base.slots })
1239
+ ] })
1240
+ ] }) }),
1241
+ /* @__PURE__ */ jsxs12("main", { className: "hyle-share-main", id: "hyle-main", tabIndex: -1, children: [
1242
+ /* @__PURE__ */ jsx13("article", { className: "hyle-doc", "data-hyle-page": "docs", lang: pub.locale, children: /* @__PURE__ */ jsx13(DocsMain, { article, c, components: base.components, narrowToc: toc.narrow, prev, next, eyebrow }) }),
1243
+ toc.wide
1244
+ ] })
1245
+ ] })
1246
+ ] })
1247
+ ] });
1248
+ }
1249
+
1250
+ // src/react/share/gate.tsx
1251
+ import { ShareThemeMenu as ShareThemeMenu2 } from "./share-client.js";
1252
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1253
+ var PASSWORD_FIELD = "hyle-share-password";
1254
+ var ERROR_ID = "hyle-share-error";
1255
+ function ShareGate({ state, slug, unlockAction, docSlug, retryAfterSeconds = 0, host, theme = "system", htmlTheme = false, ...base }) {
1256
+ const c = ctx(base, "en");
1257
+ const s = c.s.share;
1258
+ const act = actFor(theme);
1259
+ const wrong = state === "wrong";
1260
+ return /* @__PURE__ */ jsxs13("div", { className: "hyle hyle-share", lang: c.locale, "data-hyle-chrome": "gate", ...act ? { "data-act": act } : {}, children: [
1261
+ /* @__PURE__ */ jsx14("a", { className: "hyle-skip", href: "#hyle-main", children: s.skip }),
1262
+ /* @__PURE__ */ jsxs13("header", { className: "hyle-bar", children: [
1263
+ brandFor(host, base.slots?.["chrome.brand"]),
1264
+ /* @__PURE__ */ jsx14("span", { className: "sp" }),
1265
+ /* @__PURE__ */ jsx14(ShareThemeMenu2, { choice: theme, htmlTheme, labels: { label: s.theme, light: s.themeLight, dark: s.themeDark, system: s.themeSystem } })
1266
+ ] }),
1267
+ /* @__PURE__ */ jsx14("main", { className: "hyle-gate", id: "hyle-main", tabIndex: -1, children: state === "attempts" ? /* @__PURE__ */ jsxs13("section", { className: "hyle-card", "data-kind": "warn", children: [
1268
+ /* @__PURE__ */ jsx14("span", { className: "glyph", children: /* @__PURE__ */ jsx14(Icon, { name: "clock" }) }),
1269
+ /* @__PURE__ */ jsx14("h1", { children: s.attemptsTitle }),
1270
+ /* @__PURE__ */ jsx14("p", { role: "alert", children: (retryAfterSeconds === 1 ? s.attemptsOne : s.attemptsBody).replace("{n}", String(retryAfterSeconds)) })
1271
+ ] }) : state === "unavailable" ? /* @__PURE__ */ jsxs13("section", { className: "hyle-card", children: [
1272
+ /* @__PURE__ */ jsx14("span", { className: "glyph", children: /* @__PURE__ */ jsx14(Icon, { name: "x-circle" }) }),
1273
+ /* @__PURE__ */ jsx14("h1", { children: s.unavailableTitle }),
1274
+ /* @__PURE__ */ jsx14("p", { children: s.unavailableBody })
1275
+ ] }) : /* @__PURE__ */ jsxs13("section", { className: "hyle-card", children: [
1276
+ /* @__PURE__ */ jsx14("span", { className: "glyph", children: /* @__PURE__ */ jsx14(Icon, { name: "lock" }) }),
1277
+ /* @__PURE__ */ jsx14("h1", { children: s.gateTitle }),
1278
+ /* @__PURE__ */ jsx14("p", { children: s.gateBody }),
1279
+ /* @__PURE__ */ jsxs13("form", { method: "post", action: unlockAction, autoComplete: "off", children: [
1280
+ /* @__PURE__ */ jsx14("input", { type: "hidden", name: "slug", value: slug }),
1281
+ docSlug !== void 0 && /* @__PURE__ */ jsx14("input", { type: "hidden", name: "docSlug", value: docSlug }),
1282
+ /* @__PURE__ */ jsx14("label", { htmlFor: PASSWORD_FIELD, children: s.gatePassword }),
1283
+ /* @__PURE__ */ jsx14(
1284
+ "input",
1285
+ {
1286
+ id: PASSWORD_FIELD,
1287
+ name: "password",
1288
+ type: "password",
1289
+ autoComplete: "off",
1290
+ spellCheck: false,
1291
+ required: true,
1292
+ minLength: 12,
1293
+ maxLength: 128,
1294
+ "aria-invalid": wrong || void 0,
1295
+ "aria-describedby": wrong ? ERROR_ID : void 0
1296
+ }
1297
+ ),
1298
+ wrong ? /* @__PURE__ */ jsx14("p", { className: "err", id: ERROR_ID, role: "alert", children: s.gateWrong }) : null,
1299
+ /* @__PURE__ */ jsx14("button", { className: "hyle-btn primary", type: "submit", children: s.gateOpen })
1300
+ ] })
1301
+ ] }) }),
1302
+ state === "locked" ? /* @__PURE__ */ jsxs13("div", { className: "hyle-toast", role: "status", children: [
1303
+ /* @__PURE__ */ jsx14(Icon, { name: "check-circle" }),
1304
+ s.locked
1305
+ ] }) : null
1306
+ ] });
1307
+ }
1308
+
1090
1309
  export {
1091
1310
  HastContent,
1092
1311
  TrustedServerHtml,
@@ -1118,6 +1337,11 @@ export {
1118
1337
  Unavailable,
1119
1338
  Redirecting,
1120
1339
  DocsPage,
1340
+ THEME_COOKIE,
1341
+ SIDE_COOKIE,
1342
+ themeFromCookie,
1343
+ ShareChrome,
1344
+ ShareGate,
1121
1345
  MermaidDiagram2 as MermaidDiagram,
1122
1346
  holdPrintUntil,
1123
1347
  installPrintShortcut,
@@ -685,7 +685,49 @@ var en = {
685
685
  unTitle: "This page is temporarily unavailable",
686
686
  unBody: "The content could not be loaded. Please try again in a moment.",
687
687
  viewer: VIEWER_LABELS_EN,
688
- comments: COMMENT_LABELS_EN
688
+ comments: COMMENT_LABELS_EN,
689
+ share: {
690
+ protectedTag: "Protected",
691
+ lock: "Lock",
692
+ lockTitle: "Lock this share and return to the password page",
693
+ searchLabel: "Search this share",
694
+ searchHint: "Finds words in the titles and descriptions of its documents. Nothing outside the share is searched.",
695
+ searchNone: "No documents match",
696
+ searchScope: "Search covers the titles and descriptions of this share's documents.",
697
+ searchCount: "{n} results",
698
+ searchOne: "1 result",
699
+ open: "Open",
700
+ close: "Close",
701
+ documents: "Documents",
702
+ documentCount: "{n} documents",
703
+ documentPosition: "Document {i} of {n}",
704
+ privateCopy: "Private copy. Never listed or indexed.",
705
+ noExpiry: "No expiry",
706
+ expires: "Expires {when}",
707
+ expiresSoon: "Expires soon",
708
+ expired: "Expired",
709
+ endedNotice: "This share has ended. You can finish this page, but the next one will not open.",
710
+ soonNotice: "This share expires within 24 hours.",
711
+ gateTitle: "Password required",
712
+ gateBody: "Enter the password you were given to open this page.",
713
+ gateWrong: "Wrong or expired password.",
714
+ gatePassword: "Password",
715
+ gateOpen: "Open",
716
+ locked: "Locked",
717
+ attemptsTitle: "Too many attempts",
718
+ attemptsBody: "Try again in {n} seconds.",
719
+ attemptsOne: "Try again in {n} second.",
720
+ unavailableTitle: "This page is not available",
721
+ unavailableBody: "The address may be wrong, or the share may have ended. Ask the person who sent it.",
722
+ theme: "Theme",
723
+ themeLight: "Light",
724
+ themeDark: "Dark",
725
+ themeSystem: "System",
726
+ showDocuments: "Show documents",
727
+ hideDocuments: "Hide documents",
728
+ closeDocuments: "Close documents",
729
+ skip: "Skip to content"
730
+ }
689
731
  };
690
732
  var fr = {
691
733
  toc: "Sur cette page",
@@ -745,7 +787,49 @@ var fr = {
745
787
  unTitle: "Cette page est momentan\xE9ment indisponible",
746
788
  unBody: "Le contenu n'a pas pu \xEAtre charg\xE9. R\xE9essayez dans un instant.",
747
789
  viewer: VIEWER_LABELS_FR,
748
- comments: COMMENT_LABELS_FR
790
+ comments: COMMENT_LABELS_FR,
791
+ share: {
792
+ protectedTag: "Prot\xE9g\xE9",
793
+ lock: "Verrouiller",
794
+ lockTitle: "Verrouiller ce partage et revenir \xE0 la page du mot de passe",
795
+ searchLabel: "Rechercher dans ce partage",
796
+ searchHint: "Recherche des mots dans les titres et descriptions de ses documents. Rien hors du partage n'est recherch\xE9.",
797
+ searchNone: "Aucun document ne correspond",
798
+ searchScope: "La recherche porte sur les titres et descriptions des documents de ce partage.",
799
+ searchCount: "{n} r\xE9sultats",
800
+ searchOne: "1 r\xE9sultat",
801
+ open: "Ouvrir",
802
+ close: "Fermer",
803
+ documents: "Documents",
804
+ documentCount: "{n} documents",
805
+ documentPosition: "Document {i} sur {n}",
806
+ privateCopy: "Copie priv\xE9e. Jamais list\xE9e ni index\xE9e.",
807
+ noExpiry: "Sans expiration",
808
+ expires: "Expire le {when}",
809
+ expiresSoon: "Expire bient\xF4t",
810
+ expired: "Expir\xE9",
811
+ endedNotice: "Ce partage a pris fin. Vous pouvez terminer cette page, mais la suivante ne s'ouvrira pas.",
812
+ soonNotice: "Ce partage expire dans les 24 heures.",
813
+ gateTitle: "Mot de passe requis",
814
+ gateBody: "Saisissez le mot de passe qui vous a \xE9t\xE9 donn\xE9 pour ouvrir cette page.",
815
+ gateWrong: "Mot de passe incorrect ou expir\xE9.",
816
+ gatePassword: "Mot de passe",
817
+ gateOpen: "Ouvrir",
818
+ locked: "Verrouill\xE9",
819
+ attemptsTitle: "Trop de tentatives",
820
+ attemptsBody: "R\xE9essayez dans {n} secondes.",
821
+ attemptsOne: "R\xE9essayez dans {n} seconde.",
822
+ unavailableTitle: "Cette page n'est pas disponible",
823
+ unavailableBody: "L'adresse est peut-\xEAtre erron\xE9e, ou le partage a pris fin. Demandez \xE0 la personne qui vous l'a envoy\xE9.",
824
+ theme: "Th\xE8me",
825
+ themeLight: "Clair",
826
+ themeDark: "Sombre",
827
+ themeSystem: "Syst\xE8me",
828
+ showDocuments: "Afficher les documents",
829
+ hideDocuments: "Masquer les documents",
830
+ closeDocuments: "Fermer les documents",
831
+ skip: "Aller au contenu"
832
+ }
749
833
  };
750
834
  var es = {
751
835
  toc: "En esta p\xE1gina",
@@ -805,7 +889,49 @@ var es = {
805
889
  unTitle: "Esta p\xE1gina no est\xE1 disponible por el momento",
806
890
  unBody: "No se pudo cargar el contenido. Int\xE9ntalo de nuevo en un momento.",
807
891
  viewer: VIEWER_LABELS_ES,
808
- comments: COMMENT_LABELS_ES
892
+ comments: COMMENT_LABELS_ES,
893
+ share: {
894
+ protectedTag: "Protegido",
895
+ lock: "Bloquear",
896
+ lockTitle: "Bloquear este enlace compartido y volver a la p\xE1gina de contrase\xF1a",
897
+ searchLabel: "Buscar en este enlace compartido",
898
+ searchHint: "Busca palabras en los t\xEDtulos y descripciones de sus documentos. No se busca nada fuera del enlace compartido.",
899
+ searchNone: "Ning\xFAn documento coincide",
900
+ searchScope: "La b\xFAsqueda abarca los t\xEDtulos y descripciones de los documentos de este enlace compartido.",
901
+ searchCount: "{n} resultados",
902
+ searchOne: "1 resultado",
903
+ open: "Abrir",
904
+ close: "Cerrar",
905
+ documents: "Documentos",
906
+ documentCount: "{n} documentos",
907
+ documentPosition: "Documento {i} de {n}",
908
+ privateCopy: "Copia privada. Nunca se lista ni se indexa.",
909
+ noExpiry: "Sin caducidad",
910
+ expires: "Caduca el {when}",
911
+ expiresSoon: "Caduca pronto",
912
+ expired: "Caducado",
913
+ endedNotice: "Este enlace compartido ha terminado. Puedes terminar esta p\xE1gina, pero la siguiente no se abrir\xE1.",
914
+ soonNotice: "Este enlace compartido caduca en menos de 24 horas.",
915
+ gateTitle: "Se requiere contrase\xF1a",
916
+ gateBody: "Escribe la contrase\xF1a que te han dado para abrir esta p\xE1gina.",
917
+ gateWrong: "Contrase\xF1a incorrecta o caducada.",
918
+ gatePassword: "Contrase\xF1a",
919
+ gateOpen: "Abrir",
920
+ locked: "Bloqueado",
921
+ attemptsTitle: "Demasiados intentos",
922
+ attemptsBody: "Vuelve a intentarlo en {n} segundos.",
923
+ attemptsOne: "Vuelve a intentarlo en {n} segundo.",
924
+ unavailableTitle: "Esta p\xE1gina no est\xE1 disponible",
925
+ unavailableBody: "La direcci\xF3n puede estar mal, o el enlace compartido ha terminado. Pregunta a quien te lo envi\xF3.",
926
+ theme: "Tema",
927
+ themeLight: "Claro",
928
+ themeDark: "Oscuro",
929
+ themeSystem: "Sistema",
930
+ showDocuments: "Mostrar los documentos",
931
+ hideDocuments: "Ocultar los documentos",
932
+ closeDocuments: "Cerrar los documentos",
933
+ skip: "Ir al contenido"
934
+ }
809
935
  };
810
936
  var TABLE = { en, fr, es };
811
937
  function stringsFor(locale) {
@@ -0,0 +1,82 @@
1
+ // src/react/icons.tsx
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ var SHAPES = {
4
+ info: /* @__PURE__ */ jsxs(Fragment, { children: [
5
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
6
+ /* @__PURE__ */ jsx("path", { d: "M8 7.3V11M8 5v.1" })
7
+ ] }),
8
+ "check-circle": /* @__PURE__ */ jsxs(Fragment, { children: [
9
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
10
+ /* @__PURE__ */ jsx("path", { d: "m5.3 8.3 1.9 1.9 3.5-3.9" })
11
+ ] }),
12
+ alert: /* @__PURE__ */ jsx("path", { d: "M8 2 1.8 13h12.4zM8 6.5v3M8 11.3v.1" }),
13
+ "x-circle": /* @__PURE__ */ jsxs(Fragment, { children: [
14
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
15
+ /* @__PURE__ */ jsx("path", { d: "m5.8 5.8 4.4 4.4M10.2 5.8l-4.4 4.4" })
16
+ ] }),
17
+ calendar: /* @__PURE__ */ jsxs(Fragment, { children: [
18
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "3", width: "12", height: "11", rx: "1.3" }),
19
+ /* @__PURE__ */ jsx("path", { d: "M2 6.5h12M5.5 1.7v2.6M10.5 1.7v2.6" })
20
+ ] }),
21
+ globe: /* @__PURE__ */ jsxs(Fragment, { children: [
22
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
23
+ /* @__PURE__ */ jsx("path", { d: "M2 8h12M8 2c2 1.7 2.8 3.7 2.8 6S10 12.3 8 14M8 2C6 3.7 5.2 5.7 5.2 8S6 12.3 8 14" })
24
+ ] }),
25
+ file: /* @__PURE__ */ jsxs(Fragment, { children: [
26
+ /* @__PURE__ */ jsx("path", { d: "M4 1.8h5l3 3v8.4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2.8a1 1 0 0 1 1-1z" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M9 1.8v3h3" })
28
+ ] }),
29
+ chev: /* @__PURE__ */ jsx("path", { d: "m6 3.5 4.5 4.5L6 12.5" }),
30
+ "chev-up": /* @__PURE__ */ jsx("path", { d: "m3.5 10 4.5-4.5L12.5 10" }),
31
+ "chev-down": /* @__PURE__ */ jsx("path", { d: "m3.5 6 4.5 4.5L12.5 6" }),
32
+ "chev-left": /* @__PURE__ */ jsx("path", { d: "M10 3.5 5.5 8 10 12.5" }),
33
+ x: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }),
34
+ important: /* @__PURE__ */ jsx("path", { d: "M3 2.5h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8l-3.5 2.8v-2.8H3a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1zM8 5v2.8M8 9.5v.1" }),
35
+ copy: /* @__PURE__ */ jsxs(Fragment, { children: [
36
+ /* @__PURE__ */ jsx("rect", { x: "5.5", y: "5.5", width: "8", height: "8", rx: "1.3" }),
37
+ /* @__PURE__ */ jsx("path", { d: "M10.5 5.5v-2a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2" })
38
+ ] }),
39
+ check: /* @__PURE__ */ jsx("path", { d: "m3 8.5 3.2 3L13 4.5" }),
40
+ heart: /* @__PURE__ */ jsx("path", { d: "M8 13.5S2.2 10 2.2 6.1A3 3 0 0 1 8 5a3 3 0 0 1 5.8 1.1C13.8 10 8 13.5 8 13.5z" }),
41
+ reply: /* @__PURE__ */ jsx("path", { d: "M6.5 3.5 2.5 7.5l4 4M2.5 7.5h6a5 5 0 0 1 5 5" }),
42
+ clock: /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
44
+ /* @__PURE__ */ jsx("path", { d: "M8 4.5V8l2.3 1.5" })
45
+ ] }),
46
+ ban: /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
48
+ /* @__PURE__ */ jsx("path", { d: "m3.8 12.2 8.4-8.4" })
49
+ ] }),
50
+ refresh: /* @__PURE__ */ jsx("path", { d: "M13 8a5 5 0 1 1-1.6-3.7M13 2.5v2.8h-2.8" }),
51
+ lock: /* @__PURE__ */ jsxs(Fragment, { children: [
52
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "7", width: "10", height: "7", rx: "1.3" }),
53
+ /* @__PURE__ */ jsx("path", { d: "M5.2 7V5a2.8 2.8 0 0 1 5.6 0v2" })
54
+ ] }),
55
+ search: /* @__PURE__ */ jsxs(Fragment, { children: [
56
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
57
+ /* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3.5 3.5" })
58
+ ] }),
59
+ sun: /* @__PURE__ */ jsxs(Fragment, { children: [
60
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "2.8" }),
61
+ /* @__PURE__ */ jsx("path", { d: "M8 1.5v1.8M8 12.7v1.8M1.5 8h1.8M12.7 8h1.8M3.4 3.4l1.3 1.3M11.3 11.3l1.3 1.3M3.4 12.6l1.3-1.3M11.3 4.7l1.3-1.3" })
62
+ ] }),
63
+ moon: /* @__PURE__ */ jsx("path", { d: "M13 9.4A5.6 5.6 0 0 1 6.6 3a5.6 5.6 0 1 0 6.4 6.4z" }),
64
+ monitor: /* @__PURE__ */ jsxs(Fragment, { children: [
65
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "3", width: "12", height: "8", rx: "1.3" }),
66
+ /* @__PURE__ */ jsx("path", { d: "M6 14h4M8 11v3" })
67
+ ] }),
68
+ sidebar: /* @__PURE__ */ jsxs(Fragment, { children: [
69
+ /* @__PURE__ */ jsx("rect", { x: "2", y: "3", width: "12", height: "10", rx: "1.3" }),
70
+ /* @__PURE__ */ jsx("path", { d: "M6.5 3v10" })
71
+ ] }),
72
+ shield: /* @__PURE__ */ jsx("path", { d: "M8 1.5 2.5 3.6v4c0 3.2 2.3 5.4 5.5 6.9 3.2-1.5 5.5-3.7 5.5-6.9v-4z" }),
73
+ "arrow-left": /* @__PURE__ */ jsx("path", { d: "M13 8H3M7 4 3 8l4 4" }),
74
+ menu: /* @__PURE__ */ jsx("path", { d: "M2.5 4.5h11M2.5 8h11M2.5 11.5h11" })
75
+ };
76
+ function Icon({ name, className }) {
77
+ return /* @__PURE__ */ jsx("svg", { className: className ? `hyle-ic ${className}` : "hyle-ic", viewBox: "0 0 16 16", "aria-hidden": "true", children: SHAPES[name] });
78
+ }
79
+
80
+ export {
81
+ Icon
82
+ };