@beehexa/design-rules 2611.5.5 → 2611.6.1

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.
Files changed (190) hide show
  1. package/README.md +1 -1
  2. package/dist/catalog.json +908 -208
  3. package/dist/docs/public/_redirects +2 -2
  4. package/dist/docs/scripts/color-pairs.mjs +4 -0
  5. package/dist/docs/src/components/ChildPages.astro +8 -1
  6. package/dist/docs/src/components/ColorDemo.astro +12 -9
  7. package/dist/docs/src/components/DocsFooter.astro +1 -1
  8. package/dist/docs/src/components/HelpOptions.astro +8 -6
  9. package/dist/docs/src/components/IconBrowser.astro +2 -2
  10. package/dist/docs/src/components/LayoutDemo.astro +178 -99
  11. package/dist/docs/src/components/NativeControlsDemo.astro +165 -40
  12. package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
  13. package/dist/docs/src/components/PhaseTable.astro +9 -5
  14. package/dist/docs/src/components/RoleGuides.astro +30 -22
  15. package/dist/docs/src/components/RuleDemo.astro +111 -0
  16. package/dist/docs/src/components/ShapeDemo.astro +24 -36
  17. package/dist/docs/src/components/SiteHeader.astro +1 -1
  18. package/dist/docs/src/components/SpacingDemo.astro +2 -0
  19. package/dist/docs/src/components/SwitchToggle.astro +13 -0
  20. package/dist/docs/src/components/SystemAreas.astro +9 -6
  21. package/dist/docs/src/components/TableOfContents.astro +1 -1
  22. package/dist/docs/src/components/TokenSearch.astro +64 -0
  23. package/dist/docs/src/components/TokenTable.astro +14 -9
  24. package/dist/docs/src/components/TypeDemo.astro +1 -1
  25. package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
  26. package/dist/docs/src/content/components/button/accessibility.mdx +3 -3
  27. package/dist/docs/src/content/components/button/changelog.mdx +1 -1
  28. package/dist/docs/src/content/components/button/examples.mdx +10 -23
  29. package/dist/docs/src/content/components/button/meta.json +5 -1
  30. package/dist/docs/src/content/components/button/usage.mdx +13 -26
  31. package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
  32. package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
  33. package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
  34. package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
  35. package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
  36. package/dist/docs/src/content/components/switch/examples.mdx +35 -0
  37. package/dist/docs/src/content/components/switch/meta.json +9 -0
  38. package/dist/docs/src/content/components/switch/usage.mdx +44 -0
  39. package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
  40. package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
  41. package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +1 -1
  42. package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
  43. package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
  44. package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
  45. package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
  46. package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  47. package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
  48. package/dist/docs/src/content/foundations/styles/border.mdx +5 -6
  49. package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +31 -7
  50. package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
  51. package/dist/docs/src/content/foundations/styles/color/palette.mdx +2 -2
  52. package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
  53. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +33 -78
  54. package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
  55. package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
  56. package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
  57. package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
  58. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
  59. package/dist/docs/src/content/foundations/styles/interaction-states.mdx +40 -14
  60. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
  61. package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
  62. package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
  63. package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  64. package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
  65. package/dist/docs/src/content/foundations/styles/motion.mdx +2 -0
  66. package/dist/docs/src/content/foundations/styles/radius.mdx +38 -27
  67. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
  68. package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
  69. package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
  70. package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
  71. package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
  72. package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
  73. package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
  74. package/dist/docs/src/content/get-started/content.mdx +25 -3
  75. package/dist/docs/src/content/get-started/design.mdx +34 -15
  76. package/dist/docs/src/content/get-started/develop.mdx +83 -28
  77. package/dist/docs/src/content/get-started/get-help.mdx +21 -5
  78. package/dist/docs/src/content/get-started/index.mdx +11 -12
  79. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
  80. package/dist/docs/src/content/tools/application-content.mdx +52 -13
  81. package/dist/docs/src/content/tools/editors.mdx +36 -28
  82. package/dist/docs/src/content/tools/mermaid.mdx +42 -9
  83. package/dist/docs/src/content/tools/vueflow.mdx +56 -7
  84. package/dist/docs/src/content-vi/components/button/accessibility.mdx +51 -0
  85. package/dist/docs/src/content-vi/components/button/changelog.mdx +6 -0
  86. package/dist/docs/src/content-vi/components/button/examples.mdx +27 -0
  87. package/dist/docs/src/content-vi/components/button/usage.mdx +31 -0
  88. package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
  89. package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
  90. package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
  91. package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
  92. package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
  93. package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
  94. package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
  95. package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
  96. package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
  97. package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
  98. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
  99. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
  100. package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +1 -1
  101. package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
  102. package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
  103. package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
  104. package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
  105. package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  106. package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
  107. package/dist/docs/src/content-vi/foundations/styles/border.mdx +5 -5
  108. package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +30 -7
  109. package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
  110. package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +2 -2
  111. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +5 -5
  112. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +31 -1
  113. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +2 -2
  114. package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
  115. package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
  116. package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
  117. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +0 -3
  118. package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +54 -12
  119. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
  120. package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
  121. package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
  122. package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  123. package/dist/docs/src/content-vi/foundations/styles/motion.mdx +2 -0
  124. package/dist/docs/src/content-vi/foundations/styles/radius.mdx +38 -27
  125. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
  126. package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
  127. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
  128. package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
  129. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
  130. package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
  131. package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
  132. package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
  133. package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
  134. package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
  135. package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
  136. package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
  137. package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
  138. package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
  139. package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
  140. package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
  141. package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
  142. package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
  143. package/dist/docs/src/content-vi/tools/index.mdx +7 -0
  144. package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
  145. package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
  146. package/dist/docs/src/content-vi/tools/vueflow.mdx +189 -0
  147. package/dist/docs/src/content.config.ts +12 -1
  148. package/dist/docs/src/lib/dates.ts +8 -0
  149. package/dist/docs/src/lib/i18n.ts +1 -0
  150. package/dist/docs/src/lib/navigation.ts +6 -4
  151. package/dist/docs/src/lib/token-descriptions-vi.ts +247 -11
  152. package/dist/docs/src/lib/tokens.ts +3 -0
  153. package/dist/docs/src/styles/chrome.css +8 -8
  154. package/dist/docs/src/styles/color.css +31 -31
  155. package/dist/docs/src/styles/docs.css +55 -40
  156. package/dist/docs/src/styles/elevation.css +1 -1
  157. package/dist/docs/src/styles/global.css +13 -4
  158. package/dist/docs/src/styles/icons.css +16 -16
  159. package/dist/docs/src/styles/kit.css +29 -10
  160. package/dist/docs/src/styles/layout.css +16 -11
  161. package/dist/docs/src/styles/logos.css +24 -24
  162. package/dist/docs/src/styles/opacity.css +3 -3
  163. package/dist/docs/src/styles/rules.css +24 -0
  164. package/dist/docs/src/styles/shapes.css +2 -2
  165. package/dist/docs/src/styles/tokens.css +228 -147
  166. package/dist/docs/src/styles/tokens.js +88 -62
  167. package/dist/docs/src/styles/typography.css +9 -9
  168. package/dist/docs/src/styles/zindex.css +6 -5
  169. package/dist/docs/tokens/color.json +24 -14
  170. package/dist/docs/tokens/components.json +39 -0
  171. package/dist/docs/tokens/content.json +103 -10
  172. package/dist/docs/tokens/diagram.json +490 -49
  173. package/dist/docs/tokens/editor.json +128 -22
  174. package/dist/docs/tokens/flow.json +412 -80
  175. package/dist/docs/tokens/layout.json +13 -4
  176. package/dist/docs/tokens/motion.json +11 -0
  177. package/dist/docs/tokens/radius.json +9 -9
  178. package/dist/docs/tokens/renderer.json +8 -0
  179. package/dist/docs/tokens/resize.json +84 -15
  180. package/dist/docs/tokens/scrollbar.json +42 -7
  181. package/dist/docs/tokens/size.json +6 -6
  182. package/dist/docs/tokens/spacing.json +1 -1
  183. package/dist/docs/tokens/switch.json +314 -59
  184. package/dist/docs/tokens/typography.json +1 -1
  185. package/dist/docs/tokens/visualization.json +465 -53
  186. package/dist/docs/tokens/z-index.json +0 -10
  187. package/dist/index.js +908 -208
  188. package/package.json +1 -1
  189. package/dist/docs/src/brand/structure-proposal.md +0 -227
  190. package/dist/docs/src/content/components/button/code.mdx +0 -34
@@ -3,10 +3,11 @@
3
3
  // window, a 1920 px window and a 360 px phone) and scale to fit; colours are role tokens set in layout.css.
4
4
  import '../styles/layout.css';
5
5
  import { tokensByPrefix } from '../lib/tokens';
6
+ import { tokenPixels } from '@beehexa/design-tokens';
6
7
  import { langOf } from '../lib/i18n';
7
8
 
8
9
  interface Props {
9
- kind: 'anatomy' | 'grid' | 'widths' | 'controls' | 'breakpoints' | 'navlabels' | 'pageheader';
10
+ kind: 'anatomy' | 'grid' | 'widths' | 'controls' | 'breakpoints' | 'navlabels' | 'pageheader' | 'overlays';
10
11
  }
11
12
  const { kind } = Astro.props;
12
13
  const vi = langOf(Astro.url.pathname) === 'vi';
@@ -35,6 +36,11 @@ const pspan = (n: number) => n * pColW + (n - 1) * gutter.phone;
35
36
 
36
37
  const menu = [0, 1, 2, 3, 4, 5];
37
38
 
39
+ // Corners, control heights and lines come from the tokens, so the drawings follow the approved values.
40
+ // Text placeholders (skeleton bars) take radius.050, like other small supporting shapes.
41
+ const R = { tag: tokenPixels('radius.050'), control: tokenPixels('radius.control'), card: tokenPixels('radius.card') };
42
+ const C = { default: tokenPixels('size.control.default') };
43
+ const SEL = tokenPixels('border.width.selected');
38
44
  // Page widths on a 1920 px window with the side navigation open: page margin 32 px (xl).
39
45
  // Wide and narrow pages are centred in the area beside the side navigation; the maximum includes the margins.
40
46
  const W = 1920;
@@ -72,46 +78,49 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
72
78
  <rect class="f-mark" x={1280 - pad.desktop} y={header} width={pad.desktop} height={800 - header} />
73
79
  <rect class="f-mark" x={sidebar} y={header} width={1280 - sidebar} height={pad.desktop} />
74
80
  <rect class="f-mark" x={sidebar} y={800 - pad.desktop} width={1280 - sidebar} height={pad.desktop} />
75
- <rect class="f-subtle" x="0" y="0" width="1280" height={header} />
76
- <rect class="f-line" x="0" y={header - 2} width="1280" height="2" />
77
- <rect class="f-indicator" x="20" y="12" width="24" height="24" rx="6" />
78
- <rect class="f-skel" x="52" y="16" width="88" height="16" rx="4" />
79
- <rect class="f-field" x="480" y="8" width="400" height="32" rx="8" />
81
+ <rect class="f-page" x="0" y="0" width="1280" height={header} />
82
+ <line class="f-rule" x1="0" y1={(header - 2) + 2/2} x2="1280" y2={(header - 2) + 2/2} />
83
+ <rect class="f-indicator" x="20" y="12" width="24" height="24" rx={R.tag} />
84
+ <rect class="f-skel" x="52" y="16" width="88" height="16" rx={R.tag} />
85
+ <rect class="f-field" x="480" y="8" width="400" height="32" rx={R.control} />
80
86
  <circle class="f-skel" cx="1248" cy="24" r="16" />
81
87
  <path class="s-dim" d="M924 2v44M918 2h12M918 46h12" />
82
88
  <text class="t-dim" x="940" y="32" font-size="22">48</text>
83
- <rect class="f-subtle" x="0" y={header} width={sidebar} height={800 - header} />
84
- <rect class="f-line" x={sidebar - 2} y={header} width="2" height={800 - header} />
89
+ <rect class="f-page" x="0" y={header} width={sidebar} height={800 - header} />
90
+ <line class="f-rule" x1={(sidebar - 2) + 2/2} y1={(header)} x2={(sidebar - 2) + 2/2} y2={(header) + (800 - header)} />
85
91
  {menu.map((i) => (
86
92
  <g>
87
- <rect class={i === 0 ? 'f-selected' : 'f-subtle'} x="8" y={56 + i * 36} width={sidebar - 16} height="32" rx="6" />
88
- {i === 0 && <rect class="f-indicator" x="8" y={62} width="4" height="20" rx="2" />}
89
- <rect class="f-skel" x="20" y={64 + i * 36} width="16" height="16" rx="4" />
90
- <rect class="f-skel" x="40" y={67 + i * 36} width={150 - i * 12} height="10" rx="5" />
93
+ <rect class={i === 0 ? 'f-selected' : 'f-page'} x="8" y={56 + i * 36} width={sidebar - 16} height="32" rx={R.control} />
94
+ {i === 0 && <>
95
+ <clipPath id="ly-sel-item"><rect x="8" y={56} width={sidebar - 16} height="32" rx={R.control} /></clipPath>
96
+ <rect class="f-indicator" x="8" y={56} width={SEL} height="32" clip-path="url(#ly-sel-item)" />
97
+ </>}
98
+ <rect class="f-skel" x="20" y={64 + i * 36} width="16" height="16" rx={R.tag} />
99
+ <rect class="f-skel" x="40" y={67 + i * 36} width={150 - i * 12} height="10" rx={R.tag} />
91
100
  </g>
92
101
  ))}
93
102
  <path class="s-dim" d={`M8 752h${sidebar - 16}M8 746v12M${sidebar - 8} 746v12`} />
94
103
  <text class="t-dim" x={sidebar / 2} y="740" font-size="22" text-anchor="middle">{sidebar}</text>
95
104
  <text class="t-dim" x={sidebar + pad.desktop / 2} y="470" font-size="20" text-anchor="middle">24</text>
96
- <rect class="f-skel" x={cx} y="84" width="280" height="24" rx="6" />
97
- <rect class="f-primary" x={cx + cw - 120} y="80" width="120" height="32" rx="8" />
105
+ <rect class="f-skel" x={cx} y="84" width="280" height="24" rx={R.tag} />
106
+ <rect class="f-primary" x={cx + cw - 120} y="80" width="120" height="32" rx={R.control} />
98
107
  {cards.map((c, i) => (
99
108
  <g>
100
109
  {i > 0 && <rect class="f-mark" x={c.x - gutter.desktop} y="136" width={gutter.desktop} height="112" />}
101
- <rect class="f-surface" x={c.x} y="136" width={c.w} height="112" rx="12" />
102
- <rect class="f-skel" x={c.x + 24} y="160" width="100" height="12" rx="6" />
103
- <rect class="f-skel" x={c.x + 24} y="188" width="64" height="28" rx="6" />
110
+ <rect class="f-surface" x={c.x} y="136" width={c.w} height="112" rx={R.card} />
111
+ <rect class="f-skel" x={c.x + 24} y="160" width="100" height="12" rx={R.tag} />
112
+ <rect class="f-skel" x={c.x + 24} y="188" width="64" height="28" rx={R.tag} />
104
113
  </g>
105
114
  ))}
106
115
  <text class="t-dim" x={cards[1].x - gutter.desktop / 2} y="202" font-size="20" text-anchor="middle">24</text>
107
- <rect class="f-surface" x={cx} y="272" width={cw} height={800 - pad.desktop - 272} rx="12" />
108
- <rect class="f-skel" x={cx + 24} y="296" width="200" height="16" rx="8" />
116
+ <rect class="f-surface" x={cx} y="272" width={cw} height={800 - pad.desktop - 272} rx={R.card} />
117
+ <rect class="f-skel" x={cx + 24} y="296" width="200" height="16" rx={R.tag} />
109
118
  {[0, 1, 2, 3, 4, 5, 6, 7].map((r) => (
110
119
  <g>
111
- <rect class="f-line" x={cx + 24} y={336 + r * 52} width={cw - 48} height="2" />
112
- <rect class="f-skel-subtle" x={cx + 24} y={356 + r * 52} width="180" height="12" rx="6" />
113
- <rect class="f-skel-subtle" x={cx + 320} y={356 + r * 52} width="120" height="12" rx="6" />
114
- <rect class="f-skel-subtle" x={cx + 560} y={356 + r * 52} width="96" height="12" rx="6" />
120
+ <line class="f-rule" x1={(cx + 24)} y1={(336 + r * 52) + 2/2} x2={(cx + 24) + (cw - 48)} y2={(336 + r * 52) + 2/2} />
121
+ <rect class="f-skel-subtle" x={cx + 24} y={356 + r * 52} width="180" height="12" rx={R.tag} />
122
+ <rect class="f-skel-subtle" x={cx + 320} y={356 + r * 52} width="120" height="12" rx={R.tag} />
123
+ <rect class="f-skel-subtle" x={cx + 560} y={356 + r * 52} width="96" height="12" rx={R.tag} />
115
124
  </g>
116
125
  ))}
117
126
  <circle class="c-call" cx="320" cy="24" r="20" /><text class="t-call" x="320" y="24" font-size="22">1</text>
@@ -129,28 +138,28 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
129
138
  <rect class="f-mark" x={360 - pad.phone} y={header} width={pad.phone} height={720 - header} />
130
139
  <rect class="f-mark" x="0" y={header} width="360" height={pad.phone} />
131
140
  <rect class="f-mark" x="0" y={720 - pad.phone} width="360" height={pad.phone} />
132
- <rect class="f-plain" x="0" y="0" width="360" height={header} />
133
- <rect class="f-line" x="0" y={header - 2} width="360" height="2" />
141
+ <rect class="f-page" x="0" y="0" width="360" height={header} />
142
+ <line class="f-rule" x1="0" y1={(header - 2) + 2/2} x2="360" y2={(header - 2) + 2/2} />
134
143
  <path class="s-icon" d="M18 16h20M18 24h20M18 32h20" />
135
- <rect class="f-indicator" x="56" y="12" width="24" height="24" rx="6" />
136
- <rect class="f-skel" x="88" y="16" width="72" height="16" rx="4" />
144
+ <rect class="f-indicator" x="56" y="12" width="24" height="24" rx={R.tag} />
145
+ <rect class="f-skel" x="88" y="16" width="72" height="16" rx={R.tag} />
137
146
  <circle class="f-skel" cx="328" cy="24" r="16" />
138
- <rect class="f-skel" x={pad.phone} y="68" width="180" height="24" rx="6" />
139
- <rect class="f-primary" x={pad.phone} y="108" width={pw} height="40" rx="8" />
140
- <rect class="f-surface" x={pad.phone} y="164" width={pw} height="96" rx="12" />
141
- <rect class="f-skel" x={pad.phone + 16} y="184" width="100" height="12" rx="6" />
142
- <rect class="f-skel" x={pad.phone + 16} y="208" width="64" height="28" rx="6" />
147
+ <rect class="f-skel" x={pad.phone} y="68" width="180" height="24" rx={R.tag} />
148
+ <rect class="f-primary" x={pad.phone} y="108" width={pw} height="40" rx={R.control} />
149
+ <rect class="f-surface" x={pad.phone} y="164" width={pw} height="96" rx={R.card} />
150
+ <rect class="f-skel" x={pad.phone + 16} y="184" width="100" height="12" rx={R.tag} />
151
+ <rect class="f-skel" x={pad.phone + 16} y="208" width="64" height="28" rx={R.tag} />
143
152
  <rect class="f-mark" x={pcol(2) - gutter.phone} y="276" width={gutter.phone} height="96" />
144
- <rect class="f-surface" x={pcol(0)} y="276" width={pspan(2)} height="96" rx="12" />
145
- <rect class="f-surface" x={pcol(2)} y="276" width={pspan(2)} height="96" rx="12" />
146
- <rect class="f-skel" x={pcol(0) + 16} y="296" width="80" height="12" rx="6" />
147
- <rect class="f-skel" x={pcol(2) + 16} y="296" width="80" height="12" rx="6" />
148
- <rect class="f-surface" x={pad.phone} y="388" width={pw} height="316" rx="12" />
149
- <rect class="f-skel" x={pad.phone + 16} y="404" width="120" height="14" rx="7" />
153
+ <rect class="f-surface" x={pcol(0)} y="276" width={pspan(2)} height="96" rx={R.card} />
154
+ <rect class="f-surface" x={pcol(2)} y="276" width={pspan(2)} height="96" rx={R.card} />
155
+ <rect class="f-skel" x={pcol(0) + 16} y="296" width="80" height="12" rx={R.tag} />
156
+ <rect class="f-skel" x={pcol(2) + 16} y="296" width="80" height="12" rx={R.tag} />
157
+ <rect class="f-surface" x={pad.phone} y="388" width={pw} height="316" rx={R.card} />
158
+ <rect class="f-skel" x={pad.phone + 16} y="404" width="120" height="14" rx={R.tag} />
150
159
  {[0, 1, 2, 3, 4].map((r) => (
151
160
  <g>
152
- <rect class="f-line" x={pad.phone + 16} y={436 + r * 52} width={pw - 32} height="2" />
153
- <rect class="f-skel-subtle" x={pad.phone + 16} y={456 + r * 52} width="150" height="12" rx="6" />
161
+ <line class="f-rule" x1={(pad.phone + 16)} y1={(436 + r * 52) + 2/2} x2={(pad.phone + 16) + (pw - 32)} y2={(436 + r * 52) + 2/2} />
162
+ <rect class="f-skel-subtle" x={pad.phone + 16} y={456 + r * 52} width="150" height="12" rx={R.tag} />
154
163
  </g>
155
164
  ))}
156
165
  </svg>
@@ -176,15 +185,15 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
176
185
  <rect class="f-mark" x={sidebar} y={header} width={pad.desktop} height={560 - header} />
177
186
  <rect class="f-mark" x={1280 - pad.desktop} y={header} width={pad.desktop} height={560 - header} />
178
187
  {Array.from({ length: 12 }, (_, i) => <rect class="f-col" x={col(i)} y={header} width={colW} height={560 - header} />)}
179
- <rect class="f-plain" x="0" y="0" width="1280" height={header} />
180
- <rect class="f-line" x="0" y={header - 2} width="1280" height="2" />
181
- <rect class="f-indicator" x="20" y="12" width="24" height="24" rx="6" />
182
- <rect class="f-skel" x="52" y="16" width="88" height="16" rx="4" />
183
- <rect class="f-subtle" x="0" y={header} width={sidebar} height={560 - header} />
184
- <rect class="f-line" x={sidebar - 2} y={header} width="2" height={560 - header} />
185
- {cards.map((c) => <rect class="f-block" x={c.x} y="96" width={c.w} height="112" rx="12" />)}
186
- <rect class="f-block" x={col(0)} y="232" width={span(8)} height="296" rx="12" />
187
- <rect class="f-block" x={col(8)} y="232" width={span(4)} height="296" rx="12" />
188
+ <rect class="f-page" x="0" y="0" width="1280" height={header} />
189
+ <line class="f-rule" x1="0" y1={(header - 2) + 2/2} x2="1280" y2={(header - 2) + 2/2} />
190
+ <rect class="f-indicator" x="20" y="12" width="24" height="24" rx={R.tag} />
191
+ <rect class="f-skel" x="52" y="16" width="88" height="16" rx={R.tag} />
192
+ <rect class="f-page" x="0" y={header} width={sidebar} height={560 - header} />
193
+ <line class="f-rule" x1={(sidebar - 2) + 2/2} y1={(header)} x2={(sidebar - 2) + 2/2} y2={(header) + (560 - header)} />
194
+ {cards.map((c) => <rect class="f-block" x={c.x} y="96" width={c.w} height="112" rx={R.card} />)}
195
+ <rect class="f-block" x={col(0)} y="232" width={span(8)} height="296" rx={R.card} />
196
+ <rect class="f-block" x={col(8)} y="232" width={span(4)} height="296" rx={R.card} />
188
197
  <text class="t-ink" x={col(0) + span(8) / 2} y="388" font-size="26" text-anchor="middle">span 8</text>
189
198
  <text class="t-ink" x={col(8) + span(4) / 2} y="388" font-size="26" text-anchor="middle">span 4</text>
190
199
  <text class="t-ink" x={cards[0].x + cards[0].w / 2} y="160" font-size="26" text-anchor="middle">span 3</text>
@@ -200,15 +209,15 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
200
209
  <rect class="f-mark" x="0" y={header} width={pad.phone} height={640 - header} />
201
210
  <rect class="f-mark" x={360 - pad.phone} y={header} width={pad.phone} height={640 - header} />
202
211
  {Array.from({ length: 4 }, (_, i) => <rect class="f-col" x={pcol(i)} y={header} width={pColW} height={640 - header} />)}
203
- <rect class="f-plain" x="0" y="0" width="360" height={header} />
204
- <rect class="f-line" x="0" y={header - 2} width="360" height="2" />
212
+ <rect class="f-page" x="0" y="0" width="360" height={header} />
213
+ <line class="f-rule" x1="0" y1={(header - 2) + 2/2} x2="360" y2={(header - 2) + 2/2} />
205
214
  <path class="s-icon" d="M18 16h20M18 24h20M18 32h20" />
206
- <rect class="f-indicator" x="56" y="12" width="24" height="24" rx="6" />
207
- <rect class="f-block" x={pcol(0)} y="64" width={pw} height="96" rx="12" />
208
- <rect class="f-block" x={pcol(0)} y="176" width={pspan(2)} height="96" rx="12" />
209
- <rect class="f-block" x={pcol(2)} y="176" width={pspan(2)} height="96" rx="12" />
210
- {[0, 1, 2, 3].map((i) => <rect class="f-block" x={pcol(i)} y="288" width={pColW} height="72" rx="10" />)}
211
- <rect class="f-block" x={pcol(0)} y="376" width={pw} height="248" rx="12" />
215
+ <rect class="f-indicator" x="56" y="12" width="24" height="24" rx={R.tag} />
216
+ <rect class="f-block" x={pcol(0)} y="64" width={pw} height="96" rx={R.card} />
217
+ <rect class="f-block" x={pcol(0)} y="176" width={pspan(2)} height="96" rx={R.card} />
218
+ <rect class="f-block" x={pcol(2)} y="176" width={pspan(2)} height="96" rx={R.card} />
219
+ {[0, 1, 2, 3].map((i) => <rect class="f-block" x={pcol(i)} y="288" width={pColW} height="72" rx={R.card} />)}
220
+ <rect class="f-block" x={pcol(0)} y="376" width={pw} height="248" rx={R.card} />
212
221
  <text class="t-ink" x="180" y="120" font-size="22" text-anchor="middle">span 4</text>
213
222
  <text class="t-ink" x={pcol(0) + pspan(2) / 2} y="232" font-size="22" text-anchor="middle">span 2</text>
214
223
  <text class="t-ink" x={pcol(2) + pspan(2) / 2} y="232" font-size="22" text-anchor="middle">span 2</text>
@@ -229,47 +238,47 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
229
238
  <rect class="f-page" x="0" y="0" width={W} height={H} />
230
239
  {w.name !== 'Full' && <rect class="f-mark" x={area.x} y={hb} width={w.fx - area.x} height={H - hb} />}
231
240
  {w.name !== 'Full' && <rect class="f-mark" x={w.fx + w.frame} y={hb} width={area.x + area.w - w.fx - w.frame} height={H - hb} />}
232
- <rect class="f-plain" x="0" y="0" width={W} height={header} />
233
- <rect class="f-line" x="0" y={header - 2} width={W} height="2" />
234
- <rect class="f-indicator" x="20" y="12" width="24" height="24" rx="6" />
235
- <rect class="f-subtle" x="0" y={header} width={sidebar} height={H - header} />
236
- <rect class="f-line" x={sidebar - 2} y={header} width="2" height={H - header} />
237
- {menu.map((i) => <rect class="f-skel" x="32" y={80 + i * 64} width={200 - i * 16} height="24" rx="12" />)}
238
- <rect class="f-skel-subtle" x={ph.x} y="80" width="96" height="16" rx="8" />
239
- <rect class="f-skel-subtle" x={ph.x + 112} y="80" width="128" height="16" rx="8" />
240
- <rect class="f-skel" x={ph.x} y="108" width="480" height="40" rx="10" />
241
- {w.name !== 'Narrow' && <rect class="f-field" x={ph.x + ph.w - 384} y="104" width="168" height="48" rx="10" />}
242
- {w.name !== 'Narrow' && <rect class="f-primary" x={ph.x + ph.w - 200} y="104" width="200" height="48" rx="10" />}
243
- <rect class="f-line" x={ph.x} y={hb - 4} width={ph.w} height="4" />
241
+ <rect class="f-page" x="0" y="0" width={W} height={header} />
242
+ <line class="f-rule" x1="0" y1={(header - 2) + 2/2} x2={0 + (W)} y2={(header - 2) + 2/2} />
243
+ <rect class="f-indicator" x="20" y="12" width="24" height="24" rx={R.tag} />
244
+ <rect class="f-page" x="0" y={header} width={sidebar} height={H - header} />
245
+ <line class="f-rule" x1={(sidebar - 2) + 2/2} y1={(header)} x2={(sidebar - 2) + 2/2} y2={(header) + (H - header)} />
246
+ {menu.map((i) => <rect class="f-skel" x="32" y={80 + i * 64} width={200 - i * 16} height="24" rx={R.tag} />)}
247
+ <rect class="f-skel-subtle" x={ph.x} y="80" width="96" height="16" rx={R.tag} />
248
+ <rect class="f-skel-subtle" x={ph.x + 112} y="80" width="128" height="16" rx={R.tag} />
249
+ <rect class="f-skel" x={ph.x} y="108" width="480" height="40" rx={R.tag} />
250
+ {w.name !== 'Narrow' && <rect class="f-field" x={ph.x + ph.w - 384} y={104 + 8} width="168" height={C.default} rx={R.control} />}
251
+ {w.name !== 'Narrow' && <rect class="f-primary" x={ph.x + ph.w - 200} y={104 + 8} width="200" height={C.default} rx={R.control} />}
252
+ <line class="f-rule" x1={(ph.x)} y1={(hb - 4) + 4/2} x2={(ph.x) + (ph.w)} y2={(hb - 4) + 4/2} />
244
253
  {w.name === 'Full' && (
245
254
  <g>
246
- <rect class="f-surface" x={w.x} y="204" width={w.w} height={H - 204 - wm} rx="20" />
255
+ <rect class="f-surface" x={w.x} y="204" width={w.w} height={H - 204 - wm} rx={R.card} />
247
256
  {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((r) => (
248
257
  <g>
249
- <rect class="f-line" x={w.x + 40} y={278 + r * 74} width={w.w - 80} height="4" />
250
- <rect class="f-skel-subtle" x={w.x + 40} y={302 + r * 74} width="320" height="20" rx="10" />
251
- <rect class="f-skel-subtle" x={w.x + 560} y={302 + r * 74} width="240" height="20" rx="10" />
252
- <rect class="f-skel-subtle" x={w.x + 1000} y={302 + r * 74} width="200" height="20" rx="10" />
258
+ <line class="f-rule" x1={(w.x + 40)} y1={(278 + r * 74) + 4/2} x2={(w.x + 40) + (w.w - 80)} y2={(278 + r * 74) + 4/2} />
259
+ <rect class="f-skel-subtle" x={w.x + 40} y={302 + r * 74} width="320" height="20" rx={R.tag} />
260
+ <rect class="f-skel-subtle" x={w.x + 560} y={302 + r * 74} width="240" height="20" rx={R.tag} />
261
+ <rect class="f-skel-subtle" x={w.x + 1000} y={302 + r * 74} width="200" height="20" rx={R.tag} />
253
262
  </g>
254
263
  ))}
255
264
  </g>
256
265
  )}
257
266
  {w.name === 'Wide' && (
258
267
  <g>
259
- {[0, 1, 2, 3].map((i) => <rect class="f-surface" x={w.x + i * ((w.w - 72) / 4 + 24)} y="204" width={(w.w - 72) / 4} height="184" rx="20" />)}
260
- <rect class="f-surface" x={w.x} y="412" width={(w.w - 24) * 2 / 3} height={H - 412 - wm} rx="20" />
261
- <rect class="f-surface" x={w.x + (w.w - 24) * 2 / 3 + 24} y="412" width={(w.w - 24) / 3} height={H - 412 - wm} rx="20" />
268
+ {[0, 1, 2, 3].map((i) => <rect class="f-surface" x={w.x + i * ((w.w - 72) / 4 + 24)} y="204" width={(w.w - 72) / 4} height="184" rx={R.card} />)}
269
+ <rect class="f-surface" x={w.x} y="412" width={(w.w - 24) * 2 / 3} height={H - 412 - wm} rx={R.card} />
270
+ <rect class="f-surface" x={w.x + (w.w - 24) * 2 / 3 + 24} y="412" width={(w.w - 24) / 3} height={H - 412 - wm} rx={R.card} />
262
271
  </g>
263
272
  )}
264
273
  {w.name === 'Narrow' && (
265
274
  <g>
266
275
  {[0, 1, 2, 3, 4].map((i) => (
267
276
  <g>
268
- <rect class="f-skel" x={w.x} y={212 + i * 146} width="200" height="20" rx="10" />
269
- <rect class="f-field" x={w.x} y={248 + i * 146} width={w.w} height="64" rx="12" />
277
+ <rect class="f-skel" x={w.x} y={212 + i * 146} width="200" height="20" rx={R.tag} />
278
+ <rect class="f-field" x={w.x} y={(248 + i * 146) + 16} width={w.w} height={C.default} rx={R.control} />
270
279
  </g>
271
280
  ))}
272
- <rect class="f-primary" x={w.x} y="956" width="200" height="64" rx="12" />
281
+ <rect class="f-primary" x={w.x} y={956 + 16} width="200" height={C.default} rx={R.control} />
273
282
  </g>
274
283
  )}
275
284
  </svg>
@@ -323,19 +332,19 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
323
332
  <figure class="ly-figure ly-root">
324
333
  <svg class="ly-svg" viewBox="0 0 760 248" role="img" aria-label={L('Side navigation 280 px wide. Three short labels fit. A long label is cut with an ellipsis, and its full text shows in a tooltip next to it.', 'Menu bên rộng 280 px. Ba nhãn ngắn vừa đủ. Một nhãn dài bị cắt bằng dấu ba chấm, và nội dung đầy đủ hiện trong tooltip bên cạnh.')}>
325
334
  <rect class="f-page" x="0" y="0" width="760" height="248" />
326
- <rect class="f-subtle" x="0" y="0" width={sidebar} height="248" />
327
- <rect class="f-line" x={sidebar - 2} y="0" width="2" height="248" />
335
+ <rect class="f-page" x="0" y="0" width={sidebar} height="248" />
336
+ <line class="f-rule" x1={(sidebar - 2) + 2/2} y1="0" x2={(sidebar - 2) + 2/2} y2="248" />
328
337
  {(vi ? ['Đơn hàng', 'Sản phẩm', 'Cài đặt đồng bộ'] : ['Orders', 'Products', 'Sync settings']).map((label, i) => (
329
338
  <g>
330
- <rect class="f-subtle" x="8" y={16 + i * 36} width={sidebar - 16} height="32" rx="6" />
331
- <rect class="f-skel" x="20" y={24 + i * 36} width="16" height="16" rx="4" />
339
+ <rect class="f-page" x="8" y={16 + i * 36} width={sidebar - 16} height="32" rx={R.control} />
340
+ <rect class="f-skel" x="20" y={24 + i * 36} width="16" height="16" rx={R.tag} />
332
341
  <text class="t-label" x="40" y={37 + i * 36} font-size="14">{label}</text>
333
342
  </g>
334
343
  ))}
335
- <rect class="f-selected" x="8" y="124" width={sidebar - 16} height="32" rx="6" />
336
- <rect class="f-skel" x="20" y="132" width="16" height="16" rx="4" />
344
+ <rect class="f-selected" x="8" y="124" width={sidebar - 16} height="32" rx={R.control} />
345
+ <rect class="f-skel" x="20" y="132" width="16" height="16" rx={R.tag} />
337
346
  <text class="t-label" x="40" y="145" font-size="14">{L('Online store → ERP field mappi…', 'Ánh xạ trường Cửa hàng onli…')}</text>
338
- <rect class="f-inverse" x={sidebar + 12} y="120" width="300" height="40" rx="6" />
347
+ <rect class="f-inverse" x={sidebar + 12} y="120" width="300" height="40" rx={R.tag} />
339
348
  <text class="t-inverse" x={sidebar + 24} y="145" font-size="14">{L('Online store → ERP field mapping rules', 'Ánh xạ trường Cửa hàng online → ERP')}</text>
340
349
  <path class="s-dim" d={`M8 208h${sidebar - 16}M8 202v12M${sidebar - 8} 202v12`} />
341
350
  <text class="t-dim" x={sidebar / 2} y="234" font-size="14" text-anchor="middle">{sidebar} px</text>
@@ -348,21 +357,21 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
348
357
  <figure class="ly-figure ly-root">
349
358
  <svg class="ly-svg" viewBox="0 0 1000 340" role="img" aria-label={L('Page header at the top of the content, 24 px from the side navigation and the header: a breadcrumb, then 8 px below it the title with a status badge on the left and two page actions on the right, then 4 px below the title a one-line description, then a row of tabs, and 24 px below that the start of the content.', 'Page header ở đầu vùng nội dung, cách menu bên và header 24 px: breadcrumb, cách 8 px bên dưới là tiêu đề với badge trạng thái bên trái và hai nút hành động bên phải, cách tiêu đề 4 px là một dòng mô tả, rồi tới hàng tab, và cách 24 px bên dưới là phần đầu của nội dung.')}>
350
359
  <rect class="f-page" x="0" y="0" width="1000" height="340" />
351
- <rect class="f-subtle" x="0" y="0" width="24" height="340" />
360
+ <rect class="f-page" x="0" y="0" width="24" height="340" />
352
361
  <rect class="f-mark" x="24" y="0" width="24" height="340" />
353
362
  <rect class="f-mark" x="24" y="0" width="952" height="24" />
354
363
  <rect class="f-mark" x="976" y="0" width="24" height="340" />
355
- <rect class="f-skel" x="48" y="28" width="72" height="12" rx="6" />
356
- <rect class="f-skel" x="132" y="28" width="96" height="12" rx="6" />
357
- <rect class="f-skel" x="48" y="52" width="220" height="28" rx="6" />
358
- <rect class="f-selected" x="280" y="56" width="72" height="20" rx="10" />
359
- <rect class="f-field" x="760" y="50" width="96" height="32" rx="8" />
360
- <rect class="f-primary" x="868" y="50" width="108" height="32" rx="8" />
361
- <rect class="f-skel-subtle" x="48" y="88" width="420" height="12" rx="6" />
362
- {[0, 1, 2].map((i) => <rect class={i === 0 ? 'f-skel' : 'f-skel-subtle'} x={48 + i * 96} y="120" width="72" height="12" rx="6" />)}
363
- <rect class="f-indicator" x="48" y="144" width="72" height="3" />
364
- <rect class="f-line" x="48" y="146" width="928" height="2" />
365
- <rect class="f-surface" x="48" y="172" width="928" height="168" rx="12" />
364
+ <rect class="f-skel" x="48" y="28" width="72" height="12" rx={R.tag} />
365
+ <rect class="f-skel" x="132" y="28" width="96" height="12" rx={R.tag} />
366
+ <rect class="f-skel" x="48" y="52" width="220" height="28" rx={R.tag} />
367
+ <rect class="f-selected" x="280" y="56" width="72" height="20" rx={R.tag} />
368
+ <rect class="f-field" x="760" y="50" width="96" height="32" rx={R.control} />
369
+ <rect class="f-primary" x="868" y="50" width="108" height="32" rx={R.control} />
370
+ <rect class="f-skel-subtle" x="48" y="88" width="420" height="12" rx={R.tag} />
371
+ {[0, 1, 2].map((i) => <rect class={i === 0 ? 'f-skel' : 'f-skel-subtle'} x={48 + i * 96} y="120" width="72" height="12" rx={R.tag} />)}
372
+ <rect class="f-indicator" x="48" y={147 - SEL} width="72" height={SEL} />
373
+ <line class="f-rule" x1="48" y1="147" x2="976" y2="147" />
374
+ <rect class="f-surface" x="48" y="172" width="928" height="168" rx={R.card} />
366
375
  <path class="s-dim" d="M300 40v12M294 40h12M294 52h12" /><text class="t-dim" x="314" y="51" font-size="14">8</text>
367
376
  <path class="s-dim" d="M500 80v8M494 80h12M494 88h12" /><text class="t-dim" x="514" y="89" font-size="14">4</text>
368
377
  <path class="s-dim" d="M600 148v24M594 148h12M594 172h12" /><text class="t-dim" x="614" y="165" font-size="14">24</text>
@@ -382,3 +391,73 @@ const bands = bps.map((b, i) => ({ ...b, size: (bps[i + 1]?.min ?? b.min + 480)
382
391
  </ol>
383
392
  </figure>
384
393
  )}
394
+
395
+ {kind === 'overlays' && (() => {
396
+ // Detail overlays on a 1440 px window (lg and up) and on a 360 px phone (below lg).
397
+ // Widths follow layout.overlay.*: default max(50vw, 900px), wide 70vw, mobile 100vw.
398
+ const OW = 1440, OH = 900;
399
+ const labelW = 200; // layout.description.minimum, 12.5rem
400
+ const rows = [0, 1, 2, 3, 4, 5];
401
+ const desk = [
402
+ { key: 'default', name: L('Default', 'Mặc định'), w: Math.max(OW * 0.5, 900), note: L('From 1024 px: half the window, and at least 900 px. On a 1440 px window it is 900 px.', 'Từ 1024 px: nửa cửa sổ, và ít nhất 900 px. Trên cửa sổ 1440 px là 900 px.') },
403
+ { key: 'wide', name: L('Wide', 'Rộng'), w: OW * 0.7, note: L('From 1024 px: 70% of the window, 1008 px on a 1440 px window. For a long log or a wide table.', 'Từ 1024 px: 70% cửa sổ, 1008 px trên cửa sổ 1440 px. Cho log dài hoặc bảng rộng.') },
404
+ ];
405
+ const PW = 360, PH = 720;
406
+ return (
407
+ <div class="ly-widths ly-root">
408
+ {desk.map((d) => {
409
+ const x = OW - d.w;
410
+ return (
411
+ <figure>
412
+ <svg class="ly-svg" viewBox={`0 0 ${OW} ${OH}`} role="img" aria-label={vi ? `Overlay ${d.name.toLowerCase()} rộng ${Math.round(d.w)} px mở từ cạnh phải của cửa sổ 1440 px, đè lên danh sách đơn hàng đã được làm mờ. Overlay có tiêu đề, nút đóng, danh sách nhãn và giá trị, và thanh thao tác ở dưới.` : `${d.name} detail overlay, ${Math.round(d.w)} px wide, open from the right edge of a 1440 px window over a dimmed list of orders. It has a title, a close button, a list of labels and values, and an action bar at the bottom.`}>
413
+ <rect class="f-page" x="0" y="0" width={OW} height={OH} />
414
+ <rect class="f-page" x="0" y="0" width={OW} height={header} />
415
+ <rect class="f-page" x="0" y={header} width={sidebar} height={OH - header} />
416
+ {menu.map((i) => <rect class="f-skel" x="32" y={80 + i * 64} width={200 - i * 16} height="24" rx={R.tag} />)}
417
+ <rect class="f-skel" x={sidebar + 32} y="88" width="360" height="36" rx={R.tag} />
418
+ {[0, 1, 2, 3, 4, 5, 6, 7, 8].map((r) => (
419
+ <g>
420
+ <line class="f-rule" x1={(sidebar + 32)} y1={(168 + r * 76) + 3/2} x2={(sidebar + 32) + (OW - sidebar - 64)} y2={(168 + r * 76) + 3/2} />
421
+ <rect class="f-skel-subtle" x={sidebar + 32} y={192 + r * 76} width="240" height="20" rx={R.tag} />
422
+ <rect class="f-skel-subtle" x={sidebar + 400} y={192 + r * 76} width="200" height="20" rx={R.tag} />
423
+ </g>
424
+ ))}
425
+ <rect class="f-scrim" x="0" y="0" width={OW} height={OH} />
426
+ <rect class="f-surface" x={x} y="0" width={d.w} height={OH} />
427
+ <rect class="f-skel" x={x + 40} y="40" width="320" height="36" rx={R.tag} />
428
+ <rect class="f-field" x={x + d.w - 88} y={36 + 8} width="48" height={C.default} rx={R.control} />
429
+ <line class="f-rule" x1={(x)} y1="113.5" x2={(x) + (d.w)} y2="113.5" />
430
+ {rows.map((r) => (
431
+ <g>
432
+ <rect class="f-skel-subtle" x={x + 40} y={152 + r * 72} width={labelW - 40} height="20" rx={R.tag} />
433
+ <rect class="f-skel" x={x + 40 + labelW} y={152 + r * 72} width={Math.min(360, d.w - labelW - 120)} height="20" rx={R.tag} />
434
+ </g>
435
+ ))}
436
+ <line class="f-rule" x1={(x)} y1={(OH - 104) + 3/2} x2={(x) + (d.w)} y2={(OH - 104) + 3/2} />
437
+ <rect class="f-field" x={x + d.w - 392} y={(OH - 76) + 8} width="160" height={C.default} rx={R.control} />
438
+ <rect class="f-primary" x={x + d.w - 216} y={(OH - 76) + 8} width="176" height={C.default} rx={R.control} />
439
+ </svg>
440
+ <figcaption><b>{d.name}.</b> <span>{d.note}</span></figcaption>
441
+ </figure>
442
+ );
443
+ })}
444
+ <figure>
445
+ <svg class="ly-svg ly-phone" viewBox={`0 0 ${PW} ${PH}`} role="img" aria-label={vi ? 'Overlay trên điện thoại 360 px phủ cả cửa sổ. Mỗi nhãn nằm trên giá trị của nó; thanh thao tác ở dưới cùng.' : 'Detail overlay on a 360 px phone, covering the whole window. Each label sits above its value; the action bar is at the bottom.'}>
446
+ <rect class="f-surface" x="0" y="0" width={PW} height={PH} />
447
+ <rect class="f-skel" x="16" y="20" width="200" height="24" rx={R.tag} />
448
+ <rect class="f-field" x={PW - 56} y="16" width="40" height="32" rx={R.control} />
449
+ <line class="f-rule" x1="0" y1="65" x2={0 + (PW)} y2="65" />
450
+ {[0, 1, 2, 3, 4].map((r) => (
451
+ <g>
452
+ <rect class="f-skel-subtle" x="16" y={88 + r * 92} width="120" height="16" rx={R.tag} />
453
+ <rect class="f-skel" x="16" y={116 + r * 92} width={PW - 32 - (r % 2) * 60} height="20" rx={R.tag} />
454
+ </g>
455
+ ))}
456
+ <line class="f-rule" x1="0" y1={(PH - 72) + 2/2} x2={0 + (PW)} y2={(PH - 72) + 2/2} />
457
+ <rect class="f-primary" x="16" y={PH - 56} width={PW - 32} height="40" rx={R.control} />
458
+ </svg>
459
+ <figcaption><b>{L('Mobile.', 'Di động.')}</b> <span>{L('Below 1024 px: the whole window. Each label sits above its value.', 'Dưới 1024 px: cả cửa sổ. Mỗi nhãn nằm trên giá trị của nó.')}</span></figcaption>
460
+ </figure>
461
+ </div>
462
+ );
463
+ })()}