@elmethis/core 0.13.0 → 0.15.0
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/index.cjs +8 -65
- package/dist/index.mjs +8 -65
- package/dist/tokens.css +7 -1
- package/package.json +8 -6
package/dist/index.cjs
CHANGED
|
@@ -537,7 +537,7 @@ function collapseCommonRefs(node) {
|
|
|
537
537
|
for (const [k, v] of Object.entries(obj)) out[k] = collapseCommonRefs(v);
|
|
538
538
|
return out;
|
|
539
539
|
}
|
|
540
|
-
const FACTORED_OUT_KEYS = new Set(["accessibility", "weight"]);
|
|
540
|
+
const FACTORED_OUT_KEYS = /* @__PURE__ */ new Set(["accessibility", "weight"]);
|
|
541
541
|
function buildComponentSchema(api) {
|
|
542
542
|
const inner = (0, zod_to_json_schema.zodToJsonSchema)(zod.z.object({ x: api.schema }), {
|
|
543
543
|
$refStrategy: "none",
|
|
@@ -1083,71 +1083,14 @@ const LANGUAGE_REGISTRY = [
|
|
|
1083
1083
|
key: "json",
|
|
1084
1084
|
aliases: [],
|
|
1085
1085
|
icon: {
|
|
1086
|
-
viewBox: "0 0
|
|
1087
|
-
children: [
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
x1: "-670.564",
|
|
1093
|
-
x2: "-583.105",
|
|
1094
|
-
y1: "-280.831",
|
|
1095
|
-
y2: "-368.306",
|
|
1096
|
-
gradientTransform: "matrix(.9988 0 0 -.9987 689.011 -259.008)",
|
|
1097
|
-
gradientUnits: "userSpaceOnUse"
|
|
1098
|
-
},
|
|
1099
|
-
children: [{
|
|
1100
|
-
tag: "stop",
|
|
1101
|
-
attrs: { offset: "0" }
|
|
1102
|
-
}, {
|
|
1103
|
-
tag: "stop",
|
|
1104
|
-
attrs: {
|
|
1105
|
-
offset: "1",
|
|
1106
|
-
"stop-color": "#fff"
|
|
1107
|
-
}
|
|
1108
|
-
}]
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
tag: "path",
|
|
1112
|
-
attrs: {
|
|
1113
|
-
fill: "url(#deviconJson0)",
|
|
1114
|
-
"fill-rule": "evenodd",
|
|
1115
|
-
d: "M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205c-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105C2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674c-.186-32.044 10.453-44.846 26.974-39.214c.37.137 18.223 7.18 18.223 30.187c0 22.908-18.156 30.004-18.156 30.004",
|
|
1116
|
-
"clip-rule": "evenodd"
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
tag: "linearGradient",
|
|
1121
|
-
attrs: {
|
|
1122
|
-
id: "deviconJson1",
|
|
1123
|
-
x1: "-579.148",
|
|
1124
|
-
x2: "-666.607",
|
|
1125
|
-
y1: "-364.34",
|
|
1126
|
-
y2: "-276.865",
|
|
1127
|
-
gradientTransform: "matrix(.9988 0 0 -.9987 689.011 -259.008)",
|
|
1128
|
-
gradientUnits: "userSpaceOnUse"
|
|
1129
|
-
},
|
|
1130
|
-
children: [{
|
|
1131
|
-
tag: "stop",
|
|
1132
|
-
attrs: { offset: "0" }
|
|
1133
|
-
}, {
|
|
1134
|
-
tag: "stop",
|
|
1135
|
-
attrs: {
|
|
1136
|
-
offset: "1",
|
|
1137
|
-
"stop-color": "#fff"
|
|
1138
|
-
}
|
|
1139
|
-
}]
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
tag: "path",
|
|
1143
|
-
attrs: {
|
|
1144
|
-
fill: "url(#deviconJson1)",
|
|
1145
|
-
"fill-rule": "evenodd",
|
|
1146
|
-
d: "M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205c-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105C2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674c-.186-32.044 10.453-44.846 26.974-39.214c.37.137 18.223 7.18 18.223 30.187c0 22.908-18.156 30.004-18.156 30.004",
|
|
1147
|
-
"clip-rule": "evenodd"
|
|
1148
|
-
}
|
|
1086
|
+
viewBox: "0 0 24 24",
|
|
1087
|
+
children: [{
|
|
1088
|
+
tag: "path",
|
|
1089
|
+
attrs: {
|
|
1090
|
+
fill: "#b09a66",
|
|
1091
|
+
d: "M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z"
|
|
1149
1092
|
}
|
|
1150
|
-
]
|
|
1093
|
+
}]
|
|
1151
1094
|
}
|
|
1152
1095
|
},
|
|
1153
1096
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -536,7 +536,7 @@ function collapseCommonRefs(node) {
|
|
|
536
536
|
for (const [k, v] of Object.entries(obj)) out[k] = collapseCommonRefs(v);
|
|
537
537
|
return out;
|
|
538
538
|
}
|
|
539
|
-
const FACTORED_OUT_KEYS = new Set(["accessibility", "weight"]);
|
|
539
|
+
const FACTORED_OUT_KEYS = /* @__PURE__ */ new Set(["accessibility", "weight"]);
|
|
540
540
|
function buildComponentSchema(api) {
|
|
541
541
|
const inner = zodToJsonSchema(z.object({ x: api.schema }), {
|
|
542
542
|
$refStrategy: "none",
|
|
@@ -1081,71 +1081,14 @@ const LANGUAGE_REGISTRY = [
|
|
|
1081
1081
|
key: "json",
|
|
1082
1082
|
aliases: [],
|
|
1083
1083
|
icon: {
|
|
1084
|
-
viewBox: "0 0
|
|
1085
|
-
children: [
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
x1: "-670.564",
|
|
1091
|
-
x2: "-583.105",
|
|
1092
|
-
y1: "-280.831",
|
|
1093
|
-
y2: "-368.306",
|
|
1094
|
-
gradientTransform: "matrix(.9988 0 0 -.9987 689.011 -259.008)",
|
|
1095
|
-
gradientUnits: "userSpaceOnUse"
|
|
1096
|
-
},
|
|
1097
|
-
children: [{
|
|
1098
|
-
tag: "stop",
|
|
1099
|
-
attrs: { offset: "0" }
|
|
1100
|
-
}, {
|
|
1101
|
-
tag: "stop",
|
|
1102
|
-
attrs: {
|
|
1103
|
-
offset: "1",
|
|
1104
|
-
"stop-color": "#fff"
|
|
1105
|
-
}
|
|
1106
|
-
}]
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
tag: "path",
|
|
1110
|
-
attrs: {
|
|
1111
|
-
fill: "url(#deviconJson0)",
|
|
1112
|
-
"fill-rule": "evenodd",
|
|
1113
|
-
d: "M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205c-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105C2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674c-.186-32.044 10.453-44.846 26.974-39.214c.37.137 18.223 7.18 18.223 30.187c0 22.908-18.156 30.004-18.156 30.004",
|
|
1114
|
-
"clip-rule": "evenodd"
|
|
1115
|
-
}
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
tag: "linearGradient",
|
|
1119
|
-
attrs: {
|
|
1120
|
-
id: "deviconJson1",
|
|
1121
|
-
x1: "-579.148",
|
|
1122
|
-
x2: "-666.607",
|
|
1123
|
-
y1: "-364.34",
|
|
1124
|
-
y2: "-276.865",
|
|
1125
|
-
gradientTransform: "matrix(.9988 0 0 -.9987 689.011 -259.008)",
|
|
1126
|
-
gradientUnits: "userSpaceOnUse"
|
|
1127
|
-
},
|
|
1128
|
-
children: [{
|
|
1129
|
-
tag: "stop",
|
|
1130
|
-
attrs: { offset: "0" }
|
|
1131
|
-
}, {
|
|
1132
|
-
tag: "stop",
|
|
1133
|
-
attrs: {
|
|
1134
|
-
offset: "1",
|
|
1135
|
-
"stop-color": "#fff"
|
|
1136
|
-
}
|
|
1137
|
-
}]
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
tag: "path",
|
|
1141
|
-
attrs: {
|
|
1142
|
-
fill: "url(#deviconJson1)",
|
|
1143
|
-
"fill-rule": "evenodd",
|
|
1144
|
-
d: "M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205c-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105C2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674c-.186-32.044 10.453-44.846 26.974-39.214c.37.137 18.223 7.18 18.223 30.187c0 22.908-18.156 30.004-18.156 30.004",
|
|
1145
|
-
"clip-rule": "evenodd"
|
|
1146
|
-
}
|
|
1084
|
+
viewBox: "0 0 24 24",
|
|
1085
|
+
children: [{
|
|
1086
|
+
tag: "path",
|
|
1087
|
+
attrs: {
|
|
1088
|
+
fill: "#b09a66",
|
|
1089
|
+
d: "M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z"
|
|
1147
1090
|
}
|
|
1148
|
-
]
|
|
1091
|
+
}]
|
|
1149
1092
|
}
|
|
1150
1093
|
},
|
|
1151
1094
|
{
|
package/dist/tokens.css
CHANGED
|
@@ -41,9 +41,14 @@
|
|
|
41
41
|
--elmethis-primitive-color-gold-700: #a68c70;
|
|
42
42
|
--elmethis-primitive-color-gold-800: #8e7356;
|
|
43
43
|
--elmethis-primitive-color-gold-900: #6e583f;
|
|
44
|
+
--elmethis-primitive-font-family-sans:
|
|
45
|
+
"DM Sans", "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
|
|
46
|
+
"Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
|
|
44
47
|
--elmethis-primitive-font-family-monospace:
|
|
45
|
-
"DM Mono", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono",
|
|
48
|
+
"DM Mono", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono",
|
|
49
|
+
"Zen Kaku Gothic New", monospace;
|
|
46
50
|
--elmethis-margin-block-start: 2rem;
|
|
51
|
+
--elmethis-font-family-sans: var(--elmethis-primitive-font-family-sans);
|
|
47
52
|
--elmethis-font-family-monospace: var(
|
|
48
53
|
--elmethis-primitive-font-family-monospace
|
|
49
54
|
);
|
|
@@ -154,4 +159,5 @@
|
|
|
154
159
|
var(--elmethis-primitive-color-magenta-900)
|
|
155
160
|
);
|
|
156
161
|
color-scheme: light dark;
|
|
162
|
+
font-family: var(--elmethis-font-family-sans);
|
|
157
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Ikuma Yamashita",
|
|
6
6
|
"url": "https://www.ikuma.cloud/"
|
|
@@ -48,17 +48,18 @@
|
|
|
48
48
|
"@types/node": "25.7.0",
|
|
49
49
|
"@vanilla-extract/css": "^1.20.1",
|
|
50
50
|
"@vanilla-extract/esbuild-plugin": "^2.3.22",
|
|
51
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
51
52
|
"ajv": "^8.17.1",
|
|
52
53
|
"ajv-formats": "^3.0.1",
|
|
53
54
|
"concurrently": "^10.0.3",
|
|
54
55
|
"esbuild": "^0.28.1",
|
|
55
|
-
"eslint": "^10.
|
|
56
|
+
"eslint": "^10.5.0",
|
|
56
57
|
"globals": "^17.6.0",
|
|
57
58
|
"prettier": "3.8.4",
|
|
58
|
-
"tsdown": "^0.22.
|
|
59
|
+
"tsdown": "^0.22.3",
|
|
59
60
|
"tsx": "^4.22.4",
|
|
60
61
|
"typescript": "5.9.3",
|
|
61
|
-
"typescript-eslint": "^8.61.
|
|
62
|
+
"typescript-eslint": "^8.61.1",
|
|
62
63
|
"vitest": "^4.1.8",
|
|
63
64
|
"zod": "^3"
|
|
64
65
|
},
|
|
@@ -70,7 +71,8 @@
|
|
|
70
71
|
"fmt.check": "prettier --check ./src",
|
|
71
72
|
"lint": "eslint \"src/**/*.ts*\"",
|
|
72
73
|
"test.unit": "vitest --run",
|
|
73
|
-
"
|
|
74
|
-
"check
|
|
74
|
+
"test.coverage": "vitest --run --coverage",
|
|
75
|
+
"check": "concurrently -g \"pnpm:fmt.check\" \"pnpm:lint\" \"pnpm:build.types\"",
|
|
76
|
+
"check.ci": "concurrently -g \"pnpm:check\" \"pnpm:build\" \"pnpm:test.unit\""
|
|
75
77
|
}
|
|
76
78
|
}
|