@dataengineeringformachinelearning/viking-ui 3.0.0-alpha.4 → 4.0.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 (173) hide show
  1. package/README.md +6 -3
  2. package/dist/LICENSE +201 -0
  3. package/dist/README.md +251 -0
  4. package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +13751 -0
  5. package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +1 -0
  6. package/dist/index.d.ts +1 -1
  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/dist/core/brand-icons.d.ts +0 -29
  38. package/dist/core/icons.d.ts +0 -132
  39. package/dist/core/integration-brand-icons.d.ts +0 -18
  40. package/dist/core/lucide-paths.generated.d.ts +0 -90
  41. package/dist/core/types.d.ts +0 -56
  42. package/dist/core/uid.d.ts +0 -2
  43. package/dist/elements/button/viking-button.d.ts +0 -14
  44. package/dist/elements/card/viking-card.d.ts +0 -8
  45. package/dist/elements/core/dom.d.ts +0 -4
  46. package/dist/elements/core/styles.d.ts +0 -2
  47. package/dist/elements/modal/viking-modal.d.ts +0 -15
  48. package/dist/lib/accordion/accordion.d.ts +0 -19
  49. package/dist/lib/app-header/app-header.d.ts +0 -8
  50. package/dist/lib/app-sidebar/app-sidebar.d.ts +0 -10
  51. package/dist/lib/auth-panel/auth-panel.d.ts +0 -13
  52. package/dist/lib/autocomplete/autocomplete.d.ts +0 -25
  53. package/dist/lib/avatar/avatar.d.ts +0 -14
  54. package/dist/lib/badge/badge.d.ts +0 -16
  55. package/dist/lib/bar/bar.d.ts +0 -4
  56. package/dist/lib/brand/brand.d.ts +0 -8
  57. package/dist/lib/breadcrumbs/breadcrumbs.d.ts +0 -10
  58. package/dist/lib/button/button-group.d.ts +0 -6
  59. package/dist/lib/button/button.d.ts +0 -25
  60. package/dist/lib/calendar/calendar.d.ts +0 -22
  61. package/dist/lib/callout/callout.d.ts +0 -14
  62. package/dist/lib/card/card-title.d.ts +0 -12
  63. package/dist/lib/card/card.d.ts +0 -19
  64. package/dist/lib/carousel/carousel.d.ts +0 -13
  65. package/dist/lib/chart/chart-zoom.d.ts +0 -14
  66. package/dist/lib/chart/chart.d.ts +0 -119
  67. package/dist/lib/chart-card-header/chart-card-header.d.ts +0 -10
  68. package/dist/lib/chart-empty-state/chart-empty-state.d.ts +0 -13
  69. package/dist/lib/chart-panel/chart-panel.d.ts +0 -10
  70. package/dist/lib/checkbox/checkbox.d.ts +0 -13
  71. package/dist/lib/color-picker/color-picker.d.ts +0 -16
  72. package/dist/lib/command/command.d.ts +0 -23
  73. package/dist/lib/composer/composer.d.ts +0 -15
  74. package/dist/lib/confirm-dialog/confirm-dialog.d.ts +0 -18
  75. package/dist/lib/confirm-dialog/dialog.service.d.ts +0 -28
  76. package/dist/lib/context/context.d.ts +0 -17
  77. package/dist/lib/core/brand-icons.d.ts +0 -29
  78. package/dist/lib/core/cva.d.ts +0 -15
  79. package/dist/lib/core/icons.d.ts +0 -132
  80. package/dist/lib/core/integration-brand-icons.d.ts +0 -18
  81. package/dist/lib/core/lucide-paths.generated.d.ts +0 -90
  82. package/dist/lib/date-picker/date-picker.d.ts +0 -18
  83. package/dist/lib/dropdown/dropdown.d.ts +0 -29
  84. package/dist/lib/editor/editor.d.ts +0 -26
  85. package/dist/lib/empty-state/empty-state.d.ts +0 -9
  86. package/dist/lib/fab/fab.d.ts +0 -9
  87. package/dist/lib/field/field.d.ts +0 -14
  88. package/dist/lib/file-upload/file-upload.d.ts +0 -19
  89. package/dist/lib/footer/footer.d.ts +0 -6
  90. package/dist/lib/form-section/form-section.d.ts +0 -15
  91. package/dist/lib/gauge-arc/gauge-arc.d.ts +0 -8
  92. package/dist/lib/hud-panel/hud-panel.d.ts +0 -5
  93. package/dist/lib/icon/icon.d.ts +0 -44
  94. package/dist/lib/icon-badge/icon-badge.d.ts +0 -14
  95. package/dist/lib/icon-heading/icon-heading.d.ts +0 -9
  96. package/dist/lib/icon-text/icon-text.d.ts +0 -12
  97. package/dist/lib/input/input.d.ts +0 -23
  98. package/dist/lib/kanban/kanban.d.ts +0 -16
  99. package/dist/lib/kbd/kbd.d.ts +0 -5
  100. package/dist/lib/label/label.d.ts +0 -7
  101. package/dist/lib/loading-overlay/loading-overlay.d.ts +0 -10
  102. package/dist/lib/menubar/menubar.d.ts +0 -10
  103. package/dist/lib/metric-card/metric-card.d.ts +0 -9
  104. package/dist/lib/modal/modal.d.ts +0 -13
  105. package/dist/lib/native-select/native-select.d.ts +0 -17
  106. package/dist/lib/navbar/navbar.d.ts +0 -13
  107. package/dist/lib/navigation-menu/navigation-menu.d.ts +0 -13
  108. package/dist/lib/otp-input/otp-input.d.ts +0 -23
  109. package/dist/lib/page-back-link/page-back-link.d.ts +0 -11
  110. package/dist/lib/page-header/page-header.d.ts +0 -15
  111. package/dist/lib/pagination/pagination.d.ts +0 -10
  112. package/dist/lib/pillbox/pillbox.d.ts +0 -15
  113. package/dist/lib/popover/popover.d.ts +0 -15
  114. package/dist/lib/profile/profile.d.ts +0 -11
  115. package/dist/lib/progress/progress.d.ts +0 -12
  116. package/dist/lib/radio/radio.d.ts +0 -16
  117. package/dist/lib/ring-gauge/ring-gauge.d.ts +0 -8
  118. package/dist/lib/scroll-area/scroll-area.d.ts +0 -7
  119. package/dist/lib/search-palette/search-palette.d.ts +0 -16
  120. package/dist/lib/select/select.d.ts +0 -26
  121. package/dist/lib/separator/separator.d.ts +0 -8
  122. package/dist/lib/sheet/sheet.d.ts +0 -13
  123. package/dist/lib/sidebar-nav/sidebar-nav.d.ts +0 -46
  124. package/dist/lib/site-drakkar/site-drakkar.config.d.ts +0 -50
  125. package/dist/lib/site-drakkar/site-footer.d.ts +0 -18
  126. package/dist/lib/site-drakkar/site-navbar.d.ts +0 -25
  127. package/dist/lib/site-drakkar/suite-search-items.d.ts +0 -17
  128. package/dist/lib/skeleton/skeleton.d.ts +0 -8
  129. package/dist/lib/slider/slider.d.ts +0 -17
  130. package/dist/lib/spinner/spinner.d.ts +0 -7
  131. package/dist/lib/status-metric-row/status-metric-row.d.ts +0 -9
  132. package/dist/lib/suite-search-palette/suite-search-palette.d.ts +0 -25
  133. package/dist/lib/switch/switch.d.ts +0 -12
  134. package/dist/lib/table/table.d.ts +0 -10
  135. package/dist/lib/tabs/tab-panel.d.ts +0 -12
  136. package/dist/lib/tabs/tab.d.ts +0 -14
  137. package/dist/lib/tabs/tabs.d.ts +0 -10
  138. package/dist/lib/textarea/textarea.d.ts +0 -16
  139. package/dist/lib/theme-toggle/theme-toggle.d.ts +0 -9
  140. package/dist/lib/time-picker/time-picker.d.ts +0 -21
  141. package/dist/lib/timeline/timeline.d.ts +0 -14
  142. package/dist/lib/toast/toast.d.ts +0 -21
  143. package/dist/lib/toggle/toggle-group.d.ts +0 -9
  144. package/dist/lib/toggle/toggle.d.ts +0 -15
  145. package/dist/lib/tooltip/tooltip.d.ts +0 -20
  146. package/dist/lib/typography/heading.d.ts +0 -9
  147. package/dist/lib/typography/text.d.ts +0 -11
  148. package/dist/lib/uptime-bar/uptime-bar.d.ts +0 -6
  149. package/dist/lib/verification-code-field/verification-code-field.d.ts +0 -19
  150. package/dist/lib/whitepaper-cta/whitepaper-cta.d.ts +0 -15
  151. package/dist/lib/wizard/wizard.d.ts +0 -13
  152. package/dist/public-api.d.ts +0 -109
  153. package/dist/tokens/series-presets.d.ts +0 -4
  154. package/dist/web/badge/viking-badge-wc.d.ts +0 -28
  155. package/dist/web/button/viking-button-wc.d.ts +0 -28
  156. package/dist/web/callout/viking-callout-wc.d.ts +0 -27
  157. package/dist/web/card/viking-card-wc.d.ts +0 -29
  158. package/dist/web/core/base.d.ts +0 -12
  159. package/dist/web/core/dom.d.ts +0 -11
  160. package/dist/web/core/icons-inline.d.ts +0 -7
  161. package/dist/web/core/styles.d.ts +0 -12
  162. package/dist/web/core/types.d.ts +0 -10
  163. package/dist/web/field/viking-field-wc.d.ts +0 -32
  164. package/dist/web/index.d.ts +0 -15
  165. package/dist/web/input/viking-input-wc.d.ts +0 -32
  166. package/dist/web/modal/viking-modal-wc.d.ts +0 -50
  167. package/dist/web/search-palette/viking-search-palette-wc.d.ts +0 -64
  168. package/dist/web/select/viking-select-wc.d.ts +0 -48
  169. package/dist/web/suite-header/viking-suite-header-wc.d.ts +0 -36
  170. package/dist/web/suite-search-palette/viking-suite-search-palette-wc.d.ts +0 -39
  171. package/dist/web/theme-toggle/viking-theme-toggle-wc.d.ts +0 -19
  172. package/dist/web/types.d.ts +0 -40
  173. package/dist/web-components/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Viking-UI
2
2
 
3
+ Published package: **`@dataengineeringformachinelearning/viking-ui@4.0.1`**
4
+ Single source of truth: **`packages/viking-ui/`** (framework-agnostic primitives, styles, web components, and Angular wrapper entrypoints are consolidated here).
5
+
3
6
  Universal DEML component library for Astro, Angular, and Django.
4
7
 
5
8
  ## Architecture
@@ -124,11 +127,11 @@ builds.
124
127
  <!-- Pinned -->
125
128
  <link
126
129
  rel="stylesheet"
127
- href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@3.0.0-alpha.3/dist/viking-ui.css"
130
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/viking-ui.css"
128
131
  />
129
132
  <script
130
133
  type="module"
131
- src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@3.0.0-alpha.3/dist/web-components.js"
134
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/web-components.js"
132
135
  ></script>
133
136
  ```
134
137
 
@@ -214,7 +217,7 @@ Pinned release example:
214
217
 
215
218
  ```html
216
219
  <script
217
- src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@3.0.0-alpha.3/dist/widget.js"
220
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/widget.js"
218
221
  async
219
222
  defer
220
223
  data-page-id="platform-status"
package/dist/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if distributed along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the LICENSE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Joe Alongi (Data Engineering for Machine Learning Contributors)
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/dist/README.md ADDED
@@ -0,0 +1,251 @@
1
+ # Viking-UI
2
+
3
+ Published package: **`@dataengineeringformachinelearning/viking-ui@4.0.1`**
4
+ Single source of truth: **`packages/viking-ui/`** (framework-agnostic primitives, styles, web components, and Angular wrapper entrypoints are consolidated here).
5
+
6
+ Universal DEML component library for Astro, Angular, and Django.
7
+
8
+ ## Architecture
9
+
10
+ - `src/styles/_variables.scss` defines the canonical `--viking-*` design tokens.
11
+ - `src/styles/components-bundle.scss` defines static CSS primitives shared by every app.
12
+ - `src/tokens/viking-tokens.json` exposes the same token contract for tooling.
13
+ - `src/elements/` contains framework-neutral Web Components with Shadow DOM style isolation.
14
+ - `dist/design-tokens.css`, `dist/viking-components.css`, `dist/deml-components.css`, `dist/viking-ui.css`, `dist/viking-tokens.json`, and `dist/viking-ui-elements.js` are the built artifacts.
15
+ - `dist/viking-ui.css` is the full app bundle. Load it once per surface; do not stack it with the split CSS artifacts.
16
+
17
+ ## Build
18
+
19
+ ```bash
20
+ npm run build --prefix packages/viking-ui
21
+ npm run test:viking-ui:package
22
+ ```
23
+
24
+ ## Versioning
25
+
26
+ Viking-UI uses Changesets from the repository root:
27
+
28
+ ```bash
29
+ npm run changeset
30
+ npm run version:viking-ui
31
+ ```
32
+
33
+ See [docs/viking-ui-release.md](../../docs/viking-ui-release.md) for the full
34
+ release, visual regression, and propagation workflow.
35
+
36
+ ## Consumption
37
+
38
+ ### 1) NPM usage (recommended for apps)
39
+
40
+ Use this for app-first surfaces such as deml.app, internal dashboards, and any build chain that supports package installs.
41
+
42
+ ```ts
43
+ import "@dataengineeringformachinelearning/viking-ui/viking-ui.css";
44
+ ```
45
+
46
+ ```ts
47
+ import {
48
+ VikingButton,
49
+ VikingInput,
50
+ VikingModal,
51
+ } from "@dataengineeringformachinelearning/viking-ui";
52
+ ```
53
+
54
+ ```bash
55
+ npm install @dataengineeringformachinelearning/viking-ui
56
+ ```
57
+
58
+ For Angular components, continue using the exported Angular APIs and theme tokens as normal.
59
+
60
+ ```ts
61
+ import {
62
+ VikingButton,
63
+ VikingInput,
64
+ VikingModal,
65
+ } from "@dataengineeringformachinelearning/viking-ui";
66
+
67
+ // or when building custom element demos:
68
+ import "@dataengineeringformachinelearning/viking-ui/web-components.js";
69
+ import "@dataengineeringformachinelearning/viking-ui/viking-ui.css";
70
+ ```
71
+
72
+ ### 2) jsDelivr CDN usage (recommended for widgets and quick embeds)
73
+
74
+ Use this for external websites, marketing snippets, and widget-style integrations that should load without npm.
75
+
76
+ The package artifacts are published in `dist/`, so you can load them directly from jsDelivr:
77
+
78
+ ### 1) CSS only
79
+
80
+ ```html
81
+ <link
82
+ rel="stylesheet"
83
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/viking-ui.css"
84
+ />
85
+ ```
86
+
87
+ ### 2) Web Components only
88
+
89
+ ```html
90
+ <script
91
+ type="module"
92
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/web-components.js"
93
+ ></script>
94
+ ```
95
+
96
+ ### 3) CSS + Web Components together
97
+
98
+ ```html
99
+ <link
100
+ rel="stylesheet"
101
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/viking-ui.css"
102
+ />
103
+ <script
104
+ type="module"
105
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/web-components.js"
106
+ ></script>
107
+ ```
108
+
109
+ ### 4) Version pinning
110
+
111
+ Use `@latest` for latest stable assets, or replace it with a concrete version for locked
112
+ builds.
113
+
114
+ ```html
115
+ <!-- Latest -->
116
+ <link
117
+ rel="stylesheet"
118
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/viking-ui.css"
119
+ />
120
+ <script
121
+ type="module"
122
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/web-components.js"
123
+ ></script>
124
+ ```
125
+
126
+ ```html
127
+ <!-- Pinned -->
128
+ <link
129
+ rel="stylesheet"
130
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/viking-ui.css"
131
+ />
132
+ <script
133
+ type="module"
134
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/web-components.js"
135
+ ></script>
136
+ ```
137
+
138
+ ### 5) Full minimal HTML example (copy/paste)
139
+
140
+ ```html
141
+ <!doctype html>
142
+ <html lang="en" data-theme="dark">
143
+ <head>
144
+ <meta charset="utf-8" />
145
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
146
+ <title>Viking-UI CDN demo</title>
147
+ <link
148
+ rel="stylesheet"
149
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/viking-ui.css"
150
+ />
151
+ <script
152
+ type="module"
153
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/web-components.js"
154
+ ></script>
155
+ </head>
156
+ <body>
157
+ <main
158
+ style="max-width: 680px; margin: 2rem auto; display: grid; gap: 1rem;"
159
+ >
160
+ <h1 class="viking-heading viking-heading-xl">Viking widget</h1>
161
+ <viking-card-wc compact>
162
+ <h2 class="viking-heading viking-heading-sm">Widget card</h2>
163
+ <p class="viking-text-muted">
164
+ Works in marketing pages and external websites.
165
+ </p>
166
+ </viking-card-wc>
167
+ <viking-button-wc variant="primary">Open dashboard</viking-button-wc>
168
+ </main>
169
+ </body>
170
+ </html>
171
+ ```
172
+
173
+ ### 3) When to use the sync script
174
+
175
+ Use `scripts/sync_design_system.py` when you need synced static assets instead of npm:
176
+
177
+ ```bash
178
+ python scripts/sync_design_system.py
179
+ ```
180
+
181
+ This path remains for surfaces that are not using package installs directly, especially
182
+ legacy or Django-rendered templates that consume `/assets/viking-ui.css` and shared class names.
183
+
184
+ ### 6) Status widget via jsDelivr (no npm install)
185
+
186
+ Use this when embedding a live status badge on external pages:
187
+
188
+ ```html
189
+ <!doctype html>
190
+ <html lang="en" data-theme="dark">
191
+ <head>
192
+ <meta charset="utf-8" />
193
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
194
+ <title>DEML Status Widget</title>
195
+ <link
196
+ rel="stylesheet"
197
+ href="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/viking-ui.css"
198
+ />
199
+ <script
200
+ type="module"
201
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/web-components.js"
202
+ ></script>
203
+ <script
204
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@latest/dist/widget.js"
205
+ async
206
+ defer
207
+ data-page-id="platform-status"
208
+ data-backend-url="https://api.example.com"
209
+ data-frontend-url="https://deml.app"
210
+ ></script>
211
+ </head>
212
+ <body></body>
213
+ </html>
214
+ ```
215
+
216
+ Pinned release example:
217
+
218
+ ```html
219
+ <script
220
+ src="https://cdn.jsdelivr.net/npm/@dataengineeringformachinelearning/viking-ui@4.0.1/dist/widget.js"
221
+ async
222
+ defer
223
+ data-page-id="platform-status"
224
+ data-backend-url="https://api.example.com"
225
+ data-frontend-url="https://deml.app"
226
+ ></script>
227
+ ```
228
+
229
+ Replace `api.example.com` with your backend URL and update `data-page-id` / `data-frontend-url` for your status page.
230
+
231
+ This package is the source of truth. Angular wrappers now live in `packages/viking-ui/src/lib` while canonical source files and token/build artifacts are also in `packages/viking-ui`; Astro and Django consume the package artifacts directly through synced static assets.
232
+
233
+ Angular app shells consume the package CSS from `angular.json`:
234
+
235
+ ```json
236
+ {
237
+ "styles": [
238
+ "@dataengineeringformachinelearning/viking-ui/viking-ui.css",
239
+ "src/styles.scss"
240
+ ]
241
+ }
242
+ ```
243
+
244
+ Django, marketing, and showcase static assets are copied from `packages/viking-ui/dist` by:
245
+
246
+ ```bash
247
+ python scripts/sync_design_system.py
248
+ node scripts/validate_viking_ui_assets.mjs
249
+ ```
250
+
251
+ See [MIGRATION_PLAN.md](./MIGRATION_PLAN.md) for the rebuild phases.