@aziontech/theme 4.1.0 → 4.2.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/dist/v4/globals.css +3 -0
- package/dist/v4/globals.scss +3 -0
- package/package.json +1 -1
- package/src/scripts/build-tokens.mjs +4 -0
- package/src/tokens/semantic/z-indices.data.d.ts +38 -0
- package/src/tokens/semantic/z-indices.data.d.ts.map +1 -0
- package/src/tokens/semantic/z-indices.data.js +30 -0
package/dist/v4/globals.css
CHANGED
|
@@ -669,6 +669,9 @@
|
|
|
669
669
|
--spacing-sm: 0.75rem;
|
|
670
670
|
--spacing-xs: 0.5rem;
|
|
671
671
|
--spacing-xxs: 0.25rem;
|
|
672
|
+
--z-input-field: 1;
|
|
673
|
+
--z-input-popup: 10;
|
|
674
|
+
--z-input-overlay: 1100;
|
|
672
675
|
--text-big-number-md-font-size: 1.25rem;
|
|
673
676
|
--text-big-number-md-line-height: 1.25;
|
|
674
677
|
--text-big-number-md-font-weight: 400;
|
package/dist/v4/globals.scss
CHANGED
|
@@ -669,6 +669,9 @@
|
|
|
669
669
|
--spacing-sm: 0.75rem;
|
|
670
670
|
--spacing-xs: 0.5rem;
|
|
671
671
|
--spacing-xxs: 0.25rem;
|
|
672
|
+
--z-input-field: 1;
|
|
673
|
+
--z-input-popup: 10;
|
|
674
|
+
--z-input-overlay: 1100;
|
|
672
675
|
--text-big-number-md-font-size: 1.25rem;
|
|
673
676
|
--text-big-number-md-line-height: 1.25;
|
|
674
677
|
--text-big-number-md-font-weight: 400;
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@ import { compileThemeCss, compileThemeVars } from './compile-theme.js';
|
|
|
34
34
|
import { containersData } from '../tokens/semantic/containers.data.js';
|
|
35
35
|
import { spacingsData } from '../tokens/semantic/spacings.data.js';
|
|
36
36
|
import { textsData } from '../tokens/semantic/texts.data.js';
|
|
37
|
+
import { zIndicesData } from '../tokens/semantic/z-indices.data.js';
|
|
37
38
|
|
|
38
39
|
const BREAKPOINT_ORDER = ['sm', 'md', 'lg', 'xl', '2xl'];
|
|
39
40
|
|
|
@@ -91,6 +92,7 @@ const buildFlatModel = () => ({
|
|
|
91
92
|
primitives: flattenPrimitives(),
|
|
92
93
|
containers: flattenSingleValue(containersData, (k) => `--container-${k}`),
|
|
93
94
|
spacings: flattenSingleValue(spacingsData, (k) => `--${k}`),
|
|
95
|
+
zIndices: flattenSingleValue(zIndicesData, (k) => `--${k}`),
|
|
94
96
|
texts: flattenBundle(textsData),
|
|
95
97
|
});
|
|
96
98
|
|
|
@@ -295,6 +297,7 @@ const emitCssV4 = () => {
|
|
|
295
297
|
...rootPrimitiveVars,
|
|
296
298
|
...(m.containers._ || {}),
|
|
297
299
|
...(m.spacings._ || {}),
|
|
300
|
+
...(m.zIndices._ || {}),
|
|
298
301
|
...(m.texts._ || {}),
|
|
299
302
|
};
|
|
300
303
|
|
|
@@ -303,6 +306,7 @@ const emitCssV4 = () => {
|
|
|
303
306
|
const merged = {
|
|
304
307
|
...(m.containers[bp] || {}),
|
|
305
308
|
...(m.spacings[bp] || {}),
|
|
309
|
+
...(m.zIndices[bp] || {}),
|
|
306
310
|
...(m.texts[bp] || {}),
|
|
307
311
|
};
|
|
308
312
|
if (Object.keys(merged).length === 0) continue;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declarative z-index tokens.
|
|
3
|
+
*
|
|
4
|
+
* Intra-input stacking:
|
|
5
|
+
*
|
|
6
|
+
* - `z-input-field` → native field / interactive foreground (e.g. an
|
|
7
|
+
* `<input>` or trigger button) sitting above the
|
|
8
|
+
* input's own background surface, icons, and
|
|
9
|
+
* adornments so keyboard/mouse focus is never
|
|
10
|
+
* hijacked by a decorative sibling.
|
|
11
|
+
* - `z-input-popup` → inline (non-teleported) overlays anchored to the
|
|
12
|
+
* input — dropdown menus, option lists, popovers —
|
|
13
|
+
* that must sit above surrounding form content but
|
|
14
|
+
* within the current stacking context.
|
|
15
|
+
* - `z-input-overlay` → teleported overlays (rendered under `<body>` via
|
|
16
|
+
* `<Teleport>`) that must clear application chrome
|
|
17
|
+
* such as drawers, modals, and fixed headers.
|
|
18
|
+
*
|
|
19
|
+
* Values are intentionally small and well-spaced to make future additions
|
|
20
|
+
* obvious. Consume as `z-[var(--z-input-*)]` in components — do not
|
|
21
|
+
* introduce ad-hoc numeric z-index in input `.vue` files.
|
|
22
|
+
*/
|
|
23
|
+
export const zIndicesData: {
|
|
24
|
+
'z-input-field': {
|
|
25
|
+
_: string;
|
|
26
|
+
};
|
|
27
|
+
'z-input-popup': {
|
|
28
|
+
_: string;
|
|
29
|
+
};
|
|
30
|
+
'z-input-overlay': {
|
|
31
|
+
_: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare namespace _default {
|
|
35
|
+
export { zIndicesData };
|
|
36
|
+
}
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=z-indices.data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z-indices.data.d.ts","sourceRoot":"","sources":["z-indices.data.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;EAIE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declarative z-index tokens.
|
|
3
|
+
*
|
|
4
|
+
* Intra-input stacking:
|
|
5
|
+
*
|
|
6
|
+
* - `z-input-field` → native field / interactive foreground (e.g. an
|
|
7
|
+
* `<input>` or trigger button) sitting above the
|
|
8
|
+
* input's own background surface, icons, and
|
|
9
|
+
* adornments so keyboard/mouse focus is never
|
|
10
|
+
* hijacked by a decorative sibling.
|
|
11
|
+
* - `z-input-popup` → inline (non-teleported) overlays anchored to the
|
|
12
|
+
* input — dropdown menus, option lists, popovers —
|
|
13
|
+
* that must sit above surrounding form content but
|
|
14
|
+
* within the current stacking context.
|
|
15
|
+
* - `z-input-overlay` → teleported overlays (rendered under `<body>` via
|
|
16
|
+
* `<Teleport>`) that must clear application chrome
|
|
17
|
+
* such as drawers, modals, and fixed headers.
|
|
18
|
+
*
|
|
19
|
+
* Values are intentionally small and well-spaced to make future additions
|
|
20
|
+
* obvious. Consume as `z-[var(--z-input-*)]` in components — do not
|
|
21
|
+
* introduce ad-hoc numeric z-index in input `.vue` files.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
export const zIndicesData = {
|
|
25
|
+
'z-input-field': { _: '1' },
|
|
26
|
+
'z-input-popup': { _: '10' },
|
|
27
|
+
'z-input-overlay': { _: '1100' },
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default { zIndicesData };
|