@remember-web/mixin 0.0.0-alpha.2 → 0.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/57135e08/types.d.ts +21 -0
- package/dist/colors/theme.cjs +76 -0
- package/dist/colors/theme.cjs.map +1 -0
- package/dist/colors/theme.d.ts +6 -0
- package/dist/colors/theme.js +74 -0
- package/dist/colors/theme.js.map +1 -0
- package/dist/colors/utils.cjs +69 -0
- package/dist/colors/utils.cjs.map +1 -0
- package/dist/colors/utils.d.ts +21 -0
- package/dist/colors/utils.js +47 -0
- package/dist/colors/utils.js.map +1 -0
- package/dist/colors/variables.cjs +72 -0
- package/dist/colors/variables.cjs.map +1 -0
- package/dist/colors/variables.d.ts +32 -0
- package/dist/colors/variables.js +40 -0
- package/dist/colors/variables.js.map +1 -0
- package/dist/index.cjs +60 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/mediaQuery/const.cjs +8 -0
- package/dist/mediaQuery/const.cjs.map +1 -0
- package/dist/mediaQuery/const.d.ts +3 -0
- package/dist/mediaQuery/const.js +5 -0
- package/dist/mediaQuery/const.js.map +1 -0
- package/dist/mediaQuery/index.cjs +43 -0
- package/dist/mediaQuery/index.cjs.map +1 -0
- package/dist/mediaQuery/index.d.ts +10 -0
- package/dist/mediaQuery/index.js +30 -0
- package/dist/mediaQuery/index.js.map +1 -0
- package/dist/shared/utils/common.cjs +8 -0
- package/dist/shared/utils/common.cjs.map +1 -0
- package/dist/shared/utils/common.d.ts +3 -0
- package/dist/shared/utils/common.js +4 -0
- package/dist/shared/utils/common.js.map +1 -0
- package/dist/typography/const.cjs +118 -0
- package/dist/typography/const.cjs.map +1 -0
- package/dist/typography/const.d.ts +102 -0
- package/dist/typography/const.js +108 -0
- package/dist/typography/const.js.map +1 -0
- package/dist/typography/index.cjs +60 -0
- package/dist/typography/index.cjs.map +1 -0
- package/dist/typography/index.d.ts +33 -0
- package/dist/typography/index.js +59 -0
- package/dist/typography/index.js.map +1 -0
- package/package.json +5 -1
- package/.eslintrc.js +0 -11
- package/rollup.config.mjs +0 -105
- package/tsconfig.alias.json +0 -11
- package/tsconfig.eslint.json +0 -4
- package/tsconfig.json +0 -14
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type GetVariableName<C> = C extends `var(${infer R})` ? R : never;
|
|
2
|
+
type ThemeType = 'light' | 'dark';
|
|
3
|
+
/**
|
|
4
|
+
* Variable = CSS변수로 사용되는 명칭
|
|
5
|
+
* VariableName = CSS변수로 사용되는 명칭에서 `var()`를 제거한 실제명칭
|
|
6
|
+
*/
|
|
7
|
+
type ColorVariable<V extends string = string> = `var(--rui-${V})`;
|
|
8
|
+
type ColorVariableName<V extends string = string> = GetVariableName<ColorVariable<V>>;
|
|
9
|
+
type ColorSet = Record<ColorVariableName, string>;
|
|
10
|
+
type RUIColorType = typeof import("../../colors/variables.js");
|
|
11
|
+
type RUIColorName = keyof RUIColorType;
|
|
12
|
+
type RUIColorVariable = RUIColorType[RUIColorName];
|
|
13
|
+
type RUIColorVariableName = GetVariableName<RUIColorVariable>;
|
|
14
|
+
type RUIColorSet = Record<RUIColorVariableName, string>;
|
|
15
|
+
type ColorThemeType = {
|
|
16
|
+
[key in ThemeType]: ColorSet;
|
|
17
|
+
};
|
|
18
|
+
type RUIColorThemeType = {
|
|
19
|
+
[key in ThemeType]: RUIColorSet;
|
|
20
|
+
};
|
|
21
|
+
export { GetVariableName, ThemeType, ColorVariable, ColorVariableName, ColorSet, RUIColorType, RUIColorName, RUIColorVariable, RUIColorVariableName, RUIColorSet, ColorThemeType, RUIColorThemeType };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* {@link https://www.figma.com/file/2qQ5eJPRTiAKyz6Q1IzfMJ/WEB?node-id=2570%3A12136&viewport=347%2C475%2C0.47}
|
|
5
|
+
*/
|
|
6
|
+
var RUI_COLOR_THEME = {
|
|
7
|
+
light: {
|
|
8
|
+
'--rui-primary100': '#000000',
|
|
9
|
+
'--rui-primary200': '#FFFFFF',
|
|
10
|
+
'--rui-secondary100': '#FF6A0D',
|
|
11
|
+
'--rui-contents000': '#000000',
|
|
12
|
+
'--rui-contents100': '#424242',
|
|
13
|
+
'--rui-contents150': '#808080',
|
|
14
|
+
'--rui-contents200': '#BDBDBD',
|
|
15
|
+
'--rui-contents300': '#D4D4D4',
|
|
16
|
+
'--rui-contents999': '#FFFFFF',
|
|
17
|
+
'--rui-disabled': '#D4D4D4',
|
|
18
|
+
'--rui-disabled-role-red': '#F7ABAB',
|
|
19
|
+
'--rui-disabled-secondary': '#FFE3D1',
|
|
20
|
+
'--rui-role-red': '#ED4E4E',
|
|
21
|
+
'--rui-role-yellow': '#EDC84E',
|
|
22
|
+
'--rui-role-blue': '#2679ED',
|
|
23
|
+
'--rui-role-green': '#21C798',
|
|
24
|
+
'--rui-bg100': '#FFFFFF',
|
|
25
|
+
'--rui-bg200': '#FAFAFA',
|
|
26
|
+
'--rui-bg300': '#F2F2F2',
|
|
27
|
+
'--rui-bg-modal100': '#FFFFFF',
|
|
28
|
+
'--rui-bg-modal200': '#FAFAFA',
|
|
29
|
+
'--rui-bg-role-red': '#FFF5F5',
|
|
30
|
+
'--rui-bg-secondary100': '#FFF4ED',
|
|
31
|
+
'--rui-bg-highlight': '#FCF5DC',
|
|
32
|
+
'--rui-bg-role-yellow': '#FFFDF5',
|
|
33
|
+
'--rui-bg-role-blue': '#EDF4FF',
|
|
34
|
+
'--rui-bg-role-green': '#D9FCF2',
|
|
35
|
+
'--rui-divider': '#D4D4D4',
|
|
36
|
+
'--rui-fixed-white': '#FFFFFF',
|
|
37
|
+
'--rui-fixed-black': '#000000',
|
|
38
|
+
'--rui-fixed-bg-white': '#FFFFFF'
|
|
39
|
+
},
|
|
40
|
+
dark: {
|
|
41
|
+
'--rui-primary100': '#FFFFFF',
|
|
42
|
+
'--rui-primary200': '#000000',
|
|
43
|
+
'--rui-secondary100': '#FF6A0D',
|
|
44
|
+
'--rui-contents000': '#FFFFFF',
|
|
45
|
+
'--rui-contents100': '#EBEBEB',
|
|
46
|
+
'--rui-contents150': '#D4D4D4',
|
|
47
|
+
'--rui-contents200': '#BDBDBD',
|
|
48
|
+
'--rui-contents300': '#808080',
|
|
49
|
+
'--rui-contents999': '#000000',
|
|
50
|
+
'--rui-disabled': '#808080',
|
|
51
|
+
'--rui-disabled-role-red': '#6B2424',
|
|
52
|
+
'--rui-disabled-secondary': '#4D2A14',
|
|
53
|
+
'--rui-role-red': '#D13636',
|
|
54
|
+
'--rui-role-yellow': '#D1AD36',
|
|
55
|
+
'--rui-role-blue': '#085DD4',
|
|
56
|
+
'--rui-role-green': '#22B28A',
|
|
57
|
+
'--rui-bg100': '#1A1A1A',
|
|
58
|
+
'--rui-bg200': '#000000',
|
|
59
|
+
'--rui-bg300': '#000000',
|
|
60
|
+
'--rui-bg-modal100': '#2E2E2E',
|
|
61
|
+
'--rui-bg-modal200': '#424242',
|
|
62
|
+
'--rui-bg-role-red': '#381515',
|
|
63
|
+
'--rui-bg-secondary100': '#331D0F',
|
|
64
|
+
'--rui-bg-highlight': '#383015',
|
|
65
|
+
'--rui-bg-role-yellow': '#383015',
|
|
66
|
+
'--rui-bg-role-blue': '#002861',
|
|
67
|
+
'--rui-bg-role-green': '#15382E',
|
|
68
|
+
'--rui-divider': '#424242',
|
|
69
|
+
'--rui-fixed-white': '#FFFFFF',
|
|
70
|
+
'--rui-fixed-black': '#000000',
|
|
71
|
+
'--rui-fixed-bg-white': '#FFFFFF'
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.RUI_COLOR_THEME = RUI_COLOR_THEME;
|
|
76
|
+
//# sourceMappingURL=theme.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RUIColorThemeType } from "../chunks/57135e08/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* {@link https://www.figma.com/file/2qQ5eJPRTiAKyz6Q1IzfMJ/WEB?node-id=2570%3A12136&viewport=347%2C475%2C0.47}
|
|
4
|
+
*/
|
|
5
|
+
declare const RUI_COLOR_THEME: RUIColorThemeType;
|
|
6
|
+
export { RUI_COLOR_THEME };
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,QAAA,0BAA0B,EAAE,SAAS;AACrC,QAAA,gBAAgB,EAAE,SAAS;AAC3B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,iBAAiB,EAAE,SAAS;AAC5B,QAAA,kBAAkB,EAAE,SAAS;AAC7B,QAAA,aAAa,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;AACD,IAAA,IAAI,EAAE;AACJ,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,QAAA,0BAA0B,EAAE,SAAS;AACrC,QAAA,gBAAgB,EAAE,SAAS;AAC3B,QAAA,mBAAmB,EAAE,SAAS;AAC9B,QAAA,iBAAiB,EAAE,SAAS;AAC5B,QAAA,kBAAkB,EAAE,SAAS;AAC7B,QAAA,aAAa,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;;;;;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
|
+
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
5
|
+
var common = require('../shared/utils/common.cjs');
|
|
6
|
+
var theme = require('./theme.cjs');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var _slicedToArray__default = /*#__PURE__*/_interopDefault(_slicedToArray);
|
|
11
|
+
var _toConsumableArray__default = /*#__PURE__*/_interopDefault(_toConsumableArray);
|
|
12
|
+
|
|
13
|
+
/** var(color)로 된 string을 color로 변경해줄 때 사용 */
|
|
14
|
+
function getColorVariableName(color) {
|
|
15
|
+
return color.slice(4, -1);
|
|
16
|
+
}
|
|
17
|
+
/** RDS컬러의 rgb값이 필요할 때 사용ValidityState
|
|
18
|
+
* @example css`color: rgba(${getRgb(contents000)},0.5)`
|
|
19
|
+
*/
|
|
20
|
+
function getRgb(color) {
|
|
21
|
+
return "var(".concat(getColorVariableName(color), "__rgb)");
|
|
22
|
+
}
|
|
23
|
+
/** RDS컬러를 통해서 css의 rgba함수를 사용
|
|
24
|
+
* @example css`color: ${getRgb(contents000, 0.5)}`
|
|
25
|
+
* @example css`box-shadow: 0 0 0 5px ${getRgb(contents000, 0.5)}`
|
|
26
|
+
*/
|
|
27
|
+
function getRgba(color, opacity) {
|
|
28
|
+
return "rgba(".concat(getRgb(color), ",").concat(opacity, ")");
|
|
29
|
+
}
|
|
30
|
+
/** hex로 된 컬러값을 rgb값으로 변경해줌 */
|
|
31
|
+
function hexToRgb(colorHex) {
|
|
32
|
+
var hexWithoutHash = colorHex.replace('#', '');
|
|
33
|
+
if (hexWithoutHash.length !== 3 && hexWithoutHash.length !== 6) {
|
|
34
|
+
throw new Error('Invalid hex color');
|
|
35
|
+
}
|
|
36
|
+
if (hexWithoutHash.length === 3) {
|
|
37
|
+
hexWithoutHash = _toConsumableArray__default.default(hexWithoutHash).map(function (hex) {
|
|
38
|
+
return hex.repeat(2);
|
|
39
|
+
}).join();
|
|
40
|
+
}
|
|
41
|
+
var _hexWithoutHash$split = hexWithoutHash.split(/(..)(..)(..)/).map(function (hex) {
|
|
42
|
+
return parseInt(hex, 16);
|
|
43
|
+
}),
|
|
44
|
+
_hexWithoutHash$split2 = _slicedToArray__default.default(_hexWithoutHash$split, 4),
|
|
45
|
+
r = _hexWithoutHash$split2[1],
|
|
46
|
+
g = _hexWithoutHash$split2[2],
|
|
47
|
+
b = _hexWithoutHash$split2[3];
|
|
48
|
+
return "".concat(r, ",").concat(g, ",").concat(b);
|
|
49
|
+
}
|
|
50
|
+
function getBrowserTheme() {
|
|
51
|
+
if (!common.isSSR() && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
52
|
+
return 'dark';
|
|
53
|
+
}
|
|
54
|
+
return 'light';
|
|
55
|
+
}
|
|
56
|
+
/** css variable을 hex로 반환 */
|
|
57
|
+
function getHexFromRuiCssVariable(_ref) {
|
|
58
|
+
var colorVariable = _ref.colorVariable,
|
|
59
|
+
theme$1 = _ref.theme;
|
|
60
|
+
return theme.RUI_COLOR_THEME[theme$1][getColorVariableName(colorVariable)];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.getBrowserTheme = getBrowserTheme;
|
|
64
|
+
exports.getColorVariableName = getColorVariableName;
|
|
65
|
+
exports.getHexFromRuiCssVariable = getHexFromRuiCssVariable;
|
|
66
|
+
exports.getRgb = getRgb;
|
|
67
|
+
exports.getRgba = getRgba;
|
|
68
|
+
exports.hexToRgb = hexToRgb;
|
|
69
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 };
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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}) {\n return RUI_COLOR_THEME[theme][getColorVariableName(colorVariable)];\n}\n"],"names":[],"mappings":";;;AAUA;AACM,SAAU,oBAAoB,CAClC,KAAuB,EAAA;IAEvB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAyB,CAAC;AACpD,CAAC;AAED;;AAEG;AACG,SAAU,MAAM,CAAC,KAAoB,EAAA;AACzC,IAAA,OAAO,OAAO,oBAAoB,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpD,CAAC;AAED;;;AAGG;AACa,SAAA,OAAO,CAAC,KAAoB,EAAE,OAA8B,EAAA;IAC1E,OAAO,CAAA,KAAA,EAAQ,MAAM,CAAC,KAAK,CAAC,CAAI,CAAA,EAAA,OAAO,GAAG,CAAC;AAC7C,CAAC;AAED;AACM,SAAU,QAAQ,CAAC,QAAgB,EAAA;IACvC,IAAI,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAE/C,IAAA,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;AAC9D,QAAA,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACtC;AAED,IAAA,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;QAC/B,cAAc,GAAG,CAAC,GAAG,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACzE;IAED,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc;SAC/B,KAAK,CAAC,cAAc,CAAC;AACrB,SAAA,GAAG,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AAEnC,IAAA,OAAO,GAAG,CAAC,CAAA,CAAA,EAAI,CAAC,CAAI,CAAA,EAAA,CAAC,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;;;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var primary100 = 'var(--rui-primary100)';
|
|
4
|
+
var primary200 = 'var(--rui-primary200)';
|
|
5
|
+
var secondary100 = 'var(--rui-secondary100)';
|
|
6
|
+
// Contents txt/ label/ border/ divider
|
|
7
|
+
var contents000 = 'var(--rui-contents000)';
|
|
8
|
+
var contents100 = 'var(--rui-contents100)';
|
|
9
|
+
var contents150 = 'var(--rui-contents150)';
|
|
10
|
+
var contents200 = 'var(--rui-contents200)';
|
|
11
|
+
var contents300 = 'var(--rui-contents300)';
|
|
12
|
+
var contents999 = 'var(--rui-contents999)';
|
|
13
|
+
// Disable disabled CTA
|
|
14
|
+
var disabled = 'var(--rui-disabled)';
|
|
15
|
+
var disabledRoleRed = 'var(--rui-disabled-role-red)';
|
|
16
|
+
var disabledSecondary = 'var(--rui-disabled-secondary)';
|
|
17
|
+
// Accent Error/ Link/
|
|
18
|
+
var roleRed = 'var(--rui-role-red)';
|
|
19
|
+
var roleYellow = 'var(--rui-role-yellow)';
|
|
20
|
+
var roleBlue = 'var(--rui-role-blue)';
|
|
21
|
+
var roleGreen = 'var(--rui-role-green)';
|
|
22
|
+
// Background
|
|
23
|
+
var bg100 = 'var(--rui-bg100)';
|
|
24
|
+
var bg200 = 'var(--rui-bg200)';
|
|
25
|
+
var bg300 = 'var(--rui-bg300)';
|
|
26
|
+
var bgModal100 = 'var(--rui-bg-modal100)';
|
|
27
|
+
var bgModal200 = 'var(--rui-bg-modal200)';
|
|
28
|
+
var bgRoleRed = 'var(--rui-bg-role-red)';
|
|
29
|
+
var bgSecondary100 = 'var(--rui-bg-secondary100)';
|
|
30
|
+
var bgHighlight = 'var(--rui-bg-highlight)';
|
|
31
|
+
var bgRoleYellow = 'var(--rui-bg-role-yellow)';
|
|
32
|
+
var bgRoleBlue = 'var(--rui-bg-role-blue)';
|
|
33
|
+
var bgRoleGreen = 'var(--rui-bg-role-green)';
|
|
34
|
+
// Divider
|
|
35
|
+
var divider = 'var(--rui-divider)';
|
|
36
|
+
// Fixed
|
|
37
|
+
var fixedWhite = 'var(--rui-fixed-white)';
|
|
38
|
+
var fixedBgWhite = 'var(--rui-fixed-bg-white)';
|
|
39
|
+
var fixedBlack = 'var(--rui-fixed-black)';
|
|
40
|
+
|
|
41
|
+
exports.bg100 = bg100;
|
|
42
|
+
exports.bg200 = bg200;
|
|
43
|
+
exports.bg300 = bg300;
|
|
44
|
+
exports.bgHighlight = bgHighlight;
|
|
45
|
+
exports.bgModal100 = bgModal100;
|
|
46
|
+
exports.bgModal200 = bgModal200;
|
|
47
|
+
exports.bgRoleBlue = bgRoleBlue;
|
|
48
|
+
exports.bgRoleGreen = bgRoleGreen;
|
|
49
|
+
exports.bgRoleRed = bgRoleRed;
|
|
50
|
+
exports.bgRoleYellow = bgRoleYellow;
|
|
51
|
+
exports.bgSecondary100 = bgSecondary100;
|
|
52
|
+
exports.contents000 = contents000;
|
|
53
|
+
exports.contents100 = contents100;
|
|
54
|
+
exports.contents150 = contents150;
|
|
55
|
+
exports.contents200 = contents200;
|
|
56
|
+
exports.contents300 = contents300;
|
|
57
|
+
exports.contents999 = contents999;
|
|
58
|
+
exports.disabled = disabled;
|
|
59
|
+
exports.disabledRoleRed = disabledRoleRed;
|
|
60
|
+
exports.disabledSecondary = disabledSecondary;
|
|
61
|
+
exports.divider = divider;
|
|
62
|
+
exports.fixedBgWhite = fixedBgWhite;
|
|
63
|
+
exports.fixedBlack = fixedBlack;
|
|
64
|
+
exports.fixedWhite = fixedWhite;
|
|
65
|
+
exports.primary100 = primary100;
|
|
66
|
+
exports.primary200 = primary200;
|
|
67
|
+
exports.roleBlue = roleBlue;
|
|
68
|
+
exports.roleGreen = roleGreen;
|
|
69
|
+
exports.roleRed = roleRed;
|
|
70
|
+
exports.roleYellow = roleYellow;
|
|
71
|
+
exports.secondary100 = secondary100;
|
|
72
|
+
//# sourceMappingURL=variables.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variables.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 };
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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.cjs
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var variables = require('./colors/variables.cjs');
|
|
4
|
+
var utils = require('./colors/utils.cjs');
|
|
5
|
+
var index = require('./mediaQuery/index.cjs');
|
|
6
|
+
var index$1 = require('./typography/index.cjs');
|
|
7
|
+
var _const = require('./mediaQuery/const.cjs');
|
|
8
|
+
var _const$1 = require('./typography/const.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.bg100 = variables.bg100;
|
|
13
|
+
exports.bg200 = variables.bg200;
|
|
14
|
+
exports.bg300 = variables.bg300;
|
|
15
|
+
exports.bgHighlight = variables.bgHighlight;
|
|
16
|
+
exports.bgModal100 = variables.bgModal100;
|
|
17
|
+
exports.bgModal200 = variables.bgModal200;
|
|
18
|
+
exports.bgRoleBlue = variables.bgRoleBlue;
|
|
19
|
+
exports.bgRoleGreen = variables.bgRoleGreen;
|
|
20
|
+
exports.bgRoleRed = variables.bgRoleRed;
|
|
21
|
+
exports.bgRoleYellow = variables.bgRoleYellow;
|
|
22
|
+
exports.bgSecondary100 = variables.bgSecondary100;
|
|
23
|
+
exports.contents000 = variables.contents000;
|
|
24
|
+
exports.contents100 = variables.contents100;
|
|
25
|
+
exports.contents150 = variables.contents150;
|
|
26
|
+
exports.contents200 = variables.contents200;
|
|
27
|
+
exports.contents300 = variables.contents300;
|
|
28
|
+
exports.contents999 = variables.contents999;
|
|
29
|
+
exports.disabled = variables.disabled;
|
|
30
|
+
exports.disabledRoleRed = variables.disabledRoleRed;
|
|
31
|
+
exports.disabledSecondary = variables.disabledSecondary;
|
|
32
|
+
exports.divider = variables.divider;
|
|
33
|
+
exports.fixedBgWhite = variables.fixedBgWhite;
|
|
34
|
+
exports.fixedBlack = variables.fixedBlack;
|
|
35
|
+
exports.fixedWhite = variables.fixedWhite;
|
|
36
|
+
exports.primary100 = variables.primary100;
|
|
37
|
+
exports.primary200 = variables.primary200;
|
|
38
|
+
exports.roleBlue = variables.roleBlue;
|
|
39
|
+
exports.roleGreen = variables.roleGreen;
|
|
40
|
+
exports.roleRed = variables.roleRed;
|
|
41
|
+
exports.roleYellow = variables.roleYellow;
|
|
42
|
+
exports.secondary100 = variables.secondary100;
|
|
43
|
+
exports.getBrowserTheme = utils.getBrowserTheme;
|
|
44
|
+
exports.getColorVariableName = utils.getColorVariableName;
|
|
45
|
+
exports.getHexFromRuiCssVariable = utils.getHexFromRuiCssVariable;
|
|
46
|
+
exports.getRgb = utils.getRgb;
|
|
47
|
+
exports.getRgba = utils.getRgba;
|
|
48
|
+
exports.hexToRgb = utils.hexToRgb;
|
|
49
|
+
exports.desktopOnly = index.desktopOnly;
|
|
50
|
+
exports.getDeviceWidthMediaQuery = index.getDeviceWidthMediaQuery;
|
|
51
|
+
exports.mobileOnly = index.mobileOnly;
|
|
52
|
+
exports.phoneOnly = index.phoneOnly;
|
|
53
|
+
exports.ellipsis = index$1.ellipsis;
|
|
54
|
+
exports.getTypographyStyles = index$1.getTypographyStyles;
|
|
55
|
+
exports.textEllipsis = index$1.textEllipsis;
|
|
56
|
+
exports.DESKTOP_WIDTH = _const.DESKTOP_WIDTH;
|
|
57
|
+
exports.PHONE_WIDTH = _const.PHONE_WIDTH;
|
|
58
|
+
exports.PRETENDARD_FONT_FAMILY = _const$1.PRETENDARD_FONT_FAMILY;
|
|
59
|
+
exports.TYPOGRAPHY_STYLES = _const$1.TYPOGRAPHY_STYLES;
|
|
60
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts","../src/colors/index.ts"],"names":[],"mappings":";;AACA,sCAA6B;AAC7B,sCAA6B"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
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 } from './colors/variables.js';
|
|
2
|
+
export { getBrowserTheme, getColorVariableName, getHexFromRuiCssVariable, getRgb, getRgba, hexToRgb } from './colors/utils.js';
|
|
3
|
+
export { desktopOnly, getDeviceWidthMediaQuery, mobileOnly, phoneOnly } from './mediaQuery/index.js';
|
|
4
|
+
export { ellipsis, getTypographyStyles, textEllipsis } from './typography/index.js';
|
|
5
|
+
export { DESKTOP_WIDTH, PHONE_WIDTH } from './mediaQuery/const.js';
|
|
6
|
+
export { PRETENDARD_FONT_FAMILY, TYPOGRAPHY_STYLES } from './typography/const.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"const.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;"}
|