@remember-web/mixin 0.1.11 → 0.1.13

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 (77) hide show
  1. package/dist/mixin/src/colors/index.d.ts +4 -0
  2. package/dist/mixin/src/colors/index.d.ts.map +1 -0
  3. package/dist/mixin/src/colors/theme.cjs.js +76 -0
  4. package/dist/mixin/src/colors/theme.cjs.js.map +1 -0
  5. package/dist/mixin/src/colors/theme.d.ts +6 -0
  6. package/dist/mixin/src/colors/theme.d.ts.map +1 -0
  7. package/dist/mixin/src/colors/theme.esm.js +74 -0
  8. package/dist/mixin/src/colors/theme.esm.js.map +1 -0
  9. package/dist/mixin/src/colors/types.d.ts +21 -0
  10. package/dist/mixin/src/colors/types.d.ts.map +1 -0
  11. package/dist/mixin/src/colors/utils.cjs.js +73 -0
  12. package/dist/mixin/src/colors/utils.cjs.js.map +1 -0
  13. package/dist/mixin/src/colors/utils.d.ts +21 -0
  14. package/dist/mixin/src/colors/utils.d.ts.map +1 -0
  15. package/dist/mixin/src/colors/utils.esm.js +61 -0
  16. package/dist/mixin/src/colors/utils.esm.js.map +1 -0
  17. package/dist/mixin/src/colors/variables.cjs.js +78 -0
  18. package/dist/mixin/src/colors/variables.cjs.js.map +1 -0
  19. package/dist/mixin/src/colors/variables.d.ts +32 -0
  20. package/dist/mixin/src/colors/variables.d.ts.map +1 -0
  21. package/dist/mixin/src/colors/variables.esm.js +46 -0
  22. package/dist/mixin/src/colors/variables.esm.js.map +1 -0
  23. package/dist/mixin/src/index.cjs.js +63 -0
  24. package/dist/mixin/src/index.cjs.js.map +1 -0
  25. package/dist/mixin/src/index.d.ts +5 -0
  26. package/dist/mixin/src/index.d.ts.map +1 -0
  27. package/dist/mixin/src/index.esm.js +8 -0
  28. package/dist/mixin/src/index.esm.js.map +1 -0
  29. package/dist/mixin/src/mediaQuery/const.cjs.js +8 -0
  30. package/dist/mixin/src/mediaQuery/const.cjs.js.map +1 -0
  31. package/dist/mixin/src/mediaQuery/const.d.ts +3 -0
  32. package/dist/mixin/src/mediaQuery/const.d.ts.map +1 -0
  33. package/dist/mixin/src/mediaQuery/const.esm.js +5 -0
  34. package/dist/mixin/src/mediaQuery/const.esm.js.map +1 -0
  35. package/dist/mixin/src/mediaQuery/index.cjs.js +43 -0
  36. package/dist/mixin/src/mediaQuery/index.cjs.js.map +1 -0
  37. package/dist/mixin/src/mediaQuery/index.d.ts +10 -0
  38. package/dist/mixin/src/mediaQuery/index.d.ts.map +1 -0
  39. package/dist/mixin/src/mediaQuery/index.esm.js +32 -0
  40. package/dist/mixin/src/mediaQuery/index.esm.js.map +1 -0
  41. package/dist/mixin/src/provider/index.cjs.js +43 -0
  42. package/dist/mixin/src/provider/index.cjs.js.map +1 -0
  43. package/dist/mixin/src/provider/index.d.ts +18 -0
  44. package/dist/mixin/src/provider/index.d.ts.map +1 -0
  45. package/dist/mixin/src/provider/index.esm.js +40 -0
  46. package/dist/mixin/src/provider/index.esm.js.map +1 -0
  47. package/dist/mixin/src/provider/styles.cjs.js +43 -0
  48. package/dist/mixin/src/provider/styles.cjs.js.map +1 -0
  49. package/dist/mixin/src/provider/styles.d.ts +7 -0
  50. package/dist/mixin/src/provider/styles.d.ts.map +1 -0
  51. package/dist/mixin/src/provider/styles.esm.js +35 -0
  52. package/dist/mixin/src/provider/styles.esm.js.map +1 -0
  53. package/dist/mixin/src/typography/const.cjs.js +120 -0
  54. package/dist/mixin/src/typography/const.cjs.js.map +1 -0
  55. package/dist/mixin/src/typography/const.d.ts +102 -0
  56. package/dist/mixin/src/typography/const.d.ts.map +1 -0
  57. package/dist/mixin/src/typography/const.esm.js +113 -0
  58. package/dist/mixin/src/typography/const.esm.js.map +1 -0
  59. package/dist/mixin/src/typography/index.d.ts +4 -0
  60. package/dist/mixin/src/typography/index.d.ts.map +1 -0
  61. package/dist/mixin/src/typography/types.d.ts +3 -0
  62. package/dist/mixin/src/typography/types.d.ts.map +1 -0
  63. package/dist/mixin/src/typography/utils.cjs.js +60 -0
  64. package/dist/mixin/src/typography/utils.cjs.js.map +1 -0
  65. package/dist/mixin/src/typography/utils.d.ts +31 -0
  66. package/dist/mixin/src/typography/utils.d.ts.map +1 -0
  67. package/dist/mixin/src/typography/utils.esm.js +52 -0
  68. package/dist/mixin/src/typography/utils.esm.js.map +1 -0
  69. package/dist/shared/utils/common.cjs.js +8 -0
  70. package/dist/shared/utils/common.cjs.js.map +1 -0
  71. package/dist/shared/utils/common.d.ts +3 -0
  72. package/dist/shared/utils/common.d.ts.map +1 -0
  73. package/dist/shared/utils/common.esm.js +6 -0
  74. package/dist/shared/utils/common.esm.js.map +1 -0
  75. package/package.json +3 -4
  76. package/src/colors/color.stories.tsx +67 -0
  77. package/src/provider/index.tsx +1 -1
@@ -0,0 +1,102 @@
1
+ export declare const TYPOGRAPHY_STYLES: {
2
+ readonly Headline: {
3
+ readonly fontSize: 24;
4
+ readonly lineHeight: 34;
5
+ readonly fontWeight: 600;
6
+ };
7
+ readonly Title1: {
8
+ readonly fontSize: 20;
9
+ readonly lineHeight: 26;
10
+ readonly fontWeight: 600;
11
+ };
12
+ readonly Display: {
13
+ readonly fontSize: 20;
14
+ readonly lineHeight: 26;
15
+ readonly fontWeight: 400;
16
+ };
17
+ readonly Title2: {
18
+ readonly fontSize: 16;
19
+ readonly lineHeight: 26;
20
+ readonly fontWeight: 600;
21
+ };
22
+ readonly ArticleBody: {
23
+ readonly fontSize: 16;
24
+ readonly lineHeight: 26;
25
+ readonly fontWeight: 400;
26
+ };
27
+ readonly Subtitle1: {
28
+ readonly fontSize: 14;
29
+ readonly lineHeight: 24;
30
+ readonly fontWeight: 600;
31
+ };
32
+ readonly Body1: {
33
+ readonly fontSize: 14;
34
+ readonly lineHeight: 24;
35
+ readonly fontWeight: 400;
36
+ };
37
+ readonly Subtitle2: {
38
+ readonly fontSize: 12;
39
+ readonly lineHeight: 19;
40
+ readonly fontWeight: 600;
41
+ };
42
+ readonly Body2: {
43
+ readonly fontSize: 12;
44
+ readonly lineHeight: 19;
45
+ readonly fontWeight: 400;
46
+ };
47
+ readonly Caption: {
48
+ readonly fontSize: 10;
49
+ readonly lineHeight: 14;
50
+ readonly fontWeight: 600;
51
+ };
52
+ readonly Headline2_B: {
53
+ readonly fontSize: 24;
54
+ readonly lineHeight: 34;
55
+ readonly fontWeight: 600;
56
+ };
57
+ readonly Headline3_B: {
58
+ readonly fontSize: 20;
59
+ readonly lineHeight: 26;
60
+ readonly fontWeight: 600;
61
+ };
62
+ readonly Headline4_B: {
63
+ readonly fontSize: 16;
64
+ readonly lineHeight: 26;
65
+ readonly fontWeight: 600;
66
+ };
67
+ readonly Headline4_M: {
68
+ readonly fontSize: 16;
69
+ readonly lineHeight: 26;
70
+ readonly fontWeight: 400;
71
+ };
72
+ readonly Body1_B: {
73
+ readonly fontSize: 14;
74
+ readonly lineHeight: 24;
75
+ readonly fontWeight: 600;
76
+ };
77
+ readonly Body1_M: {
78
+ readonly fontSize: 14;
79
+ readonly lineHeight: 24;
80
+ readonly fontWeight: 400;
81
+ };
82
+ readonly Body2_B: {
83
+ readonly fontSize: 12;
84
+ readonly lineHeight: 19;
85
+ readonly fontWeight: 600;
86
+ };
87
+ readonly Body2_M: {
88
+ readonly fontSize: 12;
89
+ readonly lineHeight: 19;
90
+ readonly fontWeight: 400;
91
+ };
92
+ readonly Caption_B: {
93
+ readonly fontSize: 10;
94
+ readonly lineHeight: 14;
95
+ readonly fontWeight: 600;
96
+ };
97
+ };
98
+ /**
99
+ * {@link https://github.com/orioncactus/pretendard#html-1}
100
+ */
101
+ export declare const PRETENDARD_FONT_FAMILY = "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";
102
+ //# sourceMappingURL=const.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,113 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ /* eslint-disable @typescript-eslint/naming-convention */
6
+
7
+ var LEGACY_TYPOGRAPHY_STYLES = {
8
+ Headline2_B: {
9
+ fontSize: 24,
10
+ lineHeight: 34,
11
+ fontWeight: 600
12
+ },
13
+ Headline3_B: {
14
+ fontSize: 20,
15
+ lineHeight: 26,
16
+ fontWeight: 600
17
+ },
18
+ Headline4_B: {
19
+ fontSize: 16,
20
+ lineHeight: 26,
21
+ fontWeight: 600
22
+ },
23
+ Headline4_M: {
24
+ fontSize: 16,
25
+ lineHeight: 26,
26
+ fontWeight: 400
27
+ },
28
+ Body1_B: {
29
+ fontSize: 14,
30
+ lineHeight: 24,
31
+ fontWeight: 600
32
+ },
33
+ Body1_M: {
34
+ fontSize: 14,
35
+ lineHeight: 24,
36
+ fontWeight: 400
37
+ },
38
+ Body2_B: {
39
+ fontSize: 12,
40
+ lineHeight: 19,
41
+ fontWeight: 600
42
+ },
43
+ Body2_M: {
44
+ fontSize: 12,
45
+ lineHeight: 19,
46
+ fontWeight: 400
47
+ },
48
+ Caption_B: {
49
+ fontSize: 10,
50
+ lineHeight: 14,
51
+ fontWeight: 600
52
+ }
53
+ };
54
+ var TYPOGRAPHY_STYLES = _objectSpread(_objectSpread({}, LEGACY_TYPOGRAPHY_STYLES), {}, {
55
+ Headline: {
56
+ fontSize: 24,
57
+ lineHeight: 34,
58
+ fontWeight: 600
59
+ },
60
+ Title1: {
61
+ fontSize: 20,
62
+ lineHeight: 26,
63
+ fontWeight: 600
64
+ },
65
+ Display: {
66
+ fontSize: 20,
67
+ lineHeight: 26,
68
+ fontWeight: 400
69
+ },
70
+ Title2: {
71
+ fontSize: 16,
72
+ lineHeight: 26,
73
+ fontWeight: 600
74
+ },
75
+ ArticleBody: {
76
+ fontSize: 16,
77
+ lineHeight: 26,
78
+ fontWeight: 400
79
+ },
80
+ Subtitle1: {
81
+ fontSize: 14,
82
+ lineHeight: 24,
83
+ fontWeight: 600
84
+ },
85
+ Body1: {
86
+ fontSize: 14,
87
+ lineHeight: 24,
88
+ fontWeight: 400
89
+ },
90
+ Subtitle2: {
91
+ fontSize: 12,
92
+ lineHeight: 19,
93
+ fontWeight: 600
94
+ },
95
+ Body2: {
96
+ fontSize: 12,
97
+ lineHeight: 19,
98
+ fontWeight: 400
99
+ },
100
+ Caption: {
101
+ fontSize: 10,
102
+ lineHeight: 14,
103
+ fontWeight: 600
104
+ }
105
+ });
106
+
107
+ /**
108
+ * {@link https://github.com/orioncactus/pretendard#html-1}
109
+ */
110
+ var PRETENDARD_FONT_FAMILY = "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";
111
+
112
+ export { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES };
113
+ //# sourceMappingURL=const.esm.js.map
@@ -0,0 +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":"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"}
@@ -0,0 +1,4 @@
1
+ export * from './const';
2
+ export * from './types';
3
+ export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { TYPOGRAPHY_STYLES } from './const';
2
+ export type TypographyStyle = keyof typeof TYPOGRAPHY_STYLES;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/typography/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,iBAAiB,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
5
+ var styledComponents = require('styled-components');
6
+ var _const = require('./const.cjs.js');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefault(_taggedTemplateLiteral);
11
+
12
+ var _templateObject, _templateObject2, _templateObject3;
13
+ /**
14
+ * 해당 스타일명에 해당하는 css 조각을 반환
15
+ * @see TYPOGRAPHY_STYLES
16
+ */
17
+ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
18
+ var _TYPOGRAPHY_STYLES$ty = _const.TYPOGRAPHY_STYLES[typographyStyle],
19
+ fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
20
+ lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
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);
23
+ };
24
+
25
+ /**
26
+ * 말줄임표 표시 (1줄)
27
+ *
28
+ * white-space: nowrap; \
29
+ * overflow: hidden; \
30
+ * text-overflow: ellipsis;
31
+ */
32
+ var textEllipsis = styledComponents.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default.default(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
33
+
34
+ /**
35
+ * 말줄임표 표시
36
+ *
37
+ * line = 1 인 경우, \
38
+ * white-space: nowrap; \
39
+ * overflow: hidden; \
40
+ * text-overflow: ellipsis;
41
+ *
42
+ * line > 1 인 경우, \
43
+ * overflow: hidden; \
44
+ * text-overflow: ellipsis; \
45
+ * display: -webkit-box; \
46
+ * -webkit-box-orient: vertical; \
47
+ * -webkit-line-clamp: ${line};
48
+ */
49
+ var ellipsis = function ellipsis() {
50
+ var line = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
51
+ if (line === 1) {
52
+ return textEllipsis;
53
+ }
54
+ return styledComponents.css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default.default(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n "])), line);
55
+ };
56
+
57
+ exports.ellipsis = ellipsis;
58
+ exports.getTypographyStyles = getTypographyStyles;
59
+ exports.textEllipsis = textEllipsis;
60
+ //# sourceMappingURL=utils.cjs.js.map
@@ -0,0 +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;;;;"}
@@ -0,0 +1,31 @@
1
+ import type { TypographyStyle } from './types';
2
+ /**
3
+ * 해당 스타일명에 해당하는 css 조각을 반환
4
+ * @see TYPOGRAPHY_STYLES
5
+ */
6
+ export declare const getTypographyStyles: (typographyStyle: TypographyStyle) => import("styled-components").RuleSet<object>;
7
+ /**
8
+ * 말줄임표 표시 (1줄)
9
+ *
10
+ * white-space: nowrap; \
11
+ * overflow: hidden; \
12
+ * text-overflow: ellipsis;
13
+ */
14
+ export declare const textEllipsis: import("styled-components").RuleSet<object>;
15
+ /**
16
+ * 말줄임표 표시
17
+ *
18
+ * line = 1 인 경우, \
19
+ * white-space: nowrap; \
20
+ * overflow: hidden; \
21
+ * text-overflow: ellipsis;
22
+ *
23
+ * line > 1 인 경우, \
24
+ * overflow: hidden; \
25
+ * text-overflow: ellipsis; \
26
+ * display: -webkit-box; \
27
+ * -webkit-box-orient: vertical; \
28
+ * -webkit-line-clamp: ${line};
29
+ */
30
+ export declare const ellipsis: (line?: number) => import("styled-components").RuleSet<object>;
31
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/typography/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,oBAAqB,eAAe,gDASnE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,6CAIxB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ,gEAYpB,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
3
+ import { css } from 'styled-components';
4
+ import { TYPOGRAPHY_STYLES, PRETENDARD_FONT_FAMILY } from './const.esm.js';
5
+
6
+ var _templateObject, _templateObject2, _templateObject3;
7
+ /**
8
+ * 해당 스타일명에 해당하는 css 조각을 반환
9
+ * @see TYPOGRAPHY_STYLES
10
+ */
11
+ var getTypographyStyles = function getTypographyStyles(typographyStyle) {
12
+ var _TYPOGRAPHY_STYLES$ty = TYPOGRAPHY_STYLES[typographyStyle],
13
+ fontSize = _TYPOGRAPHY_STYLES$ty.fontSize,
14
+ lineHeight = _TYPOGRAPHY_STYLES$ty.lineHeight,
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);
17
+ };
18
+
19
+ /**
20
+ * 말줄임표 표시 (1줄)
21
+ *
22
+ * white-space: nowrap; \
23
+ * overflow: hidden; \
24
+ * text-overflow: ellipsis;
25
+ */
26
+ var textEllipsis = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
27
+
28
+ /**
29
+ * 말줄임표 표시
30
+ *
31
+ * line = 1 인 경우, \
32
+ * white-space: nowrap; \
33
+ * overflow: hidden; \
34
+ * text-overflow: ellipsis;
35
+ *
36
+ * line > 1 인 경우, \
37
+ * overflow: hidden; \
38
+ * text-overflow: ellipsis; \
39
+ * display: -webkit-box; \
40
+ * -webkit-box-orient: vertical; \
41
+ * -webkit-line-clamp: ${line};
42
+ */
43
+ var ellipsis = function ellipsis() {
44
+ var line = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
45
+ if (line === 1) {
46
+ return textEllipsis;
47
+ }
48
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ", ";\n "])), line);
49
+ };
50
+
51
+ export { ellipsis, getTypographyStyles, textEllipsis };
52
+ //# sourceMappingURL=utils.esm.js.map
@@ -0,0 +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;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var isSSR = function isSSR() {
4
+ return typeof window === 'undefined';
5
+ };
6
+
7
+ exports.isSSR = isSSR;
8
+ //# sourceMappingURL=common.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.cjs.js","sources":["../../../../shared/utils/common.ts"],"sourcesContent":["export const range = (start: number, end: number) => {\n if (end < start) {\n return []; // 유효하지 않은 입력값 처리\n }\n return Array(end - start + 1)\n .fill(0)\n .map((_, idx) => start + idx);\n};\nexport const isSSR = () => typeof window === 'undefined';\n"],"names":["isSSR","window"],"mappings":";;AAQaA,IAAAA,KAAK,GAAG,SAARA,KAAKA,GAAA;EAAA,OAAS,OAAOC,MAAM,KAAK,WAAW,CAAA;AAAA;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const range: (start: number, end: number) => number[];
2
+ export declare const isSSR: () => boolean;
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../shared/utils/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAW,MAAM,OAAO,MAAM,aAO/C,CAAC;AACF,eAAO,MAAM,KAAK,eAAsC,CAAC"}
@@ -0,0 +1,6 @@
1
+ var isSSR = function isSSR() {
2
+ return typeof window === 'undefined';
3
+ };
4
+
5
+ export { isSSR };
6
+ //# sourceMappingURL=common.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.esm.js","sources":["../../../../shared/utils/common.ts"],"sourcesContent":["export const range = (start: number, end: number) => {\n if (end < start) {\n return []; // 유효하지 않은 입력값 처리\n }\n return Array(end - start + 1)\n .fill(0)\n .map((_, idx) => start + idx);\n};\nexport const isSSR = () => typeof window === 'undefined';\n"],"names":["isSSR","window"],"mappings":"AAQaA,IAAAA,KAAK,GAAG,SAARA,KAAKA,GAAA;EAAA,OAAS,OAAOC,MAAM,KAAK,WAAW,CAAA;AAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remember-web/mixin",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Remember Web Mixins",
5
5
  "homepage": "https://dramancompany.github.io/remember-web-packages/",
6
6
  "author": "Remember",
@@ -16,9 +16,8 @@
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.json",
20
- "lint": "eslint src --fix --ext .js,.jsx,.ts,.tsx --cache",
21
- "release": "yarn build && npm publish"
19
+ "type-check": "tsc -p ./tsconfig.cli.json",
20
+ "lint": "eslint src --fix --ext .js,.jsx,.ts,.tsx --cache"
22
21
  },
23
22
  "files": [
24
23
  "dist",
@@ -0,0 +1,67 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { useRUI } from '@remember-web/mixin';
3
+ import { Grid, Typography } from '@remember-web/primitive';
4
+
5
+ import type { RUIColorVariable, ThemeType } from './types';
6
+ import * as colors from './variables';
7
+ import { getHexFromRuiCssVariable, getRgba } from './utils';
8
+
9
+ const meta = {
10
+ title: 'Mixins/Colors',
11
+ } satisfies Meta;
12
+
13
+ const ColorChip = ({
14
+ colorName,
15
+ color,
16
+ theme,
17
+ }: {
18
+ colorName: string;
19
+ color: string;
20
+ theme: ThemeType;
21
+ }) => (
22
+ <div
23
+ style={{
24
+ borderRadius: 4,
25
+ overflow: 'hidden',
26
+ boxShadow: `0 3px 12px 0px ${getRgba(colors.contents000, 0.1)}`,
27
+ }}
28
+ >
29
+ <div style={{ backgroundColor: color, width: '100%', height: '100px' }} />
30
+ <div
31
+ style={{ padding: 8, display: 'flex', justifyContent: 'space-between' }}
32
+ >
33
+ <Typography variant="Title1">{colorName}</Typography>
34
+ <Typography variant="Body1" color={colors.contents100}>
35
+ {getHexFromRuiCssVariable({
36
+ colorVariable: color as RUIColorVariable,
37
+ theme,
38
+ })}
39
+ </Typography>
40
+ </div>
41
+ </div>
42
+ );
43
+
44
+ export const Overview = {
45
+ render: () => {
46
+ // eslint-disable-next-line react-hooks/rules-of-hooks
47
+ const { currentTheme } = useRUI();
48
+
49
+ return (
50
+ <div>
51
+ <Typography variant="Headline">Colors</Typography>
52
+ <Grid columns={2} columnGap="16px" rowGap="16px">
53
+ {Object.entries(colors).map(([key, value]) => (
54
+ <ColorChip
55
+ key={value}
56
+ colorName={key}
57
+ color={value}
58
+ theme={currentTheme}
59
+ />
60
+ ))}
61
+ </Grid>
62
+ </div>
63
+ );
64
+ },
65
+ };
66
+
67
+ export default meta;
@@ -47,7 +47,7 @@ export function useRUI() {
47
47
  const ruiContextValue = useContext(RUIContext);
48
48
 
49
49
  if (ruiContextValue === null) {
50
- throw new Error('useRUI must be used within RUIProvider');
50
+ throw new Error('useRUI must be used within RUIProvider!');
51
51
  }
52
52
 
53
53
  return ruiContextValue;