@gtcx/design-system 0.1.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.
@@ -0,0 +1,2 @@
1
+ export { borderRadiusPrimitives, breakpointPrimitives, colorPrimitives, darkSemanticColors, focusPrimitives, fontFamilyPrimitives, fontSizePrimitives, fontWeightPrimitives, letterSpacingPrimitives, lineHeightPrimitives, motionPrimitives, opacityPrimitives, semanticColors, semanticLayout, semanticRadii, semanticShadows, semanticSpacing, semanticTokens, semanticTypography, shadowPrimitives, spacingPrimitives, transitionPrimitives, zIndexPrimitives } from '@gtcx/tokens';
2
+ export { GtcxConfigProvider, createAntdTheme, useGtcxTheme } from '@gtcx/theme';
@@ -0,0 +1,2 @@
1
+ export { borderRadiusPrimitives, breakpointPrimitives, colorPrimitives, darkSemanticColors, focusPrimitives, fontFamilyPrimitives, fontSizePrimitives, fontWeightPrimitives, letterSpacingPrimitives, lineHeightPrimitives, motionPrimitives, opacityPrimitives, semanticColors, semanticLayout, semanticRadii, semanticShadows, semanticSpacing, semanticTokens, semanticTypography, shadowPrimitives, spacingPrimitives, transitionPrimitives, zIndexPrimitives } from '@gtcx/tokens';
2
+ export { GtcxConfigProvider, createAntdTheme, useGtcxTheme } from '@gtcx/theme';
package/dist/index.js ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ GtcxConfigProvider: () => import_theme.GtcxConfigProvider,
24
+ borderRadiusPrimitives: () => import_tokens.borderRadiusPrimitives,
25
+ breakpointPrimitives: () => import_tokens.breakpointPrimitives,
26
+ colorPrimitives: () => import_tokens.colorPrimitives,
27
+ createAntdTheme: () => import_theme.createAntdTheme,
28
+ darkSemanticColors: () => import_tokens.darkSemanticColors,
29
+ focusPrimitives: () => import_tokens.focusPrimitives,
30
+ fontFamilyPrimitives: () => import_tokens.fontFamilyPrimitives,
31
+ fontSizePrimitives: () => import_tokens.fontSizePrimitives,
32
+ fontWeightPrimitives: () => import_tokens.fontWeightPrimitives,
33
+ letterSpacingPrimitives: () => import_tokens.letterSpacingPrimitives,
34
+ lineHeightPrimitives: () => import_tokens.lineHeightPrimitives,
35
+ motionPrimitives: () => import_tokens.motionPrimitives,
36
+ opacityPrimitives: () => import_tokens.opacityPrimitives,
37
+ semanticColors: () => import_tokens.semanticColors,
38
+ semanticLayout: () => import_tokens.semanticLayout,
39
+ semanticRadii: () => import_tokens.semanticRadii,
40
+ semanticShadows: () => import_tokens.semanticShadows,
41
+ semanticSpacing: () => import_tokens.semanticSpacing,
42
+ semanticTokens: () => import_tokens.semanticTokens,
43
+ semanticTypography: () => import_tokens.semanticTypography,
44
+ shadowPrimitives: () => import_tokens.shadowPrimitives,
45
+ spacingPrimitives: () => import_tokens.spacingPrimitives,
46
+ transitionPrimitives: () => import_tokens.transitionPrimitives,
47
+ useGtcxTheme: () => import_theme.useGtcxTheme,
48
+ zIndexPrimitives: () => import_tokens.zIndexPrimitives
49
+ });
50
+ module.exports = __toCommonJS(index_exports);
51
+ var import_tokens = require("@gtcx/tokens");
52
+ var import_theme = require("@gtcx/theme");
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ GtcxConfigProvider,
56
+ borderRadiusPrimitives,
57
+ breakpointPrimitives,
58
+ colorPrimitives,
59
+ createAntdTheme,
60
+ darkSemanticColors,
61
+ focusPrimitives,
62
+ fontFamilyPrimitives,
63
+ fontSizePrimitives,
64
+ fontWeightPrimitives,
65
+ letterSpacingPrimitives,
66
+ lineHeightPrimitives,
67
+ motionPrimitives,
68
+ opacityPrimitives,
69
+ semanticColors,
70
+ semanticLayout,
71
+ semanticRadii,
72
+ semanticShadows,
73
+ semanticSpacing,
74
+ semanticTokens,
75
+ semanticTypography,
76
+ shadowPrimitives,
77
+ spacingPrimitives,
78
+ transitionPrimitives,
79
+ useGtcxTheme,
80
+ zIndexPrimitives
81
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,55 @@
1
+ // src/index.ts
2
+ import {
3
+ colorPrimitives,
4
+ spacingPrimitives,
5
+ fontSizePrimitives,
6
+ fontWeightPrimitives,
7
+ lineHeightPrimitives,
8
+ letterSpacingPrimitives,
9
+ fontFamilyPrimitives,
10
+ borderRadiusPrimitives,
11
+ shadowPrimitives,
12
+ breakpointPrimitives,
13
+ zIndexPrimitives,
14
+ transitionPrimitives,
15
+ opacityPrimitives,
16
+ focusPrimitives,
17
+ motionPrimitives,
18
+ semanticColors,
19
+ semanticSpacing,
20
+ semanticTypography,
21
+ semanticRadii,
22
+ semanticShadows,
23
+ semanticLayout,
24
+ semanticTokens,
25
+ darkSemanticColors
26
+ } from "@gtcx/tokens";
27
+ import { createAntdTheme, GtcxConfigProvider, useGtcxTheme } from "@gtcx/theme";
28
+ export {
29
+ GtcxConfigProvider,
30
+ borderRadiusPrimitives,
31
+ breakpointPrimitives,
32
+ colorPrimitives,
33
+ createAntdTheme,
34
+ darkSemanticColors,
35
+ focusPrimitives,
36
+ fontFamilyPrimitives,
37
+ fontSizePrimitives,
38
+ fontWeightPrimitives,
39
+ letterSpacingPrimitives,
40
+ lineHeightPrimitives,
41
+ motionPrimitives,
42
+ opacityPrimitives,
43
+ semanticColors,
44
+ semanticLayout,
45
+ semanticRadii,
46
+ semanticShadows,
47
+ semanticSpacing,
48
+ semanticTokens,
49
+ semanticTypography,
50
+ shadowPrimitives,
51
+ spacingPrimitives,
52
+ transitionPrimitives,
53
+ useGtcxTheme,
54
+ zIndexPrimitives
55
+ };
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@gtcx/design-system",
3
+ "version": "0.1.0",
4
+ "description": "GTCX Design System — meta-package re-exporting tokens, theme, and utilities",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "sideEffects": false,
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --format esm,cjs --dts",
18
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
19
+ "lint": "eslint src/",
20
+ "typecheck": "tsc --noEmit"
21
+ },
22
+ "dependencies": {
23
+ "@gtcx/tokens": "workspace:*",
24
+ "@gtcx/theme": "workspace:*"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^18.0.0 || ^19.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/react": "^18.0.0",
31
+ "tsup": "^8.0.0",
32
+ "typescript": "^5.0.0"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "README.md"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ }
41
+ }
package/readme.md ADDED
@@ -0,0 +1,33 @@
1
+ # @gtcx/design-system
2
+
3
+ Meta-package that re-exports `@gtcx/tokens` and `@gtcx/theme` for single-import convenience.
4
+
5
+ > Canonical documentation: [`docs/packages/design-system.md`](../../docs/packages/design-system.md)
6
+
7
+ ## Quick Start
8
+
9
+ ```tsx
10
+ import { GtcxConfigProvider, createAntdTheme, semanticColors } from '@gtcx/design-system';
11
+
12
+ const myTheme = createAntdTheme({ colorPrimary: '#0284c7' });
13
+
14
+ function App() {
15
+ return (
16
+ <GtcxConfigProvider theme={myTheme}>
17
+ <div style={{ color: semanticColors.text }}>Hello</div>
18
+ </GtcxConfigProvider>
19
+ );
20
+ }
21
+ ```
22
+
23
+ ## Dependencies
24
+
25
+ - `@gtcx/tokens` (workspace) -- Design token values
26
+ - `@gtcx/theme` (workspace) -- Ant Design theme integration
27
+ - `react` ^18.0.0 || ^19.0.0 -- Peer dependency
28
+
29
+ ## Related
30
+
31
+ - [`demo/`](../../demo/) -- Documentation and gallery app
32
+ - [UI Package](../../docs/packages/ui.md) -- Component library
33
+ - [Design Architecture](../../docs/architecture/design-architecture-overview.md) -- Token resolution flow