@xfilecom/front-core 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.
- package/dist/index.d.ts +12 -0
- package/dist/index.js +15 -0
- package/dist/tokens.css +7 -0
- package/package.json +37 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @xfilecom/front-core — design tokens (components expand later).
|
|
3
|
+
* CSS: import '@xfilecom/front-core/tokens.css' in Vite/React entry.
|
|
4
|
+
*/
|
|
5
|
+
export declare const XFRAME_FRONT_CORE_VERSION = "0.1.0";
|
|
6
|
+
export declare const tokenVars: {
|
|
7
|
+
readonly colorBg: "--xfc-bg";
|
|
8
|
+
readonly colorFg: "--xfc-fg";
|
|
9
|
+
readonly colorAccent: "--xfc-accent";
|
|
10
|
+
readonly radiusSm: "--xfc-radius-sm";
|
|
11
|
+
readonly spaceMd: "--xfc-space-md";
|
|
12
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tokenVars = exports.XFRAME_FRONT_CORE_VERSION = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @xfilecom/front-core — design tokens (components expand later).
|
|
6
|
+
* CSS: import '@xfilecom/front-core/tokens.css' in Vite/React entry.
|
|
7
|
+
*/
|
|
8
|
+
exports.XFRAME_FRONT_CORE_VERSION = '0.1.0';
|
|
9
|
+
exports.tokenVars = {
|
|
10
|
+
colorBg: '--xfc-bg',
|
|
11
|
+
colorFg: '--xfc-fg',
|
|
12
|
+
colorAccent: '--xfc-accent',
|
|
13
|
+
radiusSm: '--xfc-radius-sm',
|
|
14
|
+
spaceMd: '--xfc-space-md',
|
|
15
|
+
};
|
package/dist/tokens.css
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xfilecom/front-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared React tokens (browser-only; no Nest dependency)",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./tokens.css": "./dist/tokens.css"
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist"],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"build": "npm run build:ts && npm run build:css",
|
|
18
|
+
"build:ts": "tsc",
|
|
19
|
+
"build:css": "cp src/tokens.css dist/tokens.css"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": ">=18.0.0",
|
|
23
|
+
"react-dom": ">=18.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependenciesMeta": {
|
|
26
|
+
"react": { "optional": true },
|
|
27
|
+
"react-dom": { "optional": true }
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/react": "^18.2.0",
|
|
31
|
+
"typescript": "^5.0.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"registry": "https://registry.npmjs.org/",
|
|
35
|
+
"access": "public"
|
|
36
|
+
}
|
|
37
|
+
}
|