docs(sw): Popup guidance, example comments, package README and link check

This commit is contained in:
shkim4 committed 2026-10-20 21:49:47 +09:00
1 parent 2ce24b8b43
commit e32a138f28
7 files changed
+92 -91

No files matched your search

@@ -1,6 +1,10 @@
// Example B — composition (2nd priority): a simplified viewer header
// Example B — composition (2nd priority): a simplified SW NORMAL-mode header (SWHeader parts, not SWViewer*)
// Logo → File → Layer → Color → K
// Only public components; the layout is the consumer's (example-layout.css) and <SWTheme> provides tokens.
// SW normal mode: individual SWHeader controls inside <SWTheme>. It is NOT the SW viewer mode — a viewer screen
// (DWG/DXF viewing) uses SWViewerHeader / SWViewerMenu / SWViewerPanel (Example H, VIEWER.md). "Viewer" in the file
// name, the function name and the sample labels (aria-label "뷰어 헤더", logoAlt "뷰어") is a former name of this
// sample product, kept so existing imports keep working.
import { useState } from "react"
import {
SWHeaderActions, SWHeaderColorMenu, SWHeaderDocumentTitle, SWHeaderHome, SWHeaderLayerMenu, SWTheme,
@@ -1,6 +1,10 @@
// Example F — a viewer header: logo → Open → file → layer → color → K, plus a tool bar (Model / Layout, 2.5D,
// Fit) after the menus. Everything is SWHeader props, so the existing responsive More serves the whole layout
// (Open moves into More when the measured header has no room). No freeze / lock, no "+ New" in this product.
// Example F — an SW NORMAL-mode SWHeader with file open and a tool bar: logo → Open → file → layer → color → K, plus
// a tool bar (Model / Layout, 2.5D, Fit) after the menus. Everything is SWHeader props, so the existing responsive
// More serves the whole layout (Open moves into More when the measured header has no room). No freeze / lock, no
// "+ New" in this product.
// It is NOT the SW viewer mode: a viewer screen (DWG/DXF viewing) uses SWViewerHeader / SWViewerMenu /
// SWViewerPanel (Example H, VIEWER.md). "Viewer" in the file and function name is a former name, kept so existing
// imports keep working.
import { useState } from "react"
import { SWHeader, SWToolButton, SWToolGroup } from "@hm-design/sw"
import { colors, documents, layers } from "./sample-data"