@spartan-ng/cli 0.0.1-alpha.720 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -2
- package/src/generators/base/generator.js +1 -2
- package/src/generators/base/generator.js.map +1 -1
- package/src/generators/base/lib/initialize-angular-library.d.ts +1 -1
- package/src/generators/base/lib/initialize-angular-library.js.map +1 -1
- package/src/generators/base/lib/styles/transform-style-map.d.ts +2 -0
- package/src/generators/base/lib/styles/transform-style-map.js +5 -4
- package/src/generators/base/lib/styles/transform-style-map.js.map +1 -1
- package/src/generators/base/schema.d.ts +2 -0
- package/src/generators/migrate-helm-libraries/generator.js +2 -2
- package/src/generators/migrate-helm-libraries/generator.js.map +1 -1
- package/src/generators/migrate-helm-libraries/schema.d.ts +2 -0
- package/src/generators/migrate-hlm/generator.js +1 -1
- package/src/generators/migrate-hlm/generator.js.map +1 -1
- package/src/generators/ui/generator.d.ts +2 -0
- package/src/generators/ui/generator.js +7 -4
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete-input.ts.template +37 -33
- package/src/generators/ui/libs/breadcrumb/files/lib/hlm-breadcrumb-ellipsis.ts.template +11 -17
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-multi.ts.template +1 -1
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-range.ts.template +1 -1
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar.ts.template +1 -1
- package/src/generators/ui/libs/combobox/files/lib/hlm-combobox-input.ts.template +47 -42
- package/src/generators/ui/libs/context-menu/files/lib/hlm-context-menu-trigger.ts.template +8 -14
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-anchor.ts.template +4 -2
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-input.ts.template +49 -37
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-multi.ts.template +6 -6
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-trigger.ts.template +1 -1
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker.ts.template +6 -6
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-range-picker.ts.template +9 -6
- package/src/generators/ui/libs/dropdown-menu/files/index.ts.template +1 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-checkbox.ts.template +2 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-focus-on-hover.ts.template +35 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-item.ts.template +2 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-radio.ts.template +2 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-sub-trigger.ts.template +8 -11
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-sub.ts.template +11 -25
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-trigger.ts.template +7 -14
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu.ts.template +11 -25
- package/src/generators/ui/libs/input-otp/files/lib/hlm-input-otp-fake-caret.ts.template +7 -4
- package/src/generators/ui/libs/menubar/files/lib/hlm-menubar-trigger.ts.template +8 -14
- package/src/generators/ui/libs/pagination/files/lib/hlm-numbered-pagination-query-params.ts.template +65 -62
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-content.ts.template +1 -4
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-overlay.ts.template +1 -6
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar.service.ts.template +1 -1
- package/src/generators/ui/libs/tooltip/files/lib/hlm-tooltip.ts.template +1 -1
- package/src/generators/ui/style-luma.css +9 -9
- package/src/generators/ui/style-lyra.css +7 -7
- package/src/generators/ui/style-maia.css +9 -9
- package/src/generators/ui/style-mira.css +9 -9
- package/src/generators/ui/style-nova.css +40 -10
- package/src/generators/ui/style-vega.css +457 -311
- package/src/generators/ui/supported-ui-libraries.json +44 -46
- package/src/index.d.ts +2 -2
- package/src/index.js +4 -3
- package/src/index.js.map +1 -1
- package/src/utils/config.d.ts +9 -2
- package/src/utils/config.js +28 -4
- package/src/utils/config.js.map +1 -1
- package/src/utils/supported-styles.d.ts +2 -0
- package/src/utils/supported-styles.js +7 -0
- package/src/utils/supported-styles.js.map +1 -0
- package/src/registry/index.d.ts +0 -1
- package/src/registry/index.js +0 -5
- package/src/registry/index.js.map +0 -1
- package/src/registry/schema.d.ts +0 -2180
- package/src/registry/schema.js +0 -175
- package/src/registry/schema.js.map +0 -1
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
/* =============================================================================================
|
|
2
|
+
* DONUT @scope - DOCS-ONLY CONTAINMENT. READ BEFORE EDITING.
|
|
3
|
+
* =============================================================================================
|
|
4
|
+
* Why this looks weird: nova (the default style) is the page-wide baseline in the docs app - its
|
|
5
|
+
* <body> permanently carries `.style-nova`. The docs render every OTHER style as a nested preview
|
|
6
|
+
* "island" (`<div class="style-vega">`, etc.) inside that body. Plain `.style-nova .spartan-*`
|
|
7
|
+
* rules cascade THROUGH those islands, so for any property nova sets but the island's style does
|
|
8
|
+
* not, nova "leaks" into the island and the preview no longer matches a real single-style project.
|
|
9
|
+
*
|
|
10
|
+
* The donut fixes that structurally instead of per-property: `@scope (.style-nova) to (<every other
|
|
11
|
+
* style>)` applies nova within `.style-nova` but STOPS at any other style's island - nova reaches
|
|
12
|
+
* the docs chrome but never another style's island. Each island is fully self-contained, with zero
|
|
13
|
+
* per-property "reset" patches.
|
|
14
|
+
*
|
|
15
|
+
* Only nova carries this: nova is the ONLY style ever used as the page-wide baseline. The other five
|
|
16
|
+
* are only ever islands, already contained by their own `.style-X` selector, so they stay plain.
|
|
17
|
+
*
|
|
18
|
+
* It does NOT reach consumer projects. The CLI does not copy this file; `createStyleMap`
|
|
19
|
+
* (libs/cli/.../create-style-map.ts) harvests each `.spartan-* { @apply ... }` rule and inlines the
|
|
20
|
+
* utilities directly into the generated components - it ignores the wrapper entirely, whether it is
|
|
21
|
+
* `.style-nova {` or this `@scope`. So no `@scope`, and no extra browser-support requirement, ever
|
|
22
|
+
* ships to a single-style consumer.
|
|
23
|
+
*
|
|
24
|
+
* Authored here (not in the docs app) ON PURPOSE: feeding nova into a `@scope` from the docs via
|
|
25
|
+
* `@import` does not survive the dev build (the whole baseline silently drops and the docs render
|
|
26
|
+
* unstyled). Wrapping nova's own rules directly avoids any `@import`, so it works in dev and prod.
|
|
27
|
+
*
|
|
28
|
+
* MAINTENANCE: keep the `to (...)` list in sync with `STYLES` in ./style.ts - it must name every
|
|
29
|
+
* style EXCEPT nova. The closing `}` for this block is at the very end of the file.
|
|
30
|
+
* ============================================================================================= */
|
|
31
|
+
@scope (.style-nova) to (.style-vega, .style-lyra, .style-maia, .style-mira, .style-luma) {
|
|
2
32
|
.spartan-rtl-flip {
|
|
3
33
|
@apply rtl:rotate-180;
|
|
4
34
|
}
|
|
@@ -47,7 +77,7 @@
|
|
|
47
77
|
|
|
48
78
|
/* MARK: Alert Dialog */
|
|
49
79
|
.spartan-alert-dialog-overlay {
|
|
50
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
80
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
51
81
|
}
|
|
52
82
|
|
|
53
83
|
.spartan-alert-dialog-content {
|
|
@@ -104,7 +134,7 @@
|
|
|
104
134
|
}
|
|
105
135
|
|
|
106
136
|
.spartan-autocomplete-status {
|
|
107
|
-
@apply text-muted-foreground gap-2 py-2 text-sm;
|
|
137
|
+
@apply text-muted-foreground gap-2 px-2.5 py-2 text-sm;
|
|
108
138
|
}
|
|
109
139
|
|
|
110
140
|
/* MARK: Avatar */
|
|
@@ -249,11 +279,11 @@
|
|
|
249
279
|
}
|
|
250
280
|
|
|
251
281
|
.spartan-button-group-orientation-horizontal {
|
|
252
|
-
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg
|
|
282
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-e-lg;
|
|
253
283
|
}
|
|
254
284
|
|
|
255
285
|
.spartan-button-group-orientation-vertical {
|
|
256
|
-
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg
|
|
286
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg;
|
|
257
287
|
}
|
|
258
288
|
|
|
259
289
|
.spartan-button-group-text {
|
|
@@ -379,7 +409,7 @@
|
|
|
379
409
|
}
|
|
380
410
|
|
|
381
411
|
.spartan-combobox-status {
|
|
382
|
-
@apply text-muted-foreground gap-2 py-2 text-sm;
|
|
412
|
+
@apply text-muted-foreground gap-2 px-2.5 py-2 text-sm;
|
|
383
413
|
}
|
|
384
414
|
|
|
385
415
|
/* MARK: Command */
|
|
@@ -437,7 +467,7 @@
|
|
|
437
467
|
|
|
438
468
|
/* MARK: Dialog */
|
|
439
469
|
.spartan-dialog-overlay {
|
|
440
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
470
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
441
471
|
}
|
|
442
472
|
|
|
443
473
|
.spartan-dialog-content {
|
|
@@ -496,7 +526,7 @@
|
|
|
496
526
|
|
|
497
527
|
/* MARK: Dropdown Menu */
|
|
498
528
|
.spartan-dropdown-menu-content {
|
|
499
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
529
|
+
@apply motion-safe:data-open:animate-in motion-safe:data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-lg p-1 shadow-md ring-1 duration-100;
|
|
500
530
|
}
|
|
501
531
|
|
|
502
532
|
.spartan-dropdown-menu-item {
|
|
@@ -528,7 +558,7 @@
|
|
|
528
558
|
}
|
|
529
559
|
|
|
530
560
|
.spartan-dropdown-menu-sub-content {
|
|
531
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-24 rounded-lg p-1 shadow-lg ring-1 duration-100;
|
|
561
|
+
@apply motion-safe:data-open:animate-in motion-safe:data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-24 rounded-lg p-1 shadow-lg ring-1 duration-100;
|
|
532
562
|
}
|
|
533
563
|
|
|
534
564
|
/* MARK: Empty */
|
|
@@ -920,7 +950,7 @@
|
|
|
920
950
|
|
|
921
951
|
/* MARK: Sheet */
|
|
922
952
|
.spartan-sheet-overlay {
|
|
923
|
-
@apply bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
953
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
924
954
|
}
|
|
925
955
|
|
|
926
956
|
.spartan-sheet-content {
|