@charcoal-ui/theme 5.0.0-beta.2 → 5.0.0-beta.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.
Files changed (59) hide show
  1. package/dist/chunk-CUT6urMc.cjs +30 -0
  2. package/dist/index.cjs +152 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +129 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.ts +128 -3
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +147 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/unstable-token-object/index.cjs +86 -0
  11. package/dist/unstable-token-object/index.cjs.map +1 -0
  12. package/dist/unstable-token-object/index.d.cts +25 -0
  13. package/dist/unstable-token-object/index.d.cts.map +1 -0
  14. package/dist/unstable-token-object/index.d.ts +24 -4
  15. package/dist/unstable-token-object/index.d.ts.map +1 -1
  16. package/dist/unstable-token-object/index.js +81 -0
  17. package/dist/unstable-token-object/index.js.map +1 -0
  18. package/package.json +16 -29
  19. package/src/docs/ThemeColors.tsx +2 -1
  20. package/src/unstable-token-object/helpers/changecase-keys.test-d.ts +2 -0
  21. package/src/unstable-token-object/reference-token.ts +1 -1
  22. package/dist/abstract-theme.d.ts +0 -52
  23. package/dist/abstract-theme.d.ts.map +0 -1
  24. package/dist/default.d.ts +0 -4
  25. package/dist/default.d.ts.map +0 -1
  26. package/dist/index.cjs.js +0 -202
  27. package/dist/index.cjs.js.map +0 -1
  28. package/dist/index.esm.js +0 -171
  29. package/dist/index.esm.js.map +0 -1
  30. package/dist/theme.d.ts +0 -90
  31. package/dist/theme.d.ts.map +0 -1
  32. package/dist/unstable-token-object/helpers/changecase-keys.d.ts +0 -7
  33. package/dist/unstable-token-object/helpers/changecase-keys.d.ts.map +0 -1
  34. package/dist/unstable-token-object/helpers/changecase-keys.test-d.d.ts +0 -2
  35. package/dist/unstable-token-object/helpers/changecase-keys.test-d.d.ts.map +0 -1
  36. package/dist/unstable-token-object/helpers/changecase-keys.test.d.ts +0 -2
  37. package/dist/unstable-token-object/helpers/changecase-keys.test.d.ts.map +0 -1
  38. package/dist/unstable-token-object/helpers/is-empty-array.d.ts +0 -2
  39. package/dist/unstable-token-object/helpers/is-empty-array.d.ts.map +0 -1
  40. package/dist/unstable-token-object/helpers/nest-object.d.ts +0 -11
  41. package/dist/unstable-token-object/helpers/nest-object.d.ts.map +0 -1
  42. package/dist/unstable-token-object/helpers/nest-object.test.d.ts +0 -2
  43. package/dist/unstable-token-object/helpers/nest-object.test.d.ts.map +0 -1
  44. package/dist/unstable-token-object/index.cjs.js +0 -156
  45. package/dist/unstable-token-object/index.cjs.js.map +0 -1
  46. package/dist/unstable-token-object/index.esm.js +0 -117
  47. package/dist/unstable-token-object/index.esm.js.map +0 -1
  48. package/dist/unstable-token-object/reference-token.d.ts +0 -4
  49. package/dist/unstable-token-object/reference-token.d.ts.map +0 -1
  50. package/dist/unstable-token-object/reference-token.test.d.ts +0 -2
  51. package/dist/unstable-token-object/reference-token.test.d.ts.map +0 -1
  52. package/dist/unstable-token-object/to-token-object.d.ts +0 -3
  53. package/dist/unstable-token-object/to-token-object.d.ts.map +0 -1
  54. package/dist/unstable-token-object/token-object.bench.d.ts +0 -2
  55. package/dist/unstable-token-object/token-object.bench.d.ts.map +0 -1
  56. package/dist/unstable-token-object/token-object.test.d.ts +0 -2
  57. package/dist/unstable-token-object/token-object.test.d.ts.map +0 -1
  58. package/dist/unstable-token-object/types.d.ts +0 -20
  59. package/dist/unstable-token-object/types.d.ts.map +0 -1
@@ -0,0 +1,30 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+
25
+ Object.defineProperty(exports, '__toESM', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return __toESM;
29
+ }
30
+ });
package/dist/index.cjs ADDED
@@ -0,0 +1,152 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ let polished_lib_color_rgba = require("polished/lib/color/rgba");
3
+ polished_lib_color_rgba = require_chunk.__toESM(polished_lib_color_rgba);
4
+ let __charcoal_ui_foundation = require("@charcoal-ui/foundation");
5
+ __charcoal_ui_foundation = require_chunk.__toESM(__charcoal_ui_foundation);
6
+ let __charcoal_ui_utils = require("@charcoal-ui/utils");
7
+ __charcoal_ui_utils = require_chunk.__toESM(__charcoal_ui_utils);
8
+
9
+ //#region src/default.ts
10
+ const outlineEffect = {
11
+ type: "opacity",
12
+ opacity: .32
13
+ };
14
+ const assertive = "#ff2b00";
15
+ const brand = "#0096fa";
16
+ const borderForLight = (0, polished_lib_color_rgba.default)("#000000", .08);
17
+ const borderForDark = (0, polished_lib_color_rgba.default)("#ffffff", .12);
18
+ const common = {
19
+ typography: { size: __charcoal_ui_foundation.TYPOGRAPHY_SIZE },
20
+ spacing: __charcoal_ui_foundation.SPACING,
21
+ grid: { unit: {
22
+ column: __charcoal_ui_foundation.COLUMN_UNIT,
23
+ gutter: __charcoal_ui_foundation.GUTTER_UNIT
24
+ } },
25
+ borderRadius: __charcoal_ui_foundation.BORDER_RADIUS,
26
+ transition: { default: { duration: .2 } },
27
+ breakpoint: {
28
+ screen1: __charcoal_ui_foundation.BREAKPOINT[6],
29
+ screen2: __charcoal_ui_foundation.BREAKPOINT[8],
30
+ screen3: __charcoal_ui_foundation.BREAKPOINT[10],
31
+ screen4: __charcoal_ui_foundation.BREAKPOINT[12]
32
+ },
33
+ gradientColor: {
34
+ surface5: [{
35
+ color: (0, polished_lib_color_rgba.default)("#000000", .32),
36
+ ratio: 0
37
+ }, {
38
+ color: (0, polished_lib_color_rgba.default)("#000000", 0),
39
+ ratio: 100
40
+ }],
41
+ callToAction: [{
42
+ color: "#d1ff1a",
43
+ ratio: 0
44
+ }, {
45
+ color: "#1ad1ff",
46
+ ratio: 100
47
+ }]
48
+ },
49
+ outline: {
50
+ default: {
51
+ color: (0, __charcoal_ui_utils.applyEffect)(brand, outlineEffect),
52
+ weight: 4
53
+ },
54
+ assertive: {
55
+ color: (0, __charcoal_ui_utils.applyEffect)(assertive, outlineEffect),
56
+ weight: 4
57
+ }
58
+ },
59
+ elementEffect: { disabled: {
60
+ type: "opacity",
61
+ opacity: .32
62
+ } }
63
+ };
64
+ const light = {
65
+ ...common,
66
+ effect: {
67
+ hover: {
68
+ type: "alpha",
69
+ color: (0, polished_lib_color_rgba.default)("#000000", .04)
70
+ },
71
+ press: {
72
+ type: "alpha",
73
+ color: (0, polished_lib_color_rgba.default)("#000000", .16)
74
+ }
75
+ },
76
+ color: {
77
+ transparent: (0, polished_lib_color_rgba.default)("#000000", 0),
78
+ background1: "#ffffff",
79
+ background2: "#f5f5f5",
80
+ icon6: (0, polished_lib_color_rgba.default)("#ffffff", .28),
81
+ link1: "#3d7699",
82
+ link2: (0, polished_lib_color_rgba.default)("#ffffff", .36),
83
+ surface1: "#ffffff",
84
+ surface2: (0, polished_lib_color_rgba.default)("#000000", .02),
85
+ surface3: (0, polished_lib_color_rgba.default)("#000000", .04),
86
+ surface4: (0, polished_lib_color_rgba.default)("#000000", .32),
87
+ surface6: (0, polished_lib_color_rgba.default)("#000000", .88),
88
+ surface7: (0, polished_lib_color_rgba.default)("#000000", .02),
89
+ surface8: (0, polished_lib_color_rgba.default)("#000000", .88),
90
+ surface9: "#ffffff",
91
+ surface10: (0, polished_lib_color_rgba.default)("#000000", .16),
92
+ text1: "#1f1f1f",
93
+ text2: "#474747",
94
+ text3: "#858585",
95
+ text4: "#adadad",
96
+ text5: "#ffffff",
97
+ brand,
98
+ assertive,
99
+ warning: "#ffaf0f",
100
+ success: "#b1cc29",
101
+ updatedItem: (0, polished_lib_color_rgba.default)(0, 150, 250, .04),
102
+ border: borderForLight
103
+ },
104
+ border: { default: { color: borderForLight } }
105
+ };
106
+ const dark = {
107
+ ...common,
108
+ effect: {
109
+ hover: {
110
+ type: "alpha",
111
+ color: (0, polished_lib_color_rgba.default)("#ffffff", .12)
112
+ },
113
+ press: {
114
+ type: "alpha",
115
+ color: (0, polished_lib_color_rgba.default)("#ffffff", .2)
116
+ }
117
+ },
118
+ color: {
119
+ transparent: (0, polished_lib_color_rgba.default)("#000000", 0),
120
+ background1: "#1f1f1f",
121
+ background2: "#000000",
122
+ icon6: light.color.icon6,
123
+ link1: "#669FC2",
124
+ link2: light.color.link2,
125
+ surface1: "#1f1f1f",
126
+ surface2: (0, polished_lib_color_rgba.default)("#000000", .16),
127
+ surface3: (0, polished_lib_color_rgba.default)("#ffffff", .12),
128
+ surface4: light.color.surface4,
129
+ surface6: (0, polished_lib_color_rgba.default)("#ffffff", .12),
130
+ surface7: (0, polished_lib_color_rgba.default)("#000000", 0),
131
+ surface8: light.color.surface8,
132
+ surface9: "#333333",
133
+ surface10: (0, polished_lib_color_rgba.default)("#ffffff", .2),
134
+ text1: "#f5f5f5",
135
+ text2: "#d6d6d6",
136
+ text3: "#858585",
137
+ text4: "#5c5c5c",
138
+ text5: "#f5f5f5",
139
+ brand,
140
+ assertive,
141
+ warning: light.color.warning,
142
+ success: light.color.success,
143
+ updatedItem: (0, polished_lib_color_rgba.default)(0, 150, 250, .12),
144
+ border: borderForDark
145
+ },
146
+ border: { default: { color: borderForDark } }
147
+ };
148
+
149
+ //#endregion
150
+ exports.dark = dark;
151
+ exports.light = light;
152
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":["TYPOGRAPHY_SIZE","SPACING","COLUMN_UNIT","GUTTER_UNIT","BORDER_RADIUS","BREAKPOINT","light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/default.ts"],"sourcesContent":["import rgba from 'polished/lib/color/rgba'\nimport { CharcoalTheme } from './theme'\nimport {\n BORDER_RADIUS,\n BREAKPOINT,\n COLUMN_UNIT,\n GUTTER_UNIT,\n SPACING,\n TYPOGRAPHY_SIZE,\n} from '@charcoal-ui/foundation'\nimport { applyEffect } from '@charcoal-ui/utils'\n\nconst outlineEffect = {\n type: 'opacity',\n opacity: 0.32,\n} as const\n\nconst assertive = '#ff2b00'\nconst brand = '#0096fa'\nconst borderForLight = rgba('#000000', 0.08)\nconst borderForDark = rgba('#ffffff', 0.12)\n\nconst common = {\n typography: {\n size: TYPOGRAPHY_SIZE,\n },\n spacing: SPACING,\n grid: {\n unit: {\n column: COLUMN_UNIT,\n gutter: GUTTER_UNIT,\n },\n },\n borderRadius: BORDER_RADIUS,\n transition: {\n default: {\n duration: 0.2,\n },\n },\n breakpoint: {\n screen1: BREAKPOINT[6],\n screen2: BREAKPOINT[8],\n screen3: BREAKPOINT[10],\n screen4: BREAKPOINT[12],\n },\n gradientColor: {\n surface5: [\n { color: rgba('#000000', 0.32), ratio: 0 },\n { color: rgba('#000000', 0), ratio: 100 },\n ],\n callToAction: [\n { color: '#d1ff1a', ratio: 0 },\n { color: '#1ad1ff', ratio: 100 },\n ],\n },\n outline: {\n default: {\n color: applyEffect(brand, outlineEffect),\n weight: 4,\n },\n assertive: {\n color: applyEffect(assertive, outlineEffect),\n weight: 4,\n },\n },\n elementEffect: {\n disabled: {\n type: 'opacity',\n opacity: 0.32,\n },\n },\n} as const\n\nexport const light: CharcoalTheme = {\n ...common,\n effect: {\n hover: {\n type: 'alpha',\n color: rgba('#000000', 0.04), // surface3\n },\n press: {\n type: 'alpha',\n color: rgba('#000000', 0.16), // surface10\n },\n },\n color: {\n // TODO: colors should be picked from foundation color palette\n transparent: rgba('#000000', 0),\n background1: '#ffffff',\n background2: '#f5f5f5',\n icon6: rgba('#ffffff', 0.28),\n link1: '#3d7699',\n link2: rgba('#ffffff', 0.36),\n surface1: '#ffffff',\n surface2: rgba('#000000', 0.02),\n surface3: rgba('#000000', 0.04),\n surface4: rgba('#000000', 0.32),\n surface6: rgba('#000000', 0.88),\n surface7: rgba('#000000', 0.02),\n surface8: rgba('#000000', 0.88),\n surface9: '#ffffff',\n surface10: rgba('#000000', 0.16),\n text1: '#1f1f1f',\n text2: '#474747',\n text3: '#858585',\n text4: '#adadad',\n text5: '#ffffff',\n brand,\n assertive,\n warning: '#ffaf0f',\n success: '#b1cc29',\n updatedItem: rgba(0, 150, 250, 0.04),\n border: borderForLight,\n },\n border: {\n default: {\n color: borderForLight,\n },\n },\n}\n\nexport const dark: CharcoalTheme = {\n ...common,\n effect: {\n hover: {\n type: 'alpha',\n color: rgba('#ffffff', 0.12), // surface3\n },\n press: {\n type: 'alpha',\n color: rgba('#ffffff', 0.2), // surface10\n },\n },\n color: {\n transparent: rgba('#000000', 0),\n background1: '#1f1f1f',\n background2: '#000000',\n icon6: light.color.icon6,\n link1: '#669FC2',\n link2: light.color.link2,\n surface1: '#1f1f1f',\n surface2: rgba('#000000', 0.16),\n surface3: rgba('#ffffff', 0.12),\n surface4: light.color.surface4,\n surface6: rgba('#ffffff', 0.12),\n surface7: rgba('#000000', 0),\n surface8: light.color.surface8,\n surface9: '#333333',\n surface10: rgba('#ffffff', 0.2),\n text1: '#f5f5f5',\n text2: '#d6d6d6',\n text3: '#858585',\n text4: '#5c5c5c',\n text5: '#f5f5f5',\n brand,\n assertive,\n warning: light.color.warning,\n success: light.color.success,\n updatedItem: rgba(0, 150, 250, 0.12),\n border: borderForDark,\n },\n border: {\n default: {\n color: borderForDark,\n },\n },\n}\n"],"mappings":";;;;;;;;;AAYA,MAAM,gBAAgB;CACpB,MAAM;CACN,SAAS;CACV;AAED,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,sDAAsB,WAAW,IAAK;AAC5C,MAAM,qDAAqB,WAAW,IAAK;AAE3C,MAAM,SAAS;CACb,YAAY,EACV,MAAMA,0CACP;CACD,SAASC;CACT,MAAM,EACJ,MAAM;EACJ,QAAQC;EACR,QAAQC;EACT,EACF;CACD,cAAcC;CACd,YAAY,EACV,SAAS,EACP,UAAU,IACX,EACF;CACD,YAAY;EACV,SAASC,oCAAW;EACpB,SAASA,oCAAW;EACpB,SAASA,oCAAW;EACpB,SAASA,oCAAW;EACrB;CACD,eAAe;EACb,UAAU,CACR;GAAE,4CAAY,WAAW,IAAK;GAAE,OAAO;GAAG,EAC1C;GAAE,4CAAY,WAAW,EAAE;GAAE,OAAO;GAAK,CAC1C;EACD,cAAc,CACZ;GAAE,OAAO;GAAW,OAAO;GAAG,EAC9B;GAAE,OAAO;GAAW,OAAO;GAAK,CACjC;EACF;CACD,SAAS;EACP,SAAS;GACP,4CAAmB,OAAO,cAAc;GACxC,QAAQ;GACT;EACD,WAAW;GACT,4CAAmB,WAAW,cAAc;GAC5C,QAAQ;GACT;EACF;CACD,eAAe,EACb,UAAU;EACR,MAAM;EACN,SAAS;EACV,EACF;CACF;AAED,MAAaC,QAAuB;CAClC,GAAG;CACH,QAAQ;EACN,OAAO;GACL,MAAM;GACN,4CAAY,WAAW,IAAK;GAC7B;EACD,OAAO;GACL,MAAM;GACN,4CAAY,WAAW,IAAK;GAC7B;EACF;CACD,OAAO;EAEL,kDAAkB,WAAW,EAAE;EAC/B,aAAa;EACb,aAAa;EACb,4CAAY,WAAW,IAAK;EAC5B,OAAO;EACP,4CAAY,WAAW,IAAK;EAC5B,UAAU;EACV,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,UAAU;EACV,gDAAgB,WAAW,IAAK;EAChC,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP;EACA;EACA,SAAS;EACT,SAAS;EACT,kDAAkB,GAAG,KAAK,KAAK,IAAK;EACpC,QAAQ;EACT;CACD,QAAQ,EACN,SAAS,EACP,OAAO,gBACR,EACF;CACF;AAED,MAAaC,OAAsB;CACjC,GAAG;CACH,QAAQ;EACN,OAAO;GACL,MAAM;GACN,4CAAY,WAAW,IAAK;GAC7B;EACD,OAAO;GACL,MAAM;GACN,4CAAY,WAAW,GAAI;GAC5B;EACF;CACD,OAAO;EACL,kDAAkB,WAAW,EAAE;EAC/B,aAAa;EACb,aAAa;EACb,OAAO,MAAM,MAAM;EACnB,OAAO;EACP,OAAO,MAAM,MAAM;EACnB,UAAU;EACV,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,IAAK;EAC/B,UAAU,MAAM,MAAM;EACtB,+CAAe,WAAW,IAAK;EAC/B,+CAAe,WAAW,EAAE;EAC5B,UAAU,MAAM,MAAM;EACtB,UAAU;EACV,gDAAgB,WAAW,GAAI;EAC/B,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP;EACA;EACA,SAAS,MAAM,MAAM;EACrB,SAAS,MAAM,MAAM;EACrB,kDAAkB,GAAG,KAAK,KAAK,IAAK;EACpC,QAAQ;EACT;CACD,QAAQ,EACN,SAAS,EACP,OAAO,eACR,EACF;CACF"}
@@ -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;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,CAAA,MAAA,OAcuC,aAdvC,EAAA,MAAA,CAAA,CAAA;;;cClBJA,OAAO;cAgDPC,MAAM"}
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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AAA,CAAA,EAeK,oBAfL;YACM,EAAA,CAAA,EAeD,oBAfC;YACA,EAAA,CAAA,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;;;cClBJA,OAAO;cAgDPC,MAAM"}
package/dist/index.js ADDED
@@ -0,0 +1,147 @@
1
+ import rgba from "polished/lib/color/rgba";
2
+ import { BORDER_RADIUS, BREAKPOINT, COLUMN_UNIT, GUTTER_UNIT, SPACING, TYPOGRAPHY_SIZE } from "@charcoal-ui/foundation";
3
+ import { applyEffect } from "@charcoal-ui/utils";
4
+
5
+ //#region src/default.ts
6
+ const outlineEffect = {
7
+ type: "opacity",
8
+ opacity: .32
9
+ };
10
+ const assertive = "#ff2b00";
11
+ const brand = "#0096fa";
12
+ const borderForLight = rgba("#000000", .08);
13
+ const borderForDark = rgba("#ffffff", .12);
14
+ const common = {
15
+ typography: { size: TYPOGRAPHY_SIZE },
16
+ spacing: SPACING,
17
+ grid: { unit: {
18
+ column: COLUMN_UNIT,
19
+ gutter: GUTTER_UNIT
20
+ } },
21
+ borderRadius: BORDER_RADIUS,
22
+ transition: { default: { duration: .2 } },
23
+ breakpoint: {
24
+ screen1: BREAKPOINT[6],
25
+ screen2: BREAKPOINT[8],
26
+ screen3: BREAKPOINT[10],
27
+ screen4: BREAKPOINT[12]
28
+ },
29
+ gradientColor: {
30
+ surface5: [{
31
+ color: rgba("#000000", .32),
32
+ ratio: 0
33
+ }, {
34
+ color: rgba("#000000", 0),
35
+ ratio: 100
36
+ }],
37
+ callToAction: [{
38
+ color: "#d1ff1a",
39
+ ratio: 0
40
+ }, {
41
+ color: "#1ad1ff",
42
+ ratio: 100
43
+ }]
44
+ },
45
+ outline: {
46
+ default: {
47
+ color: applyEffect(brand, outlineEffect),
48
+ weight: 4
49
+ },
50
+ assertive: {
51
+ color: applyEffect(assertive, outlineEffect),
52
+ weight: 4
53
+ }
54
+ },
55
+ elementEffect: { disabled: {
56
+ type: "opacity",
57
+ opacity: .32
58
+ } }
59
+ };
60
+ const light = {
61
+ ...common,
62
+ effect: {
63
+ hover: {
64
+ type: "alpha",
65
+ color: rgba("#000000", .04)
66
+ },
67
+ press: {
68
+ type: "alpha",
69
+ color: rgba("#000000", .16)
70
+ }
71
+ },
72
+ color: {
73
+ transparent: rgba("#000000", 0),
74
+ background1: "#ffffff",
75
+ background2: "#f5f5f5",
76
+ icon6: rgba("#ffffff", .28),
77
+ link1: "#3d7699",
78
+ link2: rgba("#ffffff", .36),
79
+ surface1: "#ffffff",
80
+ surface2: rgba("#000000", .02),
81
+ surface3: rgba("#000000", .04),
82
+ surface4: rgba("#000000", .32),
83
+ surface6: rgba("#000000", .88),
84
+ surface7: rgba("#000000", .02),
85
+ surface8: rgba("#000000", .88),
86
+ surface9: "#ffffff",
87
+ surface10: rgba("#000000", .16),
88
+ text1: "#1f1f1f",
89
+ text2: "#474747",
90
+ text3: "#858585",
91
+ text4: "#adadad",
92
+ text5: "#ffffff",
93
+ brand,
94
+ assertive,
95
+ warning: "#ffaf0f",
96
+ success: "#b1cc29",
97
+ updatedItem: rgba(0, 150, 250, .04),
98
+ border: borderForLight
99
+ },
100
+ border: { default: { color: borderForLight } }
101
+ };
102
+ const dark = {
103
+ ...common,
104
+ effect: {
105
+ hover: {
106
+ type: "alpha",
107
+ color: rgba("#ffffff", .12)
108
+ },
109
+ press: {
110
+ type: "alpha",
111
+ color: rgba("#ffffff", .2)
112
+ }
113
+ },
114
+ color: {
115
+ transparent: rgba("#000000", 0),
116
+ background1: "#1f1f1f",
117
+ background2: "#000000",
118
+ icon6: light.color.icon6,
119
+ link1: "#669FC2",
120
+ link2: light.color.link2,
121
+ surface1: "#1f1f1f",
122
+ surface2: rgba("#000000", .16),
123
+ surface3: rgba("#ffffff", .12),
124
+ surface4: light.color.surface4,
125
+ surface6: rgba("#ffffff", .12),
126
+ surface7: rgba("#000000", 0),
127
+ surface8: light.color.surface8,
128
+ surface9: "#333333",
129
+ surface10: rgba("#ffffff", .2),
130
+ text1: "#f5f5f5",
131
+ text2: "#d6d6d6",
132
+ text3: "#858585",
133
+ text4: "#5c5c5c",
134
+ text5: "#f5f5f5",
135
+ brand,
136
+ assertive,
137
+ warning: light.color.warning,
138
+ success: light.color.success,
139
+ updatedItem: rgba(0, 150, 250, .12),
140
+ border: borderForDark
141
+ },
142
+ border: { default: { color: borderForDark } }
143
+ };
144
+
145
+ //#endregion
146
+ export { dark, light };
147
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["light: CharcoalTheme","dark: CharcoalTheme"],"sources":["../src/default.ts"],"sourcesContent":["import rgba from 'polished/lib/color/rgba'\nimport { CharcoalTheme } from './theme'\nimport {\n BORDER_RADIUS,\n BREAKPOINT,\n COLUMN_UNIT,\n GUTTER_UNIT,\n SPACING,\n TYPOGRAPHY_SIZE,\n} from '@charcoal-ui/foundation'\nimport { applyEffect } from '@charcoal-ui/utils'\n\nconst outlineEffect = {\n type: 'opacity',\n opacity: 0.32,\n} as const\n\nconst assertive = '#ff2b00'\nconst brand = '#0096fa'\nconst borderForLight = rgba('#000000', 0.08)\nconst borderForDark = rgba('#ffffff', 0.12)\n\nconst common = {\n typography: {\n size: TYPOGRAPHY_SIZE,\n },\n spacing: SPACING,\n grid: {\n unit: {\n column: COLUMN_UNIT,\n gutter: GUTTER_UNIT,\n },\n },\n borderRadius: BORDER_RADIUS,\n transition: {\n default: {\n duration: 0.2,\n },\n },\n breakpoint: {\n screen1: BREAKPOINT[6],\n screen2: BREAKPOINT[8],\n screen3: BREAKPOINT[10],\n screen4: BREAKPOINT[12],\n },\n gradientColor: {\n surface5: [\n { color: rgba('#000000', 0.32), ratio: 0 },\n { color: rgba('#000000', 0), ratio: 100 },\n ],\n callToAction: [\n { color: '#d1ff1a', ratio: 0 },\n { color: '#1ad1ff', ratio: 100 },\n ],\n },\n outline: {\n default: {\n color: applyEffect(brand, outlineEffect),\n weight: 4,\n },\n assertive: {\n color: applyEffect(assertive, outlineEffect),\n weight: 4,\n },\n },\n elementEffect: {\n disabled: {\n type: 'opacity',\n opacity: 0.32,\n },\n },\n} as const\n\nexport const light: CharcoalTheme = {\n ...common,\n effect: {\n hover: {\n type: 'alpha',\n color: rgba('#000000', 0.04), // surface3\n },\n press: {\n type: 'alpha',\n color: rgba('#000000', 0.16), // surface10\n },\n },\n color: {\n // TODO: colors should be picked from foundation color palette\n transparent: rgba('#000000', 0),\n background1: '#ffffff',\n background2: '#f5f5f5',\n icon6: rgba('#ffffff', 0.28),\n link1: '#3d7699',\n link2: rgba('#ffffff', 0.36),\n surface1: '#ffffff',\n surface2: rgba('#000000', 0.02),\n surface3: rgba('#000000', 0.04),\n surface4: rgba('#000000', 0.32),\n surface6: rgba('#000000', 0.88),\n surface7: rgba('#000000', 0.02),\n surface8: rgba('#000000', 0.88),\n surface9: '#ffffff',\n surface10: rgba('#000000', 0.16),\n text1: '#1f1f1f',\n text2: '#474747',\n text3: '#858585',\n text4: '#adadad',\n text5: '#ffffff',\n brand,\n assertive,\n warning: '#ffaf0f',\n success: '#b1cc29',\n updatedItem: rgba(0, 150, 250, 0.04),\n border: borderForLight,\n },\n border: {\n default: {\n color: borderForLight,\n },\n },\n}\n\nexport const dark: CharcoalTheme = {\n ...common,\n effect: {\n hover: {\n type: 'alpha',\n color: rgba('#ffffff', 0.12), // surface3\n },\n press: {\n type: 'alpha',\n color: rgba('#ffffff', 0.2), // surface10\n },\n },\n color: {\n transparent: rgba('#000000', 0),\n background1: '#1f1f1f',\n background2: '#000000',\n icon6: light.color.icon6,\n link1: '#669FC2',\n link2: light.color.link2,\n surface1: '#1f1f1f',\n surface2: rgba('#000000', 0.16),\n surface3: rgba('#ffffff', 0.12),\n surface4: light.color.surface4,\n surface6: rgba('#ffffff', 0.12),\n surface7: rgba('#000000', 0),\n surface8: light.color.surface8,\n surface9: '#333333',\n surface10: rgba('#ffffff', 0.2),\n text1: '#f5f5f5',\n text2: '#d6d6d6',\n text3: '#858585',\n text4: '#5c5c5c',\n text5: '#f5f5f5',\n brand,\n assertive,\n warning: light.color.warning,\n success: light.color.success,\n updatedItem: rgba(0, 150, 250, 0.12),\n border: borderForDark,\n },\n border: {\n default: {\n color: borderForDark,\n },\n },\n}\n"],"mappings":";;;;;AAYA,MAAM,gBAAgB;CACpB,MAAM;CACN,SAAS;CACV;AAED,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,iBAAiB,KAAK,WAAW,IAAK;AAC5C,MAAM,gBAAgB,KAAK,WAAW,IAAK;AAE3C,MAAM,SAAS;CACb,YAAY,EACV,MAAM,iBACP;CACD,SAAS;CACT,MAAM,EACJ,MAAM;EACJ,QAAQ;EACR,QAAQ;EACT,EACF;CACD,cAAc;CACd,YAAY,EACV,SAAS,EACP,UAAU,IACX,EACF;CACD,YAAY;EACV,SAAS,WAAW;EACpB,SAAS,WAAW;EACpB,SAAS,WAAW;EACpB,SAAS,WAAW;EACrB;CACD,eAAe;EACb,UAAU,CACR;GAAE,OAAO,KAAK,WAAW,IAAK;GAAE,OAAO;GAAG,EAC1C;GAAE,OAAO,KAAK,WAAW,EAAE;GAAE,OAAO;GAAK,CAC1C;EACD,cAAc,CACZ;GAAE,OAAO;GAAW,OAAO;GAAG,EAC9B;GAAE,OAAO;GAAW,OAAO;GAAK,CACjC;EACF;CACD,SAAS;EACP,SAAS;GACP,OAAO,YAAY,OAAO,cAAc;GACxC,QAA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