@iress-oss/ids-theme-preset 6.0.0-alpha.1

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.
Files changed (54) hide show
  1. package/README.md +102 -0
  2. package/dist/chunk-6T7NHIQQ.js +2994 -0
  3. package/dist/chunk-OGLE65KO.js +149 -0
  4. package/dist/chunk-V3SF6JCX.js +75 -0
  5. package/dist/config.d.ts +13 -0
  6. package/dist/config.js +25 -0
  7. package/dist/constants.d.ts +150 -0
  8. package/dist/constants.js +22 -0
  9. package/dist/hooks/index.d.ts +23 -0
  10. package/dist/hooks/index.js +10 -0
  11. package/dist/index.d.ts +5 -0
  12. package/dist/index.js +9 -0
  13. package/dist/vite.d.ts +13 -0
  14. package/dist/vite.js +38 -0
  15. package/package.json +74 -0
  16. package/src/config-recipes/button.ts +739 -0
  17. package/src/config-recipes/table.ts +258 -0
  18. package/src/config-recipes/text.ts +237 -0
  19. package/src/constants.ts +193 -0
  20. package/src/createMinimalConfig.ts +29 -0
  21. package/src/globalCss.ts +8 -0
  22. package/src/hooks/codegenPrepareHook.test.ts +55 -0
  23. package/src/hooks/codegenPrepareHook.ts +57 -0
  24. package/src/hooks/cssgenDoneHook.test.ts +57 -0
  25. package/src/hooks/cssgenDoneHook.ts +31 -0
  26. package/src/hooks/index.ts +3 -0
  27. package/src/hooks/spacingAliasMap.test.ts +15 -0
  28. package/src/hooks/spacingAliasMap.ts +13 -0
  29. package/src/index.ts +133 -0
  30. package/src/staticCss.ts +103 -0
  31. package/src/tokens/animationStyles.ts +79 -0
  32. package/src/tokens/borders.ts +54 -0
  33. package/src/tokens/breakpoints.ts +9 -0
  34. package/src/tokens/colors.ts +286 -0
  35. package/src/tokens/keyframes.ts +74 -0
  36. package/src/tokens/layerStyles.ts +99 -0
  37. package/src/tokens/radii.ts +52 -0
  38. package/src/tokens/sizes.ts +184 -0
  39. package/src/tokens/spacing.ts +82 -0
  40. package/src/tokens/textStyles.ts +130 -0
  41. package/src/tokens/zIndex.ts +25 -0
  42. package/src/utilities/chevron.ts +33 -0
  43. package/src/utilities/focusable.ts +202 -0
  44. package/src/utilities/gutter.ts +20 -0
  45. package/src/utilities/horizontalAlign.ts +27 -0
  46. package/src/utilities/materialSymbols.ts +28 -0
  47. package/src/utilities/noGutter.ts +15 -0
  48. package/src/utilities/offset.ts +90 -0
  49. package/src/utilities/scrollable.ts +53 -0
  50. package/src/utilities/sliderThumb.ts +29 -0
  51. package/src/utilities/span.ts +136 -0
  52. package/src/utilities/stretch.ts +15 -0
  53. package/src/utilities/verticalAlign.ts +27 -0
  54. package/src/vite.ts +47 -0
@@ -0,0 +1,149 @@
1
+ // src/constants.ts
2
+ var BREAKPOINT_DETAILS = {
3
+ /**
4
+ * Extra small breakpoint, for mobile devices
5
+ */
6
+ xs: {
7
+ mediaQuery: "(min-width: 0) and (max-width: 575px)",
8
+ screenWidthRange: "0 - 575px",
9
+ margin: "spacing.4",
10
+ maxColumns: 4,
11
+ minScreenWidth: "0px",
12
+ maxScreenWidth: "575px",
13
+ containerMaxWidth: "100%",
14
+ viewportWidth: 360
15
+ },
16
+ /**
17
+ * Small breakpoint, for larger mobile devices and tablets
18
+ */
19
+ sm: {
20
+ mediaQuery: "(min-width: 576px) and (max-width: 767px)",
21
+ screenWidthRange: "576px - 767px",
22
+ margin: "spacing.4",
23
+ minScreenWidth: "576px",
24
+ maxScreenWidth: "767px",
25
+ containerMaxWidth: "100%",
26
+ viewportWidth: 767
27
+ },
28
+ /**
29
+ * Medium breakpoint for tablets and small desktops
30
+ */
31
+ md: {
32
+ mediaQuery: "(min-width: 768px) and (max-width: 1023px)",
33
+ screenWidthRange: "768px - 1023px",
34
+ margin: "spacing.6",
35
+ maxColumns: 4,
36
+ minScreenWidth: "768px",
37
+ maxScreenWidth: "1023px",
38
+ containerMaxWidth: "100%",
39
+ viewportWidth: 1022
40
+ },
41
+ /**
42
+ * Large breakpoint for desktops
43
+ */
44
+ lg: {
45
+ mediaQuery: "(min-width: 1024px) and (max-width: 1279px)",
46
+ screenWidthRange: "1024px - 1279px",
47
+ margin: "spacing.6",
48
+ maxColumns: 6,
49
+ minScreenWidth: "1024px",
50
+ maxScreenWidth: "1279px",
51
+ containerMaxWidth: "100%",
52
+ viewportWidth: 1278
53
+ },
54
+ /**
55
+ * Extra large breakpoint for large desktops
56
+ */
57
+ xl: {
58
+ mediaQuery: "(min-width: 1280px) and (max-width: 1599px)",
59
+ screenWidthRange: "1280px - 1599px",
60
+ margin: "spacing.8",
61
+ minScreenWidth: "1280px",
62
+ maxScreenWidth: "1599px",
63
+ containerMaxWidth: "1440px",
64
+ viewportWidth: 1440 + 64
65
+ },
66
+ /**
67
+ * Extra extra large breakpoint for extra large desktops (32inch)
68
+ */
69
+ xxl: {
70
+ mediaQuery: "(min-width: 1600px)",
71
+ margin: "spacing.8",
72
+ screenWidthRange: "1600px and above",
73
+ minScreenWidth: "1600px",
74
+ containerMaxWidth: "1690px",
75
+ viewportWidth: 1690 + 64
76
+ }
77
+ };
78
+ var BREAKPOINTS = Object.keys(
79
+ BREAKPOINT_DETAILS
80
+ );
81
+ var FORM_ELEMENT_WIDTHS = [
82
+ "2",
83
+ "4",
84
+ "6",
85
+ "8",
86
+ "10",
87
+ "12",
88
+ "16",
89
+ "25%",
90
+ "50%",
91
+ "75%",
92
+ "100%"
93
+ ];
94
+ var GRID_SIZE = 12;
95
+ var Z_INDEX = {
96
+ DEFAULT: 0,
97
+ NAVBAR: 100,
98
+ POPOVER: 200,
99
+ SLIDEOUT: 300,
100
+ MODAL: 400,
101
+ TOAST: 500,
102
+ TOOLTIP: 600
103
+ };
104
+ var MATERIAL_SYMBOLS = {
105
+ family: "Material Symbols Rounded",
106
+ className: "material-symbols-rounded",
107
+ figmaGrade: "Emphasis",
108
+ figmaOpticalSize: "24dp",
109
+ grade: 0,
110
+ opticalSize: 36,
111
+ weight: 300
112
+ };
113
+ var HORIZONTAL_ALIGNS = [
114
+ "around",
115
+ "between",
116
+ "center",
117
+ "evenly",
118
+ "left",
119
+ "right",
120
+ "stretch"
121
+ ];
122
+ var TEXT_ALIGNS = [
123
+ "inherit",
124
+ "left",
125
+ "center",
126
+ "right",
127
+ "justify"
128
+ ];
129
+ var VERTICAL_ALIGNS = [
130
+ "top",
131
+ "middle",
132
+ "bottom",
133
+ "between",
134
+ "around",
135
+ "evenly",
136
+ "stretch"
137
+ ];
138
+
139
+ export {
140
+ BREAKPOINT_DETAILS,
141
+ BREAKPOINTS,
142
+ FORM_ELEMENT_WIDTHS,
143
+ GRID_SIZE,
144
+ Z_INDEX,
145
+ MATERIAL_SYMBOLS,
146
+ HORIZONTAL_ALIGNS,
147
+ TEXT_ALIGNS,
148
+ VERTICAL_ALIGNS
149
+ };
@@ -0,0 +1,75 @@
1
+ // src/hooks/spacingAliasMap.ts
2
+ import { spacing } from "@iress-oss/ids-tokens";
3
+ var SPACING_ALIAS_MAP = Object.fromEntries(
4
+ Object.entries(spacing).flatMap(([key, token]) => {
5
+ const aliases = token.$extensions?.["iress.aliases"];
6
+ return aliases ? aliases.map((alias) => [alias, `spacing.${key}`]) : [];
7
+ })
8
+ );
9
+
10
+ // src/hooks/codegenPrepareHook.ts
11
+ function codegenPrepareHook(artifacts) {
12
+ const cssFnArtifact = artifacts.find((a) => a.id === "css-fn");
13
+ if (!cssFnArtifact?.files) return;
14
+ const cssFile = cssFnArtifact.files.find(
15
+ (f) => f.code?.includes("withoutSpace(value)")
16
+ );
17
+ if (!cssFile) return;
18
+ const negAliases = Object.fromEntries(
19
+ Object.entries(SPACING_ALIAS_MAP).map(([k, v]) => [`-${k}`, `-${v}`])
20
+ );
21
+ const spacingProps = [
22
+ "gap",
23
+ "columnGap",
24
+ "rowGap",
25
+ "gutter",
26
+ "margin",
27
+ "marginTop",
28
+ "marginBottom",
29
+ "marginLeft",
30
+ "marginRight",
31
+ "marginBlock",
32
+ "marginInline",
33
+ "padding",
34
+ "paddingTop",
35
+ "paddingBottom",
36
+ "paddingLeft",
37
+ "paddingRight",
38
+ "paddingBlock",
39
+ "paddingInline"
40
+ ];
41
+ const injection = `const __spacingAliases__ = ${JSON.stringify(SPACING_ALIAS_MAP)};
42
+ const __negSpacingAliases__ = ${JSON.stringify(negAliases)};
43
+ const __spacingProps__ = new Set(${JSON.stringify(spacingProps)});
44
+ const __resolveAlias__ = (prop, v) => __spacingProps__.has(prop) ? (__spacingAliases__[v] || __negSpacingAliases__[v] || v) : v;
45
+ `;
46
+ cssFile.code = injection + cssFile.code.replace(
47
+ /withoutSpace\(value\)/,
48
+ "withoutSpace(__resolveAlias__(key, value))"
49
+ );
50
+ return artifacts;
51
+ }
52
+
53
+ // src/hooks/cssgenDoneHook.ts
54
+ function cssgenDoneHook(artifact, content) {
55
+ if (artifact !== "styles.css") return;
56
+ const aliases = Object.keys(SPACING_ALIAS_MAP);
57
+ let css = content;
58
+ for (const alias of aliases) {
59
+ css = css.replace(
60
+ new RegExp(
61
+ `\\.[^\\s,{}]+_-?${alias}\\{[^}]*var\\(--spacing-${alias}\\)[^}]*\\}`,
62
+ "g"
63
+ ),
64
+ ""
65
+ );
66
+ css = css.replace(new RegExp(`--spacing-${alias}:[^;]+;`, "g"), "");
67
+ }
68
+ return css;
69
+ }
70
+
71
+ export {
72
+ SPACING_ALIAS_MAP,
73
+ codegenPrepareHook,
74
+ cssgenDoneHook
75
+ };
@@ -0,0 +1,13 @@
1
+ import { Config } from '@pandacss/dev';
2
+
3
+ /**
4
+ * Returns Panda CSS config overrides for packages that already include
5
+ * `@iress-oss/ids-components` style.css.
6
+ *
7
+ * Includes the IDS theme preset and disables preflight, globalCss, and
8
+ * staticCss to avoid duplicating CSS already shipped by IDS components.
9
+ * Panda will still generate CSS for utilities your code actually uses.
10
+ */
11
+ declare function createMinimalConfig(): Pick<Config, 'presets' | 'preflight' | 'staticCss' | 'globalCss' | 'hooks'>;
12
+
13
+ export { createMinimalConfig };
package/dist/config.js ADDED
@@ -0,0 +1,25 @@
1
+ import {
2
+ src_default
3
+ } from "./chunk-6T7NHIQQ.js";
4
+ import "./chunk-OGLE65KO.js";
5
+ import {
6
+ codegenPrepareHook,
7
+ cssgenDoneHook
8
+ } from "./chunk-V3SF6JCX.js";
9
+
10
+ // src/createMinimalConfig.ts
11
+ function createMinimalConfig() {
12
+ return {
13
+ presets: [src_default],
14
+ preflight: false,
15
+ staticCss: { css: [] },
16
+ globalCss: {},
17
+ hooks: {
18
+ "codegen:prepare": ({ artifacts }) => codegenPrepareHook(artifacts),
19
+ "cssgen:done": ({ artifact, content }) => cssgenDoneHook(artifact, content)
20
+ }
21
+ };
22
+ }
23
+ export {
24
+ createMinimalConfig
25
+ };
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Details about a specific breakpoint in the design system.
3
+ */
4
+ interface BreakpointDetail {
5
+ /** The maximum width of the container at this breakpoint. */
6
+ containerMaxWidth: string;
7
+ /** The margin on the left and right of the container at this breakpoint. */
8
+ margin?: string;
9
+ /** The maximum number of columns to display in a grid layout at this breakpoint. */
10
+ maxColumns?: number;
11
+ /** The maximum screen width for the breakpoint. */
12
+ maxScreenWidth?: string;
13
+ /** The media query string for the breakpoint. Must be valid CSS media query syntax. */
14
+ mediaQuery: string;
15
+ /** The minimum screen width for the breakpoint. */
16
+ minScreenWidth: string;
17
+ /** The name of the screen width range for the breakpoint. */
18
+ screenWidthRange: string;
19
+ /** The viewport width in pixels for the breakpoint. */
20
+ viewportWidth: number;
21
+ }
22
+ /**
23
+ * Breakpoints are the points at which the layout of a page will change in response to the size of the viewport.
24
+ */
25
+ declare const BREAKPOINT_DETAILS: {
26
+ /**
27
+ * Extra small breakpoint, for mobile devices
28
+ */
29
+ readonly xs: {
30
+ readonly mediaQuery: "(min-width: 0) and (max-width: 575px)";
31
+ readonly screenWidthRange: "0 - 575px";
32
+ readonly margin: "spacing.4";
33
+ readonly maxColumns: 4;
34
+ readonly minScreenWidth: "0px";
35
+ readonly maxScreenWidth: "575px";
36
+ readonly containerMaxWidth: "100%";
37
+ readonly viewportWidth: 360;
38
+ };
39
+ /**
40
+ * Small breakpoint, for larger mobile devices and tablets
41
+ */
42
+ readonly sm: {
43
+ readonly mediaQuery: "(min-width: 576px) and (max-width: 767px)";
44
+ readonly screenWidthRange: "576px - 767px";
45
+ readonly margin: "spacing.4";
46
+ readonly minScreenWidth: "576px";
47
+ readonly maxScreenWidth: "767px";
48
+ readonly containerMaxWidth: "100%";
49
+ readonly viewportWidth: 767;
50
+ };
51
+ /**
52
+ * Medium breakpoint for tablets and small desktops
53
+ */
54
+ readonly md: {
55
+ readonly mediaQuery: "(min-width: 768px) and (max-width: 1023px)";
56
+ readonly screenWidthRange: "768px - 1023px";
57
+ readonly margin: "spacing.6";
58
+ readonly maxColumns: 4;
59
+ readonly minScreenWidth: "768px";
60
+ readonly maxScreenWidth: "1023px";
61
+ readonly containerMaxWidth: "100%";
62
+ readonly viewportWidth: 1022;
63
+ };
64
+ /**
65
+ * Large breakpoint for desktops
66
+ */
67
+ readonly lg: {
68
+ readonly mediaQuery: "(min-width: 1024px) and (max-width: 1279px)";
69
+ readonly screenWidthRange: "1024px - 1279px";
70
+ readonly margin: "spacing.6";
71
+ readonly maxColumns: 6;
72
+ readonly minScreenWidth: "1024px";
73
+ readonly maxScreenWidth: "1279px";
74
+ readonly containerMaxWidth: "100%";
75
+ readonly viewportWidth: 1278;
76
+ };
77
+ /**
78
+ * Extra large breakpoint for large desktops
79
+ */
80
+ readonly xl: {
81
+ readonly mediaQuery: "(min-width: 1280px) and (max-width: 1599px)";
82
+ readonly screenWidthRange: "1280px - 1599px";
83
+ readonly margin: "spacing.8";
84
+ readonly minScreenWidth: "1280px";
85
+ readonly maxScreenWidth: "1599px";
86
+ readonly containerMaxWidth: "1440px";
87
+ readonly viewportWidth: number;
88
+ };
89
+ /**
90
+ * Extra extra large breakpoint for extra large desktops (32inch)
91
+ */
92
+ readonly xxl: {
93
+ readonly mediaQuery: "(min-width: 1600px)";
94
+ readonly margin: "spacing.8";
95
+ readonly screenWidthRange: "1600px and above";
96
+ readonly minScreenWidth: "1600px";
97
+ readonly containerMaxWidth: "1690px";
98
+ readonly viewportWidth: number;
99
+ };
100
+ };
101
+ /**
102
+ * The breakpoints used in the design system.
103
+ */
104
+ declare const BREAKPOINTS: (keyof typeof BREAKPOINT_DETAILS)[];
105
+ /**
106
+ * The widths available for form elements.
107
+ */
108
+ declare const FORM_ELEMENT_WIDTHS: readonly ["2", "4", "6", "8", "10", "12", "16", "25%", "50%", "75%", "100%"];
109
+ /**
110
+ * The grid size is the base unit of the grid system.
111
+ */
112
+ declare const GRID_SIZE = 12;
113
+ /**
114
+ * The z-index determines the stacking order of elements.
115
+ */
116
+ declare const Z_INDEX: {
117
+ DEFAULT: number;
118
+ NAVBAR: number;
119
+ POPOVER: number;
120
+ SLIDEOUT: number;
121
+ MODAL: number;
122
+ TOAST: number;
123
+ TOOLTIP: number;
124
+ };
125
+ /**
126
+ * Material Symbols icon configuration.
127
+ */
128
+ declare const MATERIAL_SYMBOLS: {
129
+ readonly family: "Material Symbols Rounded";
130
+ readonly className: "material-symbols-rounded";
131
+ readonly figmaGrade: "Emphasis";
132
+ readonly figmaOpticalSize: "24dp";
133
+ readonly grade: 0;
134
+ readonly opticalSize: 36;
135
+ readonly weight: 300;
136
+ };
137
+ /**
138
+ * The horizontal alignment options.
139
+ */
140
+ declare const HORIZONTAL_ALIGNS: readonly ["around", "between", "center", "evenly", "left", "right", "stretch"];
141
+ /**
142
+ * The text alignment options.
143
+ */
144
+ declare const TEXT_ALIGNS: readonly ["inherit", "left", "center", "right", "justify"];
145
+ /**
146
+ * The vertical alignment options.
147
+ */
148
+ declare const VERTICAL_ALIGNS: readonly ["top", "middle", "bottom", "between", "around", "evenly", "stretch"];
149
+
150
+ export { BREAKPOINTS, BREAKPOINT_DETAILS, type BreakpointDetail, FORM_ELEMENT_WIDTHS, GRID_SIZE, HORIZONTAL_ALIGNS, MATERIAL_SYMBOLS, TEXT_ALIGNS, VERTICAL_ALIGNS, Z_INDEX };
@@ -0,0 +1,22 @@
1
+ import {
2
+ BREAKPOINTS,
3
+ BREAKPOINT_DETAILS,
4
+ FORM_ELEMENT_WIDTHS,
5
+ GRID_SIZE,
6
+ HORIZONTAL_ALIGNS,
7
+ MATERIAL_SYMBOLS,
8
+ TEXT_ALIGNS,
9
+ VERTICAL_ALIGNS,
10
+ Z_INDEX
11
+ } from "./chunk-OGLE65KO.js";
12
+ export {
13
+ BREAKPOINTS,
14
+ BREAKPOINT_DETAILS,
15
+ FORM_ELEMENT_WIDTHS,
16
+ GRID_SIZE,
17
+ HORIZONTAL_ALIGNS,
18
+ MATERIAL_SYMBOLS,
19
+ TEXT_ALIGNS,
20
+ VERTICAL_ALIGNS,
21
+ Z_INDEX
22
+ };
@@ -0,0 +1,23 @@
1
+ import { Artifact } from '@pandacss/types';
2
+
3
+ /**
4
+ * Injects alias resolution into the generated css runtime so that
5
+ * gap="sm" produces class `gap_spacing.2` (reusing the canonical class)
6
+ * instead of generating a duplicate `gap_sm` class.
7
+ */
8
+ declare function codegenPrepareHook(artifacts: Artifact[]): Artifact[] | void;
9
+
10
+ /**
11
+ * Strips leftover alias utility classes and :root variable definitions
12
+ * from the final CSS. These are extracted from source files by Panda but
13
+ * are unused since the runtime now maps aliases to canonical tokens.
14
+ */
15
+ declare function cssgenDoneHook(artifact: string, content: string): string | void;
16
+
17
+ /**
18
+ * Derives the alias-to-canonical spacing map from the ids-tokens schema.
19
+ * e.g. { none: 'spacing.0', xs: 'spacing.1', sm: 'spacing.2', ... }
20
+ */
21
+ declare const SPACING_ALIAS_MAP: Record<string, string>;
22
+
23
+ export { SPACING_ALIAS_MAP, codegenPrepareHook, cssgenDoneHook };
@@ -0,0 +1,10 @@
1
+ import {
2
+ SPACING_ALIAS_MAP,
3
+ codegenPrepareHook,
4
+ cssgenDoneHook
5
+ } from "../chunk-V3SF6JCX.js";
6
+ export {
7
+ SPACING_ALIAS_MAP,
8
+ codegenPrepareHook,
9
+ cssgenDoneHook
10
+ };
@@ -0,0 +1,5 @@
1
+ import * as _pandacss_types from '@pandacss/types';
2
+
3
+ declare const idsThemePreset: _pandacss_types.Preset;
4
+
5
+ export { idsThemePreset as default, idsThemePreset };
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ idsThemePreset,
3
+ src_default
4
+ } from "./chunk-6T7NHIQQ.js";
5
+ import "./chunk-OGLE65KO.js";
6
+ export {
7
+ src_default as default,
8
+ idsThemePreset
9
+ };
package/dist/vite.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ /**
4
+ * Vite plugin that preserves Panda CSS @layer declarations which get
5
+ * stripped during the build process. Reads the layer declaration from
6
+ * the source styles.css and prepends it to all built CSS files.
7
+ *
8
+ * @param stylesPath - Path to the Panda-generated styles.css
9
+ * (e.g. `'./src/styled-system/styles.css'`). Resolved relative to Vite root.
10
+ */
11
+ declare function preservePandaLayerDeclaration(stylesPath: string): Plugin;
12
+
13
+ export { preservePandaLayerDeclaration };
package/dist/vite.js ADDED
@@ -0,0 +1,38 @@
1
+ // src/vite.ts
2
+ import fs from "fs";
3
+ import path from "path";
4
+ function preservePandaLayerDeclaration(stylesPath) {
5
+ let layerDeclaration = "";
6
+ let root = process.cwd();
7
+ return {
8
+ name: "ids-preserve-panda-layer",
9
+ apply: "build",
10
+ configResolved(config) {
11
+ root = config.root;
12
+ },
13
+ buildStart() {
14
+ const resolved = path.isAbsolute(stylesPath) ? stylesPath : path.resolve(root, stylesPath);
15
+ const content = fs.readFileSync(resolved, "utf-8");
16
+ const match = /^@layer\s{1,10}[^;\n]{1,200};/m.exec(content);
17
+ layerDeclaration = match ? match[0] : "";
18
+ },
19
+ writeBundle({ dir = "./dist" }, bundle) {
20
+ for (const fileName of Object.keys(bundle)) {
21
+ if (fileName.endsWith(".css")) {
22
+ const asset = bundle[fileName];
23
+ if ("source" in asset) {
24
+ asset.source = `${layerDeclaration} ${String(asset.source)}`;
25
+ fs.writeFileSync(
26
+ `${dir}/${fileName}`,
27
+ String(asset.source),
28
+ "utf-8"
29
+ );
30
+ }
31
+ }
32
+ }
33
+ }
34
+ };
35
+ }
36
+ export {
37
+ preservePandaLayerDeclaration
38
+ };
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@iress-oss/ids-theme-preset",
3
+ "version": "6.0.0-alpha.1",
4
+ "description": "Panda CSS preset for the Iress Design System",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./config": {
15
+ "types": "./dist/config.d.ts",
16
+ "import": "./dist/config.js"
17
+ },
18
+ "./constants": {
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.js"
21
+ },
22
+ "./hooks": {
23
+ "types": "./dist/hooks/index.d.ts",
24
+ "import": "./dist/hooks/index.js"
25
+ },
26
+ "./vite": {
27
+ "types": "./dist/vite.d.ts",
28
+ "import": "./dist/vite.js"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "src"
34
+ ],
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "clean": "rimraf dist coverage",
38
+ "lint": "eslint . --ext=.js,.jsx,.ts,.tsx,.mjs,.cjs --max-warnings=0",
39
+ "test": "vitest --config vitest.config.ts --watch",
40
+ "test:coverage": "vitest run --config vitest.config.ts --coverage",
41
+ "typecheck": "tsc --noEmit -p tsconfig.lib.json"
42
+ },
43
+ "dependencies": {
44
+ "@iress-oss/ids-tokens": "^6.0.0-alpha.17"
45
+ },
46
+ "peerDependencies": {
47
+ "@pandacss/dev": ">=1.8.0",
48
+ "vite": ">=5.0.0"
49
+ },
50
+ "peerDependenciesMeta": {
51
+ "@pandacss/dev": {
52
+ "optional": false
53
+ },
54
+ "vite": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "devDependencies": {
59
+ "@pandacss/dev": "1.8.2",
60
+ "@pandacss/types": "1.8.2",
61
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
62
+ "@typescript-eslint/parser": "^8.56.0",
63
+ "eslint": "^10.0.1",
64
+ "eslint-plugin-file-progress": "^3.0.2",
65
+ "rimraf": "^6.1.3",
66
+ "tsup": "^8.4.0",
67
+ "typescript": "5.9.3",
68
+ "vitest": "4.0.18"
69
+ },
70
+ "repository": {
71
+ "type": "git",
72
+ "url": "https://github.com/iress/design-system"
73
+ }
74
+ }