@charcoal-ui/theme 5.0.0-beta.2 → 5.0.0-beta.4

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 (61) hide show
  1. package/dist/index.cjs +177 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +129 -0
  4. package/dist/index.d.cts.map +1 -0
  5. package/dist/index.d.ts +128 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +175 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/unstable-token-object/index.cjs +108 -0
  10. package/dist/unstable-token-object/index.cjs.map +1 -0
  11. package/dist/unstable-token-object/index.d.cts +25 -0
  12. package/dist/unstable-token-object/index.d.cts.map +1 -0
  13. package/dist/unstable-token-object/index.d.ts +24 -4
  14. package/dist/unstable-token-object/index.d.ts.map +1 -1
  15. package/dist/unstable-token-object/index.js +81 -0
  16. package/dist/unstable-token-object/index.js.map +1 -0
  17. package/package.json +16 -29
  18. package/src/default.test.ts +211 -0
  19. package/src/default.ts +167 -131
  20. package/src/docs/ThemeColors.tsx +2 -1
  21. package/src/unstable-token-object/helpers/changecase-keys.test-d.ts +2 -0
  22. package/src/unstable-token-object/reference-token.ts +1 -1
  23. package/theme.json +242 -242
  24. package/dist/abstract-theme.d.ts +0 -52
  25. package/dist/abstract-theme.d.ts.map +0 -1
  26. package/dist/default.d.ts +0 -4
  27. package/dist/default.d.ts.map +0 -1
  28. package/dist/index.cjs.js +0 -202
  29. package/dist/index.cjs.js.map +0 -1
  30. package/dist/index.esm.js +0 -171
  31. package/dist/index.esm.js.map +0 -1
  32. package/dist/theme.d.ts +0 -90
  33. package/dist/theme.d.ts.map +0 -1
  34. package/dist/unstable-token-object/helpers/changecase-keys.d.ts +0 -7
  35. package/dist/unstable-token-object/helpers/changecase-keys.d.ts.map +0 -1
  36. package/dist/unstable-token-object/helpers/changecase-keys.test-d.d.ts +0 -2
  37. package/dist/unstable-token-object/helpers/changecase-keys.test-d.d.ts.map +0 -1
  38. package/dist/unstable-token-object/helpers/changecase-keys.test.d.ts +0 -2
  39. package/dist/unstable-token-object/helpers/changecase-keys.test.d.ts.map +0 -1
  40. package/dist/unstable-token-object/helpers/is-empty-array.d.ts +0 -2
  41. package/dist/unstable-token-object/helpers/is-empty-array.d.ts.map +0 -1
  42. package/dist/unstable-token-object/helpers/nest-object.d.ts +0 -11
  43. package/dist/unstable-token-object/helpers/nest-object.d.ts.map +0 -1
  44. package/dist/unstable-token-object/helpers/nest-object.test.d.ts +0 -2
  45. package/dist/unstable-token-object/helpers/nest-object.test.d.ts.map +0 -1
  46. package/dist/unstable-token-object/index.cjs.js +0 -156
  47. package/dist/unstable-token-object/index.cjs.js.map +0 -1
  48. package/dist/unstable-token-object/index.esm.js +0 -117
  49. package/dist/unstable-token-object/index.esm.js.map +0 -1
  50. package/dist/unstable-token-object/reference-token.d.ts +0 -4
  51. package/dist/unstable-token-object/reference-token.d.ts.map +0 -1
  52. package/dist/unstable-token-object/reference-token.test.d.ts +0 -2
  53. package/dist/unstable-token-object/reference-token.test.d.ts.map +0 -1
  54. package/dist/unstable-token-object/to-token-object.d.ts +0 -3
  55. package/dist/unstable-token-object/to-token-object.d.ts.map +0 -1
  56. package/dist/unstable-token-object/token-object.bench.d.ts +0 -2
  57. package/dist/unstable-token-object/token-object.bench.d.ts.map +0 -1
  58. package/dist/unstable-token-object/token-object.test.d.ts +0 -2
  59. package/dist/unstable-token-object/token-object.test.d.ts.map +0 -1
  60. package/dist/unstable-token-object/types.d.ts +0 -20
  61. package/dist/unstable-token-object/types.d.ts.map +0 -1
package/dist/index.cjs ADDED
@@ -0,0 +1,177 @@
1
+
2
+ //#region src/default.ts
3
+ const common = {
4
+ borderRadius: {
5
+ "4": 4,
6
+ "8": 8,
7
+ "16": 16,
8
+ "24": 24,
9
+ none: 0,
10
+ oval: 999999
11
+ },
12
+ breakpoint: {
13
+ screen1: 744,
14
+ screen2: 952,
15
+ screen3: 1160,
16
+ screen4: 1368
17
+ },
18
+ elementEffect: { disabled: {
19
+ opacity: .32,
20
+ type: "opacity"
21
+ } },
22
+ gradientColor: {
23
+ callToAction: [{
24
+ color: "#d1ff1a",
25
+ ratio: 0
26
+ }, {
27
+ color: "#1ad1ff",
28
+ ratio: 100
29
+ }],
30
+ surface5: [{
31
+ color: "rgba(0,0,0,0.32)",
32
+ ratio: 0
33
+ }, {
34
+ color: "rgba(0,0,0,0)",
35
+ ratio: 100
36
+ }]
37
+ },
38
+ grid: { unit: {
39
+ column: 80,
40
+ gutter: 24
41
+ } },
42
+ outline: {
43
+ assertive: {
44
+ color: "rgba(255,43,0,0.32)",
45
+ weight: 4
46
+ },
47
+ default: {
48
+ color: "rgba(0,150,250,0.32)",
49
+ weight: 4
50
+ }
51
+ },
52
+ spacing: {
53
+ "0": 0,
54
+ "4": 4,
55
+ "8": 8,
56
+ "16": 16,
57
+ "24": 24,
58
+ "40": 40,
59
+ "64": 64,
60
+ "104": 104,
61
+ "168": 168,
62
+ "272": 272,
63
+ "440": 440
64
+ },
65
+ transition: { default: { duration: .2 } },
66
+ typography: { size: {
67
+ "12": {
68
+ fontSize: 12,
69
+ lineHeight: 20
70
+ },
71
+ "14": {
72
+ fontSize: 14,
73
+ lineHeight: 22
74
+ },
75
+ "16": {
76
+ fontSize: 16,
77
+ lineHeight: 24
78
+ },
79
+ "20": {
80
+ fontSize: 20,
81
+ lineHeight: 28
82
+ },
83
+ "32": {
84
+ fontSize: 32,
85
+ lineHeight: 40
86
+ }
87
+ } }
88
+ };
89
+ const light = {
90
+ ...common,
91
+ border: { default: { color: "rgba(0,0,0,0.08)" } },
92
+ color: {
93
+ assertive: "#ff2b00",
94
+ background1: "#ffffff",
95
+ background2: "#f5f5f5",
96
+ border: "rgba(0,0,0,0.08)",
97
+ brand: "#0096fa",
98
+ icon6: "rgba(255,255,255,0.28)",
99
+ link1: "#3d7699",
100
+ link2: "rgba(255,255,255,0.36)",
101
+ success: "#b1cc29",
102
+ surface1: "#ffffff",
103
+ surface10: "rgba(0,0,0,0.16)",
104
+ surface2: "rgba(0,0,0,0.02)",
105
+ surface3: "rgba(0,0,0,0.04)",
106
+ surface4: "rgba(0,0,0,0.32)",
107
+ surface6: "rgba(0,0,0,0.88)",
108
+ surface7: "rgba(0,0,0,0.02)",
109
+ surface8: "rgba(0,0,0,0.88)",
110
+ surface9: "#ffffff",
111
+ text1: "#1f1f1f",
112
+ text2: "#474747",
113
+ text3: "#858585",
114
+ text4: "#adadad",
115
+ text5: "#ffffff",
116
+ transparent: "rgba(0,0,0,0)",
117
+ updatedItem: "rgba(0,150,250,0.04)",
118
+ warning: "#ffaf0f"
119
+ },
120
+ effect: {
121
+ hover: {
122
+ color: "rgba(0,0,0,0.04)",
123
+ type: "alpha"
124
+ },
125
+ press: {
126
+ color: "rgba(0,0,0,0.16)",
127
+ type: "alpha"
128
+ }
129
+ }
130
+ };
131
+ const dark = {
132
+ ...common,
133
+ border: { default: { color: "rgba(255,255,255,0.12)" } },
134
+ color: {
135
+ assertive: "#ff2b00",
136
+ background1: "#1f1f1f",
137
+ background2: "#000000",
138
+ border: "rgba(255,255,255,0.12)",
139
+ brand: "#0096fa",
140
+ icon6: "rgba(255,255,255,0.28)",
141
+ link1: "#669FC2",
142
+ link2: "rgba(255,255,255,0.36)",
143
+ success: "#b1cc29",
144
+ surface1: "#1f1f1f",
145
+ surface10: "rgba(255,255,255,0.2)",
146
+ surface2: "rgba(0,0,0,0.16)",
147
+ surface3: "rgba(255,255,255,0.12)",
148
+ surface4: "rgba(0,0,0,0.32)",
149
+ surface6: "rgba(255,255,255,0.12)",
150
+ surface7: "rgba(0,0,0,0)",
151
+ surface8: "rgba(0,0,0,0.88)",
152
+ surface9: "#333333",
153
+ text1: "#f5f5f5",
154
+ text2: "#d6d6d6",
155
+ text3: "#858585",
156
+ text4: "#5c5c5c",
157
+ text5: "#f5f5f5",
158
+ transparent: "rgba(0,0,0,0)",
159
+ updatedItem: "rgba(0,150,250,0.12)",
160
+ warning: "#ffaf0f"
161
+ },
162
+ effect: {
163
+ hover: {
164
+ color: "rgba(255,255,255,0.12)",
165
+ type: "alpha"
166
+ },
167
+ press: {
168
+ color: "rgba(255,255,255,0.2)",
169
+ type: "alpha"
170
+ }
171
+ }
172
+ };
173
+
174
+ //#endregion
175
+ exports.dark = dark;
176
+ exports.light = light;
177
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/default.ts"],"sourcesContent":["/** This file is auto generated. DO NOT EDIT BY HAND. */\nimport { CharcoalTheme } from './theme'\n\nconst common = {\n borderRadius: {\n '4': 4,\n '8': 8,\n '16': 16,\n '24': 24,\n none: 0,\n oval: 999999,\n },\n breakpoint: {\n screen1: 744,\n screen2: 952,\n screen3: 1160,\n screen4: 1368,\n },\n elementEffect: {\n disabled: {\n opacity: 0.32,\n type: 'opacity',\n },\n },\n gradientColor: {\n callToAction: [\n {\n color: '#d1ff1a',\n ratio: 0,\n },\n {\n color: '#1ad1ff',\n ratio: 100,\n },\n ],\n surface5: [\n {\n color: 'rgba(0,0,0,0.32)',\n ratio: 0,\n },\n {\n color: 'rgba(0,0,0,0)',\n ratio: 100,\n },\n ],\n },\n grid: {\n unit: {\n column: 80,\n gutter: 24,\n },\n },\n outline: {\n assertive: {\n color: 'rgba(255,43,0,0.32)',\n weight: 4,\n },\n default: {\n color: 'rgba(0,150,250,0.32)',\n weight: 4,\n },\n },\n spacing: {\n '0': 0,\n '4': 4,\n '8': 8,\n '16': 16,\n '24': 24,\n '40': 40,\n '64': 64,\n '104': 104,\n '168': 168,\n '272': 272,\n '440': 440,\n },\n transition: {\n default: {\n duration: 0.2,\n },\n },\n typography: {\n size: {\n '12': {\n fontSize: 12,\n lineHeight: 20,\n },\n '14': {\n fontSize: 14,\n lineHeight: 22,\n },\n '16': {\n fontSize: 16,\n lineHeight: 24,\n },\n '20': {\n fontSize: 20,\n lineHeight: 28,\n },\n '32': {\n fontSize: 32,\n lineHeight: 40,\n },\n },\n },\n} as const\n\nexport const light: CharcoalTheme = {\n ...common,\n ...{\n border: {\n default: {\n color: 'rgba(0,0,0,0.08)',\n },\n },\n color: {\n assertive: '#ff2b00',\n background1: '#ffffff',\n background2: '#f5f5f5',\n border: 'rgba(0,0,0,0.08)',\n brand: '#0096fa',\n icon6: 'rgba(255,255,255,0.28)',\n link1: '#3d7699',\n link2: 'rgba(255,255,255,0.36)',\n success: '#b1cc29',\n surface1: '#ffffff',\n surface10: 'rgba(0,0,0,0.16)',\n surface2: 'rgba(0,0,0,0.02)',\n surface3: 'rgba(0,0,0,0.04)',\n surface4: 'rgba(0,0,0,0.32)',\n surface6: 'rgba(0,0,0,0.88)',\n surface7: 'rgba(0,0,0,0.02)',\n surface8: 'rgba(0,0,0,0.88)',\n surface9: '#ffffff',\n text1: '#1f1f1f',\n text2: '#474747',\n text3: '#858585',\n text4: '#adadad',\n text5: '#ffffff',\n transparent: 'rgba(0,0,0,0)',\n updatedItem: 'rgba(0,150,250,0.04)',\n warning: '#ffaf0f',\n },\n effect: {\n hover: {\n color: 'rgba(0,0,0,0.04)',\n type: 'alpha',\n },\n press: {\n color: 'rgba(0,0,0,0.16)',\n type: 'alpha',\n },\n },\n },\n}\n\nexport const dark: CharcoalTheme = {\n ...common,\n ...{\n border: {\n default: {\n color: 'rgba(255,255,255,0.12)',\n },\n },\n color: {\n assertive: '#ff2b00',\n background1: '#1f1f1f',\n background2: '#000000',\n border: 'rgba(255,255,255,0.12)',\n brand: '#0096fa',\n icon6: 'rgba(255,255,255,0.28)',\n link1: '#669FC2',\n link2: 'rgba(255,255,255,0.36)',\n success: '#b1cc29',\n surface1: '#1f1f1f',\n surface10: 'rgba(255,255,255,0.2)',\n surface2: 'rgba(0,0,0,0.16)',\n surface3: 'rgba(255,255,255,0.12)',\n surface4: 'rgba(0,0,0,0.32)',\n surface6: 'rgba(255,255,255,0.12)',\n surface7: 'rgba(0,0,0,0)',\n surface8: 'rgba(0,0,0,0.88)',\n surface9: '#333333',\n text1: '#f5f5f5',\n text2: '#d6d6d6',\n text3: '#858585',\n text4: '#5c5c5c',\n text5: '#f5f5f5',\n transparent: 'rgba(0,0,0,0)',\n updatedItem: 'rgba(0,150,250,0.12)',\n warning: '#ffaf0f',\n },\n effect: {\n hover: {\n color: 'rgba(255,255,255,0.12)',\n type: 'alpha',\n },\n press: {\n color: 'rgba(255,255,255,0.2)',\n type: 'alpha',\n },\n },\n },\n}\n"],"mappings":";;AAGA,MAAM,SAAS;CACb,cAAc;EACZ,KAAK;EACL,KAAK;EACL,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACP;CACD,YAAY;EACV,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACV;CACD,eAAe,EACb,UAAU;EACR,SAAS;EACT,MAAM;EACP,EACF;CACD,eAAe;EACb,cAAc,CACZ;GACE,OAAO;GACP,OAAO;GACR,EACD;GACE,OAAO;GACP,OAAO;GACR,CACF;EACD,UAAU,CACR;GACE,OAAO;GACP,OAAO;GACR,EACD;GACE,OAAO;GACP,OAAO;GACR,CACF;EACF;CACD,MAAM,EACJ,MAAM;EACJ,QAAQ;EACR,QAAQ;EACT,EACF;CACD,SAAS;EACP,WAAW;GACT,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,OAAO;GACP,QAAQ;GACT;EACF;CACD,SAAS;EACP,KAAK;EACL,KAAK;EACL,KAAK;EACL,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACN,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACR;CACD,YAAY,EACV,SAAS,EACP,UAAU,IACX,EACF;CACD,YAAY,EACV,MAAM;EACJ,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACF,EACF;CACF;AAED,MAAaA,QAAuB;CAClC,GAAG;CAED,QAAQ,EACN,SAAS,EACP,OAAO,oBACR,EACF;CACD,OAAO;EACL,WAAW;EACX,aAAa;EACb,aAAa;EACb,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;EACT,UAAU;EACV,WAAW;EACX,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,aAAa;EACb,aAAa;EACb,SAAS;EACV;CACD,QAAQ;EACN,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACD,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACF;CAEJ;AAED,MAAaC,OAAsB;CACjC,GAAG;CAED,QAAQ,EACN,SAAS,EACP,OAAO,0BACR,EACF;CACD,OAAO;EACL,WAAW;EACX,aAAa;EACb,aAAa;EACb,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;EACT,UAAU;EACV,WAAW;EACX,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,aAAa;EACb,aAAa;EACb,SAAS;EACV;CACD,QAAQ;EACN,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACD,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACF;CAEJ"}
@@ -0,0 +1,129 @@
1
+ import { BORDER_RADIUS, Effect, GradientMaterial, Material, OpacityEffect, SPACING, TypographyDescriptor } from "@charcoal-ui/foundation";
2
+
3
+ //#region src/abstract-theme.d.ts
4
+ type EffectType = "hover" | "press" | "disabled";
5
+ type Key = string | number | symbol;
6
+ type ColorStyleTheme = { [key in Key]: Material };
7
+ interface CharcoalAbstractTheme {
8
+ color: ColorStyleTheme;
9
+ gradientColor: { [key in Key]: GradientMaterial };
10
+ effect: { [key in EffectType]?: Effect };
11
+ elementEffect: { [key in EffectType]?: OpacityEffect };
12
+ spacing: { [key in Key]: number };
13
+ typography: {
14
+ size: { [key in Key]: TypographyDescriptor };
15
+ };
16
+ borderRadius: { [key in Key]: number };
17
+ border: { [key in Key]: {
18
+ color: Material;
19
+ } };
20
+ outline: { [key in Key]: {
21
+ color: Material;
22
+ weight: number;
23
+ } };
24
+ grid: {
25
+ unit: {
26
+ column: number;
27
+ gutter: number;
28
+ };
29
+ };
30
+ transition: { [key in Key]: {
31
+ duration: number;
32
+ } };
33
+ }
34
+ //#endregion
35
+ //#region src/theme.d.ts
36
+ interface CharcoalTheme extends CharcoalAbstractTheme {
37
+ readonly color: ThemeColor;
38
+ readonly gradientColor: ThemeColorGradient;
39
+ /**
40
+ * effect for color (background or font color)
41
+ */
42
+ readonly effect: ThemeEffect;
43
+ /**
44
+ * effect for element its own (opacify element includes descendants)
45
+ */
46
+ readonly elementEffect: ThemeElementEffect;
47
+ readonly spacing: Spacing;
48
+ readonly typography: {
49
+ readonly size: Typography;
50
+ };
51
+ readonly borderRadius: BorderRadius;
52
+ readonly border: {
53
+ readonly default: {
54
+ readonly color: Material;
55
+ };
56
+ };
57
+ readonly outline: {
58
+ readonly default: {
59
+ readonly color: string;
60
+ readonly weight: 4;
61
+ };
62
+ readonly assertive: {
63
+ readonly color: string;
64
+ readonly weight: 4;
65
+ };
66
+ };
67
+ readonly breakpoint: Breakpoint;
68
+ }
69
+ type ThemeColor = {
70
+ readonly transparent: Material;
71
+ readonly background1: Material;
72
+ readonly background2: Material;
73
+ readonly surface1: Material;
74
+ readonly surface2: Material;
75
+ readonly surface3: Material;
76
+ readonly surface4: Material;
77
+ readonly surface6: Material;
78
+ readonly surface7: Material;
79
+ readonly surface8: Material;
80
+ readonly surface9: Material;
81
+ readonly surface10: Material;
82
+ readonly link1: Material;
83
+ readonly link2: Material;
84
+ readonly text1: Material;
85
+ readonly text2: Material;
86
+ readonly text3: Material;
87
+ readonly text4: Material;
88
+ readonly text5: Material;
89
+ readonly icon6: Material;
90
+ readonly brand: Material;
91
+ readonly assertive: Material;
92
+ readonly warning: Material;
93
+ readonly success: Material;
94
+ readonly updatedItem: Material;
95
+ readonly border: Material;
96
+ };
97
+ type ThemeEffect = {
98
+ readonly hover: Effect;
99
+ readonly press: Effect;
100
+ };
101
+ type ThemeElementEffect = {
102
+ readonly disabled: OpacityEffect;
103
+ };
104
+ type ThemeColorGradient = {
105
+ readonly surface5: GradientMaterial;
106
+ readonly callToAction: GradientMaterial;
107
+ };
108
+ type Typography = {
109
+ readonly [12]: TypographyDescriptor;
110
+ readonly [14]: TypographyDescriptor;
111
+ readonly [16]: TypographyDescriptor;
112
+ readonly [20]: TypographyDescriptor;
113
+ readonly [32]: TypographyDescriptor;
114
+ };
115
+ type Breakpoint = {
116
+ readonly screen1: number;
117
+ readonly screen2: number;
118
+ readonly screen3: number;
119
+ readonly screen4: number;
120
+ };
121
+ type Spacing = Readonly<Record<keyof typeof SPACING, number>>;
122
+ type BorderRadius = Readonly<Record<keyof typeof BORDER_RADIUS, number>>;
123
+ //#endregion
124
+ //#region src/default.d.ts
125
+ declare const light: CharcoalTheme;
126
+ declare const dark: CharcoalTheme;
127
+ //#endregion
128
+ export { BorderRadius, Breakpoint, CharcoalAbstractTheme, CharcoalTheme, ColorStyleTheme, EffectType, Key, Spacing, ThemeColor, ThemeColorGradient, ThemeEffect, ThemeElementEffect, Typography, dark, light };
129
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":["light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/abstract-theme.ts","../src/theme.ts","../src/default.ts"],"sourcesContent":[],"mappings":";;;KAQY,UAAA;KAEA,GAAA;AAFA,KAIA,eAAA,GAJA,UAKF,GALE,GAKI,QALJ,EAAA;AAEA,UAMK,qBAAA,CANL;EAEZ,KAAY,EAK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JO,aFnJP"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,129 @@
1
- export * from './theme';
2
- export * from './abstract-theme';
3
- export * from './default';
1
+ import { BORDER_RADIUS, Effect, GradientMaterial, Material, OpacityEffect, SPACING, TypographyDescriptor } from "@charcoal-ui/foundation";
2
+
3
+ //#region src/abstract-theme.d.ts
4
+ type EffectType = "hover" | "press" | "disabled";
5
+ type Key = string | number | symbol;
6
+ type ColorStyleTheme = { [key in Key]: Material };
7
+ interface CharcoalAbstractTheme {
8
+ color: ColorStyleTheme;
9
+ gradientColor: { [key in Key]: GradientMaterial };
10
+ effect: { [key in EffectType]?: Effect };
11
+ elementEffect: { [key in EffectType]?: OpacityEffect };
12
+ spacing: { [key in Key]: number };
13
+ typography: {
14
+ size: { [key in Key]: TypographyDescriptor };
15
+ };
16
+ borderRadius: { [key in Key]: number };
17
+ border: { [key in Key]: {
18
+ color: Material;
19
+ } };
20
+ outline: { [key in Key]: {
21
+ color: Material;
22
+ weight: number;
23
+ } };
24
+ grid: {
25
+ unit: {
26
+ column: number;
27
+ gutter: number;
28
+ };
29
+ };
30
+ transition: { [key in Key]: {
31
+ duration: number;
32
+ } };
33
+ }
34
+ //#endregion
35
+ //#region src/theme.d.ts
36
+ interface CharcoalTheme extends CharcoalAbstractTheme {
37
+ readonly color: ThemeColor;
38
+ readonly gradientColor: ThemeColorGradient;
39
+ /**
40
+ * effect for color (background or font color)
41
+ */
42
+ readonly effect: ThemeEffect;
43
+ /**
44
+ * effect for element its own (opacify element includes descendants)
45
+ */
46
+ readonly elementEffect: ThemeElementEffect;
47
+ readonly spacing: Spacing;
48
+ readonly typography: {
49
+ readonly size: Typography;
50
+ };
51
+ readonly borderRadius: BorderRadius;
52
+ readonly border: {
53
+ readonly default: {
54
+ readonly color: Material;
55
+ };
56
+ };
57
+ readonly outline: {
58
+ readonly default: {
59
+ readonly color: string;
60
+ readonly weight: 4;
61
+ };
62
+ readonly assertive: {
63
+ readonly color: string;
64
+ readonly weight: 4;
65
+ };
66
+ };
67
+ readonly breakpoint: Breakpoint;
68
+ }
69
+ type ThemeColor = {
70
+ readonly transparent: Material;
71
+ readonly background1: Material;
72
+ readonly background2: Material;
73
+ readonly surface1: Material;
74
+ readonly surface2: Material;
75
+ readonly surface3: Material;
76
+ readonly surface4: Material;
77
+ readonly surface6: Material;
78
+ readonly surface7: Material;
79
+ readonly surface8: Material;
80
+ readonly surface9: Material;
81
+ readonly surface10: Material;
82
+ readonly link1: Material;
83
+ readonly link2: Material;
84
+ readonly text1: Material;
85
+ readonly text2: Material;
86
+ readonly text3: Material;
87
+ readonly text4: Material;
88
+ readonly text5: Material;
89
+ readonly icon6: Material;
90
+ readonly brand: Material;
91
+ readonly assertive: Material;
92
+ readonly warning: Material;
93
+ readonly success: Material;
94
+ readonly updatedItem: Material;
95
+ readonly border: Material;
96
+ };
97
+ type ThemeEffect = {
98
+ readonly hover: Effect;
99
+ readonly press: Effect;
100
+ };
101
+ type ThemeElementEffect = {
102
+ readonly disabled: OpacityEffect;
103
+ };
104
+ type ThemeColorGradient = {
105
+ readonly surface5: GradientMaterial;
106
+ readonly callToAction: GradientMaterial;
107
+ };
108
+ type Typography = {
109
+ readonly [12]: TypographyDescriptor;
110
+ readonly [14]: TypographyDescriptor;
111
+ readonly [16]: TypographyDescriptor;
112
+ readonly [20]: TypographyDescriptor;
113
+ readonly [32]: TypographyDescriptor;
114
+ };
115
+ type Breakpoint = {
116
+ readonly screen1: number;
117
+ readonly screen2: number;
118
+ readonly screen3: number;
119
+ readonly screen4: number;
120
+ };
121
+ type Spacing = Readonly<Record<keyof typeof SPACING, number>>;
122
+ type BorderRadius = Readonly<Record<keyof typeof BORDER_RADIUS, number>>;
123
+ //#endregion
124
+ //#region src/default.d.ts
125
+ declare const light: CharcoalTheme;
126
+ declare const dark: CharcoalTheme;
127
+ //#endregion
128
+ export { BorderRadius, Breakpoint, CharcoalAbstractTheme, CharcoalTheme, ColorStyleTheme, EffectType, Key, Spacing, ThemeColor, ThemeColorGradient, ThemeEffect, ThemeElementEffect, Typography, dark, light };
4
129
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/abstract-theme.ts","../src/theme.ts","../src/default.ts"],"sourcesContent":[],"mappings":";;;KAQY,UAAA;KAEA,GAAA;AAFA,KAIA,eAAA,GAJA,UAKF,GALE,GAKI,QALJ,EAAA;AAEA,UAMK,qBAAA,CANL;EAEZ,KAAY,EAKH,eALG;EAAA,aAAA,EAAA,UAMe,GANf,GAMqB,gBANrB,EAAA;QACF,EAAA,UAMU,UANV,IAMwB,MANxB,EAAA;eAAM,EAAA,UAOW,UAPX,IAOyB,aAPzB,EAAA;EAAA,OAAA,EAAA,UAQK,GARL,GAAA,MAAA,EAAA;EAGhB,UAAiB,EAAA;IAAA,IAAA,EAAA,UAOG,GAPH,GAOS,oBAPT,EAAA;;cAEU,EAAA,UAUD,GAVC,GAAA,MAAA,EAAA;QAAM,EAAA,UAYrB,GAZqB,GAAA;SACb,EAYP,QAZO;;SACO,EAAA,UAiBf,GAjBe,GAAA;SAAc,EAkB5B,QAlB4B;UACpB,EAAA,MAAA;;QAEK;UAKA;YAEd,EAAA,MAAA;YACC,EAAA,MAAA;;;YAkBD,EAAA,UAAA,GAAA,GAAA;IAAA,QAAA,EAAA,MAAA;;;;;UCtCK,aAAA,SAAsB;EDHvC,SAAY,KAAA,ECIM,UDJN;EAEZ,SAAY,aAAA,ECGc,kBDHd;EAEZ;;;WACgB,MAAA,ECIG,WDJH;EAAA;AAGhB;;WACS,aAAA,ECIiB,kBDJjB;WACkB,OAAA,ECIP,ODJO;WAAM,UAAA,EAAA;aACb,IAAA,ECKD,UDLC;;WACO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EAeD,oBAfC;EAAA,UAAA,EAAA,CAAA,EAgBD,oBAhBC;EAGlB,UAAY,EAAA,CAAA,EAcK,oBAbI;AAGrB,CAAA;AAAY,KAaA,UAAA,GAbA;WACS,OAAA,EAAA,MAAA;WACI,OAAA,EAAA,MAAA;EAAA,SAAA,OAAA,EAAA,MAAA;EAGzB,SAAY,OAAA,EAAA,MAAA;CAAA;AACK,KAcL,OAAA,GAAU,QAdL,CAcc,MAdd,CAAA,MAAA,OAckC,OAdlC,EAAA,MAAA,CAAA,CAAA;AACA,KAcL,YAAA,GAAe,QAdV,CAcmB,MAdnB,CAAA,MAAA,OAcuC,aAdvC,EAAA,MAAA,CAAA,CAAA;;;cCeJA,OAAO;AFlGR,cEmJCC,IFnJD,EEmJO,aFnJP"}
package/dist/index.js ADDED
@@ -0,0 +1,175 @@
1
+ //#region src/default.ts
2
+ const common = {
3
+ borderRadius: {
4
+ "4": 4,
5
+ "8": 8,
6
+ "16": 16,
7
+ "24": 24,
8
+ none: 0,
9
+ oval: 999999
10
+ },
11
+ breakpoint: {
12
+ screen1: 744,
13
+ screen2: 952,
14
+ screen3: 1160,
15
+ screen4: 1368
16
+ },
17
+ elementEffect: { disabled: {
18
+ opacity: .32,
19
+ type: "opacity"
20
+ } },
21
+ gradientColor: {
22
+ callToAction: [{
23
+ color: "#d1ff1a",
24
+ ratio: 0
25
+ }, {
26
+ color: "#1ad1ff",
27
+ ratio: 100
28
+ }],
29
+ surface5: [{
30
+ color: "rgba(0,0,0,0.32)",
31
+ ratio: 0
32
+ }, {
33
+ color: "rgba(0,0,0,0)",
34
+ ratio: 100
35
+ }]
36
+ },
37
+ grid: { unit: {
38
+ column: 80,
39
+ gutter: 24
40
+ } },
41
+ outline: {
42
+ assertive: {
43
+ color: "rgba(255,43,0,0.32)",
44
+ weight: 4
45
+ },
46
+ default: {
47
+ color: "rgba(0,150,250,0.32)",
48
+ weight: 4
49
+ }
50
+ },
51
+ spacing: {
52
+ "0": 0,
53
+ "4": 4,
54
+ "8": 8,
55
+ "16": 16,
56
+ "24": 24,
57
+ "40": 40,
58
+ "64": 64,
59
+ "104": 104,
60
+ "168": 168,
61
+ "272": 272,
62
+ "440": 440
63
+ },
64
+ transition: { default: { duration: .2 } },
65
+ typography: { size: {
66
+ "12": {
67
+ fontSize: 12,
68
+ lineHeight: 20
69
+ },
70
+ "14": {
71
+ fontSize: 14,
72
+ lineHeight: 22
73
+ },
74
+ "16": {
75
+ fontSize: 16,
76
+ lineHeight: 24
77
+ },
78
+ "20": {
79
+ fontSize: 20,
80
+ lineHeight: 28
81
+ },
82
+ "32": {
83
+ fontSize: 32,
84
+ lineHeight: 40
85
+ }
86
+ } }
87
+ };
88
+ const light = {
89
+ ...common,
90
+ border: { default: { color: "rgba(0,0,0,0.08)" } },
91
+ color: {
92
+ assertive: "#ff2b00",
93
+ background1: "#ffffff",
94
+ background2: "#f5f5f5",
95
+ border: "rgba(0,0,0,0.08)",
96
+ brand: "#0096fa",
97
+ icon6: "rgba(255,255,255,0.28)",
98
+ link1: "#3d7699",
99
+ link2: "rgba(255,255,255,0.36)",
100
+ success: "#b1cc29",
101
+ surface1: "#ffffff",
102
+ surface10: "rgba(0,0,0,0.16)",
103
+ surface2: "rgba(0,0,0,0.02)",
104
+ surface3: "rgba(0,0,0,0.04)",
105
+ surface4: "rgba(0,0,0,0.32)",
106
+ surface6: "rgba(0,0,0,0.88)",
107
+ surface7: "rgba(0,0,0,0.02)",
108
+ surface8: "rgba(0,0,0,0.88)",
109
+ surface9: "#ffffff",
110
+ text1: "#1f1f1f",
111
+ text2: "#474747",
112
+ text3: "#858585",
113
+ text4: "#adadad",
114
+ text5: "#ffffff",
115
+ transparent: "rgba(0,0,0,0)",
116
+ updatedItem: "rgba(0,150,250,0.04)",
117
+ warning: "#ffaf0f"
118
+ },
119
+ effect: {
120
+ hover: {
121
+ color: "rgba(0,0,0,0.04)",
122
+ type: "alpha"
123
+ },
124
+ press: {
125
+ color: "rgba(0,0,0,0.16)",
126
+ type: "alpha"
127
+ }
128
+ }
129
+ };
130
+ const dark = {
131
+ ...common,
132
+ border: { default: { color: "rgba(255,255,255,0.12)" } },
133
+ color: {
134
+ assertive: "#ff2b00",
135
+ background1: "#1f1f1f",
136
+ background2: "#000000",
137
+ border: "rgba(255,255,255,0.12)",
138
+ brand: "#0096fa",
139
+ icon6: "rgba(255,255,255,0.28)",
140
+ link1: "#669FC2",
141
+ link2: "rgba(255,255,255,0.36)",
142
+ success: "#b1cc29",
143
+ surface1: "#1f1f1f",
144
+ surface10: "rgba(255,255,255,0.2)",
145
+ surface2: "rgba(0,0,0,0.16)",
146
+ surface3: "rgba(255,255,255,0.12)",
147
+ surface4: "rgba(0,0,0,0.32)",
148
+ surface6: "rgba(255,255,255,0.12)",
149
+ surface7: "rgba(0,0,0,0)",
150
+ surface8: "rgba(0,0,0,0.88)",
151
+ surface9: "#333333",
152
+ text1: "#f5f5f5",
153
+ text2: "#d6d6d6",
154
+ text3: "#858585",
155
+ text4: "#5c5c5c",
156
+ text5: "#f5f5f5",
157
+ transparent: "rgba(0,0,0,0)",
158
+ updatedItem: "rgba(0,150,250,0.12)",
159
+ warning: "#ffaf0f"
160
+ },
161
+ effect: {
162
+ hover: {
163
+ color: "rgba(255,255,255,0.12)",
164
+ type: "alpha"
165
+ },
166
+ press: {
167
+ color: "rgba(255,255,255,0.2)",
168
+ type: "alpha"
169
+ }
170
+ }
171
+ };
172
+
173
+ //#endregion
174
+ export { dark, light };
175
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/default.ts"],"sourcesContent":["/** This file is auto generated. DO NOT EDIT BY HAND. */\nimport { CharcoalTheme } from './theme'\n\nconst common = {\n borderRadius: {\n '4': 4,\n '8': 8,\n '16': 16,\n '24': 24,\n none: 0,\n oval: 999999,\n },\n breakpoint: {\n screen1: 744,\n screen2: 952,\n screen3: 1160,\n screen4: 1368,\n },\n elementEffect: {\n disabled: {\n opacity: 0.32,\n type: 'opacity',\n },\n },\n gradientColor: {\n callToAction: [\n {\n color: '#d1ff1a',\n ratio: 0,\n },\n {\n color: '#1ad1ff',\n ratio: 100,\n },\n ],\n surface5: [\n {\n color: 'rgba(0,0,0,0.32)',\n ratio: 0,\n },\n {\n color: 'rgba(0,0,0,0)',\n ratio: 100,\n },\n ],\n },\n grid: {\n unit: {\n column: 80,\n gutter: 24,\n },\n },\n outline: {\n assertive: {\n color: 'rgba(255,43,0,0.32)',\n weight: 4,\n },\n default: {\n color: 'rgba(0,150,250,0.32)',\n weight: 4,\n },\n },\n spacing: {\n '0': 0,\n '4': 4,\n '8': 8,\n '16': 16,\n '24': 24,\n '40': 40,\n '64': 64,\n '104': 104,\n '168': 168,\n '272': 272,\n '440': 440,\n },\n transition: {\n default: {\n duration: 0.2,\n },\n },\n typography: {\n size: {\n '12': {\n fontSize: 12,\n lineHeight: 20,\n },\n '14': {\n fontSize: 14,\n lineHeight: 22,\n },\n '16': {\n fontSize: 16,\n lineHeight: 24,\n },\n '20': {\n fontSize: 20,\n lineHeight: 28,\n },\n '32': {\n fontSize: 32,\n lineHeight: 40,\n },\n },\n },\n} as const\n\nexport const light: CharcoalTheme = {\n ...common,\n ...{\n border: {\n default: {\n color: 'rgba(0,0,0,0.08)',\n },\n },\n color: {\n assertive: '#ff2b00',\n background1: '#ffffff',\n background2: '#f5f5f5',\n border: 'rgba(0,0,0,0.08)',\n brand: '#0096fa',\n icon6: 'rgba(255,255,255,0.28)',\n link1: '#3d7699',\n link2: 'rgba(255,255,255,0.36)',\n success: '#b1cc29',\n surface1: '#ffffff',\n surface10: 'rgba(0,0,0,0.16)',\n surface2: 'rgba(0,0,0,0.02)',\n surface3: 'rgba(0,0,0,0.04)',\n surface4: 'rgba(0,0,0,0.32)',\n surface6: 'rgba(0,0,0,0.88)',\n surface7: 'rgba(0,0,0,0.02)',\n surface8: 'rgba(0,0,0,0.88)',\n surface9: '#ffffff',\n text1: '#1f1f1f',\n text2: '#474747',\n text3: '#858585',\n text4: '#adadad',\n text5: '#ffffff',\n transparent: 'rgba(0,0,0,0)',\n updatedItem: 'rgba(0,150,250,0.04)',\n warning: '#ffaf0f',\n },\n effect: {\n hover: {\n color: 'rgba(0,0,0,0.04)',\n type: 'alpha',\n },\n press: {\n color: 'rgba(0,0,0,0.16)',\n type: 'alpha',\n },\n },\n },\n}\n\nexport const dark: CharcoalTheme = {\n ...common,\n ...{\n border: {\n default: {\n color: 'rgba(255,255,255,0.12)',\n },\n },\n color: {\n assertive: '#ff2b00',\n background1: '#1f1f1f',\n background2: '#000000',\n border: 'rgba(255,255,255,0.12)',\n brand: '#0096fa',\n icon6: 'rgba(255,255,255,0.28)',\n link1: '#669FC2',\n link2: 'rgba(255,255,255,0.36)',\n success: '#b1cc29',\n surface1: '#1f1f1f',\n surface10: 'rgba(255,255,255,0.2)',\n surface2: 'rgba(0,0,0,0.16)',\n surface3: 'rgba(255,255,255,0.12)',\n surface4: 'rgba(0,0,0,0.32)',\n surface6: 'rgba(255,255,255,0.12)',\n surface7: 'rgba(0,0,0,0)',\n surface8: 'rgba(0,0,0,0.88)',\n surface9: '#333333',\n text1: '#f5f5f5',\n text2: '#d6d6d6',\n text3: '#858585',\n text4: '#5c5c5c',\n text5: '#f5f5f5',\n transparent: 'rgba(0,0,0,0)',\n updatedItem: 'rgba(0,150,250,0.12)',\n warning: '#ffaf0f',\n },\n effect: {\n hover: {\n color: 'rgba(255,255,255,0.12)',\n type: 'alpha',\n },\n press: {\n color: 'rgba(255,255,255,0.2)',\n type: 'alpha',\n },\n },\n },\n}\n"],"mappings":";AAGA,MAAM,SAAS;CACb,cAAc;EACZ,KAAK;EACL,KAAK;EACL,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACP;CACD,YAAY;EACV,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACV;CACD,eAAe,EACb,UAAU;EACR,SAAS;EACT,MAAM;EACP,EACF;CACD,eAAe;EACb,cAAc,CACZ;GACE,OAAO;GACP,OAAO;GACR,EACD;GACE,OAAO;GACP,OAAO;GACR,CACF;EACD,UAAU,CACR;GACE,OAAO;GACP,OAAO;GACR,EACD;GACE,OAAO;GACP,OAAO;GACR,CACF;EACF;CACD,MAAM,EACJ,MAAM;EACJ,QAAQ;EACR,QAAQ;EACT,EACF;CACD,SAAS;EACP,WAAW;GACT,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,OAAO;GACP,QAAQ;GACT;EACF;CACD,SAAS;EACP,KAAK;EACL,KAAK;EACL,KAAK;EACL,MAAM;EACN,MAAM;EACN,MAAM;EACN,MAAM;EACN,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACR;CACD,YAAY,EACV,SAAS,EACP,UAAU,IACX,EACF;CACD,YAAY,EACV,MAAM;EACJ,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACD,MAAM;GACJ,UAAU;GACV,YAAY;GACb;EACF,EACF;CACF;AAED,MAAaA,QAAuB;CAClC,GAAG;CAED,QAAQ,EACN,SAAS,EACP,OAAO,oBACR,EACF;CACD,OAAO;EACL,WAAW;EACX,aAAa;EACb,aAAa;EACb,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;EACT,UAAU;EACV,WAAW;EACX,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,aAAa;EACb,aAAa;EACb,SAAS;EACV;CACD,QAAQ;EACN,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACD,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACF;CAEJ;AAED,MAAaC,OAAsB;CACjC,GAAG;CAED,QAAQ,EACN,SAAS,EACP,OAAO,0BACR,EACF;CACD,OAAO;EACL,WAAW;EACX,aAAa;EACb,aAAa;EACb,QAAQ;EACR,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,SAAS;EACT,UAAU;EACV,WAAW;EACX,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;EACV,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,aAAa;EACb,aAAa;EACb,SAAS;EACV;CACD,QAAQ;EACN,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACD,OAAO;GACL,OAAO;GACP,MAAM;GACP;EACF;CAEJ"}