@htmlbricks/hb-sidebar-desktop 0.76.0 → 0.76.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/manifest.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "languageChange": {
11
11
  "additionalProperties": false,
12
- "description": "Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy.",
12
+ "description": "Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks.",
13
13
  "properties": {
14
14
  "code": {
15
15
  "type": "string"
@@ -292,7 +292,7 @@
292
292
  }
293
293
  }
294
294
  },
295
- "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } when a language is chosen (host updates i18nlang on hb-layout or equivalent).",
295
+ "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } on mount and when a language is chosen. On selection the sidebar updates document.documentElement.lang and its selector immediately (and sets the host i18nlang attribute when the prop was empty); the host may still set i18nlang on hb-layout for shell-wide copy.",
296
296
  "storybookArgs": {
297
297
  "companylogouri": {
298
298
  "control": {
@@ -404,6 +404,30 @@
404
404
  "defaultValue": "14rem",
405
405
  "description": "Fixed width of the host sidebar column (`:host` flex child in typical shells)."
406
406
  },
407
+ {
408
+ "name": "--hb-sidebar-toolbar-button-font-size",
409
+ "valueType": "number",
410
+ "defaultValue": "max(0.625rem, 0.72em)",
411
+ "description": "Font size for the theme segment buttons and language trigger (toolbar only). Uses `em` so controls stay compact when `html` uses a large root `font-size`."
412
+ },
413
+ {
414
+ "name": "--hb-sidebar-toolbar-button-min-height",
415
+ "valueType": "number",
416
+ "defaultValue": "max(1.45rem, 1.75em)",
417
+ "description": "Minimum block size for those toolbar buttons."
418
+ },
419
+ {
420
+ "name": "--hb-sidebar-toolbar-icon-size",
421
+ "valueType": "number",
422
+ "defaultValue": "max(0.6875rem, 0.85em)",
423
+ "description": "Bootstrap icon box / glyph size in the toolbar (Bulma’s default small icon uses root `rem`, which can look oversized next to the buttons)."
424
+ },
425
+ {
426
+ "name": "--hb-sidebar-toolbar-lang-min-inline",
427
+ "valueType": "number",
428
+ "defaultValue": "max(2.25rem, 2.75em)",
429
+ "description": "Minimum width of the language trigger button."
430
+ },
407
431
  {
408
432
  "name": "--bulma-border",
409
433
  "valueType": "color",
@@ -798,7 +822,7 @@
798
822
  },
799
823
  {
800
824
  "name": "sidebarWithLanguages",
801
- "description": "Language dropdown (from i18nlanguages) next to the theme switch; emits languageChange with { code }. Host should set i18nlang when a language is picked.",
825
+ "description": "Language dropdown (from i18nlanguages) next to the theme switch; applies selection locally (document lang, UI) and emits languageChange on mount and on pick. Host may sync i18nlang.",
802
826
  "data": {
803
827
  "navlinks": [
804
828
  {
@@ -847,7 +871,7 @@
847
871
  }
848
872
  }
849
873
  ],
850
- "iifeIntegrity": "sha384-IeKBeYrNIYHas3ylqA3pkbBqjDgZx8fdwxYj83hhA1YLEqEl/32eissTAl/ueCSV",
874
+ "iifeIntegrity": "sha384-sR6BwgXesZ0GskRSgIlfuQcFKszofE+AeOcKXsUeUFo6O2iH7LEaQCG7To9u/FY3",
851
875
  "dependencies": [
852
876
  {
853
877
  "name": "hb-sidenav-link",
@@ -873,5 +897,5 @@
873
897
  "size": {},
874
898
  "iifePath": "main.iife.js",
875
899
  "repoName": "@htmlbricks/hb-sidebar-desktop",
876
- "version": "0.76.0"
900
+ "version": "0.76.2"
877
901
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-sidebar-desktop",
3
- "version": "0.76.0",
3
+ "version": "0.76.2",
4
4
  "contributors": [],
5
- "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } when a language is chosen (host updates i18nlang on hb-layout or equivalent).",
5
+ "description": "Fixed-width desktop sidebar: optional company logo and title, header/footer slots, optional language menu (i18nlanguages + i18nlang) beside the Bulma theme switch (light / dark / system), and a nav list built from hb-sidenav-link entries with optional JSON groups (Bulma layout, menu labels, light background). Parses navlinks and groups from strings; emits pageChange when a link selects a page, themeChange when the user picks a theme (host applies document hooks such as data-theme on html/body), and languageChange { code } on mount and when a language is chosen. On selection the sidebar updates document.documentElement.lang and its selector immediately (and sets the host i18nlang attribute when the prop was empty); the host may still set i18nlang on hb-layout for shell-wide copy.",
6
6
  "licenses": [
7
7
  {
8
8
  "type": "Apache-2.0",
@@ -32,6 +32,6 @@ export type Events = {
32
32
  pageChange: { page: string };
33
33
  /** Host applies Bulma/document hooks (`data-theme` / `theme-*` on `html`/`body`) or ignores. */
34
34
  themeChange: { mode: ThemePreference };
35
- /** Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy. */
35
+ /** Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks. */
36
36
  languageChange: { code: string };
37
37
  };
@@ -7,7 +7,7 @@
7
7
  "properties": {
8
8
  "languageChange": {
9
9
  "additionalProperties": false,
10
- "description": "Host updates `i18nlang` on `hb-layout` (or equivalent) and reloads copy.",
10
+ "description": "Host may update `i18nlang` on `hb-layout` (or equivalent) and reload copy. The sidebar also applies the choice locally (`document.documentElement.lang`, selector state, and host `i18nlang` when the prop was empty). Emitted on mount (effective code) and when the user picks.",
11
11
  "properties": {
12
12
  "code": {
13
13
  "type": "string"