@4sh/ui-kit 0.16.0 → 0.17.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 (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,120 +1,119 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, signal, effect, Injectable, InjectionToken } from '@angular/core';
3
- import { DOCUMENT } from '@angular/common';
4
-
5
- /**
6
- * Manages light/dark mode via the `[data-theme]` attribute on <html>,
7
- * aligned with the generated tokens (semantics: modeLight → :root, modeDark → [data-theme='dark']).
8
- */
9
- class ThemeService {
10
- constructor() {
11
- this.document = inject(DOCUMENT);
12
- this.currentMode = signal(this.getStoredMode(), /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "currentMode" }] : /* istanbul ignore next */ []));
14
- effect(() => {
15
- const mode = this.currentMode();
16
- const root = this.document.documentElement;
17
- if (mode === 'dark') {
18
- root.setAttribute('data-theme', 'dark');
19
- }
20
- else {
21
- root.removeAttribute('data-theme');
22
- }
23
- if (typeof localStorage !== 'undefined') {
24
- localStorage.setItem('theme-mode', mode);
25
- }
26
- });
27
- }
28
- toggle() {
29
- this.currentMode.update((mode) => (mode === 'light' ? 'dark' : 'light'));
30
- }
31
- get isDark() {
32
- return this.currentMode() === 'dark';
33
- }
34
- getStoredMode() {
35
- if (typeof localStorage !== 'undefined') {
36
- return localStorage.getItem('theme-mode') || 'light';
37
- }
38
- return 'light';
39
- }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
42
- }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ThemeService, decorators: [{
44
- type: Injectable,
45
- args: [{ providedIn: 'root' }]
46
- }], ctorParameters: () => [] });
47
-
48
- /** Subdomain → brand (primitive tokens use the modeBrand1/2/3 modes). */
1
+ import * as i0 from "@angular/core";
2
+ import { Injectable, InjectionToken, effect, inject, signal } from "@angular/core";
3
+ import { DOCUMENT } from "@angular/common";
4
+ var ThemeService = class ThemeService {
5
+ constructor() {
6
+ this.document = inject(DOCUMENT);
7
+ this.currentMode = signal(this.getStoredMode(), ...ngDevMode ? [{ debugName: "currentMode" }] : /* istanbul ignore next */ []);
8
+ effect(() => {
9
+ const mode = this.currentMode();
10
+ const root = this.document.documentElement;
11
+ if (mode === "dark") root.setAttribute("data-theme", "dark");
12
+ else root.removeAttribute("data-theme");
13
+ if (typeof localStorage !== "undefined") localStorage.setItem("theme-mode", mode);
14
+ });
15
+ }
16
+ toggle() {
17
+ this.currentMode.update((mode) => mode === "light" ? "dark" : "light");
18
+ }
19
+ get isDark() {
20
+ return this.currentMode() === "dark";
21
+ }
22
+ getStoredMode() {
23
+ if (typeof localStorage !== "undefined") return localStorage.getItem("theme-mode") || "light";
24
+ return "light";
25
+ }
26
+ static {
27
+ this.ɵfac = i0.ɵɵngDeclareFactory({
28
+ minVersion: "12.0.0",
29
+ version: "22.3.0",
30
+ ngImport: i0,
31
+ type: ThemeService,
32
+ deps: [],
33
+ target: i0.ɵɵFactoryTarget.Injectable
34
+ });
35
+ }
36
+ static {
37
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
38
+ minVersion: "12.0.0",
39
+ version: "22.3.0",
40
+ ngImport: i0,
41
+ type: ThemeService,
42
+ providedIn: "root"
43
+ });
44
+ }
45
+ };
46
+ i0.ɵɵngDeclareClassMetadata({
47
+ minVersion: "12.0.0",
48
+ version: "22.3.0",
49
+ ngImport: i0,
50
+ type: ThemeService,
51
+ decorators: [{
52
+ type: Injectable,
53
+ args: [{ providedIn: "root" }]
54
+ }],
55
+ ctorParameters: () => []
56
+ });
49
57
  const SUBDOMAIN_TO_BRAND = {
50
- themeone: 'brand1',
51
- themetwo: 'brand2',
52
- themethree: 'brand3',
58
+ themeone: "brand1",
59
+ themetwo: "brand2",
60
+ themethree: "brand3"
53
61
  };
54
- /**
55
- * Brand the application starts on. Optional — defaults to `brand1`.
56
- *
57
- * The kit deliberately does NOT detect the brand itself: how a project picks
58
- * its brand (subdomain, user setting, backend config…) is an application
59
- * concern. Provide it with `provideUiKitBrand()`.
60
- */
61
- const UI_KIT_INITIAL_BRAND = new InjectionToken('UI_KIT_INITIAL_BRAND');
62
- /** Maps a subdomain segment (e.g. "themetwo") to a brand — `brand1` when unknown. */
62
+ const UI_KIT_INITIAL_BRAND = new InjectionToken("UI_KIT_INITIAL_BRAND");
63
63
  function brandFromSubdomain(subdomain) {
64
- return SUBDOMAIN_TO_BRAND[subdomain] ?? 'brand1';
64
+ return SUBDOMAIN_TO_BRAND[subdomain] ?? "brand1";
65
65
  }
66
- /**
67
- * Sets the initial brand of the application.
68
- *
69
- * ```ts
70
- * providers: [provideUiKitBrand(brandFromSubdomain(subdomain))]
71
- * ```
72
- */
73
66
  function provideUiKitBrand(brand) {
74
- return { provide: UI_KIT_INITIAL_BRAND, useValue: brand };
75
- }
76
- /**
77
- * Manages the active brand via the `[data-brand]` attribute on <html>.
78
- * brand1 = default (:root, no attribute). brand2/brand3 override the
79
- * `--primitives-*` variables, which propagates to the semantics (which reference them).
80
- */
81
- class BrandService {
82
- constructor() {
83
- this.document = inject(DOCUMENT);
84
- this.currentBrand = signal(inject(UI_KIT_INITIAL_BRAND, { optional: true }) ?? 'brand1', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "currentBrand" }] : /* istanbul ignore next */ []));
86
- effect(() => {
87
- const brand = this.currentBrand();
88
- const root = this.document.documentElement;
89
- if (brand === 'brand1') {
90
- root.removeAttribute('data-brand');
91
- }
92
- else {
93
- root.setAttribute('data-brand', brand);
94
- }
95
- });
96
- }
97
- set(brand) {
98
- this.currentBrand.set(brand);
99
- }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: BrandService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
101
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: BrandService, providedIn: 'root' }); }
67
+ return {
68
+ provide: UI_KIT_INITIAL_BRAND,
69
+ useValue: brand
70
+ };
102
71
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: BrandService, decorators: [{
104
- type: Injectable,
105
- args: [{ providedIn: 'root' }]
106
- }], ctorParameters: () => [] });
107
-
108
- /*
109
- * Public API Surface of ui-kit/theming
110
- *
111
- * Runtime switches for the two token dimensions carried by the DOM:
112
- * light/dark (`[data-theme]`) and brand (`[data-brand]`).
113
- */
114
-
115
- /**
116
- * Generated bundle index. Do not edit.
117
- */
118
-
72
+ var BrandService = class BrandService {
73
+ constructor() {
74
+ this.document = inject(DOCUMENT);
75
+ this.currentBrand = signal(inject(UI_KIT_INITIAL_BRAND, { optional: true }) ?? "brand1", ...ngDevMode ? [{ debugName: "currentBrand" }] : /* istanbul ignore next */ []);
76
+ effect(() => {
77
+ const brand = this.currentBrand();
78
+ const root = this.document.documentElement;
79
+ if (brand === "brand1") root.removeAttribute("data-brand");
80
+ else root.setAttribute("data-brand", brand);
81
+ });
82
+ }
83
+ set(brand) {
84
+ this.currentBrand.set(brand);
85
+ }
86
+ static {
87
+ this.ɵfac = i0.ɵɵngDeclareFactory({
88
+ minVersion: "12.0.0",
89
+ version: "22.3.0",
90
+ ngImport: i0,
91
+ type: BrandService,
92
+ deps: [],
93
+ target: i0.ɵɵFactoryTarget.Injectable
94
+ });
95
+ }
96
+ static {
97
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
98
+ minVersion: "12.0.0",
99
+ version: "22.3.0",
100
+ ngImport: i0,
101
+ type: BrandService,
102
+ providedIn: "root"
103
+ });
104
+ }
105
+ };
106
+ i0.ɵɵngDeclareClassMetadata({
107
+ minVersion: "12.0.0",
108
+ version: "22.3.0",
109
+ ngImport: i0,
110
+ type: BrandService,
111
+ decorators: [{
112
+ type: Injectable,
113
+ args: [{ providedIn: "root" }]
114
+ }],
115
+ ctorParameters: () => []
116
+ });
119
117
  export { BrandService, ThemeService, UI_KIT_INITIAL_BRAND, brandFromSubdomain, provideUiKitBrand };
120
- //# sourceMappingURL=4sh-ui-kit-theming.mjs.map
118
+
119
+ //# sourceMappingURL=4sh-ui-kit-theming.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-theming.mjs","sources":["../../../projects/ui-kit/theming/src/lib/theme.service.ts","../../../projects/ui-kit/theming/src/lib/brand.service.ts","../../../projects/ui-kit/theming/src/public-api.ts","../../../projects/ui-kit/theming/src/4sh-ui-kit-theming.ts"],"sourcesContent":["import { Injectable, signal, effect, inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\nexport type ThemeMode = 'light' | 'dark';\n\n/**\n * Manages light/dark mode via the `[data-theme]` attribute on <html>,\n * aligned with the generated tokens (semantics: modeLight → :root, modeDark → [data-theme='dark']).\n */\n@Injectable({ providedIn: 'root' })\nexport class ThemeService {\n private document = inject(DOCUMENT);\n\n readonly currentMode = signal<ThemeMode>(this.getStoredMode());\n\n constructor() {\n effect(() => {\n const mode = this.currentMode();\n const root = this.document.documentElement;\n\n if (mode === 'dark') {\n root.setAttribute('data-theme', 'dark');\n } else {\n root.removeAttribute('data-theme');\n }\n if (typeof localStorage !== 'undefined') {\n localStorage.setItem('theme-mode', mode);\n }\n });\n }\n\n toggle() {\n this.currentMode.update((mode) => (mode === 'light' ? 'dark' : 'light'));\n }\n\n get isDark(): boolean {\n return this.currentMode() === 'dark';\n }\n\n private getStoredMode(): ThemeMode {\n if (typeof localStorage !== 'undefined') {\n return (localStorage.getItem('theme-mode') as ThemeMode) || 'light';\n }\n return 'light';\n }\n}\n","import { inject, Injectable, InjectionToken, Provider, signal, effect } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\nexport type Brand = 'brand1' | 'brand2' | 'brand3';\n\n/** Subdomain → brand (primitive tokens use the modeBrand1/2/3 modes). */\nconst SUBDOMAIN_TO_BRAND: Record<string, Brand> = {\n themeone: 'brand1',\n themetwo: 'brand2',\n themethree: 'brand3',\n};\n\n/**\n * Brand the application starts on. Optional — defaults to `brand1`.\n *\n * The kit deliberately does NOT detect the brand itself: how a project picks\n * its brand (subdomain, user setting, backend config…) is an application\n * concern. Provide it with `provideUiKitBrand()`.\n */\nexport const UI_KIT_INITIAL_BRAND = new InjectionToken<Brand>('UI_KIT_INITIAL_BRAND');\n\n/** Maps a subdomain segment (e.g. \"themetwo\") to a brand — `brand1` when unknown. */\nexport function brandFromSubdomain(subdomain: string): Brand {\n return SUBDOMAIN_TO_BRAND[subdomain] ?? 'brand1';\n}\n\n/**\n * Sets the initial brand of the application.\n *\n * ```ts\n * providers: [provideUiKitBrand(brandFromSubdomain(subdomain))]\n * ```\n */\nexport function provideUiKitBrand(brand: Brand): Provider {\n return { provide: UI_KIT_INITIAL_BRAND, useValue: brand };\n}\n\n/**\n * Manages the active brand via the `[data-brand]` attribute on <html>.\n * brand1 = default (:root, no attribute). brand2/brand3 override the\n * `--primitives-*` variables, which propagates to the semantics (which reference them).\n */\n@Injectable({ providedIn: 'root' })\nexport class BrandService {\n private document = inject(DOCUMENT);\n\n readonly currentBrand = signal<Brand>(\n inject(UI_KIT_INITIAL_BRAND, { optional: true }) ?? 'brand1',\n );\n\n constructor() {\n effect(() => {\n const brand = this.currentBrand();\n const root = this.document.documentElement;\n if (brand === 'brand1') {\n root.removeAttribute('data-brand');\n } else {\n root.setAttribute('data-brand', brand);\n }\n });\n }\n\n set(brand: Brand) {\n this.currentBrand.set(brand);\n }\n}\n","/*\n * Public API Surface of ui-kit/theming\n *\n * Runtime switches for the two token dimensions carried by the DOM:\n * light/dark (`[data-theme]`) and brand (`[data-brand]`).\n */\n\nexport * from './lib/theme.service';\nexport * from './lib/brand.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAKA;;;AAGG;MAEU,YAAY,CAAA;AAKvB,IAAA,WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAE1B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAY,IAAI,CAAC,aAAa,EAAE;wFAAC;QAG5D,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE;AAC/B,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe;AAE1C,YAAA,IAAI,IAAI,KAAK,MAAM,EAAE;AACnB,gBAAA,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC;YACzC;iBAAO;AACL,gBAAA,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC;YACpC;AACA,YAAA,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;AACvC,gBAAA,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC;YAC1C;AACF,QAAA,CAAC,CAAC;IACJ;IAEA,MAAM,GAAA;QACJ,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,MAAM,IAAI,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAC1E;AAEA,IAAA,IAAI,MAAM,GAAA;AACR,QAAA,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM;IACtC;IAEQ,aAAa,GAAA;AACnB,QAAA,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;YACvC,OAAQ,YAAY,CAAC,OAAO,CAAC,YAAY,CAAe,IAAI,OAAO;QACrE;AACA,QAAA,OAAO,OAAO;IAChB;8GAlCW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA,CAAA;;2FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACJlC;AACA,MAAM,kBAAkB,GAA0B;AAChD,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,UAAU,EAAE,QAAQ;CACrB;AAED;;;;;;AAMG;MACU,oBAAoB,GAAG,IAAI,cAAc,CAAQ,sBAAsB;AAEpF;AACM,SAAU,kBAAkB,CAAC,SAAiB,EAAA;AAClD,IAAA,OAAO,kBAAkB,CAAC,SAAS,CAAC,IAAI,QAAQ;AAClD;AAEA;;;;;;AAMG;AACG,SAAU,iBAAiB,CAAC,KAAY,EAAA;IAC5C,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,KAAK,EAAE;AAC3D;AAEA;;;;AAIG;MAEU,YAAY,CAAA;AAOvB,IAAA,WAAA,GAAA;AANQ,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAE1B,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAC5B,MAAM,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,QAAQ;yFAC7D;QAGC,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;AACjC,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe;AAC1C,YAAA,IAAI,KAAK,KAAK,QAAQ,EAAE;AACtB,gBAAA,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC;YACpC;iBAAO;AACL,gBAAA,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC;YACxC;AACF,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,GAAG,CAAC,KAAY,EAAA;AACd,QAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC;IAC9B;8GArBW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA,CAAA;;2FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AC1ClC;;;;;AAKG;;ACLH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-theming.mjs","names":[],"sources":["../../../projects/ui-kit/theming/src/lib/theme.service.ts","../../../projects/ui-kit/theming/src/lib/brand.service.ts"],"sourcesContent":["import { Injectable, signal, effect, inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\nexport type ThemeMode = 'light' | 'dark';\n\n/**\n * Manages light/dark mode via the `[data-theme]` attribute on <html>,\n * aligned with the generated tokens (semantics: modeLight → :root, modeDark → [data-theme='dark']).\n */\n@Injectable({ providedIn: 'root' })\nexport class ThemeService {\n private document = inject(DOCUMENT);\n\n readonly currentMode = signal<ThemeMode>(this.getStoredMode());\n\n constructor() {\n effect(() => {\n const mode = this.currentMode();\n const root = this.document.documentElement;\n\n if (mode === 'dark') {\n root.setAttribute('data-theme', 'dark');\n } else {\n root.removeAttribute('data-theme');\n }\n if (typeof localStorage !== 'undefined') {\n localStorage.setItem('theme-mode', mode);\n }\n });\n }\n\n toggle() {\n this.currentMode.update((mode) => (mode === 'light' ? 'dark' : 'light'));\n }\n\n get isDark(): boolean {\n return this.currentMode() === 'dark';\n }\n\n private getStoredMode(): ThemeMode {\n if (typeof localStorage !== 'undefined') {\n return (localStorage.getItem('theme-mode') as ThemeMode) || 'light';\n }\n return 'light';\n }\n}\n","import { inject, Injectable, InjectionToken, Provider, signal, effect } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\nexport type Brand = 'brand1' | 'brand2' | 'brand3';\n\n/** Subdomain → brand (primitive tokens use the modeBrand1/2/3 modes). */\nconst SUBDOMAIN_TO_BRAND: Record<string, Brand> = {\n themeone: 'brand1',\n themetwo: 'brand2',\n themethree: 'brand3',\n};\n\n/**\n * Brand the application starts on. Optional — defaults to `brand1`.\n *\n * The kit deliberately does NOT detect the brand itself: how a project picks\n * its brand (subdomain, user setting, backend config…) is an application\n * concern. Provide it with `provideUiKitBrand()`.\n */\nexport const UI_KIT_INITIAL_BRAND = new InjectionToken<Brand>('UI_KIT_INITIAL_BRAND');\n\n/** Maps a subdomain segment (e.g. \"themetwo\") to a brand — `brand1` when unknown. */\nexport function brandFromSubdomain(subdomain: string): Brand {\n return SUBDOMAIN_TO_BRAND[subdomain] ?? 'brand1';\n}\n\n/**\n * Sets the initial brand of the application.\n *\n * ```ts\n * providers: [provideUiKitBrand(brandFromSubdomain(subdomain))]\n * ```\n */\nexport function provideUiKitBrand(brand: Brand): Provider {\n return { provide: UI_KIT_INITIAL_BRAND, useValue: brand };\n}\n\n/**\n * Manages the active brand via the `[data-brand]` attribute on <html>.\n * brand1 = default (:root, no attribute). brand2/brand3 override the\n * `--primitives-*` variables, which propagates to the semantics (which reference them).\n */\n@Injectable({ providedIn: 'root' })\nexport class BrandService {\n private document = inject(DOCUMENT);\n\n readonly currentBrand = signal<Brand>(\n inject(UI_KIT_INITIAL_BRAND, { optional: true }) ?? 'brand1',\n );\n\n constructor() {\n effect(() => {\n const brand = this.currentBrand();\n const root = this.document.documentElement;\n if (brand === 'brand1') {\n root.removeAttribute('data-brand');\n } else {\n root.setAttribute('data-brand', brand);\n }\n });\n }\n\n set(brand: Brand) {\n this.currentBrand.set(brand);\n }\n}\n"],"mappings":";;;AAUA,IAAa,eAAb,MAAa,aAAY;CAKvB,cAAA;EAJQ,KAAA,WAAW,OAAO,QAAQ;EAEzB,KAAA,cAAc,OAAkB,KAAK,cAAa,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAG5D,aAAY;GACV,MAAM,OAAO,KAAK,YAAW;GAC7B,MAAM,OAAO,KAAK,SAAS;GAE3B,IAAI,SAAS,QACX,KAAK,aAAa,cAAc,MAAM;QAEtC,KAAK,gBAAgB,YAAY;GAEnC,IAAI,OAAO,iBAAiB,aAC1B,aAAa,QAAQ,cAAc,IAAI;EAE3C,CAAC;CACH;CAEA,SAAM;EACJ,KAAK,YAAY,QAAQ,SAAU,SAAS,UAAU,SAAS,OAAQ;CACzE;CAEA,IAAI,SAAM;EACR,OAAO,KAAK,YAAW,MAAO;CAChC;CAEQ,gBAAa;EACnB,IAAI,OAAO,iBAAiB,aAC1B,OAAQ,aAAa,QAAQ,YAAY,KAAmB;EAE9D,OAAO;CACT;CAlCW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAZ;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,YADC;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EADxB,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;;ACHlC,MAAM,qBAA4C;CAChD,UAAU;CACV,UAAU;CACV,YAAY;AACb;AASD,MAAa,uBAAuB,IAAI,eAAsB,sBAAsB;AAGpF,SAAgB,mBAAmB,WAAiB;CAClD,OAAO,mBAAmB,cAAc;AAC1C;AASA,SAAgB,kBAAkB,OAAY;CAC5C,OAAO;EAAE,SAAS;EAAsB,UAAU;CAAK;AACzD;AAQA,IAAa,eAAb,MAAa,aAAY;CAOvB,cAAA;EANQ,KAAA,WAAW,OAAO,QAAQ;EAEzB,KAAA,eAAe,OACtB,OAAO,sBAAsB,EAAE,UAAU,KAAI,CAAE,KAAK,UACrD,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;EAGC,aAAY;GACV,MAAM,QAAQ,KAAK,aAAY;GAC/B,MAAM,OAAO,KAAK,SAAS;GAC3B,IAAI,UAAU,UACZ,KAAK,gBAAgB,YAAY;QAEjC,KAAK,aAAa,cAAc,KAAK;EAEzC,CAAC;CACH;CAEA,IAAI,OAAY;EACd,KAAK,aAAa,IAAI,KAAK;CAC7B;CArBW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAZ;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAY,YADC;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EADxB,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE"}
@@ -1,12 +0,0 @@
1
- /*
2
- * Public API Surface of ui-kit/types
3
- *
4
- * Shared, type-only building blocks used across several `ui-*` components
5
- * (e.g. `UiLevel`). No runtime code — a component that only needs a type
6
- * import pays nothing for depending on this entry point.
7
- */
8
-
9
- /**
10
- * Generated bundle index. Do not edit.
11
- */
12
- //# sourceMappingURL=4sh-ui-kit-types.mjs.map
@@ -1,16 +1,4 @@
1
- /*
2
- * Public API Surface of ui-kit.
3
- *
4
- * This root entry point stays intentionally minimal: every component is
5
- * exposed through its own secondary entry point (e.g. `@4sh/ui-kit/base/ui-icon`)
6
- * so consumers only pull in what they import.
7
- */
8
- /** Package version, kept in sync with `package.json` at publish time. */
9
- const UI_KIT_VERSION = '0.0.1';
10
-
11
- /**
12
- * Generated bundle index. Do not edit.
13
- */
14
-
1
+ const UI_KIT_VERSION = "0.0.1";
15
2
  export { UI_KIT_VERSION };
16
- //# sourceMappingURL=4sh-ui-kit.mjs.map
3
+
4
+ //# sourceMappingURL=4sh-ui-kit.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit.mjs","sources":["../../../projects/ui-kit/src/public-api.ts","../../../projects/ui-kit/src/4sh-ui-kit.ts"],"sourcesContent":["/*\n * Public API Surface of ui-kit.\n *\n * This root entry point stays intentionally minimal: every component is\n * exposed through its own secondary entry point (e.g. `@4sh/ui-kit/base/ui-icon`)\n * so consumers only pull in what they import.\n */\n\n/** Package version, kept in sync with `package.json` at publish time. */\nexport const UI_KIT_VERSION = '0.0.1';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AAEH;AACO,MAAM,cAAc,GAAG;;ACT9B;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit.mjs","names":[],"sources":["../../../projects/ui-kit/src/public-api.ts"],"sourcesContent":["/*\n * Public API Surface of ui-kit.\n *\n * This root entry point stays intentionally minimal: every component is\n * exposed through its own secondary entry point (e.g. `@4sh/ui-kit/base/ui-icon`)\n * so consumers only pull in what they import.\n */\n\n/** Package version, kept in sync with `package.json` at publish time. */\nexport const UI_KIT_VERSION = '0.0.1';\n"],"mappings":"AASA,MAAa,iBAAiB"}