@ttoss/theme 1.4.1 → 1.4.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/esm/chunk-VIAWD6II.js +2 -10
- package/dist/esm/index.js +3 -7
- package/dist/esm/themes/Bruttal/Bruttal.js +2 -8
- package/dist/index.js +22 -15
- package/dist/themes/Bruttal/Bruttal.js +22 -19
- package/package.json +7 -4
|
@@ -60,11 +60,7 @@ addIcon("view-on", viewFilledIcon);
|
|
|
60
60
|
addIcon("warning", warningFilledIcon);
|
|
61
61
|
|
|
62
62
|
// src/themes/Bruttal/BruttalFonts.ts
|
|
63
|
-
var BruttalFonts = [
|
|
64
|
-
"https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900",
|
|
65
|
-
"https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900",
|
|
66
|
-
"https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
67
|
-
];
|
|
63
|
+
var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
|
|
68
64
|
|
|
69
65
|
// src/tokens/fontSizes.ts
|
|
70
66
|
var fontSizes = {
|
|
@@ -438,8 +434,4 @@ var BruttalTheme = {
|
|
|
438
434
|
}
|
|
439
435
|
}
|
|
440
436
|
};
|
|
441
|
-
|
|
442
|
-
export {
|
|
443
|
-
BruttalFonts,
|
|
444
|
-
BruttalTheme
|
|
445
|
-
};
|
|
437
|
+
export { BruttalFonts, BruttalTheme };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import {
|
|
3
|
-
BruttalTheme
|
|
4
|
-
} from "./chunk-VIAWD6II.js";
|
|
2
|
+
import { BruttalTheme } from "./chunk-VIAWD6II.js";
|
|
5
3
|
|
|
6
4
|
// src/createTheme.ts
|
|
7
5
|
import deepmerge from "deepmerge";
|
|
8
|
-
var createTheme =
|
|
6
|
+
var createTheme = theme => {
|
|
9
7
|
return deepmerge(BruttalTheme, theme);
|
|
10
8
|
};
|
|
11
|
-
export {
|
|
12
|
-
createTheme
|
|
13
|
-
};
|
|
9
|
+
export { createTheme };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
BruttalTheme
|
|
5
|
-
} from "../../chunk-VIAWD6II.js";
|
|
6
|
-
export {
|
|
7
|
-
BruttalFonts,
|
|
8
|
-
BruttalTheme
|
|
9
|
-
};
|
|
2
|
+
import { BruttalFonts, BruttalTheme } from "../../chunk-VIAWD6II.js";
|
|
3
|
+
export { BruttalFonts, BruttalTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
"use strict";
|
|
3
|
+
|
|
3
4
|
var __create = Object.create;
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7,26 +8,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
10
|
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
12
15
|
};
|
|
13
16
|
var __copyProps = (to, from, except, desc) => {
|
|
14
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
18
22
|
}
|
|
19
23
|
return to;
|
|
20
24
|
};
|
|
21
25
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
mod
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
+
value: mod,
|
|
32
|
+
enumerable: true
|
|
33
|
+
}) : target, mod));
|
|
34
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
35
|
+
value: true
|
|
36
|
+
}), mod);
|
|
30
37
|
|
|
31
38
|
// src/index.ts
|
|
32
39
|
var src_exports = {};
|
|
@@ -469,10 +476,10 @@ var BruttalTheme = {
|
|
|
469
476
|
|
|
470
477
|
// src/createTheme.ts
|
|
471
478
|
var import_deepmerge = __toESM(require("deepmerge"));
|
|
472
|
-
var createTheme =
|
|
479
|
+
var createTheme = theme => {
|
|
473
480
|
return (0, import_deepmerge.default)(BruttalTheme, theme);
|
|
474
481
|
};
|
|
475
482
|
// Annotate the CommonJS export names for ESM import in node:
|
|
476
483
|
0 && (module.exports = {
|
|
477
484
|
createTheme
|
|
478
|
-
});
|
|
485
|
+
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
"use strict";
|
|
3
|
+
|
|
3
4
|
var __create = Object.create;
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7,26 +8,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
10
|
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
12
15
|
};
|
|
13
16
|
var __copyProps = (to, from, except, desc) => {
|
|
14
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: () => from[key],
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
18
22
|
}
|
|
19
23
|
return to;
|
|
20
24
|
};
|
|
21
25
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
mod
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
31
|
+
value: mod,
|
|
32
|
+
enumerable: true
|
|
33
|
+
}) : target, mod));
|
|
34
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
35
|
+
value: true
|
|
36
|
+
}), mod);
|
|
30
37
|
|
|
31
38
|
// src/themes/Bruttal/Bruttal.ts
|
|
32
39
|
var Bruttal_exports = {};
|
|
@@ -96,11 +103,7 @@ var replicateIcon = {
|
|
|
96
103
|
(0, import_react.addIcon)("warning", import_warning_filled.default);
|
|
97
104
|
|
|
98
105
|
// src/themes/Bruttal/BruttalFonts.ts
|
|
99
|
-
var BruttalFonts = [
|
|
100
|
-
"https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900",
|
|
101
|
-
"https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900",
|
|
102
|
-
"https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
|
103
|
-
];
|
|
106
|
+
var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
|
|
104
107
|
|
|
105
108
|
// src/tokens/fontSizes.ts
|
|
106
109
|
var fontSizes = {
|
|
@@ -478,4 +481,4 @@ var BruttalTheme = {
|
|
|
478
481
|
0 && (module.exports = {
|
|
479
482
|
BruttalFonts,
|
|
480
483
|
BruttalTheme
|
|
481
|
-
});
|
|
484
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/theme",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Theme for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"require": "./dist/themes/Bruttal/Bruttal.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
"main": "dist/index.js",
|
|
21
|
+
"module": "dist/esm/index.js",
|
|
20
22
|
"files": [
|
|
21
23
|
"dist",
|
|
22
24
|
"src",
|
|
@@ -27,14 +29,15 @@
|
|
|
27
29
|
"test": "jest"
|
|
28
30
|
},
|
|
29
31
|
"sideEffects": true,
|
|
32
|
+
"typings": "dist/index.d.ts",
|
|
30
33
|
"dependencies": {
|
|
31
34
|
"@iconify-icon/react": "^1.0.7",
|
|
32
35
|
"@iconify/icons-carbon": "^1.2.16",
|
|
33
36
|
"deepmerge": "^4.3.1"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@ttoss/config": "^1.29.
|
|
37
|
-
"@ttoss/test-utils": "^1.20.
|
|
39
|
+
"@ttoss/config": "^1.29.2",
|
|
40
|
+
"@ttoss/test-utils": "^1.20.9"
|
|
38
41
|
},
|
|
39
42
|
"keywords": [],
|
|
40
43
|
"publishConfig": {
|
|
@@ -50,5 +53,5 @@
|
|
|
50
53
|
]
|
|
51
54
|
}
|
|
52
55
|
},
|
|
53
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "792b02e52847725c19fdceffb606c201840d5910"
|
|
54
57
|
}
|