@akcelik/strct 1.22.0 → 2.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/fesm2022/akcelik-strct.mjs +5214 -1243
- package/fesm2022/akcelik-strct.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_tokens.scss +18 -0
- package/types/akcelik-strct.d.ts +1295 -124
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akcelik/strct",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
|
|
5
5
|
"author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
package/styles/_tokens.scss
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
// --acc + acc-* accent and its translucent tints
|
|
12
12
|
// --success/--warning/--critical semantic (success / warning / critical) + *-bg fills
|
|
13
13
|
// --sh/--shh resting / raised shadows --sb scrollbar thumb
|
|
14
|
+
// --z-* stacking ladder (base -> toast) --backdrop overlay dim
|
|
14
15
|
|
|
15
16
|
// Default scheme (arctic / dark) so the library renders before any attribute is set.
|
|
16
17
|
:root,
|
|
@@ -26,6 +27,23 @@
|
|
|
26
27
|
color-scheme: light;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
// Stacking ladder + overlay backdrop: scheme-independent, so they live on
|
|
31
|
+
// :root instead of the per-scheme blocks. Values preserve the historical
|
|
32
|
+
// hard-coded stacking order; components derive sub-layers with calc() offsets.
|
|
33
|
+
:root {
|
|
34
|
+
--backdrop: rgba(0, 0, 0, 0.5);
|
|
35
|
+
--z-base: 1;
|
|
36
|
+
--z-raised: 5;
|
|
37
|
+
--z-sticky: 10;
|
|
38
|
+
--z-dropdown: 200;
|
|
39
|
+
--z-popover: 250;
|
|
40
|
+
--z-nav: 300;
|
|
41
|
+
--z-tour: 400;
|
|
42
|
+
--z-modal: 1000;
|
|
43
|
+
--z-overlay: 1100;
|
|
44
|
+
--z-toast: 1200;
|
|
45
|
+
}
|
|
46
|
+
|
|
29
47
|
[data-palette='arctic'][data-theme='dark'] {
|
|
30
48
|
--font: 'DM Sans', -apple-system, system-ui, sans-serif;
|
|
31
49
|
--mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|