@haxtheweb/fluent-theme 0.0.0-stage → 26.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/.dddignore +36 -0
  2. package/.editorconfig +29 -0
  3. package/.github/workflows/main.yml +33 -0
  4. package/.nojekyll +0 -0
  5. package/.surgeignore +1 -0
  6. package/.travis.yml +15 -0
  7. package/LICENSE +201 -0
  8. package/NOTICE +44 -0
  9. package/README.md +47 -2
  10. package/custom-elements.json +310 -0
  11. package/demo/files/thumb-button.svg +1 -0
  12. package/demo/files/thumb-checks.svg +1 -0
  13. package/demo/files/thumb-code.svg +1 -0
  14. package/demo/files/thumb-color.svg +1 -0
  15. package/demo/files/thumb-shapes.svg +1 -0
  16. package/demo/files/thumb-type.svg +1 -0
  17. package/demo/index.html +49 -0
  18. package/demo/pages/item-f1e0b2c3-about/index.html +4 -0
  19. package/demo/pages/item-f1e0b2c3-components/index.html +4 -0
  20. package/demo/pages/item-f1e0b2c3-components-button/index.html +19 -0
  21. package/demo/pages/item-f1e0b2c3-components-learning-checks/index.html +7 -0
  22. package/demo/pages/item-f1e0b2c3-design-language/index.html +4 -0
  23. package/demo/pages/item-f1e0b2c3-design-language-color/index.html +9 -0
  24. package/demo/pages/item-f1e0b2c3-design-language-typography/index.html +7 -0
  25. package/demo/pages/item-f1e0b2c3-get-started/index.html +7 -0
  26. package/demo/pages/item-f1e0b2c3-get-started-develop/index.html +15 -0
  27. package/demo/site.json +231 -0
  28. package/design-system/bridge.json +405 -0
  29. package/fluent-theme.js +507 -0
  30. package/gulpfile.cjs +14 -0
  31. package/icons/add.svg +1 -0
  32. package/icons/add_circle.svg +1 -0
  33. package/icons/archive.svg +1 -0
  34. package/icons/arrow_clockwise.svg +1 -0
  35. package/icons/arrow_down.svg +1 -0
  36. package/icons/arrow_download.svg +1 -0
  37. package/icons/arrow_left.svg +1 -0
  38. package/icons/arrow_next.svg +1 -0
  39. package/icons/arrow_previous.svg +1 -0
  40. package/icons/arrow_redo.svg +1 -0
  41. package/icons/arrow_right.svg +1 -0
  42. package/icons/arrow_rotate_clockwise.svg +1 -0
  43. package/icons/arrow_rotate_counterclockwise.svg +1 -0
  44. package/icons/arrow_shuffle.svg +1 -0
  45. package/icons/arrow_sort.svg +1 -0
  46. package/icons/arrow_undo.svg +1 -0
  47. package/icons/arrow_up.svg +1 -0
  48. package/icons/arrow_upload.svg +1 -0
  49. package/icons/attach.svg +1 -0
  50. package/icons/book.svg +1 -0
  51. package/icons/bookmark.svg +1 -0
  52. package/icons/briefcase.svg +1 -0
  53. package/icons/calendar.svg +1 -0
  54. package/icons/call.svg +1 -0
  55. package/icons/camera.svg +1 -0
  56. package/icons/chat.svg +1 -0
  57. package/icons/checkmark.svg +1 -0
  58. package/icons/checkmark_circle.svg +1 -0
  59. package/icons/chevron_down.svg +1 -0
  60. package/icons/chevron_left.svg +1 -0
  61. package/icons/chevron_right.svg +1 -0
  62. package/icons/chevron_up.svg +1 -0
  63. package/icons/clipboard_task.svg +1 -0
  64. package/icons/clock.svg +1 -0
  65. package/icons/closed_caption.svg +1 -0
  66. package/icons/cloud.svg +1 -0
  67. package/icons/cloud_arrow_down.svg +1 -0
  68. package/icons/code.svg +1 -0
  69. package/icons/column_triple.svg +1 -0
  70. package/icons/copy.svg +1 -0
  71. package/icons/crop.svg +1 -0
  72. package/icons/data_bar_vertical.svg +1 -0
  73. package/icons/data_line.svg +1 -0
  74. package/icons/delete.svg +1 -0
  75. package/icons/desktop.svg +1 -0
  76. package/icons/dismiss.svg +1 -0
  77. package/icons/dismiss_circle.svg +1 -0
  78. package/icons/document.svg +1 -0
  79. package/icons/document_pdf.svg +1 -0
  80. package/icons/document_text.svg +1 -0
  81. package/icons/edit.svg +1 -0
  82. package/icons/emoji.svg +1 -0
  83. package/icons/error_circle.svg +1 -0
  84. package/icons/eye.svg +1 -0
  85. package/icons/eye_off.svg +1 -0
  86. package/icons/flag.svg +1 -0
  87. package/icons/folder.svg +1 -0
  88. package/icons/folder_open.svg +1 -0
  89. package/icons/full_screen_maximize.svg +1 -0
  90. package/icons/globe.svg +1 -0
  91. package/icons/grid.svg +1 -0
  92. package/icons/hat_graduation.svg +1 -0
  93. package/icons/highlight.svg +1 -0
  94. package/icons/history.svg +1 -0
  95. package/icons/home.svg +1 -0
  96. package/icons/image.svg +1 -0
  97. package/icons/image_multiple.svg +1 -0
  98. package/icons/info.svg +1 -0
  99. package/icons/keyboard.svg +1 -0
  100. package/icons/lightbulb.svg +1 -0
  101. package/icons/link.svg +1 -0
  102. package/icons/list.svg +1 -0
  103. package/icons/location.svg +1 -0
  104. package/icons/lock_closed.svg +1 -0
  105. package/icons/mail.svg +1 -0
  106. package/icons/mic.svg +1 -0
  107. package/icons/music_note_2.svg +1 -0
  108. package/icons/navigation.svg +1 -0
  109. package/icons/open.svg +1 -0
  110. package/icons/options.svg +1 -0
  111. package/icons/paint_bucket.svg +1 -0
  112. package/icons/pause.svg +1 -0
  113. package/icons/pause_circle.svg +1 -0
  114. package/icons/people.svg +1 -0
  115. package/icons/person.svg +1 -0
  116. package/icons/person_feedback.svg +1 -0
  117. package/icons/phone.svg +1 -0
  118. package/icons/play.svg +1 -0
  119. package/icons/play_circle.svg +1 -0
  120. package/icons/print.svg +1 -0
  121. package/icons/puzzle_piece.svg +1 -0
  122. package/icons/question_circle.svg +1 -0
  123. package/icons/rss.svg +1 -0
  124. package/icons/save.svg +1 -0
  125. package/icons/search.svg +1 -0
  126. package/icons/settings.svg +1 -0
  127. package/icons/share.svg +1 -0
  128. package/icons/shield_checkmark.svg +1 -0
  129. package/icons/sign_out.svg +1 -0
  130. package/icons/slide_layout.svg +1 -0
  131. package/icons/speaker_2.svg +1 -0
  132. package/icons/star.svg +1 -0
  133. package/icons/stop.svg +1 -0
  134. package/icons/subtract.svg +1 -0
  135. package/icons/table.svg +1 -0
  136. package/icons/tablet.svg +1 -0
  137. package/icons/tag.svg +1 -0
  138. package/icons/text_align_center.svg +1 -0
  139. package/icons/text_align_justify.svg +1 -0
  140. package/icons/text_align_left.svg +1 -0
  141. package/icons/text_align_right.svg +1 -0
  142. package/icons/text_bold.svg +1 -0
  143. package/icons/text_bullet_list_ltr.svg +1 -0
  144. package/icons/text_bullet_list_tree.svg +1 -0
  145. package/icons/text_font.svg +1 -0
  146. package/icons/text_italic.svg +1 -0
  147. package/icons/text_number_list_ltr.svg +1 -0
  148. package/icons/text_quote.svg +1 -0
  149. package/icons/text_strikethrough.svg +1 -0
  150. package/icons/text_underline.svg +1 -0
  151. package/icons/thumb_like.svg +1 -0
  152. package/icons/video.svg +1 -0
  153. package/icons/warning.svg +1 -0
  154. package/icons/zoom_in.svg +1 -0
  155. package/icons/zoom_out.svg +1 -0
  156. package/lib/FluentDDDMap.js +147 -0
  157. package/lib/FluentDesignSystem.js +43 -0
  158. package/lib/FluentIcons.js +173 -0
  159. package/lib/FluentTokens.js +103 -0
  160. package/lib/fluent-theme.docs.json +43 -0
  161. package/lib/fluent.ddd-map.json +1240 -0
  162. package/locales/fluent-theme.en.json +9 -0
  163. package/package.json +56 -4
  164. package/test/fluent-theme.test.js +73 -0
@@ -0,0 +1,507 @@
1
+ /**
2
+ * Copyright 2026 The Pennsylvania State University
3
+ * @license Apache-2.0, see LICENSE for full text.
4
+ */
5
+ import { html, css } from "lit";
6
+ import { HAXCMSLitElementTheme } from "@haxtheweb/haxcms-elements/lib/core/HAXCMSLitElementTheme.js";
7
+ import { HAXCMSThemeParts } from "@haxtheweb/haxcms-elements/lib/core/utils/HAXCMSThemeParts.js";
8
+ import { store } from "@haxtheweb/haxcms-elements/lib/core/haxcms-site-store.js";
9
+ import { DDDSuper } from "@haxtheweb/d-d-d/d-d-d.js";
10
+ import { I18NManagerStore } from "@haxtheweb/i18n-manager/lib/I18NMixin.js";
11
+ import { FluentTokens } from "@haxtheweb/fluent-theme/lib/FluentTokens.js";
12
+ import { FluentDDDMap } from "@haxtheweb/fluent-theme/lib/FluentDDDMap.js";
13
+ import { activateFluentDesignSystem } from "@haxtheweb/fluent-theme/lib/FluentDesignSystem.js";
14
+ import { autorun, toJS } from "mobx";
15
+ import "@haxtheweb/haxcms-elements/lib/ui-components/site/site-title.js";
16
+ import "@haxtheweb/haxcms-elements/lib/ui-components/navigation/site-menu.js";
17
+ import "@haxtheweb/simple-icon/simple-icon.js";
18
+ import "@haxtheweb/simple-icon/lib/simple-icons.js";
19
+ import "@haxtheweb/simple-icon/lib/simple-icon-button-lite.js";
20
+
21
+ /**
22
+ * `fluent-theme`
23
+ * A HAXcms theme in the layout of the Fluent 2 documentation site: a light
24
+ * 56px header, a navigation drawer on the neutral background 2 surface whose
25
+ * selected item carries Fluent's brand pill, and page content on a rounded
26
+ * card surface. Built on the Fluent 2 DDD bridge: every HAX block reads
27
+ * --ddd-* tokens, which point at Fluent tokens while this theme is active.
28
+ *
29
+ * @title Fluent 2
30
+ * @haxcms-theme-category Website, Course, Documentation
31
+ * @haxcms-theme-priority 50
32
+ * @demo demo/index.html
33
+ * @element fluent-theme
34
+ */
35
+ class FluentTheme extends HAXCMSThemeParts(DDDSuper(HAXCMSLitElementTheme)) {
36
+ static get tag() {
37
+ return "fluent-theme";
38
+ }
39
+
40
+ HAXCMSGlobalStyleSheetContent() {
41
+ return [
42
+ ...super.HAXCMSGlobalStyleSheetContent(),
43
+ css`
44
+ body {
45
+ margin: 0;
46
+ background-color: light-dark(#fafafa, #1f1f1f);
47
+ }
48
+ `,
49
+ ];
50
+ }
51
+
52
+ constructor() {
53
+ super();
54
+ this.t = this.t || {};
55
+ this.t = {
56
+ ...this.t,
57
+ skipToContent: "Skip to content",
58
+ toggleSiteMenu: "Toggle site menu",
59
+ siteNavigation: "Site navigation",
60
+ searchSite: "Search site",
61
+ search: "Search",
62
+ toggleDarkMode: "Toggle dark mode",
63
+ pageNavigation: "Page navigation",
64
+ };
65
+ // no I18NMixin in this class chain, so register with the store directly
66
+ I18NManagerStore.registerLocalization({
67
+ context: this,
68
+ localesPath: new URL("./locales/", import.meta.url).href,
69
+ });
70
+ this.HAXCMSThemeSettings.autoScroll = true;
71
+ this.sidebarOpen = true;
72
+ this._mobile = false;
73
+ this.__fluentDisposers = [];
74
+ activateFluentDesignSystem();
75
+ // prettier-ignore
76
+ import(
77
+ "@haxtheweb/haxcms-elements/lib/ui-components/navigation/site-breadcrumb.js"
78
+ );
79
+ // prettier-ignore
80
+ import(
81
+ "@haxtheweb/haxcms-elements/lib/ui-components/active-item/site-active-title.js"
82
+ );
83
+ // prettier-ignore
84
+ import(
85
+ "@haxtheweb/haxcms-elements/lib/ui-components/navigation/site-menu-button.js"
86
+ );
87
+ // prettier-ignore
88
+ import(
89
+ "@haxtheweb/haxcms-elements/lib/ui-components/layout/site-modal.js"
90
+ );
91
+ // prettier-ignore
92
+ import(
93
+ "@haxtheweb/haxcms-elements/lib/ui-components/site/site-search.js"
94
+ );
95
+ // prettier-ignore
96
+ import(
97
+ "@haxtheweb/haxcms-elements/lib/ui-components/layout/site-region.js"
98
+ );
99
+ }
100
+
101
+ static get properties() {
102
+ return {
103
+ ...super.properties,
104
+ sidebarOpen: { type: Boolean, reflect: true, attribute: "sidebar-open" },
105
+ _mobile: { type: Boolean, state: true },
106
+ _dark: { type: Boolean, state: true },
107
+ _lead: { type: String, state: true },
108
+ };
109
+ }
110
+
111
+ static get styles() {
112
+ return [
113
+ super.styles,
114
+ FluentTokens,
115
+ FluentDDDMap,
116
+ css`
117
+ :host {
118
+ display: block;
119
+ min-height: 100vh;
120
+ color: var(--colorNeutralForeground1);
121
+ background-color: var(--colorNeutralBackground2);
122
+ font-family: var(--ddd-font-primary);
123
+ --fluent-theme-header-height: 56px;
124
+ --fluent-theme-nav-width: 280px;
125
+ }
126
+ :host([hidden]) {
127
+ display: none;
128
+ }
129
+ /* Fluent's focus indicator: a 2px stroke in colorStrokeFocus2,
130
+ drawn just inside the control's rounded corners */
131
+ a:focus-visible,
132
+ button:focus-visible,
133
+ simple-icon-button-lite:focus-visible {
134
+ outline: 2px solid var(--colorStrokeFocus2);
135
+ outline-offset: 1px;
136
+ border-radius: var(--borderRadiusMedium);
137
+ }
138
+
139
+ /* header */
140
+ .header {
141
+ position: sticky;
142
+ top: 0;
143
+ z-index: 3;
144
+ display: flex;
145
+ align-items: center;
146
+ gap: var(--ddd-spacing-2);
147
+ height: var(--fluent-theme-header-height);
148
+ padding: 0 var(--ddd-spacing-3);
149
+ box-sizing: border-box;
150
+ background-color: var(--colorNeutralBackground1);
151
+ color: var(--colorNeutralForeground1);
152
+ border-bottom: 1px solid var(--colorNeutralStroke2);
153
+ }
154
+ .header-name {
155
+ flex: 1 1 auto;
156
+ min-width: 0;
157
+ }
158
+ site-title {
159
+ --site-title-link-text-decoration: none;
160
+ --site-title-heading-font-size: var(--ddd-font-size-4xs);
161
+ --site-title-heading-font-weight: var(--fontWeightSemibold);
162
+ --site-title-heading-margin: 0;
163
+ --site-title-link-display: inline;
164
+ --site-title-link-color: var(--colorNeutralForeground1);
165
+ color: var(--colorNeutralForeground1);
166
+ }
167
+ .header-action,
168
+ site-modal {
169
+ --simple-icon-width: 20px;
170
+ --simple-icon-height: 20px;
171
+ --simple-icon-button-border-radius: var(--borderRadiusMedium);
172
+ --site-modal-icon-color: var(--colorNeutralForeground2);
173
+ color: var(--colorNeutralForeground2);
174
+ }
175
+ /* Fluent subtle icon button: 32px, transparent until hovered */
176
+ .header-action {
177
+ width: 40px;
178
+ height: 40px;
179
+ border-radius: var(--borderRadiusMedium);
180
+ }
181
+ .header-action:hover,
182
+ .header-action:focus-visible {
183
+ background-color: var(--colorSubtleBackgroundHover);
184
+ color: var(--colorNeutralForeground1);
185
+ }
186
+ .header-actions {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: var(--ddd-spacing-1);
190
+ }
191
+
192
+ /* navigation drawer + content */
193
+ .shell {
194
+ display: flex;
195
+ align-items: flex-start;
196
+ }
197
+ .nav {
198
+ position: sticky;
199
+ top: var(--fluent-theme-header-height);
200
+ flex: 0 0 var(--fluent-theme-nav-width);
201
+ width: var(--fluent-theme-nav-width);
202
+ height: calc(100vh - var(--fluent-theme-header-height));
203
+ overflow-y: auto;
204
+ padding: var(--ddd-spacing-3) var(--ddd-spacing-2);
205
+ box-sizing: border-box;
206
+ background-color: var(--colorNeutralBackground2);
207
+ }
208
+ :host(:not([sidebar-open])) .nav {
209
+ display: none;
210
+ }
211
+ site-menu {
212
+ height: auto;
213
+ --site-menu-background-color: transparent;
214
+ --site-menu-container-background-color: transparent;
215
+ --site-menu-color: var(--colorNeutralForeground2);
216
+ --site-menu-font-size: var(--ddd-font-size-4xs);
217
+ --map-menu-container-padding: 0;
218
+ --map-menu-gap: 2px;
219
+ --map-menu-item-border-radius: var(--borderRadiusMedium);
220
+ --map-menu-item-a-color: var(--colorNeutralForeground2);
221
+ --map-menu-item-a-active-color: var(--colorNeutralForeground1);
222
+ --map-menu-item-a-active-background-color: var(
223
+ --colorSubtleBackgroundSelected
224
+ );
225
+ /* the selected-item background is translucent, so the check on a
226
+ done progress disc is drawn in the opaque page surface */
227
+ --map-menu-progress-ring-on-color: var(--colorNeutralBackground2);
228
+ --map-menu-item-active-item-color: var(--colorNeutralForeground1);
229
+ /* Fluent's nav item selection indicator: a brand pill */
230
+ --map-menu-item-active-accent-width: 4px;
231
+ --map-menu-item-active-accent-color: var(--colorBrandForeground1);
232
+ --map-menu-item-icon-active-color: var(--colorBrandForeground1);
233
+ --map-menu-item-button-active-font-weight: var(--fontWeightSemibold);
234
+ --map-menu-font-weight: var(--ddd-font-weight-regular);
235
+ --map-menu-parent-background-color: transparent;
236
+ --map-menu-header-title-margin: var(--ddd-spacing-4);
237
+ font-family: var(--ddd-font-primary);
238
+ }
239
+
240
+ main {
241
+ flex: 1 1 auto;
242
+ min-width: 0;
243
+ min-height: calc(100vh - var(--fluent-theme-header-height));
244
+ padding: var(--ddd-spacing-4) var(--ddd-spacing-4) 0 0;
245
+ box-sizing: border-box;
246
+ display: flex;
247
+ flex-direction: column;
248
+ }
249
+ /* the content surface: neutral background 1 on a rounded card, as
250
+ the Fluent 2 site sets its pages apart from the drawer */
251
+ .surface {
252
+ flex: 1 1 auto;
253
+ display: flex;
254
+ flex-direction: column;
255
+ background-color: var(--colorNeutralBackground1);
256
+ border-radius: var(--borderRadiusXLarge) var(--borderRadiusXLarge) 0 0;
257
+ box-shadow:
258
+ 0 0 2px var(--colorNeutralShadowAmbient),
259
+ 0 2px 4px var(--colorNeutralShadowKey);
260
+ }
261
+ .page-header {
262
+ padding: var(--ddd-spacing-12) var(--ddd-spacing-12)
263
+ var(--ddd-spacing-8);
264
+ max-width: var(--fluent-theme-content-max-width, 960px);
265
+ box-sizing: border-box;
266
+ }
267
+ site-breadcrumb {
268
+ --site-breadcrumb-margin: 0 0 var(--ddd-spacing-3) 0;
269
+ --site-breadcrumb-font-size: var(--ddd-font-size-4xs);
270
+ --site-breadcrumb-color: var(--colorBrandForegroundLink);
271
+ --site-breadcrumb-color-hover: var(--colorBrandForegroundLinkHover);
272
+ --site-breadcrumb-last-color: var(--colorNeutralForeground1);
273
+ --site-breadcrumb-separator-color: var(--colorNeutralForeground3);
274
+ }
275
+ site-active-title {
276
+ --site-active-title-margin: 0;
277
+ --site-active-title-padding: 0;
278
+ }
279
+ /* Fluent hero title: semibold, tight line height */
280
+ site-active-title h1 {
281
+ margin: 0;
282
+ font-family: var(--ddd-font-primary);
283
+ font-size: var(--ddd-font-size-xl);
284
+ font-weight: var(--fontWeightSemibold);
285
+ line-height: 1.2;
286
+ color: var(--colorNeutralForeground1);
287
+ }
288
+ .lead {
289
+ max-width: 40rem;
290
+ margin: var(--ddd-spacing-4) 0 0;
291
+ font-size: var(--ddd-font-size-xs);
292
+ line-height: 1.5;
293
+ color: var(--colorNeutralForeground2);
294
+ }
295
+ .content {
296
+ padding: 0 var(--ddd-spacing-12);
297
+ max-width: var(--fluent-theme-content-max-width, 960px);
298
+ box-sizing: border-box;
299
+ width: 100%;
300
+ flex: 1 1 auto;
301
+ }
302
+ #slot {
303
+ padding: 0;
304
+ }
305
+
306
+ /* previous / next as Fluent outline buttons */
307
+ .pager {
308
+ display: flex;
309
+ justify-content: space-between;
310
+ gap: var(--ddd-spacing-4);
311
+ margin-top: var(--ddd-spacing-12);
312
+ padding: var(--ddd-spacing-6) var(--ddd-spacing-12);
313
+ border-top: 1px solid var(--colorNeutralStroke2);
314
+ }
315
+ site-menu-button {
316
+ --site-menu-button-icon-fill-color: var(--colorNeutralForeground1);
317
+ --site-menu-button-link-color: var(--colorNeutralForeground1);
318
+ --site-menu-button-link-decoration: none;
319
+ --site-menu-button-button-border-radius: var(--borderRadiusMedium);
320
+ --site-menu-button-button-hover-background-color: var(
321
+ --colorNeutralBackground1Hover
322
+ );
323
+ }
324
+ site-menu-button[disabled] {
325
+ visibility: hidden;
326
+ }
327
+ footer {
328
+ padding: var(--ddd-spacing-4) var(--ddd-spacing-12);
329
+ color: var(--colorNeutralForeground3);
330
+ font-size: var(--ddd-font-size-4xs);
331
+ }
332
+
333
+ :host([edit-mode]) .header-actions,
334
+ :host([edit-mode]) .pager {
335
+ opacity: 0.4;
336
+ pointer-events: none;
337
+ }
338
+
339
+ /* below 1024px the drawer overlays the page, as Fluent's overlay
340
+ NavDrawer does */
341
+ @media (max-width: 1023px) {
342
+ .nav {
343
+ position: fixed;
344
+ left: 0;
345
+ top: var(--fluent-theme-header-height);
346
+ z-index: 2;
347
+ box-shadow:
348
+ 0 0 8px var(--colorNeutralShadowAmbient),
349
+ 0 14px 28px var(--colorNeutralShadowKey);
350
+ }
351
+ main {
352
+ padding: 0;
353
+ }
354
+ .surface {
355
+ border-radius: 0;
356
+ box-shadow: none;
357
+ }
358
+ }
359
+ @media (max-width: 640px) {
360
+ .page-header {
361
+ padding: var(--ddd-spacing-8) var(--ddd-spacing-4)
362
+ var(--ddd-spacing-6);
363
+ }
364
+ .content,
365
+ .pager,
366
+ footer {
367
+ padding-left: var(--ddd-spacing-4);
368
+ padding-right: var(--ddd-spacing-4);
369
+ }
370
+ .nav {
371
+ width: min(var(--fluent-theme-nav-width), 85vw);
372
+ }
373
+ site-active-title h1 {
374
+ font-size: var(--ddd-font-size-l);
375
+ }
376
+ }
377
+ @media (prefers-reduced-motion: reduce) {
378
+ * {
379
+ transition: none !important;
380
+ }
381
+ }
382
+ `,
383
+ ];
384
+ }
385
+
386
+ render() {
387
+ return html`
388
+ <a class="skip-link" href="#contentcontainer">${this.t.skipToContent}</a>
389
+ <header class="header" part="header">
390
+ <simple-icon-button-lite
391
+ class="header-action"
392
+ icon="${this.sidebarOpen ? "close" : "menu"}"
393
+ title="${this.t.toggleSiteMenu}"
394
+ aria-expanded="${this.sidebarOpen ? "true" : "false"}"
395
+ aria-controls="nav"
396
+ @click="${this.toggleSidebar}"
397
+ ></simple-icon-button-lite>
398
+ <div class="header-name">
399
+ <site-title
400
+ ?disabled="${this.editMode}"
401
+ part="site-title"
402
+ ></site-title>
403
+ </div>
404
+ <div class="header-actions">
405
+ <site-modal
406
+ class="header-action"
407
+ ?disabled="${this.editMode}"
408
+ icon="icons:search"
409
+ title="${this.t.searchSite}"
410
+ button-label="${this.t.search}"
411
+ part="search-btn"
412
+ >
413
+ <site-search></site-search>
414
+ </site-modal>
415
+ <simple-icon-button-lite
416
+ class="header-action"
417
+ icon="${this._dark ? "image:brightness-7" : "image:brightness-3"}"
418
+ title="${this.t.toggleDarkMode}"
419
+ aria-pressed="${this._dark ? "true" : "false"}"
420
+ @click="${this.toggleDarkMode}"
421
+ part="dark-mode-btn"
422
+ ></simple-icon-button-lite>
423
+ </div>
424
+ </header>
425
+ <div class="shell">
426
+ <div class="nav" id="nav" part="sidenav" ?inert="${!this.sidebarOpen}">
427
+ <nav aria-label="${this.t.siteNavigation}">
428
+ <site-menu part="site-menu"></site-menu>
429
+ </nav>
430
+ </div>
431
+ <main>
432
+ <div class="surface">
433
+ <div class="page-header" part="page-header">
434
+ <site-breadcrumb part="page-breadcrumb"></site-breadcrumb>
435
+ <site-active-title part="page-title"></site-active-title>
436
+ ${this._lead ? html`<p class="lead">${this._lead}</p>` : ""}
437
+ </div>
438
+ <div class="content">
439
+ <article id="contentcontainer">
440
+ <section id="slot"><slot></slot></section>
441
+ </article>
442
+ </div>
443
+ <nav class="pager" aria-label="${this.t.pageNavigation}">
444
+ <site-menu-button type="prev" position="right"></site-menu-button>
445
+ <site-menu-button type="next" position="left"></site-menu-button>
446
+ </nav>
447
+ <footer part="footer">
448
+ <site-region name="footerPrimary"></site-region>
449
+ </footer>
450
+ </div>
451
+ </main>
452
+ </div>
453
+ `;
454
+ }
455
+
456
+ connectedCallback() {
457
+ super.connectedCallback();
458
+ this.__mq = globalThis.matchMedia("(max-width: 1023px)");
459
+ this.__mqHandler = (e) => {
460
+ this._mobile = e.matches;
461
+ // the drawer overlays the page on small screens, so start closed
462
+ this.sidebarOpen = !e.matches;
463
+ };
464
+ this.__mq.addEventListener("change", this.__mqHandler);
465
+ this.__mqHandler(this.__mq);
466
+ this.__fluentDisposers.push(
467
+ autorun(() => {
468
+ this._dark = !!toJS(store.darkMode);
469
+ }),
470
+ );
471
+ this.__fluentDisposers.push(
472
+ autorun(() => {
473
+ // the page description is the page header's lead text
474
+ const item = toJS(store.activeItem);
475
+ this._lead = item && item.description ? item.description : "";
476
+ }),
477
+ );
478
+ this.__fluentDisposers.push(
479
+ autorun(() => {
480
+ // close the overlay drawer after navigating on small screens
481
+ toJS(store.activeId);
482
+ if (this._mobile) {
483
+ this.sidebarOpen = false;
484
+ }
485
+ }),
486
+ );
487
+ }
488
+
489
+ disconnectedCallback() {
490
+ if (this.__mq) {
491
+ this.__mq.removeEventListener("change", this.__mqHandler);
492
+ }
493
+ this.__fluentDisposers.forEach((dispose) => dispose());
494
+ this.__fluentDisposers = [];
495
+ super.disconnectedCallback();
496
+ }
497
+
498
+ toggleSidebar() {
499
+ this.sidebarOpen = !this.sidebarOpen;
500
+ }
501
+
502
+ toggleDarkMode() {
503
+ store.darkMode = !store.darkMode;
504
+ }
505
+ }
506
+ globalThis.customElements.define(FluentTheme.tag, FluentTheme);
507
+ export { FluentTheme };
package/gulpfile.cjs ADDED
@@ -0,0 +1,14 @@
1
+ const gulp = require("gulp");
2
+ const fs = require("fs");
3
+ const path = require("path");
4
+ const packageJson = require("./package.json");
5
+ gulp.task("watch", () => {
6
+ return gulp.watch(["./*.js","./lib/*", "./demo/*"]);
7
+ });
8
+
9
+ gulp.task("dev", gulp.series("watch"));
10
+
11
+ gulp.task(
12
+ "default",
13
+ gulp.series("dev")
14
+ );
package/icons/add.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3.25c.41 0 .75.34.75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4c0-.41.34-.75.75-.75"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17M12 7c.41 0 .75.34.75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5c0-.41.34-.75.75-.75"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25C3 4.01 4 3 5.25 3h13.5C19.99 3 21 4 21 5.25v1.5c0 .78-.4 1.47-1 1.87v8.63A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.62c-.6-.4-1-1.09-1-1.87zM5.5 9v8.25c0 1.24 1 2.25 2.25 2.25h8.5c1.24 0 2.25-1 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .41.34.75.75.75h13.5c.41 0 .75-.34.75-.75v-1.5a.75.75 0 0 0-.75-.75z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4.5a7.5 7.5 0 1 0 7.42 6.4c-.07-.46.26-.9.72-.9.37 0 .7.26.76.62q.1.67.1 1.38a9 9 0 1 1-3-6.7V4.24a.75.75 0 0 1 1.5 0v3c0 .41-.34.75-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.5 7.5 0 0 0-5.1-2"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19.8 13.27a.75.75 0 0 0-1.1-1.04l-5.95 6.25V3.75a.75.75 0 1 0-1.5 0v14.73L5.3 12.23a.75.75 0 1 0-1.1 1.04l7.08 7.42a1 1 0 0 0 1.44 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.25 20.5a.75.75 0 1 1 0 1.5h-13a.75.75 0 1 1 0-1.5zm-6.6-18.49h.1c.38 0 .7.28.74.64l.01.1v13.7l3.72-3.73a.75.75 0 0 1 .98-.07l.08.07c.27.27.3.68.07.98l-.07.08-5 5a.75.75 0 0 1-.97.07l-.09-.07-5-5a.75.75 0 0 1 .98-1.13l.08.07L11 16.43V2.76c0-.38.28-.7.65-.75h.1z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.73 19.8a.75.75 0 0 0 1.04-1.1l-6.25-5.95h14.73a.75.75 0 0 0 0-1.5H5.52l6.25-5.95a.75.75 0 0 0-1.04-1.1l-7.42 7.08a1 1 0 0 0 0 1.44z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.25 3c.38 0 .7.28.74.65l.01.1v16.5a.75.75 0 0 1-1.5.1V3.75c0-.41.34-.75.75-.75m-13.03.22a.75.75 0 0 1 .98-.07l.08.07 8.25 8.25c.27.27.3.68.07.98l-.07.08-8.25 8.25a.75.75 0 0 1-1.13-.98l.07-.08L12.94 12 5.22 4.28a.75.75 0 0 1 0-1.06"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5.75 3c-.38 0-.7.28-.74.65l-.01.1v16.5a.75.75 0 0 0 1.5.1V3.75A.75.75 0 0 0 5.75 3m13.03.22a.75.75 0 0 0-.98-.07l-.08.07-8.25 8.25a.75.75 0 0 0-.07.98l.07.08 8.25 8.25a.75.75 0 0 0 1.13-.98l-.07-.08L11.06 12l7.72-7.72c.3-.3.3-.77 0-1.06"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19.25 2c-.38 0-.7.28-.74.65l-.01.1v5.69l-4.57-4.56a6.4 6.4 0 0 0-8.88-.18l-.19.18a6.4 6.4 0 0 0 0 9.06l8.85 8.84a.75.75 0 0 0 1.06-1.06l-8.85-8.84a4.9 4.9 0 0 1 6.77-7.1l.18.16 4.57 4.56h-5.69c-.38 0-.7.28-.74.65l-.01.1c0 .38.28.7.65.74l.1.01h7.5c.38 0 .7-.28.74-.65l.01-.1v-7.5a.75.75 0 0 0-.75-.75"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.27 4.2a.75.75 0 0 0-1.04 1.1l6.25 5.95H3.75a.75.75 0 0 0 0 1.5h14.73l-6.25 5.95a.75.75 0 0 0 1.04 1.1l7.42-7.08a1 1 0 0 0 0-1.44z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 0 1 4.98 16.5h1.77a.75.75 0 0 1 .1 1.5h-4.1a.75.75 0 0 1-.74-.65l-.01-.1v-4a.75.75 0 0 1 1.5-.1v2.49A7.5 7.5 0 1 0 4.5 12 .75.75 0 0 1 3 12a9 9 0 0 1 9-9m0 6.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3a9 9 0 0 0-4.98 16.5H5.25a.75.75 0 0 0-.1 1.5h4.1c.38 0 .7-.28.74-.65l.01-.1v-4a.75.75 0 0 0-1.5-.1v2.49a7.5 7.5 0 1 1 11-6.64.75.75 0 0 0 1.5 0 9 9 0 0 0-9-9m0 6.25a2.75 2.75 0 1 0 0 5.5 2.75 2.75 0 0 0 0-5.5m0 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19.28 4.72a.75.75 0 1 0-1.06 1.06L19.44 7h-.19c-3.92 0-6.42 2.3-8.7 4.39l-.06.06C8.15 13.6 6.04 15.5 2.75 15.5a.75.75 0 0 0 0 1.5c3.92 0 6.42-2.3 8.7-4.39l.06-.06c2.34-2.15 4.45-4.05 7.74-4.05h.19l-1.22 1.22a.75.75 0 1 0 1.06 1.06l2.5-2.5a.75.75 0 0 0 0-1.06zM2.75 7c3.25 0 5.52 1.58 7.5 3.31l-.3.28-.13.12-.68.62C7.28 9.73 5.4 8.5 2.75 8.5a.75.75 0 1 1 0-1.5m16.5 10c-3.25 0-5.52-1.58-7.5-3.31l.3-.28.13-.12.68-.62c1.86 1.6 3.74 2.83 6.39 2.83h.19l-1.22-1.22a.75.75 0 0 1 1.06-1.06l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06L19.44 17z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.25 4h-.1a.75.75 0 0 0-.65.75v12.7l-3.22-3.23-.08-.07a.75.75 0 0 0-.98 1.14l4.5 4.5.09.07c.3.22.7.2.97-.07l4.5-4.5.07-.09c.22-.3.2-.7-.07-.98l-.08-.07a.75.75 0 0 0-.98.07L18 17.45V4.65a.75.75 0 0 0-.75-.65m-11.04.22-4.49 4.5-.07.08c-.22.3-.2.7.07.98l.08.07c.3.22.71.2.98-.07L6 6.56v12.8c.05.36.37.64.75.64h.1a.75.75 0 0 0 .65-.75V6.55l3.22 3.23.08.07a.75.75 0 0 0 .98-1.14l-4.5-4.5-.09-.06a.75.75 0 0 0-.98.07"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.75 2c.38 0 .7.28.74.65l.01.1v5.69l4.57-4.56a6.4 6.4 0 0 1 8.88-.18l.19.18a6.4 6.4 0 0 1 0 9.06l-8.85 8.84a.75.75 0 0 1-1.06-1.06l8.85-8.84a4.9 4.9 0 0 0-6.77-7.1l-.18.16L6.56 9.5h5.69c.38 0 .7.28.74.65l.01.1c0 .38-.28.7-.65.74l-.1.01h-7.5a.75.75 0 0 1-.74-.65l-.01-.1v-7.5c0-.41.34-.75.75-.75"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.2 10.73a.75.75 0 0 0 1.1 1.04l5.95-6.25v14.73a.75.75 0 0 0 1.5 0V5.52l5.95 6.25a.75.75 0 0 0 1.1-1.04l-7.08-7.42a1 1 0 0 0-1.44 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5zM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11.77 3.74a6 6 0 0 1 8.66 8.3l-.19.2-8.8 8.8-.03.03a3.72 3.72 0 0 1-5.4-5.1l.05-.06.08-.09.14-.15 7.44-7.45c.27-.27.69-.29.98-.07l.08.07c.27.27.3.68.08.98l-.08.08-7.59 7.61a2.23 2.23 0 0 0 3.17 3.1l8.84-8.82A4.5 4.5 0 0 0 13 4.64l-.17.16-.01.02-9.54 9.53a.75.75 0 0 1-1.13-.97l.07-.09z"/></svg>
package/icons/book.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zm1.5 1.5h7v-1h-7zM4 4.5A2.5 2.5 0 0 1 6.5 2H18a2.5 2.5 0 0 1 2.5 2.5v14.25c0 .41-.34.75-.75.75H5.5a1 1 0 0 0 1 1h13.25a.75.75 0 0 1 0 1.5H6.5A2.5 2.5 0 0 1 4 19.5zM5.5 18H19V4.5a1 1 0 0 0-1-1H6.5a1 1 0 0 0-1 1z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.2 21.85a.75.75 0 0 1-1.2-.6v-15C5 4.45 6.46 3 8.25 3h7.5C17.55 3 19 4.46 19 6.25v15c0 .6-.7.96-1.19.6l-5.8-4.18zm11.3-15.6c0-.97-.78-1.75-1.75-1.75h-7.5c-.96 0-1.75.78-1.75 1.75v13.53l5.06-3.64a.75.75 0 0 1 .88 0l5.06 3.64z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.75 2C14.99 2 16 3 16 4.25V6h2.75C20.55 6 22 7.46 22 9.25v8.5c0 1.8-1.46 3.25-3.25 3.25H5.25A3.25 3.25 0 0 1 2 17.75v-8.5C2 7.45 3.46 6 5.25 6H8V4.25C8 3.01 9 2 10.25 2zm6.75 11.49q-.76.5-1.75.51H14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1H5.25q-.97-.02-1.75-.51v4.26c0 .97.78 1.75 1.75 1.75h13.5c.97 0 1.75-.78 1.75-1.75zM5.25 7.5c-.97 0-1.75.78-1.75 1.75v1.5c0 .97.78 1.75 1.75 1.75H10V12a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v.5h4.75c.97 0 1.75-.78 1.75-1.75v-1.5c0-.97-.78-1.75-1.75-1.75zm5-4a.75.75 0 0 0-.75.75V6h5V4.25a.75.75 0 0 0-.75-.75z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.75 3C19.55 3 21 4.46 21 6.25v11.5c0 1.8-1.46 3.25-3.25 3.25H6.25A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3zm1.75 5.5h-15v9.25c0 .97.78 1.75 1.75 1.75h11.5c.97 0 1.75-.78 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25c-.97 0-1.75.78-1.75 1.75V7h15v-.75c0-.97-.78-1.75-1.75-1.75"/></svg>
package/icons/call.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m7.06 2.42 1.16-.35c1.33-.4 2.74.24 3.3 1.5l.9 2a2.75 2.75 0 0 1-.63 3.15L10.3 10.1a.3.3 0 0 0-.08.16q-.07.62.85 2.24.68 1.17 1.2 1.64c.25.21.38.26.44.24l2-.61a2.75 2.75 0 0 1 3.04 1.02l1.28 1.77c.8 1.12.66 2.66-.34 3.6l-.88.85a3.8 3.8 0 0 1-3.59.89q-4.12-1.17-7.44-6.93T4.51 5.07a3.8 3.8 0 0 1 2.55-2.65m.43 1.43c-.75.23-1.33.83-1.53 1.6q-.91 3.5 2.12 8.78 3.07 5.28 6.54 6.23c.76.21 1.58.01 2.15-.53l.9-.84c.45-.43.51-1.13.15-1.64l-1.29-1.77a1.25 1.25 0 0 0-1.37-.47l-2.02.62c-1.17.35-2.23-.6-3.37-2.57Q8.6 11.28 8.73 10.1q.08-.64.55-1.09l1.5-1.39c.38-.37.5-.94.28-1.43l-.9-2c-.26-.58-.9-.87-1.5-.69z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.92 2.5c.8 0 1.54.43 1.94 1.11l.82 1.4h2.07C20.55 5 22 6.45 22 8.24v9.5c0 1.8-1.46 3.25-3.25 3.25H5.25A3.25 3.25 0 0 1 2 17.75v-9.5C2 6.45 3.46 5 5.25 5h2.08l.88-1.42a2.3 2.3 0 0 1 1.91-1.08zm0 1.5h-3.8q-.34 0-.57.27l-.07.1-1.1 1.77a.8.8 0 0 1-.63.36h-2.5c-.97 0-1.75.78-1.75 1.75v9.5c0 .97.78 1.75 1.75 1.75h13.5c.97 0 1.75-.78 1.75-1.75v-9.5c0-.97-.78-1.75-1.75-1.75h-2.5a.8.8 0 0 1-.65-.37l-1.03-1.76a.8.8 0 0 0-.65-.37M12 8a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9m0 1.5a3 3 0 1 0 0 6 3 3 0 0 0 0-6"/></svg>
package/icons/chat.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 1-4.59 18.89L3.6 21.96a1.25 1.25 0 0 1-1.54-1.54l1.06-3.83A10 10 0 0 1 12 2m0 1.5a8.5 8.5 0 0 0-7.43 12.64l.15.27-1.1 3.98 3.98-1.11.27.15A8.5 8.5 0 1 0 12 3.5M8.75 13h4.5a.75.75 0 0 1 .1 1.5h-4.6a.75.75 0 0 1-.1-1.5zh4.5zm0-3.5h6.5a.75.75 0 0 1 .1 1.5h-6.6a.75.75 0 0 1-.1-1.5zh6.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5c.3.3.77.3 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.13.98l-.07.08-5 5a.75.75 0 0 1-.98.07l-.08-.07-2.5-2.5a.75.75 0 0 1 .98-1.13l.08.07zl4.47-4.47z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.22 8.47c.3-.3.77-.3 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25c-.3.3-.77.3-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.53 4.22c.3.3.3.77 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25c.3-.3.77-.3 1.06 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8.47 4.22c-.3.3-.3.77 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25c.3-.3.3-.77 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4.22 15.53c.3.3.77.3 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25c-.3.3-.3.77 0 1.06"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.03 11.03a.75.75 0 1 0-1.06-1.06L11 14.94l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5c.3.3.77.3 1.06 0zm-1.04-6.95A2.25 2.25 0 0 0 13.75 2h-3.5c-1.16 0-2.11.87-2.24 2H6.25C5.01 4 4 5 4 6.25v13.5C4 20.99 5 22 6.25 22h11.5c1.24 0 2.25-1 2.25-2.25V6.25C20 5.01 19 4 17.75 4h-1.76zm0 .02.01.15zm-5.74 2.4h3.5c.78 0 1.47-.4 1.87-1h2.13c.41 0 .75.34.75.75v13.5c0 .41-.34.75-.75.75H6.25a.75.75 0 0 1-.75-.75V6.25c0-.41.34-.75.75-.75h2.13c.4.6 1.09 1 1.87 1m0-3h3.5a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1 0-1.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 4.65a.75.75 0 0 0-1.5.1v6.1c.06.37.37.65.75.65h4.1a.75.75 0 0 0-.1-1.5H12V6.65"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.75 4C20.55 4 22 5.46 22 7.25v9.5c0 1.8-1.46 3.25-3.25 3.25H5.25A3.25 3.25 0 0 1 2 16.75v-9.5a3.25 3.25 0 0 1 3.07-3.24L5.25 4zm0 1.5H5.11c-.9.08-1.61.83-1.61 1.75v9.5c0 .97.78 1.75 1.75 1.75h13.5c.97 0 1.75-.78 1.75-1.75v-9.5c0-.97-.78-1.75-1.75-1.75M5.5 12c0-3.15 2.71-4.78 5.12-3.4a.75.75 0 0 1-.74 1.3C8.48 9.1 7 10 7 12s1.48 2.9 2.88 2.1a.75.75 0 0 1 .74 1.3c-2.4 1.37-5.12-.26-5.12-3.4m7.5 0c0-3.15 2.71-4.78 5.12-3.4a.75.75 0 0 1-.74 1.3c-1.4-.8-2.88.1-2.88 2.1s1.48 2.9 2.88 2.1a.75.75 0 0 1 .74 1.3C15.72 16.78 13 15.15 13 12"/></svg>