sparkle-design 1.0.4 → 1.0.5
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.
|
@@ -52,6 +52,11 @@ export const Icon = React.forwardRef((_a, ref) => {
|
|
|
52
52
|
const iconTypographyClass = hasIconTypographyClass
|
|
53
53
|
? ""
|
|
54
54
|
: `icon-${size}-fill-${fillValue}`;
|
|
55
|
-
return (_jsx("span", Object.assign({ ref: ref,
|
|
55
|
+
return (_jsx("span", Object.assign({ ref: ref,
|
|
56
|
+
// font-medium: アイコンの weight は 500 で統一。親要素(Button の bold 等)から
|
|
57
|
+
// font-weight が継承されると疑似ボールド(faux bold)で太く描画されるため明示する。
|
|
58
|
+
// en: Icons are unified at weight 500. Set font-weight explicitly so an inherited
|
|
59
|
+
// font-weight (e.g. bold Button labels) does not trigger faux-bold rendering.
|
|
60
|
+
className: cn(iconTypographyClass, "select-none font-medium", className), "aria-hidden": "true" }, props, { children: icon })));
|
|
56
61
|
});
|
|
57
62
|
Icon.displayName = "Icon";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sparkle-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org",
|
|
6
6
|
"access": "public"
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@types/node": "^20",
|
|
84
84
|
"@types/react": "^18",
|
|
85
85
|
"@types/react-dom": "^18",
|
|
86
|
-
"@vitest/browser": "^
|
|
87
|
-
"@vitest/coverage-v8": "^
|
|
86
|
+
"@vitest/browser-playwright": "^4.1.0",
|
|
87
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
88
88
|
"axe-core": "^4.10.3",
|
|
89
89
|
"eslint": "^9",
|
|
90
90
|
"eslint-config-next": "15.3.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"tsc-alias": "^1.8.16",
|
|
100
100
|
"typescript": "^5",
|
|
101
101
|
"vite": "6.4.2",
|
|
102
|
-
"vitest": "^
|
|
102
|
+
"vitest": "^4.1.0"
|
|
103
103
|
},
|
|
104
104
|
"pnpm": {
|
|
105
105
|
"overrides": {
|