@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.
- package/README.md +1 -1
- package/dist/catalog.json +908 -208
- package/dist/docs/public/_redirects +2 -2
- package/dist/docs/scripts/color-pairs.mjs +4 -0
- package/dist/docs/src/components/ChildPages.astro +8 -1
- package/dist/docs/src/components/ColorDemo.astro +12 -9
- package/dist/docs/src/components/DocsFooter.astro +1 -1
- package/dist/docs/src/components/HelpOptions.astro +8 -6
- package/dist/docs/src/components/IconBrowser.astro +2 -2
- package/dist/docs/src/components/LayoutDemo.astro +178 -99
- package/dist/docs/src/components/NativeControlsDemo.astro +165 -40
- package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
- package/dist/docs/src/components/PhaseTable.astro +9 -5
- package/dist/docs/src/components/RoleGuides.astro +30 -22
- package/dist/docs/src/components/RuleDemo.astro +111 -0
- package/dist/docs/src/components/ShapeDemo.astro +24 -36
- package/dist/docs/src/components/SiteHeader.astro +1 -1
- package/dist/docs/src/components/SpacingDemo.astro +2 -0
- package/dist/docs/src/components/SwitchToggle.astro +13 -0
- package/dist/docs/src/components/SystemAreas.astro +9 -6
- package/dist/docs/src/components/TableOfContents.astro +1 -1
- package/dist/docs/src/components/TokenSearch.astro +64 -0
- package/dist/docs/src/components/TokenTable.astro +14 -9
- package/dist/docs/src/components/TypeDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
- package/dist/docs/src/content/components/button/accessibility.mdx +3 -3
- package/dist/docs/src/content/components/button/changelog.mdx +1 -1
- package/dist/docs/src/content/components/button/examples.mdx +10 -23
- package/dist/docs/src/content/components/button/meta.json +5 -1
- package/dist/docs/src/content/components/button/usage.mdx +13 -26
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
- package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
- package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
- package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content/components/switch/meta.json +9 -0
- package/dist/docs/src/content/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
- package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
- package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
- package/dist/docs/src/content/foundations/styles/border.mdx +5 -6
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +31 -7
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +33 -78
- package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +40 -14
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +2 -0
- package/dist/docs/src/content/foundations/styles/radius.mdx +38 -27
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
- package/dist/docs/src/content/get-started/content.mdx +25 -3
- package/dist/docs/src/content/get-started/design.mdx +34 -15
- package/dist/docs/src/content/get-started/develop.mdx +83 -28
- package/dist/docs/src/content/get-started/get-help.mdx +21 -5
- package/dist/docs/src/content/get-started/index.mdx +11 -12
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
- package/dist/docs/src/content/tools/application-content.mdx +52 -13
- package/dist/docs/src/content/tools/editors.mdx +36 -28
- package/dist/docs/src/content/tools/mermaid.mdx +42 -9
- package/dist/docs/src/content/tools/vueflow.mdx +56 -7
- package/dist/docs/src/content-vi/components/button/accessibility.mdx +51 -0
- package/dist/docs/src/content-vi/components/button/changelog.mdx +6 -0
- package/dist/docs/src/content-vi/components/button/examples.mdx +27 -0
- package/dist/docs/src/content-vi/components/button/usage.mdx +31 -0
- package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
- package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
- package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
- package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
- package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
- package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +30 -7
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +31 -1
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +54 -12
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +2 -0
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +38 -27
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
- package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
- package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
- package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
- package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
- package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
- package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
- package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
- package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
- package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
- package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
- package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
- package/dist/docs/src/content-vi/tools/index.mdx +7 -0
- package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
- package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
- package/dist/docs/src/content-vi/tools/vueflow.mdx +189 -0
- package/dist/docs/src/content.config.ts +12 -1
- package/dist/docs/src/lib/dates.ts +8 -0
- package/dist/docs/src/lib/i18n.ts +1 -0
- package/dist/docs/src/lib/navigation.ts +6 -4
- package/dist/docs/src/lib/token-descriptions-vi.ts +247 -11
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +8 -8
- package/dist/docs/src/styles/color.css +31 -31
- package/dist/docs/src/styles/docs.css +55 -40
- package/dist/docs/src/styles/elevation.css +1 -1
- package/dist/docs/src/styles/global.css +13 -4
- package/dist/docs/src/styles/icons.css +16 -16
- package/dist/docs/src/styles/kit.css +29 -10
- package/dist/docs/src/styles/layout.css +16 -11
- package/dist/docs/src/styles/logos.css +24 -24
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/rules.css +24 -0
- package/dist/docs/src/styles/shapes.css +2 -2
- package/dist/docs/src/styles/tokens.css +228 -147
- package/dist/docs/src/styles/tokens.js +88 -62
- package/dist/docs/src/styles/typography.css +9 -9
- package/dist/docs/src/styles/zindex.css +6 -5
- package/dist/docs/tokens/color.json +24 -14
- package/dist/docs/tokens/components.json +39 -0
- package/dist/docs/tokens/content.json +103 -10
- package/dist/docs/tokens/diagram.json +490 -49
- package/dist/docs/tokens/editor.json +128 -22
- package/dist/docs/tokens/flow.json +412 -80
- package/dist/docs/tokens/layout.json +13 -4
- package/dist/docs/tokens/motion.json +11 -0
- package/dist/docs/tokens/radius.json +9 -9
- package/dist/docs/tokens/renderer.json +8 -0
- package/dist/docs/tokens/resize.json +84 -15
- package/dist/docs/tokens/scrollbar.json +42 -7
- package/dist/docs/tokens/size.json +6 -6
- package/dist/docs/tokens/spacing.json +1 -1
- package/dist/docs/tokens/switch.json +314 -59
- package/dist/docs/tokens/typography.json +1 -1
- package/dist/docs/tokens/visualization.json +465 -53
- package/dist/docs/tokens/z-index.json +0 -10
- package/dist/index.js +908 -208
- package/package.json +1 -1
- package/dist/docs/src/brand/structure-proposal.md +0 -227
- package/dist/docs/src/content/components/button/code.mdx +0 -34
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
/foundations/styles/grid/ /foundations/styles/layout/grid/ 301
|
|
6
6
|
/foundations/styles/breakpoints/ /foundations/styles/layout/breakpoints/ 301
|
|
7
7
|
/foundations/styles/icons/creating-icons/ /foundations/styles/icons/code/#custom-icons 301
|
|
8
|
-
/
|
|
9
|
-
/vi/
|
|
8
|
+
/foundations/styles/scrollbars/ /components/scrollbar/usage/ 301
|
|
9
|
+
/vi/foundations/styles/scrollbars/ /vi/components/scrollbar/usage/ 301
|
|
@@ -11,6 +11,8 @@ const surfaces = ['surface', 'surface.page', 'surface.subtle', 'surface.overlay'
|
|
|
11
11
|
const neutralFills = [
|
|
12
12
|
'background.neutral',
|
|
13
13
|
'background.neutral.hover',
|
|
14
|
+
'background.neutral.pressed',
|
|
15
|
+
'background.neutral.subtle.pressed',
|
|
14
16
|
'background.neutral.subtle.hover',
|
|
15
17
|
'background.selected',
|
|
16
18
|
'background.selected.hover',
|
|
@@ -19,6 +21,8 @@ const neutralFills = [
|
|
|
19
21
|
'surface.overlay.selected',
|
|
20
22
|
'surface.overlay.selected.hover',
|
|
21
23
|
];
|
|
24
|
+
// Neutral pressed fills are not listed: they show only while the element is held down, and text and
|
|
25
|
+
// borders keep their rest colour (Interaction states).
|
|
22
26
|
|
|
23
27
|
/** @type {Array<{ fg: string; on: string[]; min: number }>} */
|
|
24
28
|
export const pairs = [
|
|
@@ -18,7 +18,14 @@ const lang = langOf(Astro.url.pathname);
|
|
|
18
18
|
<section class="child-pages">
|
|
19
19
|
{group.label && <h2>{group.label}</h2>}
|
|
20
20
|
<ul class="card-grid">
|
|
21
|
-
{items.map((item) =>
|
|
21
|
+
{items.map((item) => (
|
|
22
|
+
<li>
|
|
23
|
+
<a class="card" href={localize(item.href, lang)}>
|
|
24
|
+
{item.title} <span aria-hidden="true">→</span>
|
|
25
|
+
{item.description && <p>{item.description}</p>}
|
|
26
|
+
</a>
|
|
27
|
+
</li>
|
|
28
|
+
))}
|
|
22
29
|
</ul>
|
|
23
30
|
</section>
|
|
24
31
|
);
|
|
@@ -65,9 +65,9 @@ const descVi: Record<string, string> = {
|
|
|
65
65
|
'color.background.disabled': 'Nền của control bị vô hiệu.',
|
|
66
66
|
'color.background.brand.subtle': 'Bề mặt và ghi chú thương hiệu.',
|
|
67
67
|
'color.background.brand.bold': 'Nền vàng thương hiệu. Chữ xám ghi bên trên (text.on-brand). Không có nút màu vàng.',
|
|
68
|
-
'color.surface': 'Card, panel. Sáng hơn nền trang một bậc ở giao diện tối.',
|
|
69
|
-
'color.surface.page': 'Nền trang.',
|
|
70
|
-
'color.surface.subtle': 'Header
|
|
68
|
+
'color.surface': 'Card, panel, dialog. Sáng hơn nền trang một bậc ở giao diện tối.',
|
|
69
|
+
'color.surface.page': 'Nền trang. Header của ứng dụng và menu bên cũng nằm trên nền này, tách bằng một đường viền.',
|
|
70
|
+
'color.surface.subtle': 'Header của bảng, vùng nền nhạt.',
|
|
71
71
|
'color.surface.inverse': 'Bề mặt đảo màu: tooltip. Chữ bên trên: text.inverse.',
|
|
72
72
|
'color.surface.scrim': 'Lớp phủ sau dialog và drawer.',
|
|
73
73
|
'color.border': 'Viền mặc định: đường phân cách, card, bảng.',
|
|
@@ -268,6 +268,9 @@ const DangerIcon = icon.danger;
|
|
|
268
268
|
|
|
269
269
|
// Palette: the ink that reads best on each swatch, and where the brand colours sit.
|
|
270
270
|
const INK_DARK = '#2b2a28';
|
|
271
|
+
// Ink on the dark-theme stage. Both stages keep their own theme whatever the page theme is, so they
|
|
272
|
+
// use fixed values (graphite 12 in light and in dark) instead of the theme-switching tokens.
|
|
273
|
+
const INK_STAGE_DARK = '#eeeeed';
|
|
271
274
|
const INK_LIGHT = '#ffffff';
|
|
272
275
|
// Text drawn on a sample colour: white or graphite, whichever contrasts more. Mid steps (9) reach
|
|
273
276
|
// 4.5:1 with neither, so they take black, which they meet at about 5.7:1 (WCAG 1.4.3).
|
|
@@ -418,7 +421,7 @@ const actions = [
|
|
|
418
421
|
<td><b>{s.name}</b><br /><span class="c-from">{vi ? `thang ${s.scale}` : `${s.scale} scale`}</span></td>
|
|
419
422
|
<td>{s.meaning}</td>
|
|
420
423
|
<td><span class="c-cell"><span class="c-dot" style={`background: var(${s.fg.cssVar})`} /><span class="c-num v-light">{up(s.fg.light)}</span><span class="c-num v-dark">{up(s.fg.dark)}</span></span></td>
|
|
421
|
-
<td><span class="c-cell"><span class="c-dot" style={`background: var(${s.bg.cssVar}); box-shadow: inset 0 0 0
|
|
424
|
+
<td><span class="c-cell"><span class="c-dot" style={`background: var(${s.bg.cssVar}); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(${s.border.cssVar})`} /><span class="c-num v-light">{up(s.bg.light)}</span><span class="c-num v-dark">{up(s.bg.dark)}</span></span></td>
|
|
422
425
|
<td><span class="c-cell"><span class="c-dot" style={`background: var(${s.em.cssVar})`} /><span class="c-num v-light">{up(s.em.light)}</span><span class="c-num v-dark">{up(s.em.dark)}</span></span></td>
|
|
423
426
|
<td class="c-num">
|
|
424
427
|
{L('text on page', 'nền trang')} {ratio(s.c.fgLight)} / {ratio(s.c.fgDark)}<br />
|
|
@@ -477,8 +480,8 @@ const actions = [
|
|
|
477
480
|
<figure class="c-label-set">
|
|
478
481
|
<figcaption><b>Chip</b> · {L('a value people picked; remove it, or turn it on and off', 'giá trị người dùng đã chọn; gỡ ra, hoặc bật và tắt')}</figcaption>
|
|
479
482
|
<div class="c-label-row">
|
|
480
|
-
<span class="c-chip">{L('Status: Failed', 'Trạng thái: Thất bại')}<X size={
|
|
481
|
-
<span class="c-chip is-on"><Check size={
|
|
483
|
+
<span class="c-chip">{L('Status: Failed', 'Trạng thái: Thất bại')}<X size={16} aria-hidden="true" /></span>
|
|
484
|
+
<span class="c-chip is-on"><Check size={16} aria-hidden="true" />{L('Failed', 'Thất bại')}</span>
|
|
482
485
|
<span class="c-chip">{L('Synced', 'Đã đồng bộ')}</span>
|
|
483
486
|
</div>
|
|
484
487
|
<p class="c-ltc-note">{L('Removable chip · filter chip on · filter chip off', 'Chip gỡ được · chip lọc đang bật · chip lọc đang tắt')}</p>
|
|
@@ -666,7 +669,7 @@ const actions = [
|
|
|
666
669
|
<span class="c-surf-tip">surface.inverse</span>
|
|
667
670
|
</div>
|
|
668
671
|
</div>
|
|
669
|
-
<figcaption>{L('Page,
|
|
672
|
+
<figcaption>{L('Page, a quiet area, a card and a tooltip.', 'Trang, một vùng nền nhạt, card và một tooltip.')}</figcaption>
|
|
670
673
|
</figure>
|
|
671
674
|
<figure>
|
|
672
675
|
<div class="c-surf-page is-dimmed">
|
|
@@ -774,7 +777,7 @@ const actions = [
|
|
|
774
777
|
{kind === 'palette' && (
|
|
775
778
|
<div class="c-pal-set">
|
|
776
779
|
{(['light', 'dark'] as const).map((mode) => (
|
|
777
|
-
<figure class={`c-pal is-${mode}`} style={`background: ${pageOf(mode)}; color: ${mode === 'light' ? INK_DARK :
|
|
780
|
+
<figure class={`c-pal is-${mode}`} style={`background: ${pageOf(mode)}; color: ${mode === 'light' ? INK_DARK : INK_STAGE_DARK}`}>
|
|
778
781
|
<figcaption>{mode === 'light' ? L('Light theme', 'Giao diện sáng') : L('Dark theme', 'Giao diện tối')}</figcaption>
|
|
779
782
|
<div class="c-pal-grid">
|
|
780
783
|
{scales.map((sc) => (
|
|
@@ -806,7 +809,7 @@ const actions = [
|
|
|
806
809
|
{sc.steps.map((t) => <span style={`background: ${t[mode]}`} />)}
|
|
807
810
|
</div>
|
|
808
811
|
))}
|
|
809
|
-
<figcaption style={`color: ${mode === 'light' ? INK_DARK :
|
|
812
|
+
<figcaption style={`color: ${mode === 'light' ? INK_DARK : INK_STAGE_DARK}`}>{mode === 'light' ? L('Light', 'Sáng') : L('Dark', 'Tối')}: {L('graphite, yellow, blue, green, orange, red', 'xám ghi, vàng, xanh dương, xanh lá, cam, đỏ')}</figcaption>
|
|
810
813
|
</figure>
|
|
811
814
|
))}
|
|
812
815
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Site footer: one line. Everything a reader needs to move around is already on screen
|
|
3
3
|
// (header: Design system, News; sidebar: every page; under each page: feedback and changelog),
|
|
4
4
|
// so the footer only carries what lives nowhere else: the copyright and the legal
|
|
5
|
-
// links. The owner is Beehexa Corp, the company named in the Terms of Service.
|
|
5
|
+
// links. The owner is Beehexa Corp, the company named in the Terms of Service.
|
|
6
6
|
// llms.txt stays at /llms.txt for AI tools. A trademark link joins the legal links once
|
|
7
7
|
// Logos › Downloads and terms is written.
|
|
8
8
|
import { langOf, t } from '../lib/i18n';
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { feedbackEmail, feedbackHref } from '../lib/brand';
|
|
3
|
+
import { langOf } from '../lib/i18n';
|
|
3
4
|
|
|
5
|
+
const vi = langOf(Astro.url.pathname) === 'vi';
|
|
4
6
|
const proposal = `mailto:${feedbackEmail}?subject=${encodeURIComponent('beehexa.design proposal')}`;
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
<ul class="help-list">
|
|
8
10
|
<li>
|
|
9
|
-
<b>Ask a question</b>
|
|
10
|
-
<span>
|
|
11
|
+
<b>{vi ? 'Đặt câu hỏi' : 'Ask a question'}</b>
|
|
12
|
+
<span>{vi ? 'Email cho đội design system tại ' : 'Email the design system team at '}<a href={`mailto:${feedbackEmail}`}>{feedbackEmail}</a>.</span>
|
|
11
13
|
</li>
|
|
12
14
|
<li>
|
|
13
|
-
<b>Report a problem</b>
|
|
14
|
-
<span>Something wrong, missing or hard to follow? <a href={feedbackHref(Astro.url.pathname)}>Report it</a
|
|
15
|
+
<b>{vi ? 'Báo lỗi' : 'Report a problem'}</b>
|
|
16
|
+
<span>{vi ? 'Có chỗ sai, thiếu hoặc khó hiểu? ' : 'Something wrong, missing or hard to follow? '}<a href={feedbackHref(Astro.url.pathname)}>{vi ? 'Báo cho chúng tôi' : 'Report it'}</a>{vi ? '. Cuối mỗi trang cũng có liên kết này.' : '. Every page also has this link at the bottom.'}</span>
|
|
15
17
|
</li>
|
|
16
18
|
<li>
|
|
17
|
-
<b>Propose a change</b>
|
|
18
|
-
<span>Need a new token, component or rule? <a href={proposal}>Send a proposal</a> with the problem it solves and where you need it
|
|
19
|
+
<b>{vi ? 'Đề xuất thay đổi' : 'Propose a change'}</b>
|
|
20
|
+
<span>{vi ? 'Cần token, component hay quy tắc mới? ' : 'Need a new token, component or rule? '}<a href={proposal}>{vi ? 'Gửi đề xuất' : 'Send a proposal'}</a>{vi ? ', kèm vấn đề nó giải quyết và nơi bạn cần nó.' : ' with the problem it solves and where you need it.'}</span>
|
|
19
21
|
</li>
|
|
20
22
|
</ul>
|
|
@@ -56,7 +56,7 @@ const words = vi
|
|
|
56
56
|
|
|
57
57
|
<p class="ib-status" id="ib-status" aria-live="polite">{picks.length} {L('icons in Common actions', 'icon trong nhóm Thao tác thường gặp')}</p>
|
|
58
58
|
<p class="sr-only" id="ib-hint">{L('Enter copies the icon name. Arrow keys move between icons.', 'Nhấn Enter để sao chép tên icon. Dùng phím mũi tên để di chuyển giữa các icon.')}</p>
|
|
59
|
-
<ul class="ib-grid" id="ib-grid" aria-label="Icon" style="--ib-size:
|
|
59
|
+
<ul class="ib-grid" id="ib-grid" aria-label="Icon" style="--ib-size: var(--bh-size-icon-large)"></ul>
|
|
60
60
|
<p class="ib-empty" hidden>{L('No icon matches. Try another word, such as “sync” or “order”, or choose All.', 'Không có icon nào khớp. Thử từ khác, như "đồng bộ" hoặc "đơn hàng", hoặc chọn Tất cả.')}</p>
|
|
61
61
|
<noscript><p class="ib-empty">{L('The library needs JavaScript. Browse the same icons on', 'Thư viện cần JavaScript. Xem các icon này trên')} <a href="https://lucide.dev/icons/">lucide.dev/icons</a>.</p></noscript>
|
|
62
62
|
<div class="ib-toast" role="status" aria-live="polite"></div>
|
|
@@ -240,7 +240,7 @@ const words = vi
|
|
|
240
240
|
apply(true);
|
|
241
241
|
});
|
|
242
242
|
root.querySelectorAll<HTMLInputElement>('input[name="ib-size"]').forEach((radio) =>
|
|
243
|
-
radio.addEventListener('change', () => grid.style.setProperty('--ib-size',
|
|
243
|
+
radio.addEventListener('change', () => grid.style.setProperty('--ib-size', `var(--bh-size-icon-${({ 16: 'default', 20: 'medium', 24: 'large', 32: 'empty' } as Record<string, string>)[radio.value]})`)),
|
|
244
244
|
);
|
|
245
245
|
|
|
246
246
|
// Load the icons when the library is close to the screen.
|