@spartan-ng/cli 0.0.1-alpha.533 → 0.0.1-alpha.535

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 (109) hide show
  1. package/package.json +1 -1
  2. package/src/generators/base/generator.js +1 -1
  3. package/src/generators/base/generator.js.map +1 -1
  4. package/src/generators/base/lib/build-dependency-array.d.ts +3 -3
  5. package/src/generators/base/lib/build-dependency-array.js +4 -3
  6. package/src/generators/base/lib/build-dependency-array.js.map +1 -1
  7. package/src/generators/base/versions.d.ts +4 -5
  8. package/src/generators/base/versions.js +5 -6
  9. package/src/generators/base/versions.js.map +1 -1
  10. package/src/generators/theme/__snapshots__/generator.spec.ts.snap +142 -376
  11. package/src/generators/theme/generator.js +1 -1
  12. package/src/generators/theme/generator.js.map +1 -1
  13. package/src/generators/theme/libs/add-theme-to-application-styles.d.ts +1 -1
  14. package/src/generators/theme/libs/add-theme-to-application-styles.js +19 -14
  15. package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
  16. package/src/generators/theme/libs/colors.d.ts +5 -10
  17. package/src/generators/theme/libs/colors.js +322 -195
  18. package/src/generators/theme/libs/colors.js.map +1 -1
  19. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template +11 -11
  20. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.ts.template +1 -0
  21. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +1 -1
  22. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-item.ts.template +1 -1
  23. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-list.ts.template +1 -1
  24. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-search-input.ts.template +1 -1
  25. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-search.ts.template +1 -1
  26. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.ts.template +14 -27
  27. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.ts.template +1 -1
  28. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.ts.template +1 -1
  29. package/src/generators/ui/libs/ui-button-group-helm/files/lib/hlm-button-group-separator.ts.template +1 -1
  30. package/src/generators/ui/libs/ui-button-group-helm/files/lib/hlm-button-group-text.ts.template +1 -1
  31. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +2 -2
  32. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +4 -35
  33. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +4 -35
  34. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +4 -38
  35. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.ts.template +1 -1
  36. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +1 -1
  37. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +1 -1
  38. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.ts.template +1 -1
  39. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.ts.template +1 -1
  40. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +27 -26
  41. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +1 -1
  42. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.ts.template +1 -1
  43. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +1 -1
  44. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +2 -2
  45. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +2 -2
  46. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +2 -2
  47. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +1 -1
  48. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +1 -1
  49. package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-content.ts.template +1 -1
  50. package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty.ts.template +1 -1
  51. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-input-group-addon.ts.template +3 -3
  52. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-input-group-text.ts.template +1 -1
  53. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-input-group.ts.template +1 -1
  54. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +1 -1
  55. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +1 -1
  56. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
  57. package/src/generators/ui/libs/ui-item-helm/files/index.ts.template +35 -0
  58. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-actions.ts.template +15 -0
  59. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-content.ts.template +17 -0
  60. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-description.ts.template +21 -0
  61. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-footer.ts.template +17 -0
  62. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-group.ts.template +12 -0
  63. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-header.ts.template +17 -0
  64. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-media.ts.template +41 -0
  65. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-separator.ts.template +15 -0
  66. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-title.ts.template +17 -0
  67. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item-token.ts.template +41 -0
  68. package/src/generators/ui/libs/ui-item-helm/files/lib/hlm-item.ts.template +49 -0
  69. package/src/generators/ui/libs/ui-item-helm/generator.d.ts +3 -0
  70. package/src/generators/ui/libs/ui-item-helm/generator.js +14 -0
  71. package/src/generators/ui/libs/ui-item-helm/generator.js.map +1 -0
  72. package/src/generators/ui/libs/ui-kbd-helm/files/lib/hlm-kbd.ts.template +1 -1
  73. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +1 -1
  74. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.ts.template +1 -1
  75. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +1 -1
  76. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +1 -1
  77. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +1 -1
  78. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +1 -1
  79. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.ts.template +1 -1
  80. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination-query-params.ts.template +1 -1
  81. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.ts.template +1 -1
  82. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.ts.template +1 -1
  83. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template +1 -1
  84. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +1 -1
  85. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.ts.template +1 -1
  86. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +4 -6
  87. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +1 -1
  88. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-action.ts.template +1 -1
  89. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-label.ts.template +1 -1
  90. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-action.ts.template +1 -1
  91. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-badge.ts.template +1 -1
  92. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-button.ts.template +1 -1
  93. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-rail.ts.template +1 -1
  94. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.ts.template +2 -2
  95. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +1 -1
  96. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +1 -1
  97. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.ts.template +1 -1
  98. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.ts.template +1 -1
  99. package/src/generators/ui/libs/ui-textarea-helm/files/lib/hlm-textarea.ts.template +1 -1
  100. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +1 -1
  101. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +1 -1
  102. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.ts.template +1 -1
  103. package/src/generators/ui/primitive-deps.js +3 -2
  104. package/src/generators/ui/primitive-deps.js.map +1 -1
  105. package/src/generators/ui/primitives.d.ts +1 -1
  106. package/src/generators/ui/supported-ui-libraries.json +41 -32
  107. package/src/utils/get-tailwind-version.d.ts +2 -0
  108. package/src/utils/get-tailwind-version.js +18 -0
  109. package/src/utils/get-tailwind-version.js.map +1 -0
@@ -1,336 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Theme generator Tailwind v3 should add the gray theme styles to the global stylesheet 1`] = `
4
- "@import '@angular/cdk/overlay-prebuilt.css';
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
9
-
10
- /* You can add global styles to this file, and also import other style files */
11
-
12
-
13
- :root {
14
- color-scheme: light;
15
-
16
- --font-sans: '';
17
-
18
- --background: 0deg 0% 100%;
19
- --foreground: 224.06deg 72.27% 4.17%;
20
- --card: 0deg 0% 100%;
21
- --card-foreground: 224.06deg 72.27% 4.17%;
22
- --popover: 0deg 0% 100%;
23
- --popover-foreground: 224.06deg 72.27% 4.17%;
24
- --primary: 220.99deg 41.69% 11.07%;
25
- --primary-foreground: 344.54deg 18.99% 98.19%;
26
- --secondary: 344.7deg 12.65% 95.9%;
27
- --secondary-foreground: 220.99deg 41.69% 11.07%;
28
- --muted: 344.7deg 12.65% 95.9%;
29
- --muted-foreground: 219.99deg 10.27% 46.3%;
30
- --accent: 344.7deg 12.65% 95.9%;
31
- --accent-foreground: 220.99deg 41.69% 11.07%;
32
- --destructive: 351.72deg 100% 40.53%;
33
- --border: 344.79deg 11.54% 91.05%;
34
- --input: 344.79deg 11.54% 91.05%;
35
- --ring: 217.85deg 11.94% 64.27%;
36
- --radius: 0.625rem;
37
- }
38
-
39
- :root.dark {
40
- color-scheme: dark;
41
-
42
- --background: 224.06deg 72.27% 4.17%;
43
- --foreground: 344.54deg 18.99% 98.19%;
44
- --card: 220.99deg 41.69% 11.07%;
45
- --card-foreground: 344.54deg 18.99% 98.19%;
46
- --popover: 220.99deg 41.69% 11.07%;
47
- --popover-foreground: 344.54deg 18.99% 98.19%;
48
- --primary: 344.79deg 11.54% 91.05%;
49
- --primary-foreground: 220.99deg 41.69% 11.07%;
50
- --secondary: 214.98deg 31% 16.95%;
51
- --secondary-foreground: 344.54deg 18.99% 98.19%;
52
- --muted: 214.98deg 31% 16.95%;
53
- --muted-foreground: 217.85deg 11.94% 64.27%;
54
- --accent: 214.98deg 31% 16.95%;
55
- --accent-foreground: 344.54deg 18.99% 98.19%;
56
- --destructive: 358.76deg 100% 69.84%;
57
- --border: 0deg 0% 13.73%;
58
- --input: 0deg 0% 18.43%;
59
- --ring: 219.99deg 10.27% 46.3%;
60
- }
61
-
62
- @layer base {
63
- * {
64
- @apply border-border;
65
- }
66
- }"
67
- `;
68
-
69
- exports[`Theme generator Tailwind v3 should add the neutral theme styles to the global stylesheet 1`] = `
70
- "@import '@angular/cdk/overlay-prebuilt.css';
71
-
72
- @tailwind base;
73
- @tailwind components;
74
- @tailwind utilities;
75
-
76
- /* You can add global styles to this file, and also import other style files */
77
-
78
-
79
- :root {
80
- color-scheme: light;
81
-
82
- --font-sans: '';
83
-
84
- --background: 0deg 0% 100%;
85
- --foreground: 0deg 0.02% 3.94%;
86
- --card: 0deg 0% 100%;
87
- --card-foreground: 0deg 0.02% 3.94%;
88
- --popover: 0deg 0% 100%;
89
- --popover-foreground: 0deg 0.02% 3.94%;
90
- --primary: 0deg 0.02% 9.06%;
91
- --primary-foreground: 0deg 0.5% 98.03%;
92
- --secondary: 0deg 0.24% 96.06%;
93
- --secondary-foreground: 0deg 0.02% 9.06%;
94
- --muted: 0deg 0.24% 96.06%;
95
- --muted-foreground: 0deg 0.01% 45.16%;
96
- --accent: 0deg 0.24% 96.06%;
97
- --accent-foreground: 0deg 0.02% 9.06%;
98
- --destructive: 351.72deg 100% 40.53%;
99
- --border: 0deg 0.09% 89.82%;
100
- --input: 0deg 0.09% 89.82%;
101
- --ring: 0deg 0.02% 63.02%;
102
- --radius: 0.625rem;
103
- }
104
-
105
- :root.dark {
106
- color-scheme: dark;
107
-
108
- --background: 0deg 0.02% 3.94%;
109
- --foreground: 0deg 0.5% 98.03%;
110
- --card: 0deg 0.02% 9.06%;
111
- --card-foreground: 0deg 0.5% 98.03%;
112
- --popover: 0deg 0.02% 9.06%;
113
- --popover-foreground: 0deg 0.5% 98.03%;
114
- --primary: 0deg 0.09% 89.82%;
115
- --primary-foreground: 0deg 0.02% 9.06%;
116
- --secondary: 0deg 0.01% 14.94%;
117
- --secondary-foreground: 0deg 0.5% 98.03%;
118
- --muted: 0deg 0.01% 14.94%;
119
- --muted-foreground: 0deg 0.02% 63.02%;
120
- --accent: 0deg 0% 14.9%;
121
- --accent-foreground: 0deg 0.5% 98.03%;
122
- --destructive: 358.76deg 100% 69.84%;
123
- --border: 0deg 0% 13.73%;
124
- --input: 0deg 0% 18.43%;
125
- --ring: 0deg 0.01% 45.16%;
126
- }
127
-
128
- @layer base {
129
- * {
130
- @apply border-border;
131
- }
132
- }"
133
- `;
134
-
135
- exports[`Theme generator Tailwind v3 should add the slate theme styles to the global stylesheet 1`] = `
136
- "@import '@angular/cdk/overlay-prebuilt.css';
137
-
138
- @tailwind base;
139
- @tailwind components;
140
- @tailwind utilities;
141
-
142
- /* You can add global styles to this file, and also import other style files */
143
-
144
-
145
- :root {
146
- color-scheme: light;
147
-
148
- --font-sans: '';
149
-
150
- --background: 0deg 0% 100%;
151
- --foreground: 228.82deg 85.15% 5%;
152
- --card: 0deg 0% 100%;
153
- --card-foreground: 228.82deg 85.15% 5%;
154
- --popover: 0deg 0% 100%;
155
- --popover-foreground: 228.82deg 85.15% 5%;
156
- --primary: 222.33deg 49.39% 11.3%;
157
- --primary-foreground: 344.69deg 27.87% 98.13%;
158
- --secondary: 344.79deg 33.25% 96.34%;
159
- --secondary-foreground: 222.33deg 49.39% 11.3%;
160
- --muted: 344.79deg 33.25% 96.34%;
161
- --muted-foreground: 215.37deg 18.38% 47.03%;
162
- --accent: 344.79deg 33.25% 96.34%;
163
- --accent-foreground: 222.33deg 49.39% 11.3%;
164
- --destructive: 351.72deg 100% 40.53%;
165
- --border: 214.19deg 33.11% 91.43%;
166
- --input: 214.19deg 33.11% 91.43%;
167
- --ring: 214.97deg 22.62% 64.51%;
168
- --radius: 0.625rem;
169
- }
170
-
171
- :root.dark {
172
- color-scheme: dark;
173
-
174
- --background: 228.82deg 85.15% 5%;
175
- --foreground: 344.69deg 27.87% 98.13%;
176
- --card: 222.33deg 49.39% 11.3%;
177
- --card-foreground: 344.69deg 27.87% 98.13%;
178
- --popover: 222.33deg 49.39% 11.3%;
179
- --popover-foreground: 344.69deg 27.87% 98.13%;
180
- --primary: 214.19deg 33.11% 91.43%;
181
- --primary-foreground: 222.33deg 49.39% 11.3%;
182
- --secondary: 217.27deg 36.08% 17.54%;
183
- --secondary-foreground: 344.69deg 27.87% 98.13%;
184
- --muted: 217.27deg 36.08% 17.54%;
185
- --muted-foreground: 214.97deg 22.62% 64.51%;
186
- --accent: 217.27deg 36.08% 17.54%;
187
- --accent-foreground: 344.69deg 27.87% 98.13%;
188
- --destructive: 358.76deg 100% 69.84%;
189
- --border: 0deg 0% 13.73%;
190
- --input: 0deg 0% 18.43%;
191
- --ring: 219.99deg 10.27% 46.3%;
192
- }
193
-
194
- @layer base {
195
- * {
196
- @apply border-border;
197
- }
198
- }"
199
- `;
200
-
201
- exports[`Theme generator Tailwind v3 should add the stone theme styles to the global stylesheet 1`] = `
202
- "@import '@angular/cdk/overlay-prebuilt.css';
203
-
204
- @tailwind base;
205
- @tailwind components;
206
- @tailwind utilities;
207
-
208
- /* You can add global styles to this file, and also import other style files */
209
-
210
-
211
- :root {
212
- color-scheme: light;
213
-
214
- --font-sans: '';
215
-
216
- --background: 0deg 0% 100%;
217
- --foreground: 344.17deg 10.1% 4.29%;
218
- --card: 0deg 0% 100%;
219
- --card-foreground: 344.17deg 10.1% 4.29%;
220
- --popover: 0deg 0% 100%;
221
- --popover-foreground: 344.17deg 10.1% 4.29%;
222
- --primary: 344.37deg 6.88% 10.34%;
223
- --primary-foreground: 344deg 8.87% 98.11%;
224
- --secondary: 344.02deg 4.34% 96.14%;
225
- --secondary-foreground: 344.37deg 6.88% 10.34%;
226
- --muted: 344.02deg 4.34% 96.14%;
227
- --muted-foreground: 25.05deg 5.89% 44.64%;
228
- --accent: 344.02deg 4.34% 96.14%;
229
- --accent-foreground: 344.37deg 6.88% 10.34%;
230
- --destructive: 351.72deg 100% 40.53%;
231
- --border: 344.71deg 5.22% 90.18%;
232
- --input: 344.71deg 5.22% 90.18%;
233
- --ring: 24.07deg 5.83% 63.06%;
234
- --radius: 0.625rem;
235
- }
236
-
237
- :root.dark {
238
- color-scheme: dark;
239
-
240
- --background: 344.17deg 10.1% 4.29%;
241
- --foreground: 344deg 8.87% 98.11%;
242
- --card: 344.37deg 6.88% 10.34%;
243
- --card-foreground: 344deg 8.87% 98.11%;
244
- --popover: 344.37deg 6.88% 10.34%;
245
- --popover-foreground: 344deg 8.87% 98.11%;
246
- --primary: 344.71deg 5.22% 90.18%;
247
- --primary-foreground: 344.37deg 6.88% 10.34%;
248
- --secondary: 344.41deg 5.76% 15.22%;
249
- --secondary-foreground: 344deg 8.87% 98.11%;
250
- --muted: 344.41deg 5.76% 15.22%;
251
- --muted-foreground: 24.07deg 5.83% 63.06%;
252
- --accent: 344.41deg 5.76% 15.22%;
253
- --accent-foreground: 344deg 8.87% 98.11%;
254
- --destructive: 358.76deg 100% 69.84%;
255
- --border: 0deg 0% 13.73%;
256
- --input: 0deg 0% 18.43%;
257
- }
258
-
259
- @layer base {
260
- * {
261
- @apply border-border;
262
- }
263
- }"
264
- `;
265
-
266
- exports[`Theme generator Tailwind v3 should add the zinc theme styles to the global stylesheet 1`] = `
267
- "@import '@angular/cdk/overlay-prebuilt.css';
268
-
269
- @tailwind base;
270
- @tailwind components;
271
- @tailwind utilities;
272
-
273
- /* You can add global styles to this file, and also import other style files */
274
-
275
-
276
- :root {
277
- color-scheme: light;
278
-
279
- --font-sans: '';
280
-
281
- --background: 0deg 0% 100%;
282
- --foreground: 344.97deg 13.46% 3.85%;
283
- --card: 0deg 0% 100%;
284
- --card-foreground: 344.97deg 13.46% 3.85%;
285
- --popover: 0deg 0% 100%;
286
- --popover-foreground: 344.97deg 13.46% 3.85%;
287
- --primary: 344.35deg 7.21% 9.8%;
288
- --primary-foreground: 0deg 0.5% 98.03%;
289
- --secondary: 344.02deg 3.93% 95.75%;
290
- --secondary-foreground: 344.35deg 7.21% 9.8%;
291
- --muted: 344.02deg 3.93% 95.75%;
292
- --muted-foreground: 239.97deg 4.41% 46.34%;
293
- --accent: 344.02deg 3.93% 95.75%;
294
- --accent-foreground: 344.35deg 7.21% 9.8%;
295
- --destructive: 351.72deg 100% 40.53%;
296
- --border: 344.76deg 6.76% 89.87%;
297
- --input: 344.76deg 6.76% 89.87%;
298
- --ring: 239.9deg 5.73% 64.3%;
299
- --radius: 0.625rem;
300
- }
301
-
302
- :root.dark {
303
- color-scheme: dark;
304
-
305
- --background: 344.97deg 13.46% 3.85%;
306
- --foreground: 0deg 0.5% 98.03%;
307
- --card: 344.35deg 7.21% 9.8%;
308
- --card-foreground: 0deg 0.5% 98.03%;
309
- --popover: 344.35deg 7.21% 9.8%;
310
- --popover-foreground: 0deg 0.5% 98.03%;
311
- --primary: 344.76deg 6.76% 89.87%;
312
- --primary-foreground: 344.35deg 7.21% 9.8%;
313
- --secondary: 344.51deg 4.81% 15.74%;
314
- --secondary-foreground: 0deg 0.5% 98.03%;
315
- --muted: 344.51deg 4.81% 15.74%;
316
- --muted-foreground: 239.9deg 5.73% 64.3%;
317
- --accent: 344.51deg 4.81% 15.74%;
318
- --accent-foreground: 0deg 0.5% 98.03%;
319
- --destructive: 358.76deg 100% 69.84%;
320
- --border: 0deg 0% 13.73%;
321
- --input: 0deg 0% 18.43%;
322
- --ring: 239.97deg 4.41% 46.34%;
323
- }
324
-
325
- @layer base {
326
- * {
327
- @apply border-border;
328
- }
329
- }"
330
- `;
331
-
332
- exports[`Theme generator Tailwind v4 should add the gray theme styles to the global stylesheet 1`] = `
333
- "@import '@angular/cdk/overlay-prebuilt.css';
3
+ exports[`Theme generator should add the gray theme styles to the global stylesheet 1`] = `
4
+ "@import "@angular/cdk/overlay-prebuilt.css";
334
5
 
335
6
  @import "tailwindcss";
336
7
  @import "@spartan-ng/brain/hlm-tailwind-preset.css";
@@ -359,6 +30,14 @@ color-scheme: light;
359
30
  --input: oklch(0.928 0.006 264.531);
360
31
  --ring: oklch(0.707 0.022 261.325);
361
32
  --radius: 0.625rem;
33
+ --sidebar: oklch(0.985 0.002 247.839);
34
+ --sidebar-foreground: oklch(0.13 0.028 261.692);
35
+ --sidebar-primary: oklch(0.21 0.034 264.665);
36
+ --sidebar-primary-foreground: oklch(0.985 0.002 247.839);
37
+ --sidebar-accent: oklch(0.967 0.003 264.542);
38
+ --sidebar-accent-foreground: oklch(0.21 0.034 264.665);
39
+ --sidebar-border: oklch(0.928 0.006 264.531);
40
+ --sidebar-ring: oklch(0.707 0.022 261.325);
362
41
  }
363
42
 
364
43
  :root.dark {
@@ -372,27 +51,38 @@ color-scheme: dark;
372
51
  --popover-foreground: oklch(0.985 0.002 247.839);
373
52
  --primary: oklch(0.928 0.006 264.531);
374
53
  --primary-foreground: oklch(0.21 0.034 264.665);
375
- --secondary: oklch(0.278 0.033 256.848);
54
+ --secondary: oklch(0.275 0.03 264.364);
376
55
  --secondary-foreground: oklch(0.985 0.002 247.839);
377
- --muted: oklch(0.278 0.033 256.848);
56
+ --muted: oklch(0.275 0.03 264.364);
378
57
  --muted-foreground: oklch(0.707 0.022 261.325);
379
- --accent: oklch(0.278 0.033 256.848);
58
+ --accent: oklch(0.275 0.03 264.364);
380
59
  --accent-foreground: oklch(0.985 0.002 247.839);
381
60
  --destructive: oklch(0.704 0.191 22.216);
382
61
  --border: oklch(1 0 0 / 10%);
383
62
  --input: oklch(1 0 0 / 15%);
384
63
  --ring: oklch(0.551 0.027 264.364);
64
+ --sidebar: oklch(0.21 0.034 264.665);
65
+ --sidebar-foreground: oklch(0.985 0.002 247.839);
66
+ --sidebar-primary: oklch(0.488 0.243 264.376);
67
+ --sidebar-primary-foreground: oklch(0.985 0.002 247.839);
68
+ --sidebar-accent: oklch(0.275 0.03 264.364);
69
+ --sidebar-accent-foreground: oklch(0.985 0.002 247.839);
70
+ --sidebar-border: oklch(1 0 0 / 10%);
71
+ --sidebar-ring: oklch(0.551 0.027 264.364);
385
72
  }
386
73
 
387
74
  @layer base {
388
75
  * {
389
- @apply border-border;
76
+ @apply border-border outline-ring/50;
77
+ }
78
+ body {
79
+ @apply bg-background text-foreground;
390
80
  }
391
81
  }"
392
82
  `;
393
83
 
394
- exports[`Theme generator Tailwind v4 should add the neutral theme styles to the global stylesheet 1`] = `
395
- "@import '@angular/cdk/overlay-prebuilt.css';
84
+ exports[`Theme generator should add the neutral theme styles to the global stylesheet 1`] = `
85
+ "@import "@angular/cdk/overlay-prebuilt.css";
396
86
 
397
87
  @import "tailwindcss";
398
88
  @import "@spartan-ng/brain/hlm-tailwind-preset.css";
@@ -421,6 +111,14 @@ color-scheme: light;
421
111
  --input: oklch(0.922 0 0);
422
112
  --ring: oklch(0.708 0 0);
423
113
  --radius: 0.625rem;
114
+ --sidebar: oklch(0.985 0 0);
115
+ --sidebar-foreground: oklch(0.145 0 0);
116
+ --sidebar-primary: oklch(0.205 0 0);
117
+ --sidebar-primary-foreground: oklch(0.985 0 0);
118
+ --sidebar-accent: oklch(0.97 0 0);
119
+ --sidebar-accent-foreground: oklch(0.205 0 0);
120
+ --sidebar-border: oklch(0.922 0 0);
121
+ --sidebar-ring: oklch(0.708 0 0);
424
122
  }
425
123
 
426
124
  :root.dark {
@@ -444,17 +142,28 @@ color-scheme: dark;
444
142
  --border: oklch(1 0 0 / 10%);
445
143
  --input: oklch(1 0 0 / 15%);
446
144
  --ring: oklch(0.556 0 0);
145
+ --sidebar: oklch(0.205 0 0);
146
+ --sidebar-foreground: oklch(0.985 0 0);
147
+ --sidebar-primary: oklch(0.488 0.243 264.376);
148
+ --sidebar-primary-foreground: oklch(0.985 0 0);
149
+ --sidebar-accent: oklch(0.269 0 0);
150
+ --sidebar-accent-foreground: oklch(0.985 0 0);
151
+ --sidebar-border: oklch(1 0 0 / 10%);
152
+ --sidebar-ring: oklch(0.556 0 0);
447
153
  }
448
154
 
449
155
  @layer base {
450
156
  * {
451
- @apply border-border;
157
+ @apply border-border outline-ring/50;
158
+ }
159
+ body {
160
+ @apply bg-background text-foreground;
452
161
  }
453
162
  }"
454
163
  `;
455
164
 
456
- exports[`Theme generator Tailwind v4 should add the slate theme styles to the global stylesheet 1`] = `
457
- "@import '@angular/cdk/overlay-prebuilt.css';
165
+ exports[`Theme generator should add the slate theme styles to the global stylesheet 1`] = `
166
+ "@import "@angular/cdk/overlay-prebuilt.css";
458
167
 
459
168
  @import "tailwindcss";
460
169
  @import "@spartan-ng/brain/hlm-tailwind-preset.css";
@@ -465,58 +174,77 @@ color-scheme: light;
465
174
  --font-sans: '';
466
175
 
467
176
  --background: oklch(1 0 0);
468
- --foreground: oklch(0.129 0.042 264.695);
177
+ --foreground: oklch(0.135 0.031 257.417);
469
178
  --card: oklch(1 0 0);
470
- --card-foreground: oklch(0.129 0.042 264.695);
179
+ --card-foreground: oklch(0.135 0.031 257.417);
471
180
  --popover: oklch(1 0 0);
472
- --popover-foreground: oklch(0.129 0.042 264.695);
473
- --primary: oklch(0.208 0.042 265.755);
474
- --primary-foreground: oklch(0.984 0.003 247.858);
475
- --secondary: oklch(0.968 0.007 247.896);
476
- --secondary-foreground: oklch(0.208 0.042 265.755);
477
- --muted: oklch(0.968 0.007 247.896);
478
- --muted-foreground: oklch(0.554 0.046 257.417);
479
- --accent: oklch(0.968 0.007 247.896);
480
- --accent-foreground: oklch(0.208 0.042 265.755);
181
+ --popover-foreground: oklch(0.135 0.031 257.417);
182
+ --primary: oklch(0.218 0.034 257.417);
183
+ --primary-foreground: oklch(0.985 0.003 247.839);
184
+ --secondary: oklch(0.967 0.003 257.42);
185
+ --secondary-foreground: oklch(0.218 0.034 257.417);
186
+ --muted: oklch(0.967 0.003 257.42);
187
+ --muted-foreground: oklch(0.554 0.027 257.417);
188
+ --accent: oklch(0.967 0.003 257.42);
189
+ --accent-foreground: oklch(0.218 0.034 257.417);
481
190
  --destructive: oklch(0.577 0.245 27.325);
482
- --border: oklch(0.929 0.013 255.508);
483
- --input: oklch(0.929 0.013 255.508);
484
- --ring: oklch(0.704 0.04 256.788);
191
+ --border: oklch(0.928 0.006 257.419);
192
+ --input: oklch(0.928 0.006 257.419);
193
+ --ring: oklch(0.707 0.022 257.417);
485
194
  --radius: 0.625rem;
195
+ --sidebar: oklch(0.985 0.003 247.839);
196
+ --sidebar-foreground: oklch(0.135 0.031 257.417);
197
+ --sidebar-primary: oklch(0.218 0.034 257.417);
198
+ --sidebar-primary-foreground: oklch(0.985 0.003 247.839);
199
+ --sidebar-accent: oklch(0.967 0.003 257.42);
200
+ --sidebar-accent-foreground: oklch(0.218 0.034 257.417);
201
+ --sidebar-border: oklch(0.928 0.006 257.419);
202
+ --sidebar-ring: oklch(0.707 0.022 257.417);
486
203
  }
487
204
 
488
205
  :root.dark {
489
206
  color-scheme: dark;
490
207
 
491
- --background: oklch(0.129 0.042 264.695);
492
- --foreground: oklch(0.984 0.003 247.858);
493
- --card: oklch(0.208 0.042 265.755);
494
- --card-foreground: oklch(0.984 0.003 247.858);
495
- --popover: oklch(0.208 0.042 265.755);
496
- --popover-foreground: oklch(0.984 0.003 247.858);
497
- --primary: oklch(0.929 0.013 255.508);
498
- --primary-foreground: oklch(0.208 0.042 265.755);
499
- --secondary: oklch(0.279 0.041 260.031);
500
- --secondary-foreground: oklch(0.984 0.003 247.858);
501
- --muted: oklch(0.279 0.041 260.031);
502
- --muted-foreground: oklch(0.704 0.04 256.788);
503
- --accent: oklch(0.279 0.041 260.031);
504
- --accent-foreground: oklch(0.984 0.003 247.858);
208
+ --background: oklch(0.135 0.031 257.417);
209
+ --foreground: oklch(0.985 0.003 247.839);
210
+ --card: oklch(0.218 0.034 257.417);
211
+ --card-foreground: oklch(0.985 0.003 247.839);
212
+ --popover: oklch(0.218 0.034 257.417);
213
+ --popover-foreground: oklch(0.985 0.003 247.839);
214
+ --primary: oklch(0.928 0.006 257.419);
215
+ --primary-foreground: oklch(0.218 0.034 257.417);
216
+ --secondary: oklch(0.275 0.03 257.417);
217
+ --secondary-foreground: oklch(0.985 0.003 247.839);
218
+ --muted: oklch(0.275 0.03 257.417);
219
+ --muted-foreground: oklch(0.707 0.022 257.417);
220
+ --accent: oklch(0.275 0.03 257.417);
221
+ --accent-foreground: oklch(0.985 0.003 247.839);
505
222
  --destructive: oklch(0.704 0.191 22.216);
506
223
  --border: oklch(1 0 0 / 10%);
507
224
  --input: oklch(1 0 0 / 15%);
508
- --ring: oklch(0.551 0.027 264.364);
225
+ --ring: oklch(0.554 0.027 257.417);
226
+ --sidebar: oklch(0.218 0.034 257.417);
227
+ --sidebar-foreground: oklch(0.985 0.003 247.839);
228
+ --sidebar-primary: oklch(0.488 0.243 264.376);
229
+ --sidebar-primary-foreground: oklch(0.985 0.003 247.839);
230
+ --sidebar-accent: oklch(0.275 0.03 257.417);
231
+ --sidebar-accent-foreground: oklch(0.985 0.003 247.839);
232
+ --sidebar-border: oklch(1 0 0 / 10%);
233
+ --sidebar-ring: oklch(0.554 0.027 257.417);
509
234
  }
510
235
 
511
236
  @layer base {
512
237
  * {
513
- @apply border-border;
238
+ @apply border-border outline-ring/50;
239
+ }
240
+ body {
241
+ @apply bg-background text-foreground;
514
242
  }
515
243
  }"
516
244
  `;
517
245
 
518
- exports[`Theme generator Tailwind v4 should add the stone theme styles to the global stylesheet 1`] = `
519
- "@import '@angular/cdk/overlay-prebuilt.css';
246
+ exports[`Theme generator should add the stone theme styles to the global stylesheet 1`] = `
247
+ "@import "@angular/cdk/overlay-prebuilt.css";
520
248
 
521
249
  @import "tailwindcss";
522
250
  @import "@spartan-ng/brain/hlm-tailwind-preset.css";
@@ -545,6 +273,14 @@ color-scheme: light;
545
273
  --input: oklch(0.923 0.003 48.717);
546
274
  --ring: oklch(0.709 0.01 56.259);
547
275
  --radius: 0.625rem;
276
+ --sidebar: oklch(0.985 0.001 106.423);
277
+ --sidebar-foreground: oklch(0.147 0.004 49.25);
278
+ --sidebar-primary: oklch(0.216 0.006 56.043);
279
+ --sidebar-primary-foreground: oklch(0.985 0.001 106.423);
280
+ --sidebar-accent: oklch(0.97 0.001 106.424);
281
+ --sidebar-accent-foreground: oklch(0.216 0.006 56.043);
282
+ --sidebar-border: oklch(0.923 0.003 48.717);
283
+ --sidebar-ring: oklch(0.709 0.01 56.259);
548
284
  }
549
285
 
550
286
  :root.dark {
@@ -568,17 +304,28 @@ color-scheme: dark;
568
304
  --border: oklch(1 0 0 / 10%);
569
305
  --input: oklch(1 0 0 / 15%);
570
306
  --ring: oklch(0.553 0.013 58.071);
307
+ --sidebar: oklch(0.216 0.006 56.043);
308
+ --sidebar-foreground: oklch(0.985 0.001 106.423);
309
+ --sidebar-primary: oklch(0.488 0.243 264.376);
310
+ --sidebar-primary-foreground: oklch(0.985 0.001 106.423);
311
+ --sidebar-accent: oklch(0.268 0.007 34.298);
312
+ --sidebar-accent-foreground: oklch(0.985 0.001 106.423);
313
+ --sidebar-border: oklch(1 0 0 / 10%);
314
+ --sidebar-ring: oklch(0.553 0.013 58.071);
571
315
  }
572
316
 
573
317
  @layer base {
574
318
  * {
575
- @apply border-border;
319
+ @apply border-border outline-ring/50;
320
+ }
321
+ body {
322
+ @apply bg-background text-foreground;
576
323
  }
577
324
  }"
578
325
  `;
579
326
 
580
- exports[`Theme generator Tailwind v4 should add the zinc theme styles to the global stylesheet 1`] = `
581
- "@import '@angular/cdk/overlay-prebuilt.css';
327
+ exports[`Theme generator should add the zinc theme styles to the global stylesheet 1`] = `
328
+ "@import "@angular/cdk/overlay-prebuilt.css";
582
329
 
583
330
  @import "tailwindcss";
584
331
  @import "@spartan-ng/brain/hlm-tailwind-preset.css";
@@ -607,6 +354,14 @@ color-scheme: light;
607
354
  --input: oklch(0.92 0.004 286.32);
608
355
  --ring: oklch(0.705 0.015 286.067);
609
356
  --radius: 0.625rem;
357
+ --sidebar: oklch(0.985 0 0);
358
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
359
+ --sidebar-primary: oklch(0.21 0.006 285.885);
360
+ --sidebar-primary-foreground: oklch(0.985 0 0);
361
+ --sidebar-accent: oklch(0.967 0.001 286.375);
362
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
363
+ --sidebar-border: oklch(0.92 0.004 286.32);
364
+ --sidebar-ring: oklch(0.705 0.015 286.067);
610
365
  }
611
366
 
612
367
  :root.dark {
@@ -630,11 +385,22 @@ color-scheme: dark;
630
385
  --border: oklch(1 0 0 / 10%);
631
386
  --input: oklch(1 0 0 / 15%);
632
387
  --ring: oklch(0.552 0.016 285.938);
388
+ --sidebar: oklch(0.21 0.006 285.885);
389
+ --sidebar-foreground: oklch(0.985 0 0);
390
+ --sidebar-primary: oklch(0.488 0.243 264.376);
391
+ --sidebar-primary-foreground: oklch(0.985 0 0);
392
+ --sidebar-accent: oklch(0.274 0.006 286.033);
393
+ --sidebar-accent-foreground: oklch(0.985 0 0);
394
+ --sidebar-border: oklch(1 0 0 / 10%);
395
+ --sidebar-ring: oklch(0.552 0.016 285.938);
633
396
  }
634
397
 
635
398
  @layer base {
636
399
  * {
637
- @apply border-border;
400
+ @apply border-border outline-ring/50;
401
+ }
402
+ body {
403
+ @apply bg-background text-foreground;
638
404
  }
639
405
  }"
640
406
  `;
@@ -36,7 +36,7 @@ async function addThemeToApplicationGenerator(tree) {
36
36
  message: "Prefix class name applied to your theme's style definitions: e.g., theme-zinc. Leave empty for global theme.",
37
37
  },
38
38
  ]);
39
- (0, add_theme_to_application_styles_1.addThemeToApplicationStyles)(tree, {
39
+ await (0, add_theme_to_application_styles_1.addThemeToApplicationStyles)(tree, {
40
40
  project: project.name,
41
41
  theme: themeOptions.theme,
42
42
  addCdkStyles: themeOptions.addCdkStyles,
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/generator.ts"],"names":[],"mappings":";;AAMA,iDAqDC;AA1DD,uCAAkC;AAClC,qEAAoE;AACpE,4FAAqF;AACrF,0CAA2D;AAE5C,KAAK,UAAU,8BAA8B,CAAC,IAAU;IACtE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAA,uCAAmB,EAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,QAAQ,GAAoB,MAAM,IAAA,iBAAM,EAAC;QAC9C,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,wDAAwD;QACjE,OAAO,EAAE,YAAY;KACrB,CAAC,CAAC;IACH,MAAM,OAAO,GAAqC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE7E,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,YAAY,GAKd,MAAM,IAAA,iBAAM,EAAC;QAChB;YACC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EACN,gHAAgH;YACjH,OAAO,EAAE,mBAAU;SACnB;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,kBAAkB;YACxB,OAAO,EACN,yJAAyJ;SAC1J;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,8GAA8G;SAC/G;KACD,CAAC,CAAC;IAEH,IAAA,6DAA2B,EAC1B,IAAI,EACJ;QACC,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,MAAM,EAAE,YAAY,CAAC,MAAM;KAC3B,EACD,OAAO,CACP,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/generator.ts"],"names":[],"mappings":";;AAMA,iDAqDC;AA1DD,uCAAkC;AAClC,qEAAoE;AACpE,4FAAqF;AACrF,0CAA2D;AAE5C,KAAK,UAAU,8BAA8B,CAAC,IAAU;IACtE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAA,uCAAmB,EAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,QAAQ,GAAoB,MAAM,IAAA,iBAAM,EAAC;QAC9C,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,wDAAwD;QACjE,OAAO,EAAE,YAAY;KACrB,CAAC,CAAC;IACH,MAAM,OAAO,GAAqC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE7E,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,YAAY,GAKd,MAAM,IAAA,iBAAM,EAAC;QAChB;YACC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EACN,gHAAgH;YACjH,OAAO,EAAE,mBAAU;SACnB;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,kBAAkB;YACxB,OAAO,EACN,yJAAyJ;SAC1J;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,8GAA8G;SAC/G;KACD,CAAC,CAAC;IAEH,MAAM,IAAA,6DAA2B,EAChC,IAAI,EACJ;QACC,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,MAAM,EAAE,YAAY,CAAC,MAAM;KAC3B,EACD,OAAO,CACP,CAAC;AACH,CAAC"}
@@ -7,4 +7,4 @@ export interface AddThemeToApplicationStylesOptions {
7
7
  stylesEntryPoint?: string;
8
8
  prefix?: string;
9
9
  }
10
- export declare function addThemeToApplicationStyles(tree: Tree, options: AddThemeToApplicationStylesOptions, project: ProjectConfiguration): void;
10
+ export declare function addThemeToApplicationStyles(tree: Tree, options: AddThemeToApplicationStylesOptions, project: ProjectConfiguration): Promise<void>;