@spartan-ng/cli 0.0.1-alpha.506 → 0.0.1-alpha.508
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.
- package/generators.json +26 -0
- package/package.json +1 -1
- package/src/generators/base/lib/build-dependency-array.d.ts +0 -1
- package/src/generators/base/lib/build-dependency-array.js +1 -1
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/healthcheck/generator.js +4 -0
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-separator.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/brn-separator.js +34 -0
- package/src/generators/healthcheck/healthchecks/brn-separator.js.map +1 -0
- package/src/generators/healthcheck/healthchecks/hlm.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/hlm.js +32 -0
- package/src/generators/healthcheck/healthchecks/hlm.js.map +1 -0
- package/src/generators/healthcheck/healthchecks.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks.js.map +1 -1
- package/src/generators/migrate-hlm/compat.d.ts +2 -0
- package/src/generators/migrate-hlm/compat.js +7 -0
- package/src/generators/migrate-hlm/compat.js.map +1 -0
- package/src/generators/migrate-hlm/generator.d.ts +4 -0
- package/src/generators/migrate-hlm/generator.js +102 -0
- package/src/generators/migrate-hlm/generator.js.map +1 -0
- package/src/generators/migrate-hlm/schema.d.ts +4 -0
- package/src/generators/migrate-hlm/schema.json +14 -0
- package/src/generators/migrate-separator/compat.d.ts +2 -0
- package/src/generators/migrate-separator/compat.js +7 -0
- package/src/generators/migrate-separator/compat.js.map +1 -0
- package/src/generators/migrate-separator/generator.d.ts +4 -0
- package/src/generators/migrate-separator/generator.js +78 -0
- package/src/generators/migrate-separator/generator.js.map +1 -0
- package/src/generators/migrate-separator/schema.d.ts +3 -0
- package/src/generators/migrate-separator/schema.json +14 -0
- package/src/generators/theme/__snapshots__/generator.spec.ts.snap +40 -20
- package/src/generators/theme/libs/add-theme-to-application-styles.js +7 -7
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template +3 -2
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.ts.template +3 -2
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.ts.template +3 -3
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.ts.template +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.ts.template +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.ts.template +5 -5
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-page.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +5 -5
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +13 -11
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +13 -11
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +13 -11
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-action.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.ts.template +1 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +3 -3
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +3 -3
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +2 -4
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.ts.template +3 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +3 -5
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +2 -2
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +2 -2
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +2 -2
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.ts.template +3 -2
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +3 -3
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +2 -2
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio-indicator.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.ts.template +2 -2
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.ts.template +3 -2
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.ts.template +2 -2
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template +2 -2
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.ts.template +1 -1
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +3 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.ts.template +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +4 -2
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +6 -7
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.ts.template +3 -2
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.ts.template +3 -2
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +2 -2
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.ts.template +1 -1
- package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.ts.template +1 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.ts.template +2 -2
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +2 -2
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +2 -2
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.ts.template +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +2 -2
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +6 -6
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.ts.template +3 -3
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.ts.template +1 -1
- package/src/generators/ui/libs/ui-utils-helm/files/index.ts.template +1 -0
- package/src/generators/ui/libs/ui-utils-helm/files/lib/hlm.ts.template +6 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.js.map +1 -0
- package/src/generators/ui/primitive-deps.js +42 -41
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/supported-ui-libraries.json +37 -44
|
@@ -11,10 +11,10 @@ exports[`Theme generator Tailwind v3 should add the gray theme styles to the glo
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
:root {
|
|
14
|
+
color-scheme: light;
|
|
15
|
+
|
|
14
16
|
--font-sans: ''
|
|
15
|
-
}
|
|
16
17
|
|
|
17
|
-
:root {
|
|
18
18
|
--background: 0deg 0% 100%;
|
|
19
19
|
--foreground: 224.06deg 72.27% 4.17%;
|
|
20
20
|
--card: 0deg 0% 100%;
|
|
@@ -37,6 +37,8 @@ exports[`Theme generator Tailwind v3 should add the gray theme styles to the glo
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
:root.dark {
|
|
40
|
+
color-scheme: dark;
|
|
41
|
+
|
|
40
42
|
--background: 224.06deg 72.27% 4.17%;
|
|
41
43
|
--foreground: 344.54deg 18.99% 98.19%;
|
|
42
44
|
--card: 220.99deg 41.69% 11.07%;
|
|
@@ -75,10 +77,10 @@ exports[`Theme generator Tailwind v3 should add the neutral theme styles to the
|
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
:root {
|
|
80
|
+
color-scheme: light;
|
|
81
|
+
|
|
78
82
|
--font-sans: ''
|
|
79
|
-
}
|
|
80
83
|
|
|
81
|
-
:root {
|
|
82
84
|
--background: 0deg 0% 100%;
|
|
83
85
|
--foreground: 0deg 0.02% 3.94%;
|
|
84
86
|
--card: 0deg 0% 100%;
|
|
@@ -101,6 +103,8 @@ exports[`Theme generator Tailwind v3 should add the neutral theme styles to the
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
:root.dark {
|
|
106
|
+
color-scheme: dark;
|
|
107
|
+
|
|
104
108
|
--background: 0deg 0.02% 3.94%;
|
|
105
109
|
--foreground: 0deg 0.5% 98.03%;
|
|
106
110
|
--card: 0deg 0.02% 9.06%;
|
|
@@ -139,10 +143,10 @@ exports[`Theme generator Tailwind v3 should add the slate theme styles to the gl
|
|
|
139
143
|
|
|
140
144
|
|
|
141
145
|
:root {
|
|
146
|
+
color-scheme: light;
|
|
147
|
+
|
|
142
148
|
--font-sans: ''
|
|
143
|
-
}
|
|
144
149
|
|
|
145
|
-
:root {
|
|
146
150
|
--background: 0deg 0% 100%;
|
|
147
151
|
--foreground: 228.82deg 85.15% 5%;
|
|
148
152
|
--card: 0deg 0% 100%;
|
|
@@ -165,6 +169,8 @@ exports[`Theme generator Tailwind v3 should add the slate theme styles to the gl
|
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
:root.dark {
|
|
172
|
+
color-scheme: dark;
|
|
173
|
+
|
|
168
174
|
--background: 228.82deg 85.15% 5%;
|
|
169
175
|
--foreground: 344.69deg 27.87% 98.13%;
|
|
170
176
|
--card: 222.33deg 49.39% 11.3%;
|
|
@@ -203,10 +209,10 @@ exports[`Theme generator Tailwind v3 should add the stone theme styles to the gl
|
|
|
203
209
|
|
|
204
210
|
|
|
205
211
|
:root {
|
|
212
|
+
color-scheme: light;
|
|
213
|
+
|
|
206
214
|
--font-sans: ''
|
|
207
|
-
}
|
|
208
215
|
|
|
209
|
-
:root {
|
|
210
216
|
--background: 0deg 0% 100%;
|
|
211
217
|
--foreground: 344.17deg 10.1% 4.29%;
|
|
212
218
|
--card: 0deg 0% 100%;
|
|
@@ -229,6 +235,8 @@ exports[`Theme generator Tailwind v3 should add the stone theme styles to the gl
|
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
:root.dark {
|
|
238
|
+
color-scheme: dark;
|
|
239
|
+
|
|
232
240
|
--background: 344.17deg 10.1% 4.29%;
|
|
233
241
|
--foreground: 344deg 8.87% 98.11%;
|
|
234
242
|
--card: 344.37deg 6.88% 10.34%;
|
|
@@ -266,10 +274,10 @@ exports[`Theme generator Tailwind v3 should add the zinc theme styles to the glo
|
|
|
266
274
|
|
|
267
275
|
|
|
268
276
|
:root {
|
|
277
|
+
color-scheme: light;
|
|
278
|
+
|
|
269
279
|
--font-sans: ''
|
|
270
|
-
}
|
|
271
280
|
|
|
272
|
-
:root {
|
|
273
281
|
--background: 0deg 0% 100%;
|
|
274
282
|
--foreground: 344.97deg 13.46% 3.85%;
|
|
275
283
|
--card: 0deg 0% 100%;
|
|
@@ -292,6 +300,8 @@ exports[`Theme generator Tailwind v3 should add the zinc theme styles to the glo
|
|
|
292
300
|
}
|
|
293
301
|
|
|
294
302
|
:root.dark {
|
|
303
|
+
color-scheme: dark;
|
|
304
|
+
|
|
295
305
|
--background: 344.97deg 13.46% 3.85%;
|
|
296
306
|
--foreground: 0deg 0.5% 98.03%;
|
|
297
307
|
--card: 344.35deg 7.21% 9.8%;
|
|
@@ -326,10 +336,10 @@ exports[`Theme generator Tailwind v4 should add the gray theme styles to the glo
|
|
|
326
336
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
327
337
|
|
|
328
338
|
:root {
|
|
339
|
+
color-scheme: light;
|
|
340
|
+
|
|
329
341
|
--font-sans: ''
|
|
330
|
-
}
|
|
331
342
|
|
|
332
|
-
:root {
|
|
333
343
|
--background: oklch(1 0 0);
|
|
334
344
|
--foreground: oklch(0.13 0.028 261.692);
|
|
335
345
|
--card: oklch(1 0 0);
|
|
@@ -352,6 +362,8 @@ exports[`Theme generator Tailwind v4 should add the gray theme styles to the glo
|
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
:root.dark {
|
|
365
|
+
color-scheme: dark;
|
|
366
|
+
|
|
355
367
|
--background: oklch(0.13 0.028 261.692);
|
|
356
368
|
--foreground: oklch(0.985 0.002 247.839);
|
|
357
369
|
--card: oklch(0.21 0.034 264.665);
|
|
@@ -386,10 +398,10 @@ exports[`Theme generator Tailwind v4 should add the neutral theme styles to the
|
|
|
386
398
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
387
399
|
|
|
388
400
|
:root {
|
|
401
|
+
color-scheme: light;
|
|
402
|
+
|
|
389
403
|
--font-sans: ''
|
|
390
|
-
}
|
|
391
404
|
|
|
392
|
-
:root {
|
|
393
405
|
--background: oklch(1 0 0);
|
|
394
406
|
--foreground: oklch(0.145 0 0);
|
|
395
407
|
--card: oklch(1 0 0);
|
|
@@ -412,6 +424,8 @@ exports[`Theme generator Tailwind v4 should add the neutral theme styles to the
|
|
|
412
424
|
}
|
|
413
425
|
|
|
414
426
|
:root.dark {
|
|
427
|
+
color-scheme: dark;
|
|
428
|
+
|
|
415
429
|
--background: oklch(0.145 0 0);
|
|
416
430
|
--foreground: oklch(0.985 0 0);
|
|
417
431
|
--card: oklch(0.205 0 0);
|
|
@@ -446,10 +460,10 @@ exports[`Theme generator Tailwind v4 should add the slate theme styles to the gl
|
|
|
446
460
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
447
461
|
|
|
448
462
|
:root {
|
|
463
|
+
color-scheme: light;
|
|
464
|
+
|
|
449
465
|
--font-sans: ''
|
|
450
|
-
}
|
|
451
466
|
|
|
452
|
-
:root {
|
|
453
467
|
--background: oklch(1 0 0);
|
|
454
468
|
--foreground: oklch(0.129 0.042 264.695);
|
|
455
469
|
--card: oklch(1 0 0);
|
|
@@ -472,6 +486,8 @@ exports[`Theme generator Tailwind v4 should add the slate theme styles to the gl
|
|
|
472
486
|
}
|
|
473
487
|
|
|
474
488
|
:root.dark {
|
|
489
|
+
color-scheme: dark;
|
|
490
|
+
|
|
475
491
|
--background: oklch(0.129 0.042 264.695);
|
|
476
492
|
--foreground: oklch(0.984 0.003 247.858);
|
|
477
493
|
--card: oklch(0.208 0.042 265.755);
|
|
@@ -506,10 +522,10 @@ exports[`Theme generator Tailwind v4 should add the stone theme styles to the gl
|
|
|
506
522
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
507
523
|
|
|
508
524
|
:root {
|
|
525
|
+
color-scheme: light;
|
|
526
|
+
|
|
509
527
|
--font-sans: ''
|
|
510
|
-
}
|
|
511
528
|
|
|
512
|
-
:root {
|
|
513
529
|
--background: oklch(1 0 0);
|
|
514
530
|
--foreground: oklch(0.147 0.004 49.25);
|
|
515
531
|
--card: oklch(1 0 0);
|
|
@@ -532,6 +548,8 @@ exports[`Theme generator Tailwind v4 should add the stone theme styles to the gl
|
|
|
532
548
|
}
|
|
533
549
|
|
|
534
550
|
:root.dark {
|
|
551
|
+
color-scheme: dark;
|
|
552
|
+
|
|
535
553
|
--background: oklch(0.147 0.004 49.25);
|
|
536
554
|
--foreground: oklch(0.985 0.001 106.423);
|
|
537
555
|
--card: oklch(0.216 0.006 56.043);
|
|
@@ -566,10 +584,10 @@ exports[`Theme generator Tailwind v4 should add the zinc theme styles to the glo
|
|
|
566
584
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
567
585
|
|
|
568
586
|
:root {
|
|
587
|
+
color-scheme: light;
|
|
588
|
+
|
|
569
589
|
--font-sans: ''
|
|
570
|
-
}
|
|
571
590
|
|
|
572
|
-
:root {
|
|
573
591
|
--background: oklch(1 0 0);
|
|
574
592
|
--foreground: oklch(0.141 0.005 285.823);
|
|
575
593
|
--card: oklch(1 0 0);
|
|
@@ -592,6 +610,8 @@ exports[`Theme generator Tailwind v4 should add the zinc theme styles to the glo
|
|
|
592
610
|
}
|
|
593
611
|
|
|
594
612
|
:root.dark {
|
|
613
|
+
color-scheme: dark;
|
|
614
|
+
|
|
595
615
|
--background: oklch(0.141 0.005 285.823);
|
|
596
616
|
--foreground: oklch(0.985 0 0);
|
|
597
617
|
--card: oklch(0.21 0.006 285.885);
|
|
@@ -31,11 +31,7 @@ function addThemeToApplicationStyles(tree, options, project) {
|
|
|
31
31
|
const stylesEntryPointContent = tree.read(stylesEntryPoint, 'utf-8');
|
|
32
32
|
const CDK_IMPORT = `@import '@angular/cdk/overlay-prebuilt.css';`;
|
|
33
33
|
const ckdOverlayImport = stylesEntryPointContent.includes(CDK_IMPORT) ? '' : CDK_IMPORT;
|
|
34
|
-
const
|
|
35
|
-
? ''
|
|
36
|
-
: `:root {
|
|
37
|
-
--font-sans: ''
|
|
38
|
-
}`;
|
|
34
|
+
const fontSans = stylesEntryPointContent.includes('--font-sans') ? '' : `--font-sans: ''`;
|
|
39
35
|
const colorScheme = tailwindVersion === 4 ? colors_1.themes[options.theme].cssVarsV4 : colors_1.themes[options.theme].cssVarsV3;
|
|
40
36
|
tree.write(stylesEntryPoint, (0, devkit_1.stripIndents) `
|
|
41
37
|
${ckdOverlayImport}
|
|
@@ -43,15 +39,19 @@ function addThemeToApplicationStyles(tree, options, project) {
|
|
|
43
39
|
${stylesEntryPointContent}
|
|
44
40
|
${tailwindImport}
|
|
45
41
|
|
|
46
|
-
${rootFontSans}
|
|
47
|
-
|
|
48
42
|
:root${prefix} {
|
|
43
|
+
color-scheme: light;
|
|
44
|
+
|
|
45
|
+
${fontSans}
|
|
46
|
+
|
|
49
47
|
${Object.entries(colorScheme.light)
|
|
50
48
|
.map(([key, value]) => `--${key}: ${value};`)
|
|
51
49
|
.join('\n')}
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
:root.dark${prefix} {
|
|
53
|
+
color-scheme: dark;
|
|
54
|
+
|
|
55
55
|
${Object.entries(colorScheme.dark)
|
|
56
56
|
.map(([key, value]) => `--${key}: ${value};`)
|
|
57
57
|
.join('\n')}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-theme-to-application-styles.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/theme/libs/add-theme-to-application-styles.ts"],"names":[],"mappings":";AAAA,gHAAgH;AAChH,kJAAkJ;;AAelJ,kEA4EC;;AAzFD,uCAA6G;AAE7G,uDAAiC;AACjC,qCAA6C;AAU7C,SAAgB,2BAA2B,CAC1C,IAAU,EACV,OAA2C,EAC3C,OAA6B;IAE7B,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAc,IAAI,EAAE,cAAc,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC;IAE7E,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,cAAc,GAAG,eAAe,KAAK,CAAC,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3G,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3D,IAAI,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAEhD,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,oCAAoC,gBAAgB,uBAAuB,CAAC,CAAC;IAC9F,CAAC;IAED,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACvB,gBAAgB,GAAG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CACd,IAAA,qBAAY,EAAA,oDAAoD,OAAO,CAAC,OAAO;iFACF,CAC7E,CAAC;QACH,CAAC;IACF,CAAC;IAED,MAAM,uBAAuB,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAErE,MAAM,UAAU,GAAG,8CAA8C,CAAC;IAClE,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAExF,MAAM,
|
|
1
|
+
{"version":3,"file":"add-theme-to-application-styles.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/theme/libs/add-theme-to-application-styles.ts"],"names":[],"mappings":"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"}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionContent } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -22,6 +22,6 @@ export class HlmAccordionContent extends BrnAccordionContent {
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
protected readonly _computedClass = computed(() => {
|
|
24
24
|
const gridRows = this.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
|
|
25
|
-
return hlm('text-sm transition-all
|
|
25
|
+
return hlm('grid text-sm transition-all', gridRows, this.userClass());
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
|
-
import { hlm } from '@spartan-ng/brain/core';
|
|
5
4
|
import { provideHlmIconConfig } from '@spartan-ng/helm/icon';
|
|
5
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionItem } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -18,6 +18,6 @@ import type { ClassValue } from 'clsx';
|
|
|
18
18
|
export class HlmAccordionItem {
|
|
19
19
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
20
|
protected readonly _computedClass = computed(() =>
|
|
21
|
-
hlm('flex flex-1 flex-col border-b
|
|
21
|
+
hlm('border-border flex flex-1 flex-col border-b', this.userClass()),
|
|
22
22
|
);
|
|
23
23
|
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionTrigger } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -15,7 +15,7 @@ export class HlmAccordionTrigger {
|
|
|
15
15
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
16
|
protected readonly _computedClass = computed(() =>
|
|
17
17
|
hlm(
|
|
18
|
-
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all
|
|
18
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-none transition-all hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>[hlmAccIcon]]:rotate-180',
|
|
19
19
|
this.userClass(),
|
|
20
20
|
),
|
|
21
21
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordion } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input, signal } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
4
|
import type { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
6
|
@Component({
|
|
@@ -21,7 +22,7 @@ export class HlmAlertDialogContent {
|
|
|
21
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
22
23
|
protected readonly _computedClass = computed(() =>
|
|
23
24
|
hlm(
|
|
24
|
-
'
|
|
25
|
+
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 relative z-50 mx-auto grid w-full max-w-[calc(100%-2rem)] gap-4 rounded-lg border p-6 shadow-lg data-[state=closed]:duration-200 data-[state=open]:duration-200 sm:mx-0 sm:max-w-lg',
|
|
25
26
|
this.userClass(),
|
|
26
27
|
),
|
|
27
28
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogDescription } from '@spartan-ng/brain/alert-dialog';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.ts.template
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, effect, input, untracked } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { injectCustomClassSettable } from '@spartan-ng/brain/core';
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
4
|
import type { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
6
|
@Directive({
|
|
@@ -11,7 +12,7 @@ export class HlmAlertDialogOverlay {
|
|
|
11
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
12
13
|
protected readonly _computedClass = computed(() =>
|
|
13
14
|
hlm(
|
|
14
|
-
'
|
|
15
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/50',
|
|
15
16
|
this.userClass(),
|
|
16
17
|
),
|
|
17
18
|
);
|
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogTitle } from '@spartan-ng/brain/alert-dialog';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
3
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva(
|
|
7
|
-
'relative w-full rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3
|
|
7
|
+
'relative w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3 [&>[hlmAlertIcon]]:size-4 [&>[hlmAlertIcon]]:translate-y-0.5 [&>[hlmAlertIcon]]:text-current',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: 'bg-card text-card-foreground',
|
|
12
12
|
destructive:
|
|
13
|
-
'text-destructive bg-card [&>[
|
|
13
|
+
'text-destructive bg-card [&>[hlmAlertDescription]]:text-destructive/90 [&>[hlmAlertDesc]]:text-destructive/90 [&>[hlmAlertIcon]]:text-current',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NumberInput, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import { Directive, computed, input } from '@angular/core';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
const parseDividedString = (value: NumberInput): NumberInput => {
|
|
@@ -34,7 +34,7 @@ export class HlmAspectRatio {
|
|
|
34
34
|
|
|
35
35
|
protected readonly _computedClass = computed(() =>
|
|
36
36
|
hlm(
|
|
37
|
-
'relative w-full [&>*:first-child]:absolute [&>*:first-child]:
|
|
37
|
+
'relative w-full [&>*:first-child]:absolute [&>*:first-child]:h-full [&>*:first-child]:w-full [&>*:first-child]:object-cover',
|
|
38
38
|
this.userClass(),
|
|
39
39
|
),
|
|
40
40
|
);
|
package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject } from '@angular/core';
|
|
2
2
|
import { BrnAvatarFallback } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: '[hlmAvatarFallback]',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAvatar } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -22,6 +22,6 @@ export class HlmAvatar extends BrnAvatar {
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
|
|
24
24
|
protected readonly _computedClass = computed(() =>
|
|
25
|
-
hlm('relative flex shrink-0 overflow-hidden rounded-full
|
|
25
|
+
hlm('relative flex size-8 shrink-0 overflow-hidden rounded-full', this.userClass()),
|
|
26
26
|
);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAvatarImage } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
3
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
|
-
'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium
|
|
7
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&_ng-icon]:pointer-events-none [&_ng-icon]:size-3',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: '
|
|
12
|
-
secondary: '
|
|
11
|
+
default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
|
|
12
|
+
secondary: 'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent',
|
|
13
13
|
destructive:
|
|
14
|
-
'
|
|
14
|
+
'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white',
|
|
15
15
|
outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
|
|
16
16
|
},
|
|
17
17
|
},
|
package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-ellipsis.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideEllipsis } from '@ng-icons/lucide';
|
|
4
|
-
import { hlm } from '@spartan-ng/brain/core';
|
|
5
4
|
import { HlmIcon } from '@spartan-ng/helm/icon';
|
|
5
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -12,6 +12,6 @@ export class HlmBreadcrumbList {
|
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
|
|
14
14
|
protected readonly _computedClass = computed(() =>
|
|
15
|
-
hlm('text-muted-foreground flex flex-wrap items-center gap-1.5
|
|
15
|
+
hlm('text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5', this.userClass()),
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -14,5 +14,5 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
export class HlmBreadcrumbPage {
|
|
15
15
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
16
|
|
|
17
|
-
protected readonly _computedClass = computed(() => hlm('font-normal
|
|
17
|
+
protected readonly _computedClass = computed(() => hlm('text-foreground font-normal', this.userClass()));
|
|
18
18
|
}
|
package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
4
|
-
import { hlm } from '@spartan-ng/
|
|
4
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
@Component({
|
|
@@ -24,5 +24,5 @@ import type { ClassValue } from 'clsx';
|
|
|
24
24
|
export class HlmBreadcrumbSeparator {
|
|
25
25
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
26
26
|
|
|
27
|
-
protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:
|
|
27
|
+
protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:block [&_ng-icon]:size-3.5', this.userClass()));
|
|
28
28
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Directive, computed, input, signal } from '@angular/core';
|
|
2
2
|
import { BrnButton } from '@spartan-ng/brain/button';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
import { injectBrnButtonConfig } from './hlm-button.token';
|
|
7
7
|
|
|
8
8
|
export const buttonVariants = cva(
|
|
9
|
-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none
|
|
9
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 cursor-default items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
14
14
|
destructive:
|
|
15
|
-
'bg-destructive
|
|
15
|
+
'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
|
|
16
16
|
outline:
|
|
17
|
-
'
|
|
17
|
+
'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
|
|
18
18
|
secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
19
19
|
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
20
20
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
23
23
|
default: 'h-9 px-4 py-2 has-[>ng-icon]:px-3',
|
|
24
|
-
sm: 'h-8
|
|
24
|
+
sm: 'h-8 gap-1.5 rounded-md px-3 has-[>ng-icon]:px-2.5',
|
|
25
25
|
lg: 'h-10 rounded-md px-6 has-[>ng-icon]:px-4',
|
|
26
26
|
icon: 'size-9',
|
|
27
27
|
},
|