@charcoal-ui/foundation 1.0.0 → 1.0.1-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.
- package/dist/index.cjs +131 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +126 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +122 -1
- package/dist/index.module.js.map +1 -1
- package/package.json +8 -3
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,132 @@
|
|
|
1
|
-
|
|
1
|
+
var TYPOGRAPHY_SIZE = {
|
|
2
|
+
12: {
|
|
3
|
+
fontSize: 12,
|
|
4
|
+
lineHeight: 20
|
|
5
|
+
},
|
|
6
|
+
14: {
|
|
7
|
+
fontSize: 14,
|
|
8
|
+
lineHeight: 22
|
|
9
|
+
},
|
|
10
|
+
16: {
|
|
11
|
+
fontSize: 16,
|
|
12
|
+
lineHeight: 24
|
|
13
|
+
},
|
|
14
|
+
20: {
|
|
15
|
+
fontSize: 20,
|
|
16
|
+
lineHeight: 28
|
|
17
|
+
},
|
|
18
|
+
32: {
|
|
19
|
+
fontSize: 32,
|
|
20
|
+
lineHeight: 40
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var TYPOGRAPHY_WEIGHT = [
|
|
24
|
+
/**
|
|
25
|
+
* Regular font weight
|
|
26
|
+
*
|
|
27
|
+
* <font-weight-absolute> ~ 400
|
|
28
|
+
*
|
|
29
|
+
* It should be the **DEFAULT** weight
|
|
30
|
+
*/
|
|
31
|
+
'regular',
|
|
32
|
+
/**
|
|
33
|
+
* Bolder than `regular` weight
|
|
34
|
+
*
|
|
35
|
+
* <font-weight-absolute> ~ 700
|
|
36
|
+
*/
|
|
37
|
+
'bold'];
|
|
38
|
+
var TYPOGRAPHY_VARIANT = [
|
|
39
|
+
/**
|
|
40
|
+
* Proportional font (which has the variable amount of horizontal space)
|
|
41
|
+
*
|
|
42
|
+
* It should be the **DEFAULT** variant
|
|
43
|
+
*/
|
|
44
|
+
'proportional',
|
|
45
|
+
/**
|
|
46
|
+
* Monospaced font (which has the same amount of horizontal space)
|
|
47
|
+
*/
|
|
48
|
+
'monospace'];
|
|
49
|
+
|
|
50
|
+
var SPACING = {
|
|
51
|
+
0: 0,
|
|
52
|
+
4: 4,
|
|
53
|
+
8: 8,
|
|
54
|
+
16: 16,
|
|
55
|
+
24: 24,
|
|
56
|
+
40: 40,
|
|
57
|
+
64: 64,
|
|
58
|
+
104: 104,
|
|
59
|
+
168: 168,
|
|
60
|
+
272: 272,
|
|
61
|
+
440: 440
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Unit for grid column (px)
|
|
66
|
+
*/
|
|
67
|
+
var COLUMN_UNIT = 80;
|
|
68
|
+
/**
|
|
69
|
+
* Unit for grid gutter width (px)
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
var GUTTER_UNIT = 24; // TODO: Grid definition with breakpoint
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Calculate px occupied by the span of the columns with gutter gap
|
|
76
|
+
*
|
|
77
|
+
* @param span column span count
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
function columnSystem(span, column, gutter) {
|
|
81
|
+
return span * column + (span - 1) * gutter;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var BORDER_RADIUS = {
|
|
85
|
+
/**
|
|
86
|
+
* 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)
|
|
87
|
+
*/
|
|
88
|
+
none: 0,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 用途: バッジ, 高さ40px以下の要素
|
|
92
|
+
*/
|
|
93
|
+
4: 4,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 用途: サムネイル
|
|
97
|
+
*/
|
|
98
|
+
8: 8,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 用途: チュートリアルツールチップ
|
|
102
|
+
*/
|
|
103
|
+
16: 16,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 用途: モーダル
|
|
107
|
+
*/
|
|
108
|
+
24: 24,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 真円 or 左右が丸まっている矩形 を作る時に用いる
|
|
112
|
+
*
|
|
113
|
+
* 用途: ボタン
|
|
114
|
+
*/
|
|
115
|
+
oval: 999999
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var _BREAKPOINT;
|
|
119
|
+
var HORIZONTAL_MIN_MARGIN = 72;
|
|
120
|
+
var BREAKPOINT = (_BREAKPOINT = {}, _BREAKPOINT[6] = columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[8] = columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[10] = columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[12] = columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT);
|
|
121
|
+
|
|
122
|
+
exports.BORDER_RADIUS = BORDER_RADIUS;
|
|
123
|
+
exports.BREAKPOINT = BREAKPOINT;
|
|
124
|
+
exports.COLUMN_UNIT = COLUMN_UNIT;
|
|
125
|
+
exports.GUTTER_UNIT = GUTTER_UNIT;
|
|
126
|
+
exports.HORIZONTAL_MIN_MARGIN = HORIZONTAL_MIN_MARGIN;
|
|
127
|
+
exports.SPACING = SPACING;
|
|
128
|
+
exports.TYPOGRAPHY_SIZE = TYPOGRAPHY_SIZE;
|
|
129
|
+
exports.TYPOGRAPHY_VARIANT = TYPOGRAPHY_VARIANT;
|
|
130
|
+
exports.TYPOGRAPHY_WEIGHT = TYPOGRAPHY_WEIGHT;
|
|
131
|
+
exports.columnSystem = columnSystem;
|
|
2
132
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/typography.ts","../src/spacing.ts","../src/grid.ts","../src/border-radius.ts","../src/breakpoint.ts"],"sourcesContent":["export interface TypographyDescriptor {\n readonly lineHeight: number\n readonly fontSize: number\n}\n\nexport const TYPOGRAPHY_SIZE = {\n 12: {\n fontSize: 12,\n lineHeight: 20,\n },\n 14: {\n fontSize: 14,\n lineHeight: 22,\n },\n 16: {\n fontSize: 16,\n lineHeight: 24,\n },\n 20: {\n fontSize: 20,\n lineHeight: 28,\n },\n 32: {\n fontSize: 32,\n lineHeight: 40,\n },\n} as const\n\nexport const TYPOGRAPHY_WEIGHT = [\n /**\n * Regular font weight\n *\n * <font-weight-absolute> ~ 400\n *\n * It should be the **DEFAULT** weight\n */\n 'regular',\n /**\n * Bolder than `regular` weight\n *\n * <font-weight-absolute> ~ 700\n */\n 'bold',\n] as const\n\nexport const TYPOGRAPHY_VARIANT = [\n /**\n * Proportional font (which has the variable amount of horizontal space)\n *\n * It should be the **DEFAULT** variant\n */\n 'proportional',\n /**\n * Monospaced font (which has the same amount of horizontal space)\n */\n 'monospace',\n] as const\n","export const SPACING = {\n 0: 0,\n 4: 4,\n 8: 8,\n 16: 16,\n 24: 24,\n 40: 40,\n 64: 64,\n 104: 104,\n 168: 168,\n 272: 272,\n 440: 440,\n} as const\n","/**\n * Unit for grid column (px)\n */\nexport const COLUMN_UNIT = 80\n\n/**\n * Unit for grid gutter width (px)\n */\nexport const GUTTER_UNIT = 24\n\n// TODO: Grid definition with breakpoint\n\n/**\n * Calculate px occupied by the span of the columns with gutter gap\n *\n * @param span column span count\n */\nexport function columnSystem(span: number, column: number, gutter: number) {\n return span * column + (span - 1) * gutter\n}\n","export const BORDER_RADIUS = {\n /**\n * 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)\n */\n none: 0,\n /**\n * 用途: バッジ, 高さ40px以下の要素\n */\n 4: 4,\n /**\n * 用途: サムネイル\n */\n 8: 8,\n /**\n * 用途: チュートリアルツールチップ\n */\n 16: 16,\n /**\n * 用途: モーダル\n */\n 24: 24,\n /**\n * 真円 or 左右が丸まっている矩形 を作る時に用いる\n *\n * 用途: ボタン\n */\n oval: 999999,\n} as const\n","import { COLUMN_UNIT, GUTTER_UNIT, columnSystem } from './grid'\n\nexport const HORIZONTAL_MIN_MARGIN = 72\n\nexport const BREAKPOINT = {\n [6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n} as const\n"],"names":["TYPOGRAPHY_SIZE","fontSize","lineHeight","TYPOGRAPHY_WEIGHT","TYPOGRAPHY_VARIANT","SPACING","COLUMN_UNIT","GUTTER_UNIT","columnSystem","span","column","gutter","BORDER_RADIUS","none","oval","HORIZONTAL_MIN_MARGIN","BREAKPOINT"],"mappings":"IAKaA,eAAe,GAAG;AAC7B,MAAI;AACFC,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GADyB;AAK7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GALyB;AAS7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GATyB;AAa7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GAbyB;AAiB7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV;AAjByB;I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AlB,CAAZ,GAA6CQ,qBAAqB,GAAG,CAJtD;;;;;;;;;;;;;"}
|
package/dist/index.modern.js
CHANGED
|
@@ -1,2 +1,127 @@
|
|
|
1
|
-
const
|
|
1
|
+
const TYPOGRAPHY_SIZE = {
|
|
2
|
+
12: {
|
|
3
|
+
fontSize: 12,
|
|
4
|
+
lineHeight: 20
|
|
5
|
+
},
|
|
6
|
+
14: {
|
|
7
|
+
fontSize: 14,
|
|
8
|
+
lineHeight: 22
|
|
9
|
+
},
|
|
10
|
+
16: {
|
|
11
|
+
fontSize: 16,
|
|
12
|
+
lineHeight: 24
|
|
13
|
+
},
|
|
14
|
+
20: {
|
|
15
|
+
fontSize: 20,
|
|
16
|
+
lineHeight: 28
|
|
17
|
+
},
|
|
18
|
+
32: {
|
|
19
|
+
fontSize: 32,
|
|
20
|
+
lineHeight: 40
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const TYPOGRAPHY_WEIGHT = [
|
|
24
|
+
/**
|
|
25
|
+
* Regular font weight
|
|
26
|
+
*
|
|
27
|
+
* <font-weight-absolute> ~ 400
|
|
28
|
+
*
|
|
29
|
+
* It should be the **DEFAULT** weight
|
|
30
|
+
*/
|
|
31
|
+
'regular',
|
|
32
|
+
/**
|
|
33
|
+
* Bolder than `regular` weight
|
|
34
|
+
*
|
|
35
|
+
* <font-weight-absolute> ~ 700
|
|
36
|
+
*/
|
|
37
|
+
'bold'];
|
|
38
|
+
const TYPOGRAPHY_VARIANT = [
|
|
39
|
+
/**
|
|
40
|
+
* Proportional font (which has the variable amount of horizontal space)
|
|
41
|
+
*
|
|
42
|
+
* It should be the **DEFAULT** variant
|
|
43
|
+
*/
|
|
44
|
+
'proportional',
|
|
45
|
+
/**
|
|
46
|
+
* Monospaced font (which has the same amount of horizontal space)
|
|
47
|
+
*/
|
|
48
|
+
'monospace'];
|
|
49
|
+
|
|
50
|
+
const SPACING = {
|
|
51
|
+
0: 0,
|
|
52
|
+
4: 4,
|
|
53
|
+
8: 8,
|
|
54
|
+
16: 16,
|
|
55
|
+
24: 24,
|
|
56
|
+
40: 40,
|
|
57
|
+
64: 64,
|
|
58
|
+
104: 104,
|
|
59
|
+
168: 168,
|
|
60
|
+
272: 272,
|
|
61
|
+
440: 440
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Unit for grid column (px)
|
|
66
|
+
*/
|
|
67
|
+
const COLUMN_UNIT = 80;
|
|
68
|
+
/**
|
|
69
|
+
* Unit for grid gutter width (px)
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
const GUTTER_UNIT = 24; // TODO: Grid definition with breakpoint
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Calculate px occupied by the span of the columns with gutter gap
|
|
76
|
+
*
|
|
77
|
+
* @param span column span count
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
function columnSystem(span, column, gutter) {
|
|
81
|
+
return span * column + (span - 1) * gutter;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const BORDER_RADIUS = {
|
|
85
|
+
/**
|
|
86
|
+
* 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)
|
|
87
|
+
*/
|
|
88
|
+
none: 0,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 用途: バッジ, 高さ40px以下の要素
|
|
92
|
+
*/
|
|
93
|
+
4: 4,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 用途: サムネイル
|
|
97
|
+
*/
|
|
98
|
+
8: 8,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 用途: チュートリアルツールチップ
|
|
102
|
+
*/
|
|
103
|
+
16: 16,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 用途: モーダル
|
|
107
|
+
*/
|
|
108
|
+
24: 24,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 真円 or 左右が丸まっている矩形 を作る時に用いる
|
|
112
|
+
*
|
|
113
|
+
* 用途: ボタン
|
|
114
|
+
*/
|
|
115
|
+
oval: 999999
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const HORIZONTAL_MIN_MARGIN = 72;
|
|
119
|
+
const BREAKPOINT = {
|
|
120
|
+
[6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,
|
|
121
|
+
[8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,
|
|
122
|
+
[10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,
|
|
123
|
+
[12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export { BORDER_RADIUS, BREAKPOINT, COLUMN_UNIT, GUTTER_UNIT, HORIZONTAL_MIN_MARGIN, SPACING, TYPOGRAPHY_SIZE, TYPOGRAPHY_VARIANT, TYPOGRAPHY_WEIGHT, columnSystem };
|
|
2
127
|
//# sourceMappingURL=index.modern.js.map
|
package/dist/index.modern.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/typography.ts","../src/spacing.ts","../src/grid.ts","../src/border-radius.ts","../src/breakpoint.ts"],"sourcesContent":["export interface TypographyDescriptor {\n readonly lineHeight: number\n readonly fontSize: number\n}\n\nexport const TYPOGRAPHY_SIZE = {\n 12: {\n fontSize: 12,\n lineHeight: 20,\n },\n 14: {\n fontSize: 14,\n lineHeight: 22,\n },\n 16: {\n fontSize: 16,\n lineHeight: 24,\n },\n 20: {\n fontSize: 20,\n lineHeight: 28,\n },\n 32: {\n fontSize: 32,\n lineHeight: 40,\n },\n} as const\n\nexport const TYPOGRAPHY_WEIGHT = [\n /**\n * Regular font weight\n *\n * <font-weight-absolute> ~ 400\n *\n * It should be the **DEFAULT** weight\n */\n 'regular',\n /**\n * Bolder than `regular` weight\n *\n * <font-weight-absolute> ~ 700\n */\n 'bold',\n] as const\n\nexport const TYPOGRAPHY_VARIANT = [\n /**\n * Proportional font (which has the variable amount of horizontal space)\n *\n * It should be the **DEFAULT** variant\n */\n 'proportional',\n /**\n * Monospaced font (which has the same amount of horizontal space)\n */\n 'monospace',\n] as const\n","export const SPACING = {\n 0: 0,\n 4: 4,\n 8: 8,\n 16: 16,\n 24: 24,\n 40: 40,\n 64: 64,\n 104: 104,\n 168: 168,\n 272: 272,\n 440: 440,\n} as const\n","/**\n * Unit for grid column (px)\n */\nexport const COLUMN_UNIT = 80\n\n/**\n * Unit for grid gutter width (px)\n */\nexport const GUTTER_UNIT = 24\n\n// TODO: Grid definition with breakpoint\n\n/**\n * Calculate px occupied by the span of the columns with gutter gap\n *\n * @param span column span count\n */\nexport function columnSystem(span: number, column: number, gutter: number) {\n return span * column + (span - 1) * gutter\n}\n","export const BORDER_RADIUS = {\n /**\n * 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)\n */\n none: 0,\n /**\n * 用途: バッジ, 高さ40px以下の要素\n */\n 4: 4,\n /**\n * 用途: サムネイル\n */\n 8: 8,\n /**\n * 用途: チュートリアルツールチップ\n */\n 16: 16,\n /**\n * 用途: モーダル\n */\n 24: 24,\n /**\n * 真円 or 左右が丸まっている矩形 を作る時に用いる\n *\n * 用途: ボタン\n */\n oval: 999999,\n} as const\n","import { COLUMN_UNIT, GUTTER_UNIT, columnSystem } from './grid'\n\nexport const HORIZONTAL_MIN_MARGIN = 72\n\nexport const BREAKPOINT = {\n [6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n} as const\n"],"names":["TYPOGRAPHY_SIZE","fontSize","lineHeight","TYPOGRAPHY_WEIGHT","TYPOGRAPHY_VARIANT","SPACING","COLUMN_UNIT","GUTTER_UNIT","columnSystem","span","column","gutter","BORDER_RADIUS","none","oval","HORIZONTAL_MIN_MARGIN","BREAKPOINT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/typography.ts","../src/spacing.ts","../src/grid.ts","../src/border-radius.ts","../src/breakpoint.ts"],"sourcesContent":["export interface TypographyDescriptor {\n readonly lineHeight: number\n readonly fontSize: number\n}\n\nexport const TYPOGRAPHY_SIZE = {\n 12: {\n fontSize: 12,\n lineHeight: 20,\n },\n 14: {\n fontSize: 14,\n lineHeight: 22,\n },\n 16: {\n fontSize: 16,\n lineHeight: 24,\n },\n 20: {\n fontSize: 20,\n lineHeight: 28,\n },\n 32: {\n fontSize: 32,\n lineHeight: 40,\n },\n} as const\n\nexport const TYPOGRAPHY_WEIGHT = [\n /**\n * Regular font weight\n *\n * <font-weight-absolute> ~ 400\n *\n * It should be the **DEFAULT** weight\n */\n 'regular',\n /**\n * Bolder than `regular` weight\n *\n * <font-weight-absolute> ~ 700\n */\n 'bold',\n] as const\n\nexport const TYPOGRAPHY_VARIANT = [\n /**\n * Proportional font (which has the variable amount of horizontal space)\n *\n * It should be the **DEFAULT** variant\n */\n 'proportional',\n /**\n * Monospaced font (which has the same amount of horizontal space)\n */\n 'monospace',\n] as const\n","export const SPACING = {\n 0: 0,\n 4: 4,\n 8: 8,\n 16: 16,\n 24: 24,\n 40: 40,\n 64: 64,\n 104: 104,\n 168: 168,\n 272: 272,\n 440: 440,\n} as const\n","/**\n * Unit for grid column (px)\n */\nexport const COLUMN_UNIT = 80\n\n/**\n * Unit for grid gutter width (px)\n */\nexport const GUTTER_UNIT = 24\n\n// TODO: Grid definition with breakpoint\n\n/**\n * Calculate px occupied by the span of the columns with gutter gap\n *\n * @param span column span count\n */\nexport function columnSystem(span: number, column: number, gutter: number) {\n return span * column + (span - 1) * gutter\n}\n","export const BORDER_RADIUS = {\n /**\n * 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)\n */\n none: 0,\n /**\n * 用途: バッジ, 高さ40px以下の要素\n */\n 4: 4,\n /**\n * 用途: サムネイル\n */\n 8: 8,\n /**\n * 用途: チュートリアルツールチップ\n */\n 16: 16,\n /**\n * 用途: モーダル\n */\n 24: 24,\n /**\n * 真円 or 左右が丸まっている矩形 を作る時に用いる\n *\n * 用途: ボタン\n */\n oval: 999999,\n} as const\n","import { COLUMN_UNIT, GUTTER_UNIT, columnSystem } from './grid'\n\nexport const HORIZONTAL_MIN_MARGIN = 72\n\nexport const BREAKPOINT = {\n [6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n} as const\n"],"names":["TYPOGRAPHY_SIZE","fontSize","lineHeight","TYPOGRAPHY_WEIGHT","TYPOGRAPHY_VARIANT","SPACING","COLUMN_UNIT","GUTTER_UNIT","columnSystem","span","column","gutter","BORDER_RADIUS","none","oval","HORIZONTAL_MIN_MARGIN","BREAKPOINT"],"mappings":"MAKaA,eAAe,GAAG;AAC7B,MAAI;AACFC,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GADyB;AAK7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GALyB;AAS7B,MAAI;AACFD,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GATyB;AAa7B,MAAI;AACFD,IAA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C,EAAD,GAAMP,YAAY,CAAC,EAAD,EAAKF,WAAL,EAAkBC,WAAlB,CAAZ,GAA6CQ,qBAAqB,GAAG,CAHnD;AAIxB,GAAC,EAAD,GAAMP,YAAY,CAAC,EAAD,EAAKF,WAAL,EAAkBC,WAAlB,CAAZ,GAA6CQ,qBAAqB,GAAG;AAJnD;;;;"}
|
package/dist/index.module.js
CHANGED
|
@@ -1,2 +1,123 @@
|
|
|
1
|
-
var
|
|
1
|
+
var TYPOGRAPHY_SIZE = {
|
|
2
|
+
12: {
|
|
3
|
+
fontSize: 12,
|
|
4
|
+
lineHeight: 20
|
|
5
|
+
},
|
|
6
|
+
14: {
|
|
7
|
+
fontSize: 14,
|
|
8
|
+
lineHeight: 22
|
|
9
|
+
},
|
|
10
|
+
16: {
|
|
11
|
+
fontSize: 16,
|
|
12
|
+
lineHeight: 24
|
|
13
|
+
},
|
|
14
|
+
20: {
|
|
15
|
+
fontSize: 20,
|
|
16
|
+
lineHeight: 28
|
|
17
|
+
},
|
|
18
|
+
32: {
|
|
19
|
+
fontSize: 32,
|
|
20
|
+
lineHeight: 40
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var TYPOGRAPHY_WEIGHT = [
|
|
24
|
+
/**
|
|
25
|
+
* Regular font weight
|
|
26
|
+
*
|
|
27
|
+
* <font-weight-absolute> ~ 400
|
|
28
|
+
*
|
|
29
|
+
* It should be the **DEFAULT** weight
|
|
30
|
+
*/
|
|
31
|
+
'regular',
|
|
32
|
+
/**
|
|
33
|
+
* Bolder than `regular` weight
|
|
34
|
+
*
|
|
35
|
+
* <font-weight-absolute> ~ 700
|
|
36
|
+
*/
|
|
37
|
+
'bold'];
|
|
38
|
+
var TYPOGRAPHY_VARIANT = [
|
|
39
|
+
/**
|
|
40
|
+
* Proportional font (which has the variable amount of horizontal space)
|
|
41
|
+
*
|
|
42
|
+
* It should be the **DEFAULT** variant
|
|
43
|
+
*/
|
|
44
|
+
'proportional',
|
|
45
|
+
/**
|
|
46
|
+
* Monospaced font (which has the same amount of horizontal space)
|
|
47
|
+
*/
|
|
48
|
+
'monospace'];
|
|
49
|
+
|
|
50
|
+
var SPACING = {
|
|
51
|
+
0: 0,
|
|
52
|
+
4: 4,
|
|
53
|
+
8: 8,
|
|
54
|
+
16: 16,
|
|
55
|
+
24: 24,
|
|
56
|
+
40: 40,
|
|
57
|
+
64: 64,
|
|
58
|
+
104: 104,
|
|
59
|
+
168: 168,
|
|
60
|
+
272: 272,
|
|
61
|
+
440: 440
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Unit for grid column (px)
|
|
66
|
+
*/
|
|
67
|
+
var COLUMN_UNIT = 80;
|
|
68
|
+
/**
|
|
69
|
+
* Unit for grid gutter width (px)
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
var GUTTER_UNIT = 24; // TODO: Grid definition with breakpoint
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Calculate px occupied by the span of the columns with gutter gap
|
|
76
|
+
*
|
|
77
|
+
* @param span column span count
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
function columnSystem(span, column, gutter) {
|
|
81
|
+
return span * column + (span - 1) * gutter;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
var BORDER_RADIUS = {
|
|
85
|
+
/**
|
|
86
|
+
* 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)
|
|
87
|
+
*/
|
|
88
|
+
none: 0,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 用途: バッジ, 高さ40px以下の要素
|
|
92
|
+
*/
|
|
93
|
+
4: 4,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 用途: サムネイル
|
|
97
|
+
*/
|
|
98
|
+
8: 8,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 用途: チュートリアルツールチップ
|
|
102
|
+
*/
|
|
103
|
+
16: 16,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 用途: モーダル
|
|
107
|
+
*/
|
|
108
|
+
24: 24,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 真円 or 左右が丸まっている矩形 を作る時に用いる
|
|
112
|
+
*
|
|
113
|
+
* 用途: ボタン
|
|
114
|
+
*/
|
|
115
|
+
oval: 999999
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var _BREAKPOINT;
|
|
119
|
+
var HORIZONTAL_MIN_MARGIN = 72;
|
|
120
|
+
var BREAKPOINT = (_BREAKPOINT = {}, _BREAKPOINT[6] = columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[8] = columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[10] = columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT[12] = columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2, _BREAKPOINT);
|
|
121
|
+
|
|
122
|
+
export { BORDER_RADIUS, BREAKPOINT, COLUMN_UNIT, GUTTER_UNIT, HORIZONTAL_MIN_MARGIN, SPACING, TYPOGRAPHY_SIZE, TYPOGRAPHY_VARIANT, TYPOGRAPHY_WEIGHT, columnSystem };
|
|
2
123
|
//# sourceMappingURL=index.module.js.map
|
package/dist/index.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.js","sources":["../src/typography.ts","../src/spacing.ts","../src/grid.ts","../src/border-radius.ts","../src/breakpoint.ts"],"sourcesContent":["export interface TypographyDescriptor {\n readonly lineHeight: number\n readonly fontSize: number\n}\n\nexport const TYPOGRAPHY_SIZE = {\n 12: {\n fontSize: 12,\n lineHeight: 20,\n },\n 14: {\n fontSize: 14,\n lineHeight: 22,\n },\n 16: {\n fontSize: 16,\n lineHeight: 24,\n },\n 20: {\n fontSize: 20,\n lineHeight: 28,\n },\n 32: {\n fontSize: 32,\n lineHeight: 40,\n },\n} as const\n\nexport const TYPOGRAPHY_WEIGHT = [\n /**\n * Regular font weight\n *\n * <font-weight-absolute> ~ 400\n *\n * It should be the **DEFAULT** weight\n */\n 'regular',\n /**\n * Bolder than `regular` weight\n *\n * <font-weight-absolute> ~ 700\n */\n 'bold',\n] as const\n\nexport const TYPOGRAPHY_VARIANT = [\n /**\n * Proportional font (which has the variable amount of horizontal space)\n *\n * It should be the **DEFAULT** variant\n */\n 'proportional',\n /**\n * Monospaced font (which has the same amount of horizontal space)\n */\n 'monospace',\n] as const\n","export const SPACING = {\n 0: 0,\n 4: 4,\n 8: 8,\n 16: 16,\n 24: 24,\n 40: 40,\n 64: 64,\n 104: 104,\n 168: 168,\n 272: 272,\n 440: 440,\n} as const\n","/**\n * Unit for grid column (px)\n */\nexport const COLUMN_UNIT = 80\n\n/**\n * Unit for grid gutter width (px)\n */\nexport const GUTTER_UNIT = 24\n\n// TODO: Grid definition with breakpoint\n\n/**\n * Calculate px occupied by the span of the columns with gutter gap\n *\n * @param span column span count\n */\nexport function columnSystem(span: number, column: number, gutter: number) {\n return span * column + (span - 1) * gutter\n}\n","export const BORDER_RADIUS = {\n /**\n * 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)\n */\n none: 0,\n /**\n * 用途: バッジ, 高さ40px以下の要素\n */\n 4: 4,\n /**\n * 用途: サムネイル\n */\n 8: 8,\n /**\n * 用途: チュートリアルツールチップ\n */\n 16: 16,\n /**\n * 用途: モーダル\n */\n 24: 24,\n /**\n * 真円 or 左右が丸まっている矩形 を作る時に用いる\n *\n * 用途: ボタン\n */\n oval: 999999,\n} as const\n","import { COLUMN_UNIT, GUTTER_UNIT, columnSystem } from './grid'\n\nexport const HORIZONTAL_MIN_MARGIN = 72\n\nexport const BREAKPOINT = {\n [6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n} as const\n"],"names":["TYPOGRAPHY_SIZE","fontSize","lineHeight","TYPOGRAPHY_WEIGHT","TYPOGRAPHY_VARIANT","SPACING","COLUMN_UNIT","GUTTER_UNIT","columnSystem","span","column","gutter","BORDER_RADIUS","none","oval","HORIZONTAL_MIN_MARGIN","BREAKPOINT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/typography.ts","../src/spacing.ts","../src/grid.ts","../src/border-radius.ts","../src/breakpoint.ts"],"sourcesContent":["export interface TypographyDescriptor {\n readonly lineHeight: number\n readonly fontSize: number\n}\n\nexport const TYPOGRAPHY_SIZE = {\n 12: {\n fontSize: 12,\n lineHeight: 20,\n },\n 14: {\n fontSize: 14,\n lineHeight: 22,\n },\n 16: {\n fontSize: 16,\n lineHeight: 24,\n },\n 20: {\n fontSize: 20,\n lineHeight: 28,\n },\n 32: {\n fontSize: 32,\n lineHeight: 40,\n },\n} as const\n\nexport const TYPOGRAPHY_WEIGHT = [\n /**\n * Regular font weight\n *\n * <font-weight-absolute> ~ 400\n *\n * It should be the **DEFAULT** weight\n */\n 'regular',\n /**\n * Bolder than `regular` weight\n *\n * <font-weight-absolute> ~ 700\n */\n 'bold',\n] as const\n\nexport const TYPOGRAPHY_VARIANT = [\n /**\n * Proportional font (which has the variable amount of horizontal space)\n *\n * It should be the **DEFAULT** variant\n */\n 'proportional',\n /**\n * Monospaced font (which has the same amount of horizontal space)\n */\n 'monospace',\n] as const\n","export const SPACING = {\n 0: 0,\n 4: 4,\n 8: 8,\n 16: 16,\n 24: 24,\n 40: 40,\n 64: 64,\n 104: 104,\n 168: 168,\n 272: 272,\n 440: 440,\n} as const\n","/**\n * Unit for grid column (px)\n */\nexport const COLUMN_UNIT = 80\n\n/**\n * Unit for grid gutter width (px)\n */\nexport const GUTTER_UNIT = 24\n\n// TODO: Grid definition with breakpoint\n\n/**\n * Calculate px occupied by the span of the columns with gutter gap\n *\n * @param span column span count\n */\nexport function columnSystem(span: number, column: number, gutter: number) {\n return span * column + (span - 1) * gutter\n}\n","export const BORDER_RADIUS = {\n /**\n * 用途: 打ち消し用(モバイルのときに角丸じゃなくなる、などを表現する)\n */\n none: 0,\n /**\n * 用途: バッジ, 高さ40px以下の要素\n */\n 4: 4,\n /**\n * 用途: サムネイル\n */\n 8: 8,\n /**\n * 用途: チュートリアルツールチップ\n */\n 16: 16,\n /**\n * 用途: モーダル\n */\n 24: 24,\n /**\n * 真円 or 左右が丸まっている矩形 を作る時に用いる\n *\n * 用途: ボタン\n */\n oval: 999999,\n} as const\n","import { COLUMN_UNIT, GUTTER_UNIT, columnSystem } from './grid'\n\nexport const HORIZONTAL_MIN_MARGIN = 72\n\nexport const BREAKPOINT = {\n [6]: columnSystem(6, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [8]: columnSystem(8, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [10]: columnSystem(10, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n [12]: columnSystem(12, COLUMN_UNIT, GUTTER_UNIT) + HORIZONTAL_MIN_MARGIN * 2,\n} as const\n"],"names":["TYPOGRAPHY_SIZE","fontSize","lineHeight","TYPOGRAPHY_WEIGHT","TYPOGRAPHY_VARIANT","SPACING","COLUMN_UNIT","GUTTER_UNIT","columnSystem","span","column","gutter","BORDER_RADIUS","none","oval","HORIZONTAL_MIN_MARGIN","BREAKPOINT"],"mappings":"IAKaA,eAAe,GAAG;AAC7B,MAAI;AACFC,IAAAA,QAAQ,EAAE,EADR;AAEFC,IAAAA,UAAU,EAAE;AAFV,GADyB;AAK7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AAiBC,WAAjB,CAAZ,GAA4CQ,qBAAqB,GAAG,CADpD,cAEpB,CAFoB,IAEhBP,YAAY,CAAC,CAAD,EAAIF,WAAJ,EAAiBC,WAAjB,CAAZ,GAA4CQ,qBAAqB,GAAG,CAFpD,cAGpB,EAHoB,IAGfP,YAAY,CAAC,EAAD,EAAKF,WAAL,EAAkBC,WAAlB,CAAZ,GAA6CQ,qBAAqB,GAAG,CAHtD,cAIpB,EAJoB,IAIfP,YAAY,CAAC,EAAD,EAAKF,WAAL,EAAkBC,WAAlB,CAAZ,GAA6CQ,qBAAqB,GAAG,CAJtD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charcoal-ui/foundation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-alpha.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"sideEffects": false,
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "microbundle -f modern,esm,cjs --tsconfig tsconfig.build.json",
|
|
16
|
+
"build": "microbundle --compress=false -f modern,esm,cjs --tsconfig tsconfig.build.json",
|
|
17
17
|
"typecheck": "tsc --noEmit --project tsconfig.build.json",
|
|
18
18
|
"clean": "rimraf dist"
|
|
19
19
|
},
|
|
@@ -30,5 +30,10 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/pixiv/charcoal.git",
|
|
36
|
+
"directory": "packages/foundation"
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "efd5bf6b562b990b66aa406811df73eee37b2be5"
|
|
34
39
|
}
|