@remember-web/mixin 0.1.0 → 0.1.2

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 (92) hide show
  1. package/dist/mixin/src/colors/index.d.ts +3 -0
  2. package/dist/mixin/src/colors/index.d.ts.map +1 -0
  3. package/dist/mixin/src/colors/theme.cjs.map +1 -0
  4. package/dist/mixin/src/colors/theme.d.ts +6 -0
  5. package/dist/mixin/src/colors/theme.d.ts.map +1 -0
  6. package/dist/mixin/src/colors/theme.js +74 -0
  7. package/dist/mixin/src/colors/theme.js.map +1 -0
  8. package/dist/mixin/src/colors/types.d.ts +21 -0
  9. package/dist/mixin/src/colors/types.d.ts.map +1 -0
  10. package/dist/{colors → mixin/src/colors}/utils.cjs +5 -1
  11. package/dist/mixin/src/colors/utils.cjs.map +1 -0
  12. package/dist/mixin/src/colors/utils.d.ts +21 -0
  13. package/dist/mixin/src/colors/utils.d.ts.map +1 -0
  14. package/dist/mixin/src/colors/utils.js +61 -0
  15. package/dist/mixin/src/colors/utils.js.map +1 -0
  16. package/dist/{colors → mixin/src/colors}/variables.cjs +6 -0
  17. package/dist/mixin/src/colors/variables.cjs.map +1 -0
  18. package/dist/mixin/src/colors/variables.d.ts +32 -0
  19. package/dist/mixin/src/colors/variables.d.ts.map +1 -0
  20. package/dist/mixin/src/colors/variables.js +46 -0
  21. package/dist/mixin/src/colors/variables.js.map +1 -0
  22. package/dist/{index.cjs → mixin/src/index.cjs} +7 -7
  23. package/dist/mixin/src/index.d.ts +4 -0
  24. package/dist/mixin/src/index.d.ts.map +1 -0
  25. package/dist/{index.js → mixin/src/index.js} +2 -2
  26. package/dist/mixin/src/mediaQuery/const.cjs.map +1 -0
  27. package/dist/mixin/src/mediaQuery/const.d.ts +3 -0
  28. package/dist/mixin/src/mediaQuery/const.d.ts.map +1 -0
  29. package/dist/{mediaQuery → mixin/src/mediaQuery}/const.js +2 -2
  30. package/dist/mixin/src/mediaQuery/const.js.map +1 -0
  31. package/dist/mixin/src/mediaQuery/index.cjs.map +1 -0
  32. package/dist/mixin/src/mediaQuery/index.d.ts +10 -0
  33. package/dist/mixin/src/mediaQuery/index.d.ts.map +1 -0
  34. package/dist/mixin/src/mediaQuery/index.js +32 -0
  35. package/dist/mixin/src/mediaQuery/index.js.map +1 -0
  36. package/dist/{typography → mixin/src/typography}/const.cjs +2 -0
  37. package/dist/mixin/src/typography/const.cjs.map +1 -0
  38. package/dist/{typography → mixin/src/typography}/const.d.ts +3 -3
  39. package/dist/mixin/src/typography/const.d.ts.map +1 -0
  40. package/dist/mixin/src/typography/const.js +113 -0
  41. package/dist/mixin/src/typography/const.js.map +1 -0
  42. package/dist/mixin/src/typography/index.d.ts +4 -0
  43. package/dist/mixin/src/typography/index.d.ts.map +1 -0
  44. package/dist/mixin/src/typography/types.d.ts +3 -0
  45. package/dist/mixin/src/typography/types.d.ts.map +1 -0
  46. package/dist/{typography/index.cjs → mixin/src/typography/utils.cjs} +3 -3
  47. package/dist/mixin/src/typography/utils.cjs.map +1 -0
  48. package/dist/{typography/index.d.ts → mixin/src/typography/utils.d.ts} +5 -7
  49. package/dist/mixin/src/typography/utils.d.ts.map +1 -0
  50. package/dist/mixin/src/typography/utils.js +52 -0
  51. package/dist/mixin/src/typography/utils.js.map +1 -0
  52. package/dist/shared/utils/common.cjs.map +1 -1
  53. package/dist/shared/utils/common.d.ts +3 -3
  54. package/dist/shared/utils/common.d.ts.map +1 -0
  55. package/dist/shared/utils/common.js +3 -1
  56. package/dist/shared/utils/common.js.map +1 -1
  57. package/package.json +12 -13
  58. package/src/colors/types.ts +0 -2
  59. package/src/typography/index.ts +1 -64
  60. package/{dist/typography/index.js → src/typography/utils.ts} +18 -14
  61. package/dist/chunks/57135e08/types.d.ts +0 -21
  62. package/dist/colors/theme.cjs.map +0 -1
  63. package/dist/colors/theme.d.ts +0 -6
  64. package/dist/colors/theme.js +0 -74
  65. package/dist/colors/theme.js.map +0 -1
  66. package/dist/colors/utils.cjs.map +0 -1
  67. package/dist/colors/utils.d.ts +0 -21
  68. package/dist/colors/utils.js +0 -47
  69. package/dist/colors/utils.js.map +0 -1
  70. package/dist/colors/variables.cjs.map +0 -1
  71. package/dist/colors/variables.d.ts +0 -32
  72. package/dist/colors/variables.js +0 -40
  73. package/dist/colors/variables.js.map +0 -1
  74. package/dist/index.d.ts +0 -5
  75. package/dist/index.d.ts.map +0 -1
  76. package/dist/mediaQuery/const.cjs.map +0 -1
  77. package/dist/mediaQuery/const.d.ts +0 -3
  78. package/dist/mediaQuery/const.js.map +0 -1
  79. package/dist/mediaQuery/index.cjs.map +0 -1
  80. package/dist/mediaQuery/index.d.ts +0 -10
  81. package/dist/mediaQuery/index.js +0 -30
  82. package/dist/mediaQuery/index.js.map +0 -1
  83. package/dist/typography/const.cjs.map +0 -1
  84. package/dist/typography/const.js +0 -108
  85. package/dist/typography/const.js.map +0 -1
  86. package/dist/typography/index.cjs.map +0 -1
  87. package/dist/typography/index.js.map +0 -1
  88. /package/dist/{colors → mixin/src/colors}/theme.cjs +0 -0
  89. /package/dist/{index.cjs.map → mixin/src/index.cjs.map} +0 -0
  90. /package/dist/{index.js.map → mixin/src/index.js.map} +0 -0
  91. /package/dist/{mediaQuery → mixin/src/mediaQuery}/const.cjs +0 -0
  92. /package/dist/{mediaQuery → mixin/src/mediaQuery}/index.cjs +0 -0
@@ -1,74 +0,0 @@
1
- /**
2
- * {@link https://www.figma.com/file/2qQ5eJPRTiAKyz6Q1IzfMJ/WEB?node-id=2570%3A12136&viewport=347%2C475%2C0.47}
3
- */
4
- const RUI_COLOR_THEME = {
5
- light: {
6
- '--rui-primary100': '#000000',
7
- '--rui-primary200': '#FFFFFF',
8
- '--rui-secondary100': '#FF6A0D',
9
- '--rui-contents000': '#000000',
10
- '--rui-contents100': '#424242',
11
- '--rui-contents150': '#808080',
12
- '--rui-contents200': '#BDBDBD',
13
- '--rui-contents300': '#D4D4D4',
14
- '--rui-contents999': '#FFFFFF',
15
- '--rui-disabled': '#D4D4D4',
16
- '--rui-disabled-role-red': '#F7ABAB',
17
- '--rui-disabled-secondary': '#FFE3D1',
18
- '--rui-role-red': '#ED4E4E',
19
- '--rui-role-yellow': '#EDC84E',
20
- '--rui-role-blue': '#2679ED',
21
- '--rui-role-green': '#21C798',
22
- '--rui-bg100': '#FFFFFF',
23
- '--rui-bg200': '#FAFAFA',
24
- '--rui-bg300': '#F2F2F2',
25
- '--rui-bg-modal100': '#FFFFFF',
26
- '--rui-bg-modal200': '#FAFAFA',
27
- '--rui-bg-role-red': '#FFF5F5',
28
- '--rui-bg-secondary100': '#FFF4ED',
29
- '--rui-bg-highlight': '#FCF5DC',
30
- '--rui-bg-role-yellow': '#FFFDF5',
31
- '--rui-bg-role-blue': '#EDF4FF',
32
- '--rui-bg-role-green': '#D9FCF2',
33
- '--rui-divider': '#D4D4D4',
34
- '--rui-fixed-white': '#FFFFFF',
35
- '--rui-fixed-black': '#000000',
36
- '--rui-fixed-bg-white': '#FFFFFF',
37
- },
38
- dark: {
39
- '--rui-primary100': '#FFFFFF',
40
- '--rui-primary200': '#000000',
41
- '--rui-secondary100': '#FF6A0D',
42
- '--rui-contents000': '#FFFFFF',
43
- '--rui-contents100': '#EBEBEB',
44
- '--rui-contents150': '#D4D4D4',
45
- '--rui-contents200': '#BDBDBD',
46
- '--rui-contents300': '#808080',
47
- '--rui-contents999': '#000000',
48
- '--rui-disabled': '#808080',
49
- '--rui-disabled-role-red': '#6B2424',
50
- '--rui-disabled-secondary': '#4D2A14',
51
- '--rui-role-red': '#D13636',
52
- '--rui-role-yellow': '#D1AD36',
53
- '--rui-role-blue': '#085DD4',
54
- '--rui-role-green': '#22B28A',
55
- '--rui-bg100': '#1A1A1A',
56
- '--rui-bg200': '#000000',
57
- '--rui-bg300': '#000000',
58
- '--rui-bg-modal100': '#2E2E2E',
59
- '--rui-bg-modal200': '#424242',
60
- '--rui-bg-role-red': '#381515',
61
- '--rui-bg-secondary100': '#331D0F',
62
- '--rui-bg-highlight': '#383015',
63
- '--rui-bg-role-yellow': '#383015',
64
- '--rui-bg-role-blue': '#002861',
65
- '--rui-bg-role-green': '#15382E',
66
- '--rui-divider': '#424242',
67
- '--rui-fixed-white': '#FFFFFF',
68
- '--rui-fixed-black': '#000000',
69
- '--rui-fixed-bg-white': '#FFFFFF',
70
- },
71
- };
72
-
73
- export { RUI_COLOR_THEME };
74
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sources":["../../src/colors/theme.ts"],"sourcesContent":["import type { RUIColorThemeType } from './types';\n\n/**\n * {@link https://www.figma.com/file/2qQ5eJPRTiAKyz6Q1IzfMJ/WEB?node-id=2570%3A12136&viewport=347%2C475%2C0.47}\n */\nexport const RUI_COLOR_THEME: RUIColorThemeType = {\n light: {\n '--rui-primary100': '#000000',\n '--rui-primary200': '#FFFFFF',\n '--rui-secondary100': '#FF6A0D',\n '--rui-contents000': '#000000',\n '--rui-contents100': '#424242',\n '--rui-contents150': '#808080',\n '--rui-contents200': '#BDBDBD',\n '--rui-contents300': '#D4D4D4',\n '--rui-contents999': '#FFFFFF',\n '--rui-disabled': '#D4D4D4',\n '--rui-disabled-role-red': '#F7ABAB',\n '--rui-disabled-secondary': '#FFE3D1',\n '--rui-role-red': '#ED4E4E',\n '--rui-role-yellow': '#EDC84E',\n '--rui-role-blue': '#2679ED',\n '--rui-role-green': '#21C798',\n '--rui-bg100': '#FFFFFF',\n '--rui-bg200': '#FAFAFA',\n '--rui-bg300': '#F2F2F2',\n '--rui-bg-modal100': '#FFFFFF',\n '--rui-bg-modal200': '#FAFAFA',\n '--rui-bg-role-red': '#FFF5F5',\n '--rui-bg-secondary100': '#FFF4ED',\n '--rui-bg-highlight': '#FCF5DC',\n '--rui-bg-role-yellow': '#FFFDF5',\n '--rui-bg-role-blue': '#EDF4FF',\n '--rui-bg-role-green': '#D9FCF2',\n '--rui-divider': '#D4D4D4',\n '--rui-fixed-white': '#FFFFFF',\n '--rui-fixed-black': '#000000',\n '--rui-fixed-bg-white': '#FFFFFF',\n },\n dark: {\n '--rui-primary100': '#FFFFFF',\n '--rui-primary200': '#000000',\n '--rui-secondary100': '#FF6A0D',\n '--rui-contents000': '#FFFFFF',\n '--rui-contents100': '#EBEBEB',\n '--rui-contents150': '#D4D4D4',\n '--rui-contents200': '#BDBDBD',\n '--rui-contents300': '#808080',\n '--rui-contents999': '#000000',\n '--rui-disabled': '#808080',\n '--rui-disabled-role-red': '#6B2424',\n '--rui-disabled-secondary': '#4D2A14',\n '--rui-role-red': '#D13636',\n '--rui-role-yellow': '#D1AD36',\n '--rui-role-blue': '#085DD4',\n '--rui-role-green': '#22B28A',\n '--rui-bg100': '#1A1A1A',\n '--rui-bg200': '#000000',\n '--rui-bg300': '#000000',\n '--rui-bg-modal100': '#2E2E2E',\n '--rui-bg-modal200': '#424242',\n '--rui-bg-role-red': '#381515',\n '--rui-bg-secondary100': '#331D0F',\n '--rui-bg-highlight': '#383015',\n '--rui-bg-role-yellow': '#383015',\n '--rui-bg-role-blue': '#002861',\n '--rui-bg-role-green': '#15382E',\n '--rui-divider': '#424242',\n '--rui-fixed-white': '#FFFFFF',\n '--rui-fixed-black': '#000000',\n '--rui-fixed-bg-white': '#FFFFFF',\n },\n};\n"],"names":[],"mappings":"AAEA;;AAEG;AACU,MAAA,eAAe,GAAsB;AAChD,IAAA,KAAK,EAAE;AACL,QAAA,kBAAkB,EAAE,SAAS;AAC7B,QAAA,kBAAkB,EAAE,SAAS;AAC7B,QAAA,oBAAoB,EAAE,SAAS;AAC/B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,gBAAgB,EAAE,SAAS;AAC3B,QAAA,yBAAyB,EAAE,SAAS;AACpC,QAA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a,EAAE,SAAS;AACxB,QAAA,aAAa,EAAE,SAAS;AACxB,QAAA,aAAa,EAAE,SAAS;AACxB,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,uBAAuB,EAAE,SAAS;AAClC,QAAA,oBAAoB,EAAE,SAAS;AAC/B,QAAA,sBAAsB,EAAE,SAAS;AACjC,QAAA,oBAAoB,EAAE,SAAS;AAC/B,QAAA,qBAAqB,EAAE,SAAS;AAChC,QAAA,eAAe,EAAE,SAAS;AAC1B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,sBAAsB,EAAE,SAAS;AAClC,KAAA;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,21 +0,0 @@
1
- import { ColorVariable, ColorVariableName, RUIColorVariable, ThemeType } from "../chunks/57135e08/types.js";
2
- /** var(color)로 된 string을 color로 변경해줄 때 사용 */
3
- declare function getColorVariableName<V extends string = string>(color: ColorVariable<V>): ColorVariableName<V>;
4
- /** RDS컬러의 rgb값이 필요할 때 사용ValidityState
5
- * @example css`color: rgba(${getRgb(contents000)},0.5)`
6
- */
7
- declare function getRgb(color: ColorVariable): string;
8
- /** RDS컬러를 통해서 css의 rgba함수를 사용
9
- * @example css`color: ${getRgb(contents000, 0.5)}`
10
- * @example css`box-shadow: 0 0 0 5px ${getRgb(contents000, 0.5)}`
11
- */
12
- declare function getRgba(color: ColorVariable, opacity: number | `${number}%`): string;
13
- /** hex로 된 컬러값을 rgb값으로 변경해줌 */
14
- declare function hexToRgb(colorHex: string): string;
15
- declare function getBrowserTheme(): ThemeType;
16
- /** css variable을 hex로 반환 */
17
- declare function getHexFromRuiCssVariable({ colorVariable, theme, }: {
18
- theme: ThemeType;
19
- colorVariable: RUIColorVariable;
20
- }): string;
21
- export { getColorVariableName, getRgb, getRgba, hexToRgb, getBrowserTheme, getHexFromRuiCssVariable };
@@ -1,47 +0,0 @@
1
- import { isSSR } from '../shared/utils/common.js';
2
- import { RUI_COLOR_THEME } from './theme.js';
3
-
4
- /** var(color)로 된 string을 color로 변경해줄 때 사용 */
5
- function getColorVariableName(color) {
6
- return color.slice(4, -1);
7
- }
8
- /** RDS컬러의 rgb값이 필요할 때 사용ValidityState
9
- * @example css`color: rgba(${getRgb(contents000)},0.5)`
10
- */
11
- function getRgb(color) {
12
- return `var(${getColorVariableName(color)}__rgb)`;
13
- }
14
- /** RDS컬러를 통해서 css의 rgba함수를 사용
15
- * @example css`color: ${getRgb(contents000, 0.5)}`
16
- * @example css`box-shadow: 0 0 0 5px ${getRgb(contents000, 0.5)}`
17
- */
18
- function getRgba(color, opacity) {
19
- return `rgba(${getRgb(color)},${opacity})`;
20
- }
21
- /** hex로 된 컬러값을 rgb값으로 변경해줌 */
22
- function hexToRgb(colorHex) {
23
- let hexWithoutHash = colorHex.replace('#', '');
24
- if (hexWithoutHash.length !== 3 && hexWithoutHash.length !== 6) {
25
- throw new Error('Invalid hex color');
26
- }
27
- if (hexWithoutHash.length === 3) {
28
- hexWithoutHash = [...hexWithoutHash].map((hex) => hex.repeat(2)).join();
29
- }
30
- const [, r, g, b] = hexWithoutHash
31
- .split(/(..)(..)(..)/)
32
- .map((hex) => parseInt(hex, 16));
33
- return `${r},${g},${b}`;
34
- }
35
- function getBrowserTheme() {
36
- if (!isSSR() && window.matchMedia('(prefers-color-scheme: dark)').matches) {
37
- return 'dark';
38
- }
39
- return 'light';
40
- }
41
- /** css variable을 hex로 반환 */
42
- function getHexFromRuiCssVariable({ colorVariable, theme, }) {
43
- return RUI_COLOR_THEME[theme][getColorVariableName(colorVariable)];
44
- }
45
-
46
- export { getBrowserTheme, getColorVariableName, getHexFromRuiCssVariable, getRgb, getRgba, hexToRgb };
47
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/colors/utils.ts"],"sourcesContent":["import { isSSR } from '@remember-web/shared/utils/common';\n\nimport type {\n ColorVariable,\n ColorVariableName,\n RUIColorVariable,\n ThemeType,\n} from './types';\nimport { RUI_COLOR_THEME } from './theme';\n\n/** var(color)로 된 string을 color로 변경해줄 때 사용 */\nexport function getColorVariableName<V extends string = string>(\n color: ColorVariable<V>\n) {\n return color.slice(4, -1) as ColorVariableName<V>;\n}\n\n/** RDS컬러의 rgb값이 필요할 때 사용ValidityState\n * @example css`color: rgba(${getRgb(contents000)},0.5)`\n */\nexport function getRgb(color: ColorVariable) {\n return `var(${getColorVariableName(color)}__rgb)`;\n}\n\n/** RDS컬러를 통해서 css의 rgba함수를 사용\n * @example css`color: ${getRgb(contents000, 0.5)}`\n * @example css`box-shadow: 0 0 0 5px ${getRgb(contents000, 0.5)}`\n */\nexport function getRgba(color: ColorVariable, opacity: number | `${number}%`) {\n return `rgba(${getRgb(color)},${opacity})`;\n}\n\n/** hex로 된 컬러값을 rgb값으로 변경해줌 */\nexport function hexToRgb(colorHex: string) {\n let hexWithoutHash = colorHex.replace('#', '');\n\n if (hexWithoutHash.length !== 3 && hexWithoutHash.length !== 6) {\n throw new Error('Invalid hex color');\n }\n\n if (hexWithoutHash.length === 3) {\n hexWithoutHash = [...hexWithoutHash].map((hex) => hex.repeat(2)).join();\n }\n\n const [, r, g, b] = hexWithoutHash\n .split(/(..)(..)(..)/)\n .map((hex) => parseInt(hex, 16));\n\n return `${r},${g},${b}`;\n}\n\nexport function getBrowserTheme(): ThemeType {\n if (!isSSR() && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n return 'dark';\n }\n return 'light';\n}\n\n/** css variable을 hex로 반환 */\nexport function getHexFromRuiCssVariable({\n colorVariable,\n theme,\n}: {\n theme: ThemeType;\n colorVariable: RUIColorVariable;\n}) {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AAC,EAAE,CAAC;AAC1B,CAAC;SAEe,eAAe,GAAA;AAC7B,IAAA,IAAI,CAAC,KAAK,EAAE,IAAI,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC,OAAO,EAAE;AACzE,QAAA,OAAO,MAAM,CAAC;KACf;AACD,IAAA,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;SACgB,wBAAwB,CAAC,EACvC,aAAa,EACb,KAAK,GAIN,EAAA;IACC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC;AACrE;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"variables.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,32 +0,0 @@
1
- declare const primary100 = "var(--rui-primary100)";
2
- declare const primary200 = "var(--rui-primary200)";
3
- declare const secondary100 = "var(--rui-secondary100)";
4
- declare const contents000 = "var(--rui-contents000)";
5
- declare const contents100 = "var(--rui-contents100)";
6
- declare const contents150 = "var(--rui-contents150)";
7
- declare const contents200 = "var(--rui-contents200)";
8
- declare const contents300 = "var(--rui-contents300)";
9
- declare const contents999 = "var(--rui-contents999)";
10
- declare const disabled = "var(--rui-disabled)";
11
- declare const disabledRoleRed = "var(--rui-disabled-role-red)";
12
- declare const disabledSecondary = "var(--rui-disabled-secondary)";
13
- declare const roleRed = "var(--rui-role-red)";
14
- declare const roleYellow = "var(--rui-role-yellow)";
15
- declare const roleBlue = "var(--rui-role-blue)";
16
- declare const roleGreen = "var(--rui-role-green)";
17
- declare const bg100 = "var(--rui-bg100)";
18
- declare const bg200 = "var(--rui-bg200)";
19
- declare const bg300 = "var(--rui-bg300)";
20
- declare const bgModal100 = "var(--rui-bg-modal100)";
21
- declare const bgModal200 = "var(--rui-bg-modal200)";
22
- declare const bgRoleRed = "var(--rui-bg-role-red)";
23
- declare const bgSecondary100 = "var(--rui-bg-secondary100)";
24
- declare const bgHighlight = "var(--rui-bg-highlight)";
25
- declare const bgRoleYellow = "var(--rui-bg-role-yellow)";
26
- declare const bgRoleBlue = "var(--rui-bg-role-blue)";
27
- declare const bgRoleGreen = "var(--rui-bg-role-green)";
28
- declare const divider = "var(--rui-divider)";
29
- declare const fixedWhite = "var(--rui-fixed-white)";
30
- declare const fixedBgWhite = "var(--rui-fixed-bg-white)";
31
- declare const fixedBlack = "var(--rui-fixed-black)";
32
- export { primary100, primary200, secondary100, contents000, contents100, contents150, contents200, contents300, contents999, disabled, disabledRoleRed, disabledSecondary, roleRed, roleYellow, roleBlue, roleGreen, bg100, bg200, bg300, bgModal100, bgModal200, bgRoleRed, bgSecondary100, bgHighlight, bgRoleYellow, bgRoleBlue, bgRoleGreen, divider, fixedWhite, fixedBgWhite, fixedBlack };
@@ -1,40 +0,0 @@
1
- const primary100 = 'var(--rui-primary100)';
2
- const primary200 = 'var(--rui-primary200)';
3
- const secondary100 = 'var(--rui-secondary100)';
4
- // Contents txt/ label/ border/ divider
5
- const contents000 = 'var(--rui-contents000)';
6
- const contents100 = 'var(--rui-contents100)';
7
- const contents150 = 'var(--rui-contents150)';
8
- const contents200 = 'var(--rui-contents200)';
9
- const contents300 = 'var(--rui-contents300)';
10
- const contents999 = 'var(--rui-contents999)';
11
- // Disable disabled CTA
12
- const disabled = 'var(--rui-disabled)';
13
- const disabledRoleRed = 'var(--rui-disabled-role-red)';
14
- const disabledSecondary = 'var(--rui-disabled-secondary)';
15
- // Accent Error/ Link/
16
- const roleRed = 'var(--rui-role-red)';
17
- const roleYellow = 'var(--rui-role-yellow)';
18
- const roleBlue = 'var(--rui-role-blue)';
19
- const roleGreen = 'var(--rui-role-green)';
20
- // Background
21
- const bg100 = 'var(--rui-bg100)';
22
- const bg200 = 'var(--rui-bg200)';
23
- const bg300 = 'var(--rui-bg300)';
24
- const bgModal100 = 'var(--rui-bg-modal100)';
25
- const bgModal200 = 'var(--rui-bg-modal200)';
26
- const bgRoleRed = 'var(--rui-bg-role-red)';
27
- const bgSecondary100 = 'var(--rui-bg-secondary100)';
28
- const bgHighlight = 'var(--rui-bg-highlight)';
29
- const bgRoleYellow = 'var(--rui-bg-role-yellow)';
30
- const bgRoleBlue = 'var(--rui-bg-role-blue)';
31
- const bgRoleGreen = 'var(--rui-bg-role-green)';
32
- // Divider
33
- const divider = 'var(--rui-divider)';
34
- // Fixed
35
- const fixedWhite = 'var(--rui-fixed-white)';
36
- const fixedBgWhite = 'var(--rui-fixed-bg-white)';
37
- const fixedBlack = 'var(--rui-fixed-black)';
38
-
39
- export { bg100, bg200, bg300, bgHighlight, bgModal100, bgModal200, bgRoleBlue, bgRoleGreen, bgRoleRed, bgRoleYellow, bgSecondary100, contents000, contents100, contents150, contents200, contents300, contents999, disabled, disabledRoleRed, disabledSecondary, divider, fixedBgWhite, fixedBlack, fixedWhite, primary100, primary200, roleBlue, roleGreen, roleRed, roleYellow, secondary100 };
40
- //# sourceMappingURL=variables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variables.js","sources":["../../src/colors/variables.ts"],"sourcesContent":["export const primary100 = 'var(--rui-primary100)';\nexport const primary200 = 'var(--rui-primary200)';\nexport const secondary100 = 'var(--rui-secondary100)';\n\n// Contents txt/ label/ border/ divider\nexport const contents000 = 'var(--rui-contents000)';\nexport const contents100 = 'var(--rui-contents100)';\nexport const contents150 = 'var(--rui-contents150)';\nexport const contents200 = 'var(--rui-contents200)';\nexport const contents300 = 'var(--rui-contents300)';\nexport const contents999 = 'var(--rui-contents999)';\n\n// Disable disabled CTA\nexport const disabled = 'var(--rui-disabled)';\nexport const disabledRoleRed = 'var(--rui-disabled-role-red)';\nexport const disabledSecondary = 'var(--rui-disabled-secondary)';\n\n// Accent Error/ Link/\nexport const roleRed = 'var(--rui-role-red)';\nexport const roleYellow = 'var(--rui-role-yellow)';\nexport const roleBlue = 'var(--rui-role-blue)';\nexport const roleGreen = 'var(--rui-role-green)';\n\n// Background\nexport const bg100 = 'var(--rui-bg100)';\nexport const bg200 = 'var(--rui-bg200)';\nexport const bg300 = 'var(--rui-bg300)';\nexport const bgModal100 = 'var(--rui-bg-modal100)';\nexport const bgModal200 = 'var(--rui-bg-modal200)';\nexport const bgRoleRed = 'var(--rui-bg-role-red)';\nexport const bgSecondary100 = 'var(--rui-bg-secondary100)';\nexport const bgHighlight = 'var(--rui-bg-highlight)';\nexport const bgRoleYellow = 'var(--rui-bg-role-yellow)';\nexport const bgRoleBlue = 'var(--rui-bg-role-blue)';\nexport const bgRoleGreen = 'var(--rui-bg-role-green)';\n\n// Divider\nexport const divider = 'var(--rui-divider)';\n\n// Fixed\nexport const fixedWhite = 'var(--rui-fixed-white)';\nexport const fixedBgWhite = 'var(--rui-fixed-bg-white)';\nexport const fixedBlack = 'var(--rui-fixed-black)';\n"],"names":[],"mappings":"AAAO,MAAM,UAAU,GAAG,wBAAwB;AAC3C,MAAM,UAAU,GAAG,wBAAwB;AAC3C,MAAM,YAAY,GAAG,0BAA0B;AAEtD;AACO,MAAM,WAAW,GAAG,yBAAyB;AAC7C,MAAM,WAAW,GAAG,yBAAyB;AAC7C,MAAM,WAAW,GAAG,yBAAyB;AAC7C,MAAM,WAAW,GAAG,yBAAyB;AAC7C,MAAM,WAAW,GAAG,yBAAyB;AAC7C,MAAM,WAAW,GAAG,yBAAyB;AAEpD;AACO,MAAM,QAAQ,GAAG,sBAAsB;AACvC,MAAM,eAAe,GAAG,+BAA+B;AACvD,MAAM,iBAAiB,GAAG,gCAAgC;AAEjE;AACO,MAAM,OAAO,GAAG,sBAAsB;AACtC,MAAM,UAAU,GAAG,yBAAyB;AAC5C,MAAM,QAAQ,GAAG,uBAAuB;AACxC,MAAM,SAAS,GAAG,wBAAwB;AAEjD;AACO,MAAM,KAAK,GAAG,mBAAmB;AACjC,MAAM,KAAK,GAAG,mBAAmB;AACjC,MAAM,KAAK,GAAG,mBAAmB;AACjC,MAAM,UAAU,GAAG,yBAAyB;AAC5C,MAAM,UAAU,GAAG,yBAAyB;AAC5C,MAAM,SAAS,GAAG,yBAAyB;AAC3C,MAAM,cAAc,GAAG,6BAA6B;AACpD,MAAM,WAAW,GAAG,0BAA0B;AAC9C,MAAM,YAAY,GAAG,4BAA4B;AACjD,MAAM,UAAU,GAAG,0BAA0B;AAC7C,MAAM,WAAW,GAAG,2BAA2B;AAEtD;AACO,MAAM,OAAO,GAAG,qBAAqB;AAE5C;AACO,MAAM,UAAU,GAAG,yBAAyB;AAC5C,MAAM,YAAY,GAAG,4BAA4B;AACjD,MAAM,UAAU,GAAG;;;;"}
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export * from "./colors/variables.js";
2
- export * from "./colors/utils.js";
3
- export * from "./mediaQuery/index.js";
4
- export * from "./typography/index.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts","../src/colors/index.ts"],"names":[],"mappings":";;AACA,sCAA6B;AAC7B,sCAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"const.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,3 +0,0 @@
1
- declare const DESKTOP_WIDTH = 768;
2
- declare const PHONE_WIDTH = 430;
3
- export { DESKTOP_WIDTH, PHONE_WIDTH };
@@ -1 +0,0 @@
1
- {"version":3,"file":"const.js","sources":["../../src/mediaQuery/const.ts"],"sourcesContent":["export const DESKTOP_WIDTH = 768;\nexport const PHONE_WIDTH = 430;\n"],"names":[],"mappings":"AAAO,MAAM,aAAa,GAAG,IAAI;AAC1B,MAAM,WAAW,GAAG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +0,0 @@
1
- import { CSSProp } from 'styled-components';
2
- declare function getDeviceWidthMediaQuery({ maxWidth, minWidth, }: {
3
- maxWidth?: number | string;
4
- minWidth?: number | string;
5
- }): (cssInterpolation: CSSProp) => import("styled-components").RuleSet<object>;
6
- declare const mobileOnly: (cssInterpolation: CSSProp) => import("styled-components").RuleSet<object>;
7
- declare const desktopOnly: (cssInterpolation: CSSProp) => import("styled-components").RuleSet<object>;
8
- declare const phoneOnly: (cssInterpolation: CSSProp) => import("styled-components").RuleSet<object>;
9
- export * from "./const.js";
10
- export { getDeviceWidthMediaQuery, mobileOnly, desktopOnly, phoneOnly };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { css } from 'styled-components';
3
- import { DESKTOP_WIDTH, PHONE_WIDTH } from './const.js';
4
-
5
- function getDeviceWidthMediaQuery({ maxWidth, minWidth, }) {
6
- const mediaQueries = [];
7
- if (maxWidth) {
8
- mediaQueries.push(`(max-width: ${typeof maxWidth === 'string' ? maxWidth : `${maxWidth}px`})`);
9
- }
10
- if (minWidth) {
11
- mediaQueries.push(`(min-width: ${typeof minWidth === 'string' ? minWidth : `${minWidth}px`})`);
12
- }
13
- return (cssInterpolation) => css `
14
- @media ${mediaQueries.join(' and ')} {
15
- ${cssInterpolation}
16
- }
17
- `;
18
- }
19
- const mobileOnly = getDeviceWidthMediaQuery({
20
- maxWidth: DESKTOP_WIDTH - 1,
21
- });
22
- const desktopOnly = getDeviceWidthMediaQuery({
23
- minWidth: DESKTOP_WIDTH,
24
- });
25
- const phoneOnly = getDeviceWidthMediaQuery({
26
- maxWidth: PHONE_WIDTH,
27
- });
28
-
29
- export { DESKTOP_WIDTH, PHONE_WIDTH, desktopOnly, getDeviceWidthMediaQuery, mobileOnly, phoneOnly };
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/mediaQuery/index.ts"],"sourcesContent":["'use client';\n\nimport { css } from 'styled-components';\nimport type { CSSProp } from 'styled-components';\n\nimport { DESKTOP_WIDTH, PHONE_WIDTH } from './const';\n\nexport * from './const';\n\nexport function getDeviceWidthMediaQuery({\n maxWidth,\n minWidth,\n}: {\n maxWidth?: number | string;\n minWidth?: number | string;\n}) {\n const mediaQueries: string[] = [];\n\n if (maxWidth) {\n mediaQueries.push(\n `(max-width: ${\n typeof maxWidth === 'string' ? maxWidth : `${maxWidth}px`\n })`\n );\n }\n\n if (minWidth) {\n mediaQueries.push(\n `(min-width: ${\n typeof minWidth === 'string' ? minWidth : `${minWidth}px`\n })`\n );\n }\n\n return (cssInterpolation: CSSProp) => css`\n @media ${mediaQueries.join(' and ')} {\n ${cssInterpolation}\n }\n `;\n}\n\nexport const mobileOnly = getDeviceWidthMediaQuery({\n maxWidth: DESKTOP_WIDTH - 1,\n});\nexport const desktopOnly = getDeviceWidthMediaQuery({\n minWidth: DESKTOP_WIDTH,\n});\nexport const phoneOnly = getDeviceWidthMediaQuery({\n maxWidth: PHONE_WIDTH,\n});\n"],"names":[],"mappings":";;;;;;;;;;;;AAkCE;AACW;;;;AAIb;AAEO;;AAEN;AACM;AACL;AACD;AACM;AACL;AACD;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"const.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,108 +0,0 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- const LEGACY_TYPOGRAPHY_STYLES = {
3
- Headline2_B: {
4
- fontSize: 24,
5
- lineHeight: 34,
6
- fontWeight: 600,
7
- },
8
- Headline3_B: {
9
- fontSize: 20,
10
- lineHeight: 26,
11
- fontWeight: 600,
12
- },
13
- Headline4_B: {
14
- fontSize: 16,
15
- lineHeight: 26,
16
- fontWeight: 600,
17
- },
18
- Headline4_M: {
19
- fontSize: 16,
20
- lineHeight: 26,
21
- fontWeight: 400,
22
- },
23
- Body1_B: {
24
- fontSize: 14,
25
- lineHeight: 24,
26
- fontWeight: 600,
27
- },
28
- Body1_M: {
29
- fontSize: 14,
30
- lineHeight: 24,
31
- fontWeight: 400,
32
- },
33
- Body2_B: {
34
- fontSize: 12,
35
- lineHeight: 19,
36
- fontWeight: 600,
37
- },
38
- Body2_M: {
39
- fontSize: 12,
40
- lineHeight: 19,
41
- fontWeight: 400,
42
- },
43
- Caption_B: {
44
- fontSize: 10,
45
- lineHeight: 14,
46
- fontWeight: 600,
47
- },
48
- };
49
- const TYPOGRAPHY_STYLES = {
50
- ...LEGACY_TYPOGRAPHY_STYLES,
51
- Headline: {
52
- fontSize: 24,
53
- lineHeight: 34,
54
- fontWeight: 600,
55
- },
56
- Title1: {
57
- fontSize: 20,
58
- lineHeight: 26,
59
- fontWeight: 600,
60
- },
61
- Display: {
62
- fontSize: 20,
63
- lineHeight: 26,
64
- fontWeight: 400,
65
- },
66
- Title2: {
67
- fontSize: 16,
68
- lineHeight: 26,
69
- fontWeight: 600,
70
- },
71
- ArticleBody: {
72
- fontSize: 16,
73
- lineHeight: 26,
74
- fontWeight: 400,
75
- },
76
- Subtitle1: {
77
- fontSize: 14,
78
- lineHeight: 24,
79
- fontWeight: 600,
80
- },
81
- Body1: {
82
- fontSize: 14,
83
- lineHeight: 24,
84
- fontWeight: 400,
85
- },
86
- Subtitle2: {
87
- fontSize: 12,
88
- lineHeight: 19,
89
- fontWeight: 600,
90
- },
91
- Body2: {
92
- fontSize: 12,
93
- lineHeight: 19,
94
- fontWeight: 400,
95
- },
96
- Caption: {
97
- fontSize: 10,
98
- lineHeight: 14,
99
- fontWeight: 600,
100
- },
101
- };
102
- /**
103
- * {@link https://github.com/orioncactus/pretendard#html-1}
104
- */
105
- 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";
106
-
107
- export { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES };
108
- //# sourceMappingURL=const.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"const.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":[],"mappings":"AAAA;AAEA,MAAM,wBAAwB,GAAG;AAC/B,IAAA,WAAW,EAAE;AACX,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB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EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,UAAU,EAAE,GAAG;AAChB,KAAA;EACQ;AAEX;;AAEG;AACI,MAAM,sBAAsB,GACjC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/typography/index.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\nexport * from './const';\nexport * 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":";;;;AAUA;;;AAGG;AACU;AACX;AAEA;;;;;;AAMF;AAEA;;;;;;AAMG;AACI;;;;;AAMP;;;;;;;;;;;;;;AAcG;;AAED;AACE;;AAGF;;;;;;;AAOF;;"}
File without changes
File without changes
File without changes