@causw/tokens 0.0.4 → 0.0.5
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/chunk-DPNL4AJ4.mjs +1 -5
- package/dist/config/index.d.mts +9 -9
- package/dist/config/index.d.ts +9 -9
- package/dist/config/index.js +9 -39
- package/dist/config/index.mjs +7 -16
- package/dist/index.js +5 -33
- package/dist/index.mjs +1 -10
- package/package.json +3 -7
package/dist/chunk-DPNL4AJ4.mjs
CHANGED
package/dist/config/index.d.mts
CHANGED
|
@@ -14,14 +14,14 @@ import { Config } from 'tailwindcss';
|
|
|
14
14
|
* @example JS/TS config에서 사용
|
|
15
15
|
* ```ts
|
|
16
16
|
* // tailwind.config.ts
|
|
17
|
-
* import
|
|
17
|
+
* import causwConfig from '@causw/tokens/tailwind.config';
|
|
18
18
|
* export default {
|
|
19
|
-
* ...
|
|
20
|
-
* content: [...
|
|
19
|
+
* ...causwConfig,
|
|
20
|
+
* content: [...causwConfig.content, './src/**\/*.{js,ts,jsx,tsx}'],
|
|
21
21
|
* };
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
declare const
|
|
24
|
+
declare const causwConfig: Config;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* CAUSW Design System Tailwind CSS Preset
|
|
@@ -29,16 +29,16 @@ declare const caswConfig: Config;
|
|
|
29
29
|
* @example
|
|
30
30
|
* ```ts
|
|
31
31
|
* // tailwind.config.ts
|
|
32
|
-
* import {
|
|
32
|
+
* import { causwPreset } from '@causw/design-system/tailwind-preset';
|
|
33
33
|
*
|
|
34
34
|
* export default {
|
|
35
|
-
* presets: [
|
|
35
|
+
* presets: [causwPreset],
|
|
36
36
|
* content: ['./src/**\/*.{js,ts,jsx,tsx}'],
|
|
37
37
|
* } satisfies Config;
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
declare const
|
|
40
|
+
declare const causwPreset: Partial<Config>;
|
|
41
41
|
|
|
42
|
-
declare const
|
|
42
|
+
declare const causwContent: string[];
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { causwConfig, causwContent, causwPreset };
|
package/dist/config/index.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ import { Config } from 'tailwindcss';
|
|
|
14
14
|
* @example JS/TS config에서 사용
|
|
15
15
|
* ```ts
|
|
16
16
|
* // tailwind.config.ts
|
|
17
|
-
* import
|
|
17
|
+
* import causwConfig from '@causw/tokens/tailwind.config';
|
|
18
18
|
* export default {
|
|
19
|
-
* ...
|
|
20
|
-
* content: [...
|
|
19
|
+
* ...causwConfig,
|
|
20
|
+
* content: [...causwConfig.content, './src/**\/*.{js,ts,jsx,tsx}'],
|
|
21
21
|
* };
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
declare const
|
|
24
|
+
declare const causwConfig: Config;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* CAUSW Design System Tailwind CSS Preset
|
|
@@ -29,16 +29,16 @@ declare const caswConfig: Config;
|
|
|
29
29
|
* @example
|
|
30
30
|
* ```ts
|
|
31
31
|
* // tailwind.config.ts
|
|
32
|
-
* import {
|
|
32
|
+
* import { causwPreset } from '@causw/design-system/tailwind-preset';
|
|
33
33
|
*
|
|
34
34
|
* export default {
|
|
35
|
-
* presets: [
|
|
35
|
+
* presets: [causwPreset],
|
|
36
36
|
* content: ['./src/**\/*.{js,ts,jsx,tsx}'],
|
|
37
37
|
* } satisfies Config;
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
declare const
|
|
40
|
+
declare const causwPreset: Partial<Config>;
|
|
41
41
|
|
|
42
|
-
declare const
|
|
42
|
+
declare const causwContent: string[];
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { causwConfig, causwContent, causwPreset };
|
package/dist/config/index.js
CHANGED
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
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/config/index.ts
|
|
21
|
-
var config_exports = {};
|
|
22
|
-
__export(config_exports, {
|
|
23
|
-
caswConfig: () => caswConfig,
|
|
24
|
-
caswPreset: () => caswPreset,
|
|
25
|
-
default: () => tailwind_config_default,
|
|
26
|
-
tailwindContent: () => tailwindContent
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(config_exports);
|
|
1
|
+
'use strict';
|
|
29
2
|
|
|
30
3
|
// src/tokens/colors.ts
|
|
31
4
|
var colors = {
|
|
@@ -146,7 +119,7 @@ var typography = {
|
|
|
146
119
|
};
|
|
147
120
|
|
|
148
121
|
// src/config/tailwind-config/tailwind-preset.ts
|
|
149
|
-
var
|
|
122
|
+
var causwPreset = {
|
|
150
123
|
theme: {
|
|
151
124
|
extend: {
|
|
152
125
|
colors,
|
|
@@ -163,24 +136,21 @@ var caswPreset = {
|
|
|
163
136
|
};
|
|
164
137
|
|
|
165
138
|
// src/config/tailwind-config/tailwind.config.ts
|
|
166
|
-
var
|
|
139
|
+
var causwConfig = {
|
|
167
140
|
content: [
|
|
168
141
|
// CAUSW 컴포넌트 패키지의 빌드된 파일 스캔
|
|
169
142
|
"./node_modules/@causw/components/dist/**/*.{js,mjs}",
|
|
170
143
|
"./node_modules/@causw/tokens/dist/**/*.{js,mjs}"
|
|
171
144
|
],
|
|
172
|
-
presets: [
|
|
145
|
+
presets: [causwPreset]
|
|
173
146
|
};
|
|
174
|
-
var tailwind_config_default = caswConfig;
|
|
175
147
|
|
|
176
148
|
// src/config/tailwind-config/tailwind-content.ts
|
|
177
|
-
var
|
|
149
|
+
var causwContent = [
|
|
178
150
|
"./node_modules/@causw/components/dist/**/*.{js,mjs}",
|
|
179
151
|
"./node_modules/@causw/tokens/dist/**/*.{js,mjs}"
|
|
180
152
|
];
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
tailwindContent
|
|
186
|
-
});
|
|
153
|
+
|
|
154
|
+
exports.causwConfig = causwConfig;
|
|
155
|
+
exports.causwContent = causwContent;
|
|
156
|
+
exports.causwPreset = causwPreset;
|
package/dist/config/index.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colors,
|
|
3
|
-
spacing,
|
|
4
|
-
typography
|
|
5
|
-
} from "../chunk-DPNL4AJ4.mjs";
|
|
1
|
+
import { typography, spacing, colors } from '../chunk-DPNL4AJ4.mjs';
|
|
6
2
|
|
|
7
3
|
// src/config/tailwind-config/tailwind-preset.ts
|
|
8
|
-
var
|
|
4
|
+
var causwPreset = {
|
|
9
5
|
theme: {
|
|
10
6
|
extend: {
|
|
11
7
|
colors,
|
|
@@ -22,24 +18,19 @@ var caswPreset = {
|
|
|
22
18
|
};
|
|
23
19
|
|
|
24
20
|
// src/config/tailwind-config/tailwind.config.ts
|
|
25
|
-
var
|
|
21
|
+
var causwConfig = {
|
|
26
22
|
content: [
|
|
27
23
|
// CAUSW 컴포넌트 패키지의 빌드된 파일 스캔
|
|
28
24
|
"./node_modules/@causw/components/dist/**/*.{js,mjs}",
|
|
29
25
|
"./node_modules/@causw/tokens/dist/**/*.{js,mjs}"
|
|
30
26
|
],
|
|
31
|
-
presets: [
|
|
27
|
+
presets: [causwPreset]
|
|
32
28
|
};
|
|
33
|
-
var tailwind_config_default = caswConfig;
|
|
34
29
|
|
|
35
30
|
// src/config/tailwind-config/tailwind-content.ts
|
|
36
|
-
var
|
|
31
|
+
var causwContent = [
|
|
37
32
|
"./node_modules/@causw/components/dist/**/*.{js,mjs}",
|
|
38
33
|
"./node_modules/@causw/tokens/dist/**/*.{js,mjs}"
|
|
39
34
|
];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
caswPreset,
|
|
43
|
-
tailwind_config_default as default,
|
|
44
|
-
tailwindContent
|
|
45
|
-
};
|
|
35
|
+
|
|
36
|
+
export { causwConfig, causwContent, causwPreset };
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
colors: () => colors,
|
|
24
|
-
spacing: () => spacing,
|
|
25
|
-
typography: () => typography
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(index_exports);
|
|
1
|
+
'use strict';
|
|
28
2
|
|
|
29
3
|
// src/tokens/colors.ts
|
|
30
4
|
var colors = {
|
|
@@ -143,9 +117,7 @@ var typography = {
|
|
|
143
117
|
loose: "2"
|
|
144
118
|
}
|
|
145
119
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
typography
|
|
151
|
-
});
|
|
120
|
+
|
|
121
|
+
exports.colors = colors;
|
|
122
|
+
exports.spacing = spacing;
|
|
123
|
+
exports.typography = typography;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causw/tokens",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Design tokens for CAUSW Design System - CAU Software Community Service",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,11 +20,6 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"tailwindcss": "^4.1.17",
|
|
25
|
-
"tsup": "^8.0.0",
|
|
26
|
-
"typescript": "^5.3.0"
|
|
27
|
-
},
|
|
28
23
|
"repository": {
|
|
29
24
|
"type": "git",
|
|
30
25
|
"url": "https://github.com/CAUCSE/CAUSW-frontend-design-system",
|
|
@@ -34,8 +29,9 @@
|
|
|
34
29
|
"access": "public",
|
|
35
30
|
"provenance": true
|
|
36
31
|
},
|
|
32
|
+
"sideEffects": false,
|
|
37
33
|
"scripts": {
|
|
38
|
-
"build": "tsup src/index.ts src/config/index.ts --format cjs,esm --dts",
|
|
34
|
+
"build": "tsup src/index.ts src/config/index.ts --format cjs,esm --dts --treeshake",
|
|
39
35
|
"dev": "tsup src/index.ts src/config/index.ts --format cjs,esm --dts --watch",
|
|
40
36
|
"lint": "eslint src",
|
|
41
37
|
"test": "echo \"No tests yet\""
|