@pisodev/ui-common 0.0.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.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +5 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/theme/build-colors.d.ts +2 -0
- package/dist/theme/build-colors.d.ts.map +1 -0
- package/dist/theme/colors.d.ts +4 -0
- package/dist/theme/colors.d.ts.map +1 -0
- package/dist/theme/colors.data.d.ts +29 -0
- package/dist/theme/colors.data.d.ts.map +1 -0
- package/dist/theme/colors.types.d.ts +20 -0
- package/dist/theme/colors.types.d.ts.map +1 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/types/Typography.base.types.d.ts +12 -0
- package/dist/types/Typography.base.types.d.ts.map +1 -0
- package/package.json +37 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["export * from './theme';\nexport * from './types/Typography.base.types';\n"],"names":[],"mappings":";;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./theme"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./types/Typography.base.types"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["export * from './theme';\nexport * from './types/Typography.base.types';\n"],"names":[],"mappings":";;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA,CAAA;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-colors.d.ts","sourceRoot":"","sources":["../../src/theme/build-colors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const grayScale: {
|
|
2
|
+
light: {
|
|
3
|
+
'00': string;
|
|
4
|
+
'50': string;
|
|
5
|
+
'100': string;
|
|
6
|
+
'200': string;
|
|
7
|
+
'300': string;
|
|
8
|
+
'400': string;
|
|
9
|
+
'500': string;
|
|
10
|
+
'600': string;
|
|
11
|
+
'700': string;
|
|
12
|
+
'800': string;
|
|
13
|
+
'900': string;
|
|
14
|
+
};
|
|
15
|
+
dark: {
|
|
16
|
+
'00': string;
|
|
17
|
+
'50': string;
|
|
18
|
+
'100': string;
|
|
19
|
+
'200': string;
|
|
20
|
+
'300': string;
|
|
21
|
+
'400': string;
|
|
22
|
+
'500': string;
|
|
23
|
+
'600': string;
|
|
24
|
+
'700': string;
|
|
25
|
+
'800': string;
|
|
26
|
+
'900': string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=colors.data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.data.d.ts","sourceRoot":"","sources":["../../src/theme/colors.data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ColorScale {
|
|
2
|
+
'00': string;
|
|
3
|
+
'50': string;
|
|
4
|
+
'100': string;
|
|
5
|
+
'200': string;
|
|
6
|
+
'300': string;
|
|
7
|
+
'400': string;
|
|
8
|
+
'500': string;
|
|
9
|
+
'600': string;
|
|
10
|
+
'700': string;
|
|
11
|
+
'800': string;
|
|
12
|
+
'900': string;
|
|
13
|
+
}
|
|
14
|
+
export interface Theme {
|
|
15
|
+
colors: {
|
|
16
|
+
gray: ColorScale;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export type ThemeMode = 'light' | 'dark';
|
|
20
|
+
//# sourceMappingURL=colors.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.types.d.ts","sourceRoot":"","sources":["../../src/theme/colors.types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,UAAU,CAAC;KAElB,CAAC;CACH;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface TypographyBaseProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TypographyWebProps extends TypographyBaseProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TypographyNativeProps extends TypographyBaseProps {
|
|
10
|
+
testID?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=Typography.base.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.base.types.d.ts","sourceRoot":"","sources":["../../src/types/Typography.base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pisodev/ui-common",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "웹과 React Native를 위한 공통 타입 및 테마",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"private": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build:colors": "ts-node src/theme/build-colors.ts",
|
|
14
|
+
"build": "npm run build:colors && rollup -c rollup.config.js"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"react",
|
|
18
|
+
"react-native",
|
|
19
|
+
"theme",
|
|
20
|
+
"typescript"
|
|
21
|
+
],
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
30
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
31
|
+
"@types/node": "^22.0.0",
|
|
32
|
+
"rollup": "^4.54.0",
|
|
33
|
+
"ts-node": "^10.9.2",
|
|
34
|
+
"tslib": "^2.8.1",
|
|
35
|
+
"typescript": "^5.9.3"
|
|
36
|
+
}
|
|
37
|
+
}
|