@iress-oss/ids-theme-preset 6.0.0-alpha.2 → 6.0.0-alpha.3

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.
@@ -6,8 +6,9 @@ import {
6
6
  MATERIAL_SYMBOLS,
7
7
  TEXT_ALIGNS,
8
8
  VERTICAL_ALIGNS,
9
- Z_INDEX
10
- } from "./chunk-OGLE65KO.js";
9
+ Z_INDEX,
10
+ Z_INDEX_OFFSET_VAR
11
+ } from "./chunk-NEAYSXME.js";
11
12
 
12
13
  // src/index.ts
13
14
  import { definePreset } from "@pandacss/dev";
@@ -1544,25 +1545,25 @@ var borders = {
1544
1545
  // src/tokens/zIndex.ts
1545
1546
  var zIndex = {
1546
1547
  "000": {
1547
- value: Z_INDEX.DEFAULT
1548
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.DEFAULT})`
1548
1549
  },
1549
1550
  "100": {
1550
- value: Z_INDEX.NAVBAR
1551
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.NAVBAR})`
1551
1552
  },
1552
1553
  "200": {
1553
- value: Z_INDEX.POPOVER
1554
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.POPOVER})`
1554
1555
  },
1555
1556
  "300": {
1556
- value: Z_INDEX.SLIDEOUT
1557
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.SLIDEOUT})`
1557
1558
  },
1558
1559
  "400": {
1559
- value: Z_INDEX.MODAL
1560
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.MODAL})`
1560
1561
  },
1561
1562
  "500": {
1562
- value: Z_INDEX.TOAST
1563
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.TOAST})`
1563
1564
  },
1564
1565
  "600": {
1565
- value: Z_INDEX.TOOLTIP
1566
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.TOOLTIP})`
1566
1567
  }
1567
1568
  };
1568
1569
 
@@ -101,6 +101,7 @@ var Z_INDEX = {
101
101
  TOAST: 500,
102
102
  TOOLTIP: 600
103
103
  };
104
+ var Z_INDEX_OFFSET_VAR = "--iress-zindex-offset";
104
105
  var MATERIAL_SYMBOLS = {
105
106
  family: "Material Symbols Rounded",
106
107
  className: "material-symbols-rounded",
@@ -142,6 +143,7 @@ export {
142
143
  FORM_ELEMENT_WIDTHS,
143
144
  GRID_SIZE,
144
145
  Z_INDEX,
146
+ Z_INDEX_OFFSET_VAR,
145
147
  MATERIAL_SYMBOLS,
146
148
  HORIZONTAL_ALIGNS,
147
149
  TEXT_ALIGNS,
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  src_default
3
- } from "./chunk-VMF4RPCS.js";
4
- import "./chunk-OGLE65KO.js";
3
+ } from "./chunk-IVI5DGPP.js";
4
+ import "./chunk-NEAYSXME.js";
5
5
  import {
6
6
  codegenPrepareHook,
7
7
  cssgenDoneHook,
@@ -122,6 +122,18 @@ declare const Z_INDEX: {
122
122
  TOAST: number;
123
123
  TOOLTIP: number;
124
124
  };
125
+ /**
126
+ * The CSS custom property name for the z-index offset.
127
+ * Set this in your application CSS to shift all IDS z-index values:
128
+ *
129
+ * @example
130
+ * ```css
131
+ * :root {
132
+ * --iress-zindex-offset: 1000;
133
+ * }
134
+ * ```
135
+ */
136
+ declare const Z_INDEX_OFFSET_VAR = "--iress-zindex-offset";
125
137
  /**
126
138
  * Material Symbols icon configuration.
127
139
  */
@@ -147,4 +159,4 @@ declare const TEXT_ALIGNS: readonly ["inherit", "left", "center", "right", "just
147
159
  */
148
160
  declare const VERTICAL_ALIGNS: readonly ["top", "middle", "bottom", "between", "around", "evenly", "stretch"];
149
161
 
150
- export { BREAKPOINTS, BREAKPOINT_DETAILS, type BreakpointDetail, FORM_ELEMENT_WIDTHS, GRID_SIZE, HORIZONTAL_ALIGNS, MATERIAL_SYMBOLS, TEXT_ALIGNS, VERTICAL_ALIGNS, Z_INDEX };
162
+ export { BREAKPOINTS, BREAKPOINT_DETAILS, type BreakpointDetail, FORM_ELEMENT_WIDTHS, GRID_SIZE, HORIZONTAL_ALIGNS, MATERIAL_SYMBOLS, TEXT_ALIGNS, VERTICAL_ALIGNS, Z_INDEX, Z_INDEX_OFFSET_VAR };
package/dist/constants.js CHANGED
@@ -7,8 +7,9 @@ import {
7
7
  MATERIAL_SYMBOLS,
8
8
  TEXT_ALIGNS,
9
9
  VERTICAL_ALIGNS,
10
- Z_INDEX
11
- } from "./chunk-OGLE65KO.js";
10
+ Z_INDEX,
11
+ Z_INDEX_OFFSET_VAR
12
+ } from "./chunk-NEAYSXME.js";
12
13
  export {
13
14
  BREAKPOINTS,
14
15
  BREAKPOINT_DETAILS,
@@ -18,5 +19,6 @@ export {
18
19
  MATERIAL_SYMBOLS,
19
20
  TEXT_ALIGNS,
20
21
  VERTICAL_ALIGNS,
21
- Z_INDEX
22
+ Z_INDEX,
23
+ Z_INDEX_OFFSET_VAR
22
24
  };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  idsThemePreset,
3
3
  src_default
4
- } from "./chunk-VMF4RPCS.js";
5
- import "./chunk-OGLE65KO.js";
4
+ } from "./chunk-IVI5DGPP.js";
5
+ import "./chunk-NEAYSXME.js";
6
6
  export {
7
7
  src_default as default,
8
8
  idsThemePreset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iress-oss/ids-theme-preset",
3
- "version": "6.0.0-alpha.2",
3
+ "version": "6.0.0-alpha.3",
4
4
  "description": "Panda CSS preset for the Iress Design System",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -57,16 +57,16 @@
57
57
  }
58
58
  },
59
59
  "devDependencies": {
60
- "@pandacss/dev": "1.8.2",
61
- "@pandacss/types": "1.8.2",
62
- "@typescript-eslint/eslint-plugin": "^8.56.1",
63
- "@typescript-eslint/parser": "^8.56.1",
64
- "eslint": "^10.0.2",
60
+ "@pandacss/dev": "1.9.0",
61
+ "@pandacss/types": "1.9.0",
62
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
63
+ "@typescript-eslint/parser": "^8.57.0",
64
+ "eslint": "^10.0.3",
65
65
  "eslint-plugin-file-progress": "^3.0.2",
66
66
  "rimraf": "^6.1.3",
67
67
  "tsup": "^8.4.0",
68
68
  "typescript": "5.9.3",
69
- "vitest": "4.0.18"
69
+ "vitest": "4.1.0"
70
70
  },
71
71
  "repository": {
72
72
  "type": "git",
package/src/constants.ts CHANGED
@@ -142,6 +142,19 @@ export const Z_INDEX = {
142
142
  TOOLTIP: 600,
143
143
  };
144
144
 
145
+ /**
146
+ * The CSS custom property name for the z-index offset.
147
+ * Set this in your application CSS to shift all IDS z-index values:
148
+ *
149
+ * @example
150
+ * ```css
151
+ * :root {
152
+ * --iress-zindex-offset: 1000;
153
+ * }
154
+ * ```
155
+ */
156
+ export const Z_INDEX_OFFSET_VAR = '--iress-zindex-offset';
157
+
145
158
  /**
146
159
  * Material Symbols icon configuration.
147
160
  */
@@ -3,77 +3,78 @@ import { type keyframes } from './keyframes';
3
3
 
4
4
  type AnimationName = keyof typeof keyframes;
5
5
 
6
- export const animationStyles = defineAnimationStyles({
7
- 'field-footer': {
8
- value: {
9
- animationName: 'fieldFooter' as AnimationName,
10
- animationDuration: '0.5s',
11
- animationTimingFunction: 'ease-in-out',
12
- animationFillMode: 'forwards',
6
+ export const animationStyles: ReturnType<typeof defineAnimationStyles> =
7
+ defineAnimationStyles({
8
+ 'field-footer': {
9
+ value: {
10
+ animationName: 'fieldFooter' as AnimationName,
11
+ animationDuration: '0.5s',
12
+ animationTimingFunction: 'ease-in-out',
13
+ animationFillMode: 'forwards',
14
+ },
13
15
  },
14
- },
15
- 'icon-spin-half': {
16
- value: {
17
- animationName: 'iconRotation' as AnimationName,
18
- animationDuration: '0.5s',
19
- animationTimingFunction: 'linear',
20
- animationIterationCount: 'infinite',
16
+ 'icon-spin-half': {
17
+ value: {
18
+ animationName: 'iconRotation' as AnimationName,
19
+ animationDuration: '0.5s',
20
+ animationTimingFunction: 'linear',
21
+ animationIterationCount: 'infinite',
22
+ },
21
23
  },
22
- },
23
- 'icon-spin-1': {
24
- value: {
25
- animationName: 'iconRotation' as AnimationName,
26
- animationDuration: '1s',
27
- animationTimingFunction: 'linear',
28
- animationIterationCount: 'infinite',
24
+ 'icon-spin-1': {
25
+ value: {
26
+ animationName: 'iconRotation' as AnimationName,
27
+ animationDuration: '1s',
28
+ animationTimingFunction: 'linear',
29
+ animationIterationCount: 'infinite',
30
+ },
29
31
  },
30
- },
31
- 'icon-spin-2': {
32
- value: {
33
- animationName: 'iconRotation' as AnimationName,
34
- animationDuration: '2s',
35
- animationTimingFunction: 'linear',
36
- animationIterationCount: 'infinite',
32
+ 'icon-spin-2': {
33
+ value: {
34
+ animationName: 'iconRotation' as AnimationName,
35
+ animationDuration: '2s',
36
+ animationTimingFunction: 'linear',
37
+ animationIterationCount: 'infinite',
38
+ },
37
39
  },
38
- },
39
- 'icon-spin-3': {
40
- value: {
41
- animationName: 'iconRotation' as AnimationName,
42
- animationDuration: '3s',
43
- animationTimingFunction: 'linear',
44
- animationIterationCount: 'infinite',
40
+ 'icon-spin-3': {
41
+ value: {
42
+ animationName: 'iconRotation' as AnimationName,
43
+ animationDuration: '3s',
44
+ animationTimingFunction: 'linear',
45
+ animationIterationCount: 'infinite',
46
+ },
45
47
  },
46
- },
47
- 'loading-fade-next': {
48
- value: {
49
- animationName: 'loadingFadeNext' as AnimationName,
50
- animationDuration: '0.6s',
51
- animationTimingFunction: 'linear',
52
- animationFillMode: 'forwards',
48
+ 'loading-fade-next': {
49
+ value: {
50
+ animationName: 'loadingFadeNext' as AnimationName,
51
+ animationDuration: '0.6s',
52
+ animationTimingFunction: 'linear',
53
+ animationFillMode: 'forwards',
54
+ },
53
55
  },
54
- },
55
- 'loading-slide-next': {
56
- value: {
57
- animationName: 'loadingSlideNext' as AnimationName,
58
- animationDuration: '0.5s',
59
- animationTimingFunction: 'ease-in-out',
60
- animationFillMode: 'forwards',
56
+ 'loading-slide-next': {
57
+ value: {
58
+ animationName: 'loadingSlideNext' as AnimationName,
59
+ animationDuration: '0.5s',
60
+ animationTimingFunction: 'ease-in-out',
61
+ animationFillMode: 'forwards',
62
+ },
61
63
  },
62
- },
63
- 'skeleton-loading': {
64
- value: {
65
- animationName: 'skeletonLoading' as AnimationName,
66
- animationDuration: '2s',
67
- animationTimingFunction: 'ease-in-out',
68
- animationIterationCount: 'infinite',
64
+ 'skeleton-loading': {
65
+ value: {
66
+ animationName: 'skeletonLoading' as AnimationName,
67
+ animationDuration: '2s',
68
+ animationTimingFunction: 'ease-in-out',
69
+ animationIterationCount: 'infinite',
70
+ },
69
71
  },
70
- },
71
- 'toggle-active': {
72
- value: {
73
- animationName: 'toggleActive' as AnimationName,
74
- animationDuration: '0.3s',
75
- animationTimingFunction: 'ease-in-out',
76
- animationFillMode: 'forwards',
72
+ 'toggle-active': {
73
+ value: {
74
+ animationName: 'toggleActive' as AnimationName,
75
+ animationDuration: '0.3s',
76
+ animationTimingFunction: 'ease-in-out',
77
+ animationFillMode: 'forwards',
78
+ },
77
79
  },
78
- },
79
- });
80
+ });
@@ -1,25 +1,25 @@
1
- import { Z_INDEX } from '../constants';
1
+ import { Z_INDEX, Z_INDEX_OFFSET_VAR } from '../constants';
2
2
 
3
3
  export const zIndex = {
4
4
  '000': {
5
- value: Z_INDEX.DEFAULT,
5
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.DEFAULT})`,
6
6
  },
7
7
  '100': {
8
- value: Z_INDEX.NAVBAR,
8
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.NAVBAR})`,
9
9
  },
10
10
  '200': {
11
- value: Z_INDEX.POPOVER,
11
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.POPOVER})`,
12
12
  },
13
13
  '300': {
14
- value: Z_INDEX.SLIDEOUT,
14
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.SLIDEOUT})`,
15
15
  },
16
16
  '400': {
17
- value: Z_INDEX.MODAL,
17
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.MODAL})`,
18
18
  },
19
19
  '500': {
20
- value: Z_INDEX.TOAST,
20
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.TOAST})`,
21
21
  },
22
22
  '600': {
23
- value: Z_INDEX.TOOLTIP,
23
+ value: `calc(var(${Z_INDEX_OFFSET_VAR}, 0) + ${Z_INDEX.TOOLTIP})`,
24
24
  },
25
25
  };