@dataengineeringformachinelearning/viking-ui 3.0.0-alpha.2 → 4.0.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 (198) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +55 -12
  3. package/dist/LICENSE +201 -0
  4. package/dist/README.md +251 -0
  5. package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +13751 -0
  6. package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +1 -0
  7. package/dist/index.js +1 -4051
  8. package/dist/package.json +87 -0
  9. package/dist/scripts/build-web-components.mjs +37 -0
  10. package/dist/src/tokens/series-presets.ts +15 -0
  11. package/dist/src/tokens/tailwind.preset.js +209 -0
  12. package/dist/src/tokens/viking-tokens.json +318 -0
  13. package/dist/src/web/badge/viking-badge-wc.ts +116 -0
  14. package/dist/src/web/button/viking-button-wc.ts +165 -0
  15. package/dist/src/web/callout/viking-callout-wc.ts +105 -0
  16. package/dist/src/web/card/viking-card-wc.ts +66 -0
  17. package/dist/src/web/core/base.ts +56 -0
  18. package/dist/src/web/core/dom.ts +53 -0
  19. package/dist/src/web/core/icons-inline.ts +44 -0
  20. package/dist/src/web/core/styles.ts +1138 -0
  21. package/dist/src/web/core/types.ts +19 -0
  22. package/dist/src/web/field/viking-field-wc.ts +154 -0
  23. package/dist/src/web/index.ts +73 -0
  24. package/dist/src/web/input/viking-input-wc.ts +211 -0
  25. package/dist/src/web/modal/viking-modal-wc.ts +187 -0
  26. package/dist/src/web/search-palette/viking-search-palette-wc.ts +494 -0
  27. package/dist/src/web/select/viking-select-wc.ts +218 -0
  28. package/dist/src/web/suite-header/viking-suite-header-wc.ts +714 -0
  29. package/dist/src/web/suite-search-palette/viking-suite-search-palette-wc.ts +234 -0
  30. package/dist/src/web/theme-toggle/viking-theme-toggle-wc.ts +139 -0
  31. package/dist/src/web/types.ts +37 -0
  32. package/dist/src/web/web-components.spec.ts +297 -0
  33. package/dist/types/dataengineeringformachinelearning-viking-ui.d.ts +2658 -0
  34. package/dist/viking.manifest.json +271 -0
  35. package/dist/web-components.js +2427 -126
  36. package/package.json +25 -11
  37. package/src/assets/drakkar-favicon.svg +17 -0
  38. package/src/core/brand/deml-lockup.svg +5 -0
  39. package/src/core/brand/deml-mark-compact.svg +4 -0
  40. package/src/core/brand/deml-mark-filled.svg +3 -0
  41. package/src/core/brand/deml-mark-outline.svg +4 -0
  42. package/src/core/brand-icons.ts +62 -0
  43. package/src/core/icons.spec.ts +52 -0
  44. package/src/core/icons.ts +206 -0
  45. package/src/core/integration-brand-icons.ts +77 -0
  46. package/src/core/lucide-paths.generated.ts +130 -0
  47. package/src/core/types.ts +85 -0
  48. package/src/core/uid.ts +7 -0
  49. package/src/lib/accordion/accordion.ts +126 -0
  50. package/src/lib/app-header/app-header.scss +274 -0
  51. package/src/lib/app-header/app-header.ts +43 -0
  52. package/src/lib/app-sidebar/app-sidebar.scss +415 -0
  53. package/src/lib/app-sidebar/app-sidebar.ts +29 -0
  54. package/src/lib/auth-panel/auth-panel.spec.ts +132 -0
  55. package/src/lib/auth-panel/auth-panel.ts +228 -0
  56. package/src/lib/autocomplete/autocomplete.ts +223 -0
  57. package/src/lib/avatar/avatar.ts +126 -0
  58. package/src/lib/badge/badge.ts +182 -0
  59. package/src/lib/bar/bar.ts +31 -0
  60. package/src/lib/brand/brand.ts +60 -0
  61. package/src/lib/breadcrumbs/breadcrumbs.ts +81 -0
  62. package/src/lib/button/button-group.ts +40 -0
  63. package/src/lib/button/button.scss +96 -0
  64. package/src/lib/button/button.ts +98 -0
  65. package/src/lib/calendar/calendar.ts +253 -0
  66. package/src/lib/callout/callout.ts +211 -0
  67. package/src/lib/card/card-title.spec.ts +27 -0
  68. package/src/lib/card/card-title.ts +50 -0
  69. package/src/lib/card/card.ts +170 -0
  70. package/src/lib/carousel/carousel.ts +206 -0
  71. package/src/lib/chart/chart-zoom.spec.ts +65 -0
  72. package/src/lib/chart/chart-zoom.ts +71 -0
  73. package/src/lib/chart/chart.ts +1257 -0
  74. package/src/lib/chart-card-header/chart-card-header.ts +80 -0
  75. package/src/lib/chart-empty-state/chart-empty-state.ts +146 -0
  76. package/src/lib/chart-panel/chart-panel.ts +133 -0
  77. package/src/lib/checkbox/checkbox.ts +139 -0
  78. package/src/lib/color-picker/color-picker.ts +148 -0
  79. package/src/lib/command/command.ts +260 -0
  80. package/src/lib/composer/composer.ts +180 -0
  81. package/src/lib/confirm-dialog/confirm-dialog.ts +163 -0
  82. package/src/lib/confirm-dialog/dialog.service.ts +79 -0
  83. package/src/lib/context/context.ts +75 -0
  84. package/src/lib/core/cva.ts +33 -0
  85. package/src/lib/date-picker/date-picker.ts +139 -0
  86. package/src/lib/dropdown/dropdown.ts +188 -0
  87. package/src/lib/editor/editor.ts +170 -0
  88. package/src/lib/empty-state/empty-state.ts +100 -0
  89. package/src/lib/fab/fab.ts +76 -0
  90. package/src/lib/field/field.ts +111 -0
  91. package/src/lib/file-upload/file-upload.ts +208 -0
  92. package/src/lib/footer/footer.scss +155 -0
  93. package/src/lib/footer/footer.ts +28 -0
  94. package/src/lib/form-section/form-section.ts +200 -0
  95. package/src/lib/forms.spec.ts +92 -0
  96. package/src/lib/gauge-arc/gauge-arc.ts +85 -0
  97. package/src/lib/hud-panel/hud-panel.ts +27 -0
  98. package/src/lib/icon/icon.ts +284 -0
  99. package/src/lib/icon-badge/icon-badge.ts +87 -0
  100. package/src/lib/icon-heading/icon-heading.spec.ts +32 -0
  101. package/src/lib/icon-heading/icon-heading.ts +38 -0
  102. package/src/lib/icon-text/icon-text.ts +120 -0
  103. package/src/lib/input/input.ts +119 -0
  104. package/src/lib/kanban/kanban.ts +211 -0
  105. package/src/lib/kbd/kbd.ts +32 -0
  106. package/src/lib/label/label.ts +39 -0
  107. package/src/lib/loading-overlay/loading-overlay.ts +80 -0
  108. package/src/lib/menubar/menubar.ts +77 -0
  109. package/src/lib/metric-card/metric-card.ts +33 -0
  110. package/src/lib/modal/modal.ts +207 -0
  111. package/src/lib/native-select/native-select.ts +124 -0
  112. package/src/lib/navbar/navbar.ts +124 -0
  113. package/src/lib/navigation-menu/navigation-menu.ts +116 -0
  114. package/src/lib/otp-input/otp-input.ts +164 -0
  115. package/src/lib/page-back-link/page-back-link.ts +74 -0
  116. package/src/lib/page-header/page-header.ts +70 -0
  117. package/src/lib/pagination/pagination.ts +157 -0
  118. package/src/lib/pillbox/pillbox.ts +157 -0
  119. package/src/lib/popover/popover.ts +92 -0
  120. package/src/lib/profile/profile.ts +73 -0
  121. package/src/lib/progress/progress.ts +123 -0
  122. package/src/lib/radio/radio.ts +132 -0
  123. package/src/lib/ring-gauge/ring-gauge.ts +75 -0
  124. package/src/lib/scroll-area/scroll-area.ts +57 -0
  125. package/src/lib/search-palette/search-palette.scss +288 -0
  126. package/src/lib/search-palette/search-palette.ts +114 -0
  127. package/src/lib/select/select.ts +292 -0
  128. package/src/lib/separator/separator.ts +59 -0
  129. package/src/lib/sheet/sheet.ts +192 -0
  130. package/src/lib/sidebar-nav/sidebar-nav.scss +218 -0
  131. package/src/lib/sidebar-nav/sidebar-nav.ts +158 -0
  132. package/src/lib/site-drakkar/site-footer.ts +129 -0
  133. package/src/lib/site-drakkar/site-navbar.scss +2 -0
  134. package/src/lib/site-drakkar/site-navbar.ts +267 -0
  135. package/src/lib/site-drakkar/suite-search-items.spec.ts +61 -0
  136. package/src/lib/skeleton/skeleton.ts +51 -0
  137. package/src/lib/slider/slider.ts +133 -0
  138. package/src/lib/spinner/spinner.ts +75 -0
  139. package/src/lib/status-metric-row/status-metric-row.ts +74 -0
  140. package/src/lib/suite-search-palette/suite-search-palette.ts +95 -0
  141. package/src/lib/switch/switch.ts +131 -0
  142. package/src/lib/table/table.ts +137 -0
  143. package/src/lib/tabs/tab-panel.ts +61 -0
  144. package/src/lib/tabs/tab.ts +107 -0
  145. package/src/lib/tabs/tabs.ts +109 -0
  146. package/src/lib/textarea/textarea.ts +103 -0
  147. package/src/lib/theme-toggle/theme-toggle.spec.ts +40 -0
  148. package/src/lib/theme-toggle/theme-toggle.ts +39 -0
  149. package/src/lib/time-picker/time-picker.ts +197 -0
  150. package/src/lib/timeline/timeline.ts +152 -0
  151. package/src/lib/toast/toast.ts +196 -0
  152. package/src/lib/toggle/toggle-group.ts +60 -0
  153. package/src/lib/toggle/toggle.ts +101 -0
  154. package/src/lib/tooltip/tooltip.ts +119 -0
  155. package/src/lib/typography/heading.ts +52 -0
  156. package/src/lib/typography/text.ts +51 -0
  157. package/src/lib/uptime-bar/uptime-bar.ts +55 -0
  158. package/src/lib/verification-code-field/verification-code-field.ts +149 -0
  159. package/src/lib/whitepaper-cta/whitepaper-cta.scss +130 -0
  160. package/src/lib/whitepaper-cta/whitepaper-cta.ts +78 -0
  161. package/src/lib/wizard/wizard.ts +80 -0
  162. package/src/public-api.ts +172 -0
  163. package/src/tokens/series-presets.ts +15 -0
  164. package/src/tokens/tailwind.preset.js +209 -0
  165. package/src/viking-ui.spec.ts +416 -0
  166. package/src/web/web-components.spec.ts +297 -0
  167. package/dist/elements/button/viking-button.d.ts +0 -14
  168. package/dist/elements/card/viking-card.d.ts +0 -8
  169. package/dist/elements/core/dom.d.ts +0 -4
  170. package/dist/elements/core/styles.d.ts +0 -2
  171. package/dist/elements/modal/viking-modal.d.ts +0 -15
  172. package/dist/index.d.ts +0 -1
  173. package/dist/lib/core/brand-icons.d.ts +0 -29
  174. package/dist/lib/core/icons.d.ts +0 -132
  175. package/dist/lib/core/integration-brand-icons.d.ts +0 -18
  176. package/dist/lib/core/lucide-paths.generated.d.ts +0 -90
  177. package/dist/lib/site-drakkar/site-drakkar.config.d.ts +0 -50
  178. package/dist/lib/site-drakkar/suite-search-items.d.ts +0 -17
  179. package/dist/web/badge/viking-badge-wc.d.ts +0 -28
  180. package/dist/web/button/viking-button-wc.d.ts +0 -28
  181. package/dist/web/callout/viking-callout-wc.d.ts +0 -27
  182. package/dist/web/card/viking-card-wc.d.ts +0 -29
  183. package/dist/web/core/base.d.ts +0 -12
  184. package/dist/web/core/dom.d.ts +0 -11
  185. package/dist/web/core/icons-inline.d.ts +0 -7
  186. package/dist/web/core/styles.d.ts +0 -12
  187. package/dist/web/core/types.d.ts +0 -10
  188. package/dist/web/field/viking-field-wc.d.ts +0 -32
  189. package/dist/web/index.d.ts +0 -15
  190. package/dist/web/input/viking-input-wc.d.ts +0 -32
  191. package/dist/web/modal/viking-modal-wc.d.ts +0 -50
  192. package/dist/web/search-palette/viking-search-palette-wc.d.ts +0 -64
  193. package/dist/web/select/viking-select-wc.d.ts +0 -48
  194. package/dist/web/suite-header/viking-suite-header-wc.d.ts +0 -36
  195. package/dist/web/suite-search-palette/viking-suite-search-palette-wc.d.ts +0 -39
  196. package/dist/web/theme-toggle/viking-theme-toggle-wc.d.ts +0 -19
  197. package/dist/web/types.d.ts +0 -40
  198. package/dist/web-components/index.d.ts +0 -1
@@ -0,0 +1,130 @@
1
+ /**
2
+ * AUTO-GENERATED by scripts/sync_lucide_icons.mjs — do not edit by hand.
3
+ * Lucide paths are inlined at build time; lucide is a devDependency only.
4
+ * @see https://lucide.dev
5
+ */
6
+ export const LUCIDE_ICON_PATHS = {
7
+ "alert-circle":
8
+ '<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',
9
+ "alert-triangle":
10
+ '<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
11
+ "arrow-left": '<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',
12
+ "arrow-right": '<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',
13
+ "arrow-up-right": '<path d="M7 7h10v10"/><path d="M7 17 17 7"/>',
14
+ "bar-chart":
15
+ '<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/>',
16
+ bell: '<path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>',
17
+ bold: '<path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"/>',
18
+ bolt: '<path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"/>',
19
+ brain:
20
+ '<path d="M12 18V5"/><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"/><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"/><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"/><path d="M18 18a4 4 0 0 0 2-7.464"/><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"/><path d="M6 18a4 4 0 0 1-2-7.464"/><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"/>',
21
+ bug: '<path d="M12 20v-9"/><path d="M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"/><path d="M14.12 3.88 16 2"/><path d="M21 21a4 4 0 0 0-3.81-4"/><path d="M21 5a4 4 0 0 1-3.55 3.97"/><path d="M22 13h-4"/><path d="M3 21a4 4 0 0 1 3.81-4"/><path d="M3 5a4 4 0 0 0 3.55 3.97"/><path d="M6 13H2"/><path d="m8 2 1.88 1.88"/><path d="M9 7.13V6a3 3 0 1 1 6 0v1.13"/>',
22
+ building:
23
+ '<path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M12 6h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M16 6h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/><path d="M8 6h.01"/><path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"/><rect x="4" y="2" width="16" height="20" rx="2"/>',
24
+ calendar:
25
+ '<path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/>',
26
+ check: '<path d="M20 6 9 17l-5-5"/>',
27
+ "check-circle": '<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',
28
+ "chevron-down": '<path d="m6 9 6 6 6-6"/>',
29
+ "chevron-left": '<path d="m15 18-6-6 6-6"/>',
30
+ "chevron-right": '<path d="m9 18 6-6-6-6"/>',
31
+ "chevron-up": '<path d="m18 15-6-6-6 6"/>',
32
+ chip: '<path d="M12 20v2"/><path d="M12 2v2"/><path d="M17 20v2"/><path d="M17 2v2"/><path d="M2 12h2"/><path d="M2 17h2"/><path d="M2 7h2"/><path d="M20 12h2"/><path d="M20 17h2"/><path d="M20 7h2"/><path d="M7 20v2"/><path d="M7 2v2"/><rect x="4" y="4" width="16" height="16" rx="2"/><rect x="8" y="8" width="8" height="8" rx="1"/>',
33
+ clock: '<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',
34
+ cloud: '<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',
35
+ cookie:
36
+ '<path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"/><path d="M8.5 8.5v.01"/><path d="M16 15.5v.01"/><path d="M12 12v.01"/><path d="M11 17v.01"/><path d="M7 14v.01"/>',
37
+ copy: '<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',
38
+ "dots-horizontal":
39
+ '<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="19" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="5" cy="12" r="1" fill="currentColor" stroke="none"/>',
40
+ "dots-vertical":
41
+ '<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1" fill="currentColor" stroke="none"/>',
42
+ download:
43
+ '<path d="M12 15V3"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/>',
44
+ external:
45
+ '<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',
46
+ eye: '<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>',
47
+ "eye-off":
48
+ '<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>',
49
+ file: '<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/>',
50
+ filter:
51
+ '<path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"/>',
52
+ fingerprint:
53
+ '<path d="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"/><path d="M14 13.12c0 2.38 0 6.38-1 8.88"/><path d="M17.29 21.02c.12-.6.43-2.3.5-3.02"/><path d="M2 12a10 10 0 0 1 18-6"/><path d="M2 16h.01"/><path d="M21.8 16c.2-2 .131-5.354 0-6"/><path d="M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"/><path d="M8.65 22c.21-.66.45-1.32.57-2"/><path d="M9 6.8a6 6 0 0 1 9 5.2v2"/>',
54
+ folder:
55
+ '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',
56
+ globe:
57
+ '<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',
58
+ "grip-vertical":
59
+ '<circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="19" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="19" r="1" fill="currentColor" stroke="none"/>',
60
+ heart:
61
+ '<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/>',
62
+ home: '<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>',
63
+ image:
64
+ '<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',
65
+ info: '<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',
66
+ insights: '<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="m19 9-5 5-4-4-3 3"/>',
67
+ italic:
68
+ '<line x1="19" x2="10" y1="4" y2="4"/><line x1="14" x2="5" y1="20" y2="20"/><line x1="15" x2="9" y1="4" y2="20"/>',
69
+ key: '<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/>',
70
+ link: '<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',
71
+ list: '<path d="M3 5h.01"/><path d="M3 12h.01"/><path d="M3 19h.01"/><path d="M8 5h13"/><path d="M8 12h13"/><path d="M8 19h13"/>',
72
+ "list-ordered":
73
+ '<path d="M11 5h10"/><path d="M11 12h10"/><path d="M11 19h10"/><path d="M4 4h1v5"/><path d="M4 9h2"/><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"/>',
74
+ loader: '<path d="M21 12a9 9 0 1 1-6.219-8.56"/>',
75
+ lock: '<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',
76
+ "log-in":
77
+ '<path d="m10 17 5-5-5-5"/><path d="M15 12H3"/><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>',
78
+ "log-out":
79
+ '<path d="m16 17 5-5-5-5"/><path d="M21 12H9"/><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>',
80
+ mail: '<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect x="2" y="4" width="20" height="16" rx="2"/>',
81
+ menu: '<path d="M4 5h16"/><path d="M4 12h16"/><path d="M4 19h16"/>',
82
+ minus: '<path d="M5 12h14"/>',
83
+ moon: '<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>',
84
+ network:
85
+ '<rect x="16" y="16" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="9" y="2" width="6" height="6" rx="1"/><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"/><path d="M12 12V8"/>',
86
+ paperclip:
87
+ '<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/>',
88
+ pencil:
89
+ '<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>',
90
+ phone:
91
+ '<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/>',
92
+ play: '<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" fill="currentColor" stroke="none"/>',
93
+ plus: '<path d="M5 12h14"/><path d="M12 5v14"/>',
94
+ policy:
95
+ '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>',
96
+ refresh:
97
+ '<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',
98
+ rocket:
99
+ '<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"/><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"/>',
100
+ search: '<path d="m21 21-4.34-4.34"/><circle cx="11" cy="11" r="8"/>',
101
+ "search-off":
102
+ '<path d="m13.5 8.5-5 5"/><path d="m8.5 8.5 5 5"/><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',
103
+ send: '<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/>',
104
+ server:
105
+ '<rect width="20" height="8" x="2" y="2" rx="2" ry="2"/><rect width="20" height="8" x="2" y="14" rx="2" ry="2"/><line x1="6" x2="6.01" y1="6" y2="6"/><line x1="6" x2="6.01" y1="18" y2="18"/>',
106
+ settings:
107
+ '<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',
108
+ shield:
109
+ '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>',
110
+ ship: '<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',
111
+ sparkle:
112
+ '<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',
113
+ speed: '<path d="m12 14 4-4"/><path d="M3.34 19a10 10 0 1 1 17.32 0"/>',
114
+ star: '<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/>',
115
+ sun: '<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',
116
+ terminal: '<path d="M12 19h8"/><path d="m4 17 6-6-6-6"/>',
117
+ trash:
118
+ '<path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>',
119
+ "trending-up": '<path d="M16 7h6v6"/><path d="m22 7-8.5 8.5-5-5L2 17"/>',
120
+ underline:
121
+ '<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" x2="20" y1="20" y2="20"/>',
122
+ upload:
123
+ '<path d="M12 3v12"/><path d="m17 8-5-5-5 5"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>',
124
+ user: '<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',
125
+ "user-shield":
126
+ '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="M6.376 18.91a6 6 0 0 1 11.249.003"/><circle cx="12" cy="11" r="4"/>',
127
+ x: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
128
+ } as const;
129
+
130
+ export type LucideIconName = keyof typeof LUCIDE_ICON_PATHS;
@@ -0,0 +1,85 @@
1
+ import type { VikingIconName } from "./icons";
2
+
3
+ /** Semantic tones — every tone resolves to a THEME.md token. */
4
+ export type VikingTone =
5
+ | "accent"
6
+ | "secondary"
7
+ | "success"
8
+ | "warning"
9
+ | "danger"
10
+ | "info"
11
+ | "muted";
12
+
13
+ export type VikingSize = "base" | "sm" | "xs";
14
+
15
+ export interface VikingSelectOption<T = unknown> {
16
+ label: string;
17
+ value: T;
18
+ disabled?: boolean;
19
+ }
20
+
21
+ export interface VikingCommandItem {
22
+ id: string;
23
+ label: string;
24
+ group?: string;
25
+ icon?: VikingIconName;
26
+ kbd?: string;
27
+ }
28
+
29
+ export interface VikingKanbanCard {
30
+ id: string;
31
+ title: string;
32
+ description?: string;
33
+ tone?: VikingTone;
34
+ }
35
+
36
+ export interface VikingKanbanColumn {
37
+ id: string;
38
+ title: string;
39
+ cards: VikingKanbanCard[];
40
+ }
41
+
42
+ export interface VikingKanbanMove {
43
+ cardId: string;
44
+ fromColumnId: string;
45
+ toColumnId: string;
46
+ toIndex: number;
47
+ }
48
+
49
+ export interface VikingChartSeries {
50
+ name: string;
51
+ data: number[];
52
+ tone?: VikingTone;
53
+ }
54
+
55
+ export type VikingChartKind =
56
+ | "line"
57
+ | "area"
58
+ | "bar"
59
+ | "grouped-bar"
60
+ | "stacked-bar"
61
+ | "sparkline"
62
+ | "donut";
63
+
64
+ export type VikingChartCurve = "linear" | "smooth";
65
+
66
+ export interface VikingDonutSegment {
67
+ label: string;
68
+ value: number;
69
+ tone?: VikingTone;
70
+ }
71
+
72
+ export interface VikingToastOptions {
73
+ heading?: string;
74
+ text: string;
75
+ tone?: VikingTone;
76
+ /** Auto-dismiss duration in ms. 0 disables auto-dismiss. */
77
+ duration?: number;
78
+ }
79
+
80
+ export interface VikingToastInstance extends Required<
81
+ Omit<VikingToastOptions, "heading">
82
+ > {
83
+ id: number;
84
+ heading: string;
85
+ }
@@ -0,0 +1,7 @@
1
+ let counter = 0;
2
+
3
+ /** Generates a stable, unique DOM id for label/control associations. */
4
+ export const vikingUid = (prefix: string): string => {
5
+ counter += 1;
6
+ return `${prefix}-${counter}`;
7
+ };
@@ -0,0 +1,126 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ Optional,
5
+ input,
6
+ model,
7
+ } from "@angular/core";
8
+ import { VikingIcon } from "../icon/icon";
9
+ import { vikingUid } from "../../core/uid";
10
+
11
+ /**
12
+ * viking-accordion — collapsible content panels.
13
+ * Set exclusive to allow only one open item at a time.
14
+ */
15
+ @Component({
16
+ selector: "viking-accordion",
17
+ changeDetection: ChangeDetectionStrategy.OnPush,
18
+ template: `<ng-content />`,
19
+ styles: [
20
+ `
21
+ :host {
22
+ display: block;
23
+ border: 1px solid var(--viking-border);
24
+ border-radius: var(--viking-radius);
25
+ background: var(--viking-surface);
26
+ overflow: hidden;
27
+ }
28
+ :host ::ng-deep viking-accordion-item:not(:last-child) {
29
+ border-bottom: 1px solid var(--viking-border);
30
+ }
31
+ `,
32
+ ],
33
+ })
34
+ export class VikingAccordion {
35
+ readonly exclusive = input<boolean>(false);
36
+
37
+ private openItem: VikingAccordionItem | null = null;
38
+
39
+ /** Called by items when they open, to enforce exclusive mode. */
40
+ readonly notifyOpened = (item: VikingAccordionItem): void => {
41
+ if (this.exclusive() && this.openItem && this.openItem !== item) {
42
+ this.openItem.expanded.set(false);
43
+ }
44
+ this.openItem = item;
45
+ };
46
+ }
47
+
48
+ /** A single expandable section within viking-accordion. */
49
+ @Component({
50
+ selector: "viking-accordion-item",
51
+ imports: [VikingIcon],
52
+ changeDetection: ChangeDetectionStrategy.OnPush,
53
+ template: `
54
+ <button
55
+ type="button"
56
+ class="viking-accordion-trigger"
57
+ [attr.aria-expanded]="expanded()"
58
+ [attr.aria-controls]="panelId"
59
+ (click)="toggle()"
60
+ >
61
+ <span class="viking-accordion-heading">{{ heading() }}</span>
62
+ <viking-icon
63
+ [name]="expanded() ? 'chevron-up' : 'chevron-down'"
64
+ [size]="18"
65
+ />
66
+ </button>
67
+ @if (expanded()) {
68
+ <div class="viking-accordion-panel" [id]="panelId">
69
+ <ng-content />
70
+ </div>
71
+ }
72
+ `,
73
+ styles: [
74
+ `
75
+ :host {
76
+ display: block;
77
+ }
78
+ .viking-accordion-trigger {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: space-between;
82
+ gap: var(--viking-space-2);
83
+ width: 100%;
84
+ border: none;
85
+ background: transparent;
86
+ color: var(--viking-text);
87
+ font-family: var(--viking-font-family);
88
+ font-size: var(--viking-font-size-ui);
89
+ font-weight: 700;
90
+ padding: var(--viking-space-2);
91
+ cursor: pointer;
92
+ text-align: left;
93
+ transition: var(--viking-transition);
94
+ }
95
+ .viking-accordion-trigger:hover {
96
+ background: var(--viking-accent-soft);
97
+ }
98
+ .viking-accordion-trigger:focus-visible {
99
+ outline: var(--viking-ring-width) solid var(--viking-ring);
100
+ outline-offset: -3px;
101
+ }
102
+ .viking-accordion-panel {
103
+ padding: 0 var(--viking-space-2) var(--viking-space-2);
104
+ color: var(--viking-text-muted);
105
+ font-family: var(--viking-font-family);
106
+ font-size: var(--viking-font-size);
107
+ line-height: 1.6;
108
+ }
109
+ `,
110
+ ],
111
+ })
112
+ export class VikingAccordionItem {
113
+ constructor(@Optional() private readonly accordion: VikingAccordion | null) {}
114
+
115
+ readonly heading = input.required<string>();
116
+ readonly expanded = model<boolean>(false);
117
+
118
+ protected readonly panelId = vikingUid("viking-accordion-panel");
119
+
120
+ protected toggle = (): void => {
121
+ this.expanded.update((value) => !value);
122
+ if (this.expanded()) {
123
+ this.accordion?.notifyOpened(this);
124
+ }
125
+ };
126
+ }
@@ -0,0 +1,274 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .viking-app-header {
7
+ position: sticky;
8
+ top: 0;
9
+ z-index: 50;
10
+ width: 100%;
11
+ min-height: var(--viking-navbar-height, 64px);
12
+ background-color: var(--navbar-bg, var(--viking-surface));
13
+ border-bottom: 1px solid var(--viking-border-strong);
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: stretch;
17
+ padding: var(--viking-space-1) var(--viking-space-2);
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ .viking-app-header-content {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ width: 100%;
26
+ }
27
+
28
+ .viking-app-header-left {
29
+ flex: 1;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: flex-start;
33
+ }
34
+
35
+ .viking-app-header-right {
36
+ flex: 1;
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: flex-end;
40
+ gap: var(--viking-space-1);
41
+ }
42
+
43
+ .viking-app-header-center {
44
+ display: flex;
45
+ justify-content: center;
46
+ }
47
+
48
+ .viking-app-header-desktop-nav {
49
+ display: none;
50
+ align-items: center;
51
+ gap: calc(var(--viking-space-1) * 1.33);
52
+ padding: calc(var(--viking-space-1) / 2) 0;
53
+ }
54
+
55
+ .viking-app-header-desktop-auth {
56
+ display: none;
57
+ align-items: center;
58
+ gap: var(--viking-space-1);
59
+ }
60
+
61
+ ::ng-deep .viking-app-header-nav-link {
62
+ position: relative;
63
+ font-size: var(--viking-font-size) !important;
64
+ color: var(--nav-link-color, var(--viking-text-muted)) !important;
65
+ font-weight: 600 !important;
66
+ text-transform: uppercase !important;
67
+ letter-spacing: 0.08em !important;
68
+ transition:
69
+ color 0.2s ease,
70
+ background-color 0.2s ease,
71
+ box-shadow 0.2s ease,
72
+ transform 0.2s ease !important;
73
+ border-radius: var(--viking-radius) var(--viking-radius) 0 0 !important;
74
+ padding: 0 var(--viking-space-2) !important;
75
+ height: 40px !important;
76
+ min-height: 40px !important;
77
+ line-height: 1 !important;
78
+ display: inline-flex !important;
79
+ align-items: center !important;
80
+ gap: var(--viking-space-1) !important;
81
+ text-decoration: none;
82
+ background: transparent;
83
+ border: none;
84
+ cursor: pointer;
85
+ -webkit-tap-highlight-color: transparent;
86
+ }
87
+
88
+ ::ng-deep .viking-app-header-nav-link::before {
89
+ content: '';
90
+ position: absolute;
91
+ inset: auto var(--viking-space-2) 0;
92
+ height: 2px;
93
+ border-radius: 2px;
94
+ background: linear-gradient(
95
+ 90deg,
96
+ transparent,
97
+ color-mix(in srgb, var(--viking-accent) 80%, transparent),
98
+ transparent
99
+ );
100
+ opacity: 0;
101
+ transform: scaleX(0.4);
102
+ transition:
103
+ opacity 0.25s ease,
104
+ transform 0.25s ease;
105
+ pointer-events: none;
106
+ }
107
+
108
+ ::ng-deep .viking-app-header-nav-link:hover {
109
+ color: var(--viking-text) !important;
110
+ background-color: color-mix(in srgb, var(--viking-accent) 10%, transparent) !important;
111
+ transform: translateY(-1px);
112
+ }
113
+
114
+ ::ng-deep .viking-app-header-nav-link:hover::before {
115
+ opacity: 1;
116
+ transform: scaleX(1);
117
+ }
118
+
119
+ ::ng-deep .viking-app-header-nav-link.active,
120
+ ::ng-deep .viking-app-header-nav-link.viking-current {
121
+ color: var(--viking-text) !important;
122
+ background-color: color-mix(in srgb, var(--viking-accent) 14%, transparent) !important;
123
+ box-shadow:
124
+ inset 0 -2px 0 0 var(--viking-accent),
125
+ 0 0 12px color-mix(in srgb, var(--viking-accent) 18%, transparent) !important;
126
+ }
127
+
128
+ ::ng-deep .viking-app-header-icon-btn {
129
+ color: var(--viking-text-muted);
130
+ background: transparent;
131
+ border: none;
132
+ border-radius: 50%;
133
+ width: 48px;
134
+ height: 48px;
135
+ min-width: 48px;
136
+ padding: 0;
137
+ display: inline-flex;
138
+ align-items: center;
139
+ justify-content: center;
140
+ cursor: pointer;
141
+ flex-shrink: 0;
142
+ transition:
143
+ color 0.2s ease,
144
+ transform 0.2s ease,
145
+ background-color 0.2s ease;
146
+ -webkit-tap-highlight-color: transparent;
147
+ }
148
+
149
+ ::ng-deep .viking-app-header-icon-btn:hover {
150
+ color: var(--viking-text);
151
+ transform: rotate(15deg);
152
+ background-color: color-mix(in srgb, var(--viking-accent) 5%, transparent);
153
+ }
154
+
155
+ ::ng-deep .viking-app-header-icon-btn:focus-visible {
156
+ outline: var(--viking-ring-width) solid var(--viking-ring);
157
+ outline-offset: 3px;
158
+ }
159
+
160
+ ::ng-deep .viking-app-header-menu-toggle {
161
+ display: inline-flex !important;
162
+ width: 40px;
163
+ height: 40px;
164
+ min-width: 40px;
165
+ }
166
+
167
+ ::ng-deep .viking-app-header-auth-btn {
168
+ min-width: auto;
169
+ }
170
+
171
+ ::ng-deep .viking-app-header-auth-btn.viking-app-header-auth-btn-outline {
172
+ /* Global drakkar button styles from viking-ui.css */
173
+ }
174
+
175
+ ::ng-deep .viking-app-header-auth-btn:hover {
176
+ transform: translateY(var(--viking-state-hover-lift, -1px));
177
+ }
178
+
179
+ .viking-app-header-mobile {
180
+ display: none;
181
+ flex-direction: column;
182
+ position: absolute;
183
+ top: var(--viking-navbar-height, 64px);
184
+ left: 0;
185
+ right: 0;
186
+ background-color: var(--viking-surface);
187
+ box-shadow: var(--viking-shadow-md);
188
+ border-bottom: 1px solid var(--viking-border);
189
+ padding: var(--viking-space-2);
190
+ box-sizing: border-box;
191
+ z-index: 49;
192
+ gap: var(--viking-space-1);
193
+ transform: translateY(-10px);
194
+ opacity: 0;
195
+ pointer-events: none;
196
+ transition:
197
+ transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
198
+ opacity 0.25s ease;
199
+ }
200
+
201
+ .viking-app-header-mobile.viking-open {
202
+ transform: translateY(0);
203
+ opacity: 1;
204
+ pointer-events: auto;
205
+ display: flex;
206
+ }
207
+
208
+ ::ng-deep .viking-app-header-mobile-link {
209
+ width: 100% !important;
210
+ justify-content: flex-start !important;
211
+ font-size: var(--viking-font-size) !important;
212
+ color: var(--viking-text-muted) !important;
213
+ height: 40px !important;
214
+ min-height: 40px !important;
215
+ border-radius: var(--viking-radius) !important;
216
+ padding: 0 var(--viking-space-2) !important;
217
+ display: inline-flex !important;
218
+ align-items: center !important;
219
+ gap: var(--viking-space-1) !important;
220
+ text-decoration: none;
221
+ background: transparent;
222
+ border: none;
223
+ cursor: pointer;
224
+ }
225
+
226
+ ::ng-deep .viking-app-header-mobile-link:hover {
227
+ color: var(--viking-text) !important;
228
+ background-color: color-mix(in srgb, var(--viking-accent) 5%, transparent) !important;
229
+ }
230
+
231
+ ::ng-deep .viking-app-header-mobile-link.active,
232
+ ::ng-deep .viking-app-header-mobile-link.viking-current {
233
+ color: var(--viking-text) !important;
234
+ background-color: color-mix(in srgb, var(--viking-accent) 10%, transparent) !important;
235
+ box-shadow: inset 0 0 0 1px var(--viking-accent) !important;
236
+ }
237
+
238
+ ::ng-deep .viking-app-header-mobile-divider {
239
+ height: 1px;
240
+ background-color: var(--viking-border);
241
+ margin: var(--viking-space-1) 0;
242
+ }
243
+
244
+ ::ng-deep .viking-app-header-brand {
245
+ display: inline-flex;
246
+ align-items: center;
247
+ justify-content: center;
248
+ text-decoration: none;
249
+ flex-shrink: 0;
250
+ filter: drop-shadow(0 0 6px color-mix(in srgb, var(--viking-accent) 60%, transparent));
251
+ transition: filter 0.3s ease;
252
+ }
253
+
254
+ ::ng-deep .viking-app-header-brand:hover {
255
+ filter: drop-shadow(0 0 10px color-mix(in srgb, var(--viking-accent) 90%, transparent));
256
+ }
257
+
258
+ @media (min-width: 768px) {
259
+ .viking-app-header-desktop-nav {
260
+ display: flex;
261
+ }
262
+
263
+ .viking-app-header-desktop-auth {
264
+ display: flex;
265
+ }
266
+
267
+ ::ng-deep .viking-app-header-menu-toggle {
268
+ display: none !important;
269
+ }
270
+
271
+ .viking-app-header-mobile {
272
+ display: none !important;
273
+ }
274
+ }
@@ -0,0 +1,43 @@
1
+ import { ChangeDetectionStrategy, Component, input } from "@angular/core";
2
+
3
+ /**
4
+ * viking-app-header — sticky application header with brand, nav, actions, and mobile menu slots.
5
+ * Styles live in the component library so all apps share one navbar implementation.
6
+ */
7
+ @Component({
8
+ selector: "viking-app-header",
9
+ changeDetection: ChangeDetectionStrategy.OnPush,
10
+ template: `
11
+ <header class="viking-app-header">
12
+ <div class="viking-app-header-content">
13
+ <div class="viking-app-header-left">
14
+ <ng-content select="[vikingAppHeaderBrand]" />
15
+ </div>
16
+ <nav
17
+ class="viking-app-header-center viking-app-header-desktop-nav"
18
+ aria-label="Main navigation"
19
+ >
20
+ <ng-content select="[vikingAppHeaderNav]" />
21
+ </nav>
22
+ <div class="viking-app-header-right">
23
+ <div class="viking-app-header-desktop-auth">
24
+ <ng-content select="[vikingAppHeaderAuth]" />
25
+ </div>
26
+ <ng-content select="[vikingAppHeaderActions]" />
27
+ </div>
28
+ </div>
29
+ <nav
30
+ class="viking-app-header-mobile"
31
+ [class.viking-open]="mobileMenuOpen()"
32
+ [attr.aria-label]="mobileMenuLabel()"
33
+ >
34
+ <ng-content select="[vikingAppHeaderMobile]" />
35
+ </nav>
36
+ </header>
37
+ `,
38
+ styleUrl: "./app-header.scss",
39
+ })
40
+ export class VikingAppHeader {
41
+ readonly mobileMenuOpen = input<boolean>(false);
42
+ readonly mobileMenuLabel = input<string>("Mobile navigation");
43
+ }