knowidea-ui 0.12.0 → 0.12.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.
@@ -20,7 +20,7 @@ export interface AppShellProps {
20
20
  header?: ReactNode;
21
21
  /** 左の切り替えの下に置く物(PC の幅だけ) */
22
22
  sideFooter?: ReactNode;
23
- /** 枠の最小の高さ。既定 100dvh。見本の中に置く時に絞る */
23
+ /** 枠の高さ。既定 100dvh。中身が長い時は <main> の中だけが送られる。見本の中に置く時に絞る */
24
24
  minHeight?: string;
25
25
  className?: string;
26
26
  style?: CSSProperties;
@@ -28,6 +28,8 @@ export interface AppShellProps {
28
28
  }
29
29
  /**
30
30
  * 画面の枠。スマホと iPad(1024px 未満)は下に、PC(1024px 以上)は左に画面の切り替えを出す。
31
- * 中身は <main> に入る。切り替えは両方を描き、幅で片方だけを見せる(見えない方は読み上げにも出ない)。
31
+ * 中身は <main> に入り、送られるのは <main> だけ。上の header と下の切り替えは別の段に置き、中身に重ねない。
32
+ * <main> は Tab で止まり、押せる物の無い長い中身も矢印のキーで送れる。
33
+ * 切り替えは両方を描き、幅で片方だけを見せる(見えない方は読み上げにも出ない)。
32
34
  */
33
35
  export declare function AppShell({ items, current, bottomItems, bottomCurrent, brand, label, header, sideFooter, minHeight, className, style, children }: AppShellProps): import("react").JSX.Element;
package/dist/AppShell.js CHANGED
@@ -4,9 +4,11 @@ import { Drawer } from "./Drawer.js";
4
4
  import { cx } from "./utils.js";
5
5
  /**
6
6
  * 画面の枠。スマホと iPad(1024px 未満)は下に、PC(1024px 以上)は左に画面の切り替えを出す。
7
- * 中身は <main> に入る。切り替えは両方を描き、幅で片方だけを見せる(見えない方は読み上げにも出ない)。
7
+ * 中身は <main> に入り、送られるのは <main> だけ。上の header と下の切り替えは別の段に置き、中身に重ねない。
8
+ * <main> は Tab で止まり、押せる物の無い長い中身も矢印のキーで送れる。
9
+ * 切り替えは両方を描き、幅で片方だけを見せる(見えない方は読み上げにも出ない)。
8
10
  */
9
11
  export function AppShell({ items, current, bottomItems, bottomCurrent, brand, label = "画面の切り替え", header, sideFooter, minHeight, className, style, children }) {
10
12
  const s = { ...(minHeight ? { "--ki-shell-height": minHeight } : null), ...style };
11
- return (_jsxs("div", { className: cx("ki-shell", className), style: s, children: [_jsx(Drawer, { className: "ki-shell__side", variant: "permanent", items: items, current: current, brand: brand, label: label, footer: sideFooter }), _jsxs("div", { className: "ki-shell__body", children: [header, _jsx("main", { className: "ki-shell__main", children: children })] }), _jsx(BottomNavigation, { className: "ki-shell__bottom", items: bottomItems ?? items, current: bottomCurrent ?? current, label: label, position: "sticky" })] }));
13
+ return (_jsxs("div", { className: cx("ki-shell", className), style: s, children: [_jsx(Drawer, { className: "ki-shell__side", variant: "permanent", items: items, current: current, brand: brand, label: label, footer: sideFooter }), _jsxs("div", { className: "ki-shell__body", children: [header, _jsx("main", { className: "ki-shell__main", tabIndex: 0, children: children })] }), _jsx(BottomNavigation, { className: "ki-shell__bottom", items: bottomItems ?? items, current: bottomCurrent ?? current, label: label })] }));
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowidea-ui",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "KNOW IDEA UI の React の部品(Base UI が土台)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,9 +45,9 @@
45
45
  "peerDependencies": {
46
46
  "react": "^19.0.0",
47
47
  "react-dom": "^19.0.0",
48
- "knowidea-css": "^0.12.0",
49
- "knowidea-tokens": "^0.12.0",
50
- "knowidea-icons": "^0.12.0"
48
+ "knowidea-icons": "^0.12.2",
49
+ "knowidea-tokens": "^0.12.2",
50
+ "knowidea-css": "^0.12.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "19.3.0",
@@ -55,9 +55,9 @@
55
55
  "react": "19.3.0",
56
56
  "react-dom": "19.3.0",
57
57
  "typescript": "5.9.3",
58
- "knowidea-icons": "0.12.0",
59
- "knowidea-css": "0.12.0",
60
- "knowidea-tokens": "0.12.0"
58
+ "knowidea-icons": "0.12.2",
59
+ "knowidea-css": "0.12.2",
60
+ "knowidea-tokens": "0.12.2"
61
61
  },
62
62
  "files": [
63
63
  "dist",