@remember-web/mixin 0.1.14 → 0.2.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.
Files changed (42) hide show
  1. package/dist/src/colors/theme.cjs.js +2 -0
  2. package/dist/src/colors/theme.cjs.js.map +1 -1
  3. package/dist/src/colors/theme.d.ts.map +1 -1
  4. package/dist/src/colors/theme.esm.js +2 -0
  5. package/dist/src/colors/theme.esm.js.map +1 -1
  6. package/dist/src/colors/utils.cjs.js +1 -1
  7. package/dist/src/colors/utils.cjs.js.map +1 -1
  8. package/dist/src/colors/utils.d.ts.map +1 -1
  9. package/dist/src/colors/utils.esm.js +1 -1
  10. package/dist/src/colors/utils.esm.js.map +1 -1
  11. package/dist/src/colors/variables.cjs.js +2 -0
  12. package/dist/src/colors/variables.cjs.js.map +1 -1
  13. package/dist/src/colors/variables.d.ts +1 -0
  14. package/dist/src/colors/variables.d.ts.map +1 -1
  15. package/dist/src/colors/variables.esm.js +2 -1
  16. package/dist/src/colors/variables.esm.js.map +1 -1
  17. package/dist/src/index.cjs.js +1 -0
  18. package/dist/src/index.cjs.js.map +1 -1
  19. package/dist/src/index.esm.js +1 -1
  20. package/dist/src/provider/styles.cjs.js +1 -1
  21. package/dist/src/provider/styles.cjs.js.map +1 -1
  22. package/dist/src/provider/styles.d.ts.map +1 -1
  23. package/dist/src/provider/styles.esm.js +1 -1
  24. package/dist/src/provider/styles.esm.js.map +1 -1
  25. package/dist/src/typography/const.cjs.js +71 -34
  26. package/dist/src/typography/const.cjs.js.map +1 -1
  27. package/dist/src/typography/const.d.ts +69 -34
  28. package/dist/src/typography/const.d.ts.map +1 -1
  29. package/dist/src/typography/const.esm.js +71 -34
  30. package/dist/src/typography/const.esm.js.map +1 -1
  31. package/dist/src/typography/utils.cjs.js +1 -1
  32. package/dist/src/typography/utils.cjs.js.map +1 -1
  33. package/dist/src/typography/utils.esm.js +1 -1
  34. package/dist/src/typography/utils.esm.js.map +1 -1
  35. package/package.json +2 -5
  36. package/src/colors/color.stories.tsx +2 -3
  37. package/src/colors/theme.ts +2 -0
  38. package/src/colors/utils.ts +2 -2
  39. package/src/colors/variables.ts +1 -0
  40. package/src/provider/styles.ts +1 -1
  41. package/src/typography/const.ts +71 -34
  42. package/src/typography/utils.ts +1 -1
@@ -1,97 +1,132 @@
1
1
  export declare const TYPOGRAPHY_STYLES: {
2
+ readonly Display1: {
3
+ readonly fontSize: 48;
4
+ readonly lineHeight: 1.3;
5
+ readonly fontWeight: 700;
6
+ };
7
+ readonly Display2: {
8
+ readonly fontSize: 40;
9
+ readonly lineHeight: 1.3;
10
+ readonly fontWeight: 700;
11
+ };
12
+ readonly Display3: {
13
+ readonly fontSize: 32;
14
+ readonly lineHeight: 1.3;
15
+ readonly fontWeight: 700;
16
+ };
2
17
  readonly Headline: {
3
18
  readonly fontSize: 24;
4
- readonly lineHeight: 34;
19
+ readonly lineHeight: 1.3;
5
20
  readonly fontWeight: 600;
6
21
  };
7
22
  readonly Title1: {
8
23
  readonly fontSize: 20;
9
- readonly lineHeight: 26;
24
+ readonly lineHeight: 1.3;
10
25
  readonly fontWeight: 600;
11
26
  };
12
- readonly Display: {
27
+ readonly Title2: {
28
+ readonly fontSize: 18;
29
+ readonly lineHeight: 1.3;
30
+ readonly fontWeight: 600;
31
+ };
32
+ readonly Subtitle1: {
33
+ readonly fontSize: 16;
34
+ readonly lineHeight: 1.3;
35
+ readonly fontWeight: 500;
36
+ };
37
+ readonly Subtitle2: {
38
+ readonly fontSize: 14;
39
+ readonly lineHeight: 1.3;
40
+ readonly fontWeight: 500;
41
+ };
42
+ readonly DisplayBody: {
13
43
  readonly fontSize: 20;
14
- readonly lineHeight: 26;
44
+ readonly lineHeight: 1.45;
15
45
  readonly fontWeight: 400;
16
46
  };
17
- readonly Title2: {
47
+ readonly ArticleBody: {
48
+ readonly fontSize: 18;
49
+ readonly lineHeight: 1.45;
50
+ readonly fontWeight: 400;
51
+ };
52
+ readonly ArticleBodyReading: {
53
+ readonly fontSize: 18;
54
+ readonly lineHeight: 1.55;
55
+ readonly fontWeight: 400;
56
+ };
57
+ readonly Body1: {
18
58
  readonly fontSize: 16;
19
- readonly lineHeight: 26;
20
- readonly fontWeight: 600;
59
+ readonly lineHeight: 1.45;
60
+ readonly fontWeight: 400;
21
61
  };
22
- readonly ArticleBody: {
62
+ readonly Body1Reading: {
23
63
  readonly fontSize: 16;
24
- readonly lineHeight: 26;
64
+ readonly lineHeight: 1.6;
25
65
  readonly fontWeight: 400;
26
66
  };
27
- readonly Subtitle1: {
67
+ readonly Body2: {
28
68
  readonly fontSize: 14;
29
- readonly lineHeight: 24;
30
- readonly fontWeight: 600;
69
+ readonly lineHeight: 1.45;
70
+ readonly fontWeight: 400;
31
71
  };
32
- readonly Body1: {
72
+ readonly Body2Reading: {
33
73
  readonly fontSize: 14;
34
- readonly lineHeight: 24;
74
+ readonly lineHeight: 1.6;
35
75
  readonly fontWeight: 400;
36
76
  };
37
- readonly Subtitle2: {
38
- readonly fontSize: 12;
39
- readonly lineHeight: 19;
40
- readonly fontWeight: 600;
41
- };
42
- readonly Body2: {
77
+ readonly Caption1: {
43
78
  readonly fontSize: 12;
44
- readonly lineHeight: 19;
45
- readonly fontWeight: 400;
79
+ readonly lineHeight: 1.35;
80
+ readonly fontWeight: 500;
46
81
  };
47
- readonly Caption: {
82
+ readonly Caption2: {
48
83
  readonly fontSize: 10;
49
- readonly lineHeight: 14;
50
- readonly fontWeight: 600;
84
+ readonly lineHeight: 1.35;
85
+ readonly fontWeight: 500;
51
86
  };
52
87
  readonly Headline2_B: {
53
88
  readonly fontSize: 24;
54
- readonly lineHeight: 34;
89
+ readonly lineHeight: "34px";
55
90
  readonly fontWeight: 600;
56
91
  };
57
92
  readonly Headline3_B: {
58
93
  readonly fontSize: 20;
59
- readonly lineHeight: 26;
94
+ readonly lineHeight: "26px";
60
95
  readonly fontWeight: 600;
61
96
  };
62
97
  readonly Headline4_B: {
63
98
  readonly fontSize: 16;
64
- readonly lineHeight: 26;
99
+ readonly lineHeight: "26px";
65
100
  readonly fontWeight: 600;
66
101
  };
67
102
  readonly Headline4_M: {
68
103
  readonly fontSize: 16;
69
- readonly lineHeight: 26;
104
+ readonly lineHeight: "26px";
70
105
  readonly fontWeight: 400;
71
106
  };
72
107
  readonly Body1_B: {
73
108
  readonly fontSize: 14;
74
- readonly lineHeight: 24;
109
+ readonly lineHeight: "24px";
75
110
  readonly fontWeight: 600;
76
111
  };
77
112
  readonly Body1_M: {
78
113
  readonly fontSize: 14;
79
- readonly lineHeight: 24;
114
+ readonly lineHeight: "24px";
80
115
  readonly fontWeight: 400;
81
116
  };
82
117
  readonly Body2_B: {
83
118
  readonly fontSize: 12;
84
- readonly lineHeight: 19;
119
+ readonly lineHeight: "19px";
85
120
  readonly fontWeight: 600;
86
121
  };
87
122
  readonly Body2_M: {
88
123
  readonly fontSize: 12;
89
- readonly lineHeight: 19;
124
+ readonly lineHeight: "19px";
90
125
  readonly fontWeight: 400;
91
126
  };
92
127
  readonly Caption_B: {
93
128
  readonly fontSize: 10;
94
- readonly lineHeight: 14;
129
+ readonly lineHeight: "14px";
95
130
  readonly fontWeight: 600;
96
131
  };
97
132
  };
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/typography/const.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB,iOAC6L,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/typography/const.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB,iOAC6L,CAAC"}
@@ -7,100 +7,137 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  var LEGACY_TYPOGRAPHY_STYLES = {
8
8
  Headline2_B: {
9
9
  fontSize: 24,
10
- lineHeight: 34,
10
+ lineHeight: '34px',
11
11
  fontWeight: 600
12
12
  },
13
13
  Headline3_B: {
14
14
  fontSize: 20,
15
- lineHeight: 26,
15
+ lineHeight: '26px',
16
16
  fontWeight: 600
17
17
  },
18
18
  Headline4_B: {
19
19
  fontSize: 16,
20
- lineHeight: 26,
20
+ lineHeight: '26px',
21
21
  fontWeight: 600
22
22
  },
23
23
  Headline4_M: {
24
24
  fontSize: 16,
25
- lineHeight: 26,
25
+ lineHeight: '26px',
26
26
  fontWeight: 400
27
27
  },
28
28
  Body1_B: {
29
29
  fontSize: 14,
30
- lineHeight: 24,
30
+ lineHeight: '24px',
31
31
  fontWeight: 600
32
32
  },
33
33
  Body1_M: {
34
34
  fontSize: 14,
35
- lineHeight: 24,
35
+ lineHeight: '24px',
36
36
  fontWeight: 400
37
37
  },
38
38
  Body2_B: {
39
39
  fontSize: 12,
40
- lineHeight: 19,
40
+ lineHeight: '19px',
41
41
  fontWeight: 600
42
42
  },
43
43
  Body2_M: {
44
44
  fontSize: 12,
45
- lineHeight: 19,
45
+ lineHeight: '19px',
46
46
  fontWeight: 400
47
47
  },
48
48
  Caption_B: {
49
49
  fontSize: 10,
50
- lineHeight: 14,
50
+ lineHeight: '14px',
51
51
  fontWeight: 600
52
52
  }
53
53
  };
54
54
  var TYPOGRAPHY_STYLES = _objectSpread(_objectSpread({}, LEGACY_TYPOGRAPHY_STYLES), {}, {
55
+ // Title Style
56
+ Display1: {
57
+ fontSize: 48,
58
+ lineHeight: 1.3,
59
+ fontWeight: 700
60
+ },
61
+ Display2: {
62
+ fontSize: 40,
63
+ lineHeight: 1.3,
64
+ fontWeight: 700
65
+ },
66
+ Display3: {
67
+ fontSize: 32,
68
+ lineHeight: 1.3,
69
+ fontWeight: 700
70
+ },
55
71
  Headline: {
56
72
  fontSize: 24,
57
- lineHeight: 34,
73
+ lineHeight: 1.3,
58
74
  fontWeight: 600
59
75
  },
60
76
  Title1: {
61
77
  fontSize: 20,
62
- lineHeight: 26,
78
+ lineHeight: 1.3,
79
+ fontWeight: 600
80
+ },
81
+ Title2: {
82
+ fontSize: 18,
83
+ lineHeight: 1.3,
63
84
  fontWeight: 600
64
85
  },
65
- Display: {
86
+ Subtitle1: {
87
+ fontSize: 16,
88
+ lineHeight: 1.3,
89
+ fontWeight: 500
90
+ },
91
+ Subtitle2: {
92
+ fontSize: 14,
93
+ lineHeight: 1.3,
94
+ fontWeight: 500
95
+ },
96
+ // Body Style
97
+ DisplayBody: {
66
98
  fontSize: 20,
67
- lineHeight: 26,
99
+ lineHeight: 1.45,
68
100
  fontWeight: 400
69
101
  },
70
- Title2: {
102
+ ArticleBody: {
103
+ fontSize: 18,
104
+ lineHeight: 1.45,
105
+ fontWeight: 400
106
+ },
107
+ ArticleBodyReading: {
108
+ fontSize: 18,
109
+ lineHeight: 1.55,
110
+ fontWeight: 400
111
+ },
112
+ Body1: {
71
113
  fontSize: 16,
72
- lineHeight: 26,
73
- fontWeight: 600
114
+ lineHeight: 1.45,
115
+ fontWeight: 400
74
116
  },
75
- ArticleBody: {
117
+ Body1Reading: {
76
118
  fontSize: 16,
77
- lineHeight: 26,
119
+ lineHeight: 1.6,
78
120
  fontWeight: 400
79
121
  },
80
- Subtitle1: {
122
+ Body2: {
81
123
  fontSize: 14,
82
- lineHeight: 24,
83
- fontWeight: 600
124
+ lineHeight: 1.45,
125
+ fontWeight: 400
84
126
  },
85
- Body1: {
127
+ Body2Reading: {
86
128
  fontSize: 14,
87
- lineHeight: 24,
129
+ lineHeight: 1.6,
88
130
  fontWeight: 400
89
131
  },
90
- Subtitle2: {
91
- fontSize: 12,
92
- lineHeight: 19,
93
- fontWeight: 600
94
- },
95
- Body2: {
132
+ Caption1: {
96
133
  fontSize: 12,
97
- lineHeight: 19,
98
- fontWeight: 400
134
+ lineHeight: 1.35,
135
+ fontWeight: 500
99
136
  },
100
- Caption: {
137
+ Caption2: {
101
138
  fontSize: 10,
102
- lineHeight: 14,
103
- fontWeight: 600
139
+ lineHeight: 1.35,
140
+ fontWeight: 500
104
141
  }
105
142
  });
106
143
 
@@ -1 +1 @@
1
- {"version":3,"file":"const.esm.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\n\nconst LEGACY_TYPOGRAPHY_STYLES = {\n Headline2_B: {\n fontSize: 24,\n lineHeight: 34,\n fontWeight: 600,\n },\n Headline3_B: {\n fontSize: 20,\n lineHeight: 26,\n fontWeight: 600,\n },\n Headline4_B: {\n fontSize: 16,\n lineHeight: 26,\n fontWeight: 600,\n },\n Headline4_M: {\n fontSize: 16,\n lineHeight: 26,\n fontWeight: 400,\n },\n Body1_B: {\n fontSize: 14,\n lineHeight: 24,\n fontWeight: 600,\n },\n Body1_M: {\n fontSize: 14,\n lineHeight: 24,\n fontWeight: 400,\n },\n Body2_B: {\n fontSize: 12,\n lineHeight: 19,\n fontWeight: 600,\n },\n Body2_M: {\n fontSize: 12,\n lineHeight: 19,\n fontWeight: 400,\n },\n Caption_B: {\n fontSize: 10,\n lineHeight: 14,\n fontWeight: 600,\n },\n} as const;\n\nexport const TYPOGRAPHY_STYLES = {\n ...LEGACY_TYPOGRAPHY_STYLES,\n Headline: {\n fontSize: 24,\n lineHeight: 34,\n fontWeight: 600,\n },\n Title1: {\n fontSize: 20,\n lineHeight: 26,\n fontWeight: 600,\n },\n Display: {\n fontSize: 20,\n lineHeight: 26,\n fontWeight: 400,\n },\n Title2: {\n fontSize: 16,\n lineHeight: 26,\n fontWeight: 600,\n },\n ArticleBody: {\n fontSize: 16,\n lineHeight: 26,\n fontWeight: 400,\n },\n Subtitle1: {\n fontSize: 14,\n lineHeight: 24,\n fontWeight: 600,\n },\n Body1: {\n fontSize: 14,\n lineHeight: 24,\n fontWeight: 400,\n },\n Subtitle2: {\n fontSize: 12,\n lineHeight: 19,\n fontWeight: 600,\n },\n Body2: {\n fontSize: 12,\n lineHeight: 19,\n fontWeight: 400,\n },\n Caption: {\n fontSize: 10,\n lineHeight: 14,\n fontWeight: 600,\n },\n} as const;\n\n/**\n * {@link https://github.com/orioncactus/pretendard#html-1}\n */\nexport const PRETENDARD_FONT_FAMILY =\n \"Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif\";\n"],"names":["LEGACY_TYPOGRAPHY_STYLES","Headline2_B","fontSize","lineHeight","fontWeight","Headline3_B","Headline4_B","Headline4_M","Body1_B","Body1_M","Body2_B","Body2_M","Caption_B","TYPOGRAPHY_STYLES","_objectSpread","Headline","Title1","Display","Title2","ArticleBody","Subtitle1","Body1","Subtitle2","Body2","Caption","PRETENDARD_FONT_FAMILY"],"mappings":";;;;AAAA;;AAEA,IAAMA,wBAAwB,GAAG;AAC/BC,EAAAA,WAAW,EAAE;AACXC,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDC,EAAAA,WAAW,EAAE;AACXH,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDE,EAAAA,WAAW,EAAE;AACXJ,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDG,EAAAA,WAAW,EAAE;AACXL,IAAAA,QAAQ,EAAE,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AAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDe,EAAAA,WAAW,EAAE;AACXjB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDgB,EAAAA,SAAS,EAAE;AACTlB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDiB,EAAAA,KAAK,EAAE;AACLnB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDkB,EAAAA,SAAS,EAAE;AACTpB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDmB,EAAAA,KAAK,EAAE;AACLrB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDoB,EAAAA,OAAO,EAAE;AACPtB,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,EAAE;AACdC,IAAAA,UAAU,EAAE,GAAA;AACd,GAAA;AAAC,CACO,EAAA;;AAEV;AACA;AACA;AACO,IAAMqB,sBAAsB,GACjC;;;;"}
1
+ {"version":3,"file":"const.esm.js","sources":["../../../src/typography/const.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\n\nconst LEGACY_TYPOGRAPHY_STYLES = {\n Headline2_B: {\n fontSize: 24,\n lineHeight: '34px',\n fontWeight: 600,\n },\n Headline3_B: {\n fontSize: 20,\n lineHeight: '26px',\n fontWeight: 600,\n },\n Headline4_B: {\n fontSize: 16,\n lineHeight: '26px',\n fontWeight: 600,\n },\n Headline4_M: {\n fontSize: 16,\n lineHeight: '26px',\n fontWeight: 400,\n },\n Body1_B: {\n fontSize: 14,\n lineHeight: '24px',\n fontWeight: 600,\n },\n Body1_M: {\n fontSize: 14,\n lineHeight: '24px',\n fontWeight: 400,\n },\n Body2_B: {\n fontSize: 12,\n lineHeight: '19px',\n fontWeight: 600,\n },\n Body2_M: {\n fontSize: 12,\n lineHeight: '19px',\n fontWeight: 400,\n },\n Caption_B: {\n fontSize: 10,\n lineHeight: '14px',\n fontWeight: 600,\n },\n} as const;\n\nexport const TYPOGRAPHY_STYLES = {\n ...LEGACY_TYPOGRAPHY_STYLES,\n // Title Style\n Display1: {\n fontSize: 48,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n Display2: {\n fontSize: 40,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n Display3: {\n fontSize: 32,\n lineHeight: 1.3,\n fontWeight: 700,\n },\n Headline: {\n fontSize: 24,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title1: {\n fontSize: 20,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Title2: {\n fontSize: 18,\n lineHeight: 1.3,\n fontWeight: 600,\n },\n Subtitle1: {\n fontSize: 16,\n lineHeight: 1.3,\n fontWeight: 500,\n },\n Subtitle2: {\n fontSize: 14,\n lineHeight: 1.3,\n fontWeight: 500,\n },\n // Body Style\n DisplayBody: {\n fontSize: 20,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n ArticleBody: {\n fontSize: 18,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n ArticleBodyReading: {\n fontSize: 18,\n lineHeight: 1.55,\n fontWeight: 400,\n },\n Body1: {\n fontSize: 16,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n Body1Reading: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n Body2: {\n fontSize: 14,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n Body2Reading: {\n fontSize: 14,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n Caption1: {\n fontSize: 12,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n Caption2: {\n fontSize: 10,\n lineHeight: 1.35,\n fontWeight: 500,\n },\n} as const;\n\n/**\n * {@link https://github.com/orioncactus/pretendard#html-1}\n */\nexport const PRETENDARD_FONT_FAMILY =\n \"Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif\";\n"],"names":["LEGACY_TYPOGRAPHY_STYLES","Headline2_B","fontSize","lineHeight","fontWeight","Headline3_B","Headline4_B","Headline4_M","Body1_B","Body1_M","Body2_B","Body2_M","Caption_B","TYPOGRAPHY_STYLES","_objectSpread","Display1","Display2","Display3","Headline","Title1","Title2","Subtitle1","Subtitle2","DisplayBody","ArticleBody","ArticleBodyReading","Body1","Body1Reading","Body2","Body2Reading","Caption1","Caption2","PRETENDARD_FONT_FAMILY"],"mappings":";;;;AAAA;;AAEA,IAAMA,wBAAwB,GAAG;AAC/BC,EAAAA,WAAW,EAAE;AACXC,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,MAAM;AAClBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDC,EAAAA,WAAW,EAAE;AACXH,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,MAAM;AAClBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDE,EAAAA,WAAW,EAAE;AACXJ,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,MAAM;AAClBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDG,EAAAA,WAAW,EAAE;AACXL,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,MAAM;AAClBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACDI,EAAAA,OAAO,EAAE;AACPN,IAAAA,QAAQ,EAAE,EAAE;AAC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AAE,GAAA;GACb;AACDyB,EAAAA,YAAY,EAAE;AACZ3B,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,GAAG;AACfC,IAAAA,UAAU,EAAE,GAAA;GACb;AACD0B,EAAAA,QAAQ,EAAE;AACR5B,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;GACb;AACD2B,EAAAA,QAAQ,EAAE;AACR7B,IAAAA,QAAQ,EAAE,EAAE;AACZC,IAAAA,UAAU,EAAE,IAAI;AAChBC,IAAAA,UAAU,EAAE,GAAA;AACd,GAAA;AAAC,CACO,EAAA;;AAEV;AACA;AACA;AACO,IAAM4B,sBAAsB,GACjC;;;;"}
@@ -19,7 +19,7 @@ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
19
19
  fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
20
20
  lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
21
21
  fontWeight = _TYPOGRAPHY_STYLES$ty.fontWeight;
22
- return styledComponents.css(_templateObject || (_templateObject = _taggedTemplateLiteral__default.default(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", "px;\n font-weight: ", ";\n "])), _const.PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
22
+ return styledComponents.css(_templateObject || (_templateObject = _taggedTemplateLiteral__default.default(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", ";\n font-weight: ", ";\n "])), _const.PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
23
23
  };
24
24
 
25
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.cjs.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}px;\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;;;"}
1
+ {"version":3,"file":"utils.cjs.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight};\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;;;"}
@@ -13,7 +13,7 @@ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
13
13
  fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
14
14
  lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
15
15
  fontWeight = _TYPOGRAPHY_STYLES$ty.fontWeight;
16
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", "px;\n font-weight: ", ";\n "])), PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
16
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: ", ";\n font-size: ", "px;\n line-height: ", ";\n font-weight: ", ";\n "])), PRETENDARD_FONT_FAMILY, fontSize, lineHeight, fontWeight);
17
17
  };
18
18
 
19
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.esm.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}px;\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;"}
1
+ {"version":3,"file":"utils.esm.js","sources":["../../../src/typography/utils.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\n\nimport { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './const';\nimport type { TypographyStyle } from './types';\n\n/**\n * 해당 스타일명에 해당하는 css 조각을 반환\n * @see TYPOGRAPHY_STYLES\n */\nexport const getTypographyStyles = (typographyStyle: TypographyStyle) => {\n const { fontSize, lineHeight, fontWeight } =\n TYPOGRAPHY_STYLES[typographyStyle];\n return css`\n font-family: ${PRETENDARD_FONT_FAMILY};\n font-size: ${fontSize}px;\n line-height: ${lineHeight};\n font-weight: ${fontWeight};\n `;\n};\n\n/**\n * 말줄임표 표시 (1줄)\n *\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n */\nexport const textEllipsis = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\n/**\n * 말줄임표 표시\n *\n * line = 1 인 경우, \\\n * white-space: nowrap; \\\n * overflow: hidden; \\\n * text-overflow: ellipsis;\n *\n * line > 1 인 경우, \\\n * overflow: hidden; \\\n * text-overflow: ellipsis; \\\n * display: -webkit-box; \\\n * -webkit-box-orient: vertical; \\\n * -webkit-line-clamp: ${line};\n */\nexport const ellipsis = (line = 1) => {\n if (line === 1) {\n return textEllipsis;\n }\n\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${line};\n `;\n};\n"],"names":[],"mappings":";;;;;AAAa;AAOb;AACA;AACA;AACA;;AAEE;;;;AAEA;AAMF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;AAMP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACsC;;AAElC;AACF;;AASF;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remember-web/mixin",
3
- "version": "0.1.14",
3
+ "version": "0.2.0",
4
4
  "description": "Remember Web Mixins",
5
5
  "homepage": "https://dramancompany.github.io/remember-web-packages/",
6
6
  "author": "Remember",
@@ -16,8 +16,7 @@
16
16
  "scripts": {
17
17
  "build": "rollup -c && yarn fix:dts-alias",
18
18
  "fix:dts-alias": "yarn tsc-alias -p tsconfig.alias.json",
19
- "type-check": "tsc -p ./tsconfig.cli.json",
20
- "lint": "eslint src --fix --ext .js,.jsx,.ts,.tsx --cache"
19
+ "type-check": "tsc -p ./tsconfig.cli.json"
21
20
  },
22
21
  "files": [
23
22
  "dist",
@@ -47,8 +46,6 @@
47
46
  "@rollup/plugin-babel": "^6.0.4",
48
47
  "@rollup/plugin-commonjs": "^25.0.7",
49
48
  "@rollup/plugin-node-resolve": "^15.2.3",
50
- "eslint": "^8.57.0",
51
- "eslint-config-rui": "workspace:*",
52
49
  "react": "^18.2.0",
53
50
  "rollup": "^4.14.1",
54
51
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -1,10 +1,10 @@
1
- import type { Meta } from '@storybook/react';
2
1
  import { useRUI } from '@remember-web/mixin';
3
2
  import { Grid, Typography } from '@remember-web/primitive';
3
+ import type { Meta } from '@storybook/react';
4
4
 
5
5
  import type { RUIColorVariable, ThemeType } from './types';
6
- import * as colors from './variables';
7
6
  import { getHexFromRuiCssVariable, getRgba } from './utils';
7
+ import * as colors from './variables';
8
8
 
9
9
  const meta = {
10
10
  title: 'Mixins/Colors',
@@ -43,7 +43,6 @@ const ColorChip = ({
43
43
 
44
44
  export const Overview = {
45
45
  render: () => {
46
- // eslint-disable-next-line react-hooks/rules-of-hooks
47
46
  const { currentTheme } = useRUI();
48
47
 
49
48
  return (
@@ -29,6 +29,7 @@ export const RUI_COLOR_THEME: RUIColorThemeType = {
29
29
  '--rui-bg-role-red': '#FFF5F5',
30
30
  '--rui-bg-secondary100': '#FFF4ED',
31
31
  '--rui-bg-highlight': '#FCF5DC',
32
+ '--rui-bg-tiny-highlight': '#FAEDC3',
32
33
  '--rui-bg-role-yellow': '#FFFDF5',
33
34
  '--rui-bg-role-blue': '#EDF4FF',
34
35
  '--rui-bg-role-green': '#D9FCF2',
@@ -62,6 +63,7 @@ export const RUI_COLOR_THEME: RUIColorThemeType = {
62
63
  '--rui-bg-role-red': '#381515',
63
64
  '--rui-bg-secondary100': '#331D0F',
64
65
  '--rui-bg-highlight': '#383015',
66
+ '--rui-bg-tiny-highlight': '#52451D',
65
67
  '--rui-bg-role-yellow': '#383015',
66
68
  '--rui-bg-role-blue': '#002861',
67
69
  '--rui-bg-role-green': '#15382E',
@@ -1,12 +1,12 @@
1
1
  import { isSSR } from '@remember-web/shared';
2
2
 
3
+ import { RUI_COLOR_THEME } from './theme';
3
4
  import type {
4
5
  ColorVariable,
5
6
  ColorVariableName,
6
7
  RUIColorVariable,
7
8
  ThemeType,
8
9
  } from './types';
9
- import { RUI_COLOR_THEME } from './theme';
10
10
 
11
11
  /** var(color)로 된 string을 color로 변경해줄 때 사용 */
12
12
  export function getColorVariableName<V extends string = string>(
@@ -44,7 +44,7 @@ export function hexToRgb(colorHex: string) {
44
44
 
45
45
  const [, r, g, b] = hexWithoutHash
46
46
  .split(/(..)(..)(..)/)
47
- .map((hex) => parseInt(hex, 16));
47
+ .map((hex) => Number.parseInt(hex, 16));
48
48
 
49
49
  return `${r},${g},${b}`;
50
50
  }
@@ -30,6 +30,7 @@ export const bgModal200 = 'var(--rui-bg-modal200)';
30
30
  export const bgRoleRed = 'var(--rui-bg-role-red)';
31
31
  export const bgSecondary100 = 'var(--rui-bg-secondary100)';
32
32
  export const bgHighlight = 'var(--rui-bg-highlight)';
33
+ export const bgTinyHighlight = 'var(--rui-bg-tiny-highlight)';
33
34
  export const bgRoleYellow = 'var(--rui-bg-role-yellow)';
34
35
  export const bgRoleBlue = 'var(--rui-bg-role-blue)';
35
36
  export const bgRoleGreen = 'var(--rui-bg-role-green)';
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { createGlobalStyle, css } from 'styled-components';
4
4
 
5
+ import { type ColorThemeType, type ThemeType, hexToRgb } from '@/colors';
5
6
  import { RUI_COLOR_THEME } from '@/colors/theme';
6
- import { hexToRgb, type ColorThemeType, type ThemeType } from '@/colors';
7
7
 
8
8
  export const RUIGlobalStyle = createGlobalStyle<{
9
9
  customMixins?: ColorThemeType;