@botiverse/raft-ui 0.10.0 → 0.10.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.10.2](https://github.com/botiverse/raft-design/compare/v0.10.1...v0.10.2) (2026-10-20)
2
+
3
+ ### Fixed
4
+
5
+ - `PanelAction` and `PanelToggleAction` follow the same desktop condition as every other control (`(width >= 48rem) and (pointer: fine)`). On a touch tablet they were 32px while the rest stayed 44px; they now keep 44px with 22px icons there. Phone and desktop sizes are unchanged. ([#605](https://github.com/botiverse/raft-design/pull/605))
6
+
7
+ ## [0.10.1](https://github.com/botiverse/raft-design/compare/v0.10.0...v0.10.1) (2026-10-20)
8
+
9
+ ### Fixed
10
+
11
+ - A page in Japanese or Korean (`<html lang="ja">` / `"ko"`, including regional tags like `ja-JP`) falls back to its own system faces (Hiragino Sans, Yu Gothic UI, Meiryo, Noto Sans JP; Apple SD Gothic Neo, Malgun Gothic, Noto Sans KR) before the Chinese ones, so kanji keep Japanese glyph shapes and Hangul gets a Korean face. Chinese and default pages are unchanged. ([#603](https://github.com/botiverse/raft-design/pull/603))
12
+
1
13
  ## [0.10.0](https://github.com/botiverse/raft-design/compare/v0.9.6...v0.10.0) (2026-10-20)
2
14
 
3
15
  ### Breaking Changes
package/dist/fonts.css CHANGED
@@ -1,7 +1,9 @@
1
1
  @import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Space+Mono:wght@400;700&display=swap");
2
2
 
3
3
  /* Raft Design System: Space Grotesk is what people say, Space Mono is what
4
- machines write. CJK falls back to PingFang / Source Han Sans. */
4
+ machines write. CJK falls back to PingFang / Source Han Sans; a Japanese or
5
+ Korean page (<html lang="ja|ko">) falls back to its own faces first, so kanji
6
+ keep Japanese glyph shapes and Hangul a Korean face. */
5
7
  :where(:root) {
6
8
  --heading-font:
7
9
  "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
@@ -11,3 +13,21 @@
11
13
  system-ui, sans-serif;
12
14
  --mono-font: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
13
15
  }
16
+
17
+ :where(:root:lang(ja)) {
18
+ --heading-font:
19
+ "Space Grotesk", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo,
20
+ "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
21
+ --sans-font:
22
+ "Space Grotesk", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo,
23
+ "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
24
+ }
25
+
26
+ :where(:root:lang(ko)) {
27
+ --heading-font:
28
+ "Space Grotesk", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
29
+ system-ui, sans-serif;
30
+ --sans-font:
31
+ "Space Grotesk", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",
32
+ system-ui, sans-serif;
33
+ }
package/dist/index.mjs CHANGED
@@ -194,9 +194,12 @@ const panelHeadEdges = [
194
194
  /**
195
195
  * A head's trailing actions. The last glyph ends on the head's edge: 20px on
196
196
  * desktop (12px of padding, 1px here, the 32px button's 7px glyph inset); on
197
- * a phone 14px in (44px buttons, 11px inset), mirroring a leading Back.
197
+ * a phone 14px in (44px buttons, 11px inset), mirroring a leading Back. The
198
+ * margin and gap follow the button's size, not the layout: a touch screen
199
+ * from 768px has the desktop head with 44px buttons, so -3px puts its last
200
+ * glyph on 20px too.
198
201
  */
199
- const panelHeadActions = "flex shrink-0 items-center gap-0.5 mr-[-3px] md:mr-px md:gap-1";
202
+ const panelHeadActions = "flex shrink-0 items-center gap-0.5 mr-[-3px] md:pointer-fine:mr-px md:pointer-fine:gap-1";
200
203
  /**
201
204
  * `header` and `sectionHeader` share one bar, expressed through
202
205
  * `compoundSlots`: a 56px row (the shell header height) with a seam under it.
@@ -13488,12 +13491,13 @@ const panelActionBase = tv({ base: [
13488
13491
  "overflow-visible font-sans leading-none tabular-nums select-none outline-none",
13489
13492
  "transition-all duration-100",
13490
13493
  "[&>svg]:pointer-events-none [&>svg]:shrink-0",
13491
- "h-11 min-w-11 rounded-control border-[1.5px] border-transparent bg-transparent px-2 py-0",
13492
- "md:h-8 md:min-w-8 md:px-[5px] md:after:absolute md:after:-inset-1.5",
13494
+ "h-control min-w-control rounded-control border-[1.5px] border-transparent bg-transparent py-0",
13495
+ "px-2 md:pointer-fine:px-[5px]",
13496
+ "after:absolute after:-inset-control-hit",
13493
13497
  "text-foreground",
13494
13498
  "hover:bg-fill-pressed active:bg-fill-pressed",
13495
13499
  "focus-visible:shadow-focus",
13496
- "[&>svg]:size-[22px] md:[&>svg]:size-[18px]"
13500
+ "[&>svg]:size-control-icon"
13497
13501
  ] });
13498
13502
  const panelAction = tv({
13499
13503
  extend: panelActionBase,
package/dist/styles.css CHANGED
@@ -359,8 +359,9 @@
359
359
  `after:-inset-y-control-hit`, which is 0 on a phone.
360
360
 
361
361
  Consumers: `Input`, `InputGroup`, `SelectTrigger`,
362
- `ComboboxControl`, `ComboboxChips`, `ComboboxSelect`, and Button at `lg`,
363
- `xl` (`h-control-cta`) and `icon-lg` (`size-control-icon` for its icon). */
362
+ `ComboboxControl`, `ComboboxChips`, `ComboboxSelect`, `PanelAction`, and
363
+ Button at `lg`, `xl` (`h-control-cta`) and `icon-lg` (`size-control-icon`
364
+ for its icon). */
364
365
  --spacing-control: var(--control-height);
365
366
  --spacing-control-cta: var(--control-height-cta);
366
367
  --spacing-control-icon: var(--control-icon-size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botiverse/raft-ui",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "React components and CSS foundations for the Raft Design System.",
5
5
  "keywords": [
6
6
  "agent-skills",