@autional/ui 0.1.0-rc.49 → 0.1.0-rc.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autional/ui",
3
- "version": "0.1.0-rc.49",
3
+ "version": "0.1.0-rc.50",
4
4
  "description": "Autional shared React component library (atoms + molecules) …the canonical home of the component layer",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./src/index.ts",
@@ -39,7 +39,7 @@ export function fieldControlClassFor(
39
39
  invalid?: boolean,
40
40
  extra = '',
41
41
  ): string {
42
- const border = invalid ? 'border-[var(--color-danger)]' : 'border-[var(--color-border-subtle)]';
42
+ const border = invalid ? 'border-[var(--color-danger)]' : 'border-[var(--color-border)]';
43
43
  return `${STRUCT} ${SIZE[size]} ${SHAPE[shape]} ${border} ${extra}`.trim();
44
44
  }
45
45
 
@@ -31,7 +31,12 @@ export function LanguageSwitcher({
31
31
  };
32
32
 
33
33
  return (
34
- <button type="button" onClick={toggle} className={`text-xs transition-colors ${className}`}>
34
+ <button
35
+ type="button"
36
+ onClick={toggle}
37
+ /* 命中盒(T49):此前仅 text-xs ⇒ 实测 16.3×16;撑到 44px(横向留 px-1 保持视觉密度)。 */
38
+ className={`inline-flex items-center justify-center min-h-[44px] min-w-[44px] px-1 text-xs transition-colors ${className}`}
39
+ >
35
40
  {showIcon && <Globe className="h-3.5 w-3.5 shrink-0" />}
36
41
  {lang === 'zh-CN' ? labelEn || 'EN' : labelZh || '中文'}
37
42
  </button>
@@ -32,7 +32,9 @@ export function ThemeToggle({
32
32
  return (
33
33
  <button
34
34
  onClick={toggle}
35
- className={`rounded-md transition-colors ${className}`}
35
+ /* 命中盒(T49):此前只有圆角/过渡 ⇒ 可点区域 = 图标尺寸(14–18px,实测 14×14)。
36
+ 撑到 44px 令牌等价物;图标本身仍居中不变(视觉尺寸零变化)。 */
37
+ className={`inline-flex items-center justify-center min-h-[44px] min-w-[44px] rounded-md transition-colors ${className}`}
36
38
  title={label}
37
39
  aria-label={label}
38
40
  >