origam 2.37.13 → 2.37.15

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.
@@ -93,6 +93,7 @@
93
93
  --origam-font__family---sans: Inter, 'Helvetica Neue', Arial, sans-serif;
94
94
  --origam-font__family---mono: 'JetBrains Mono', 'Fira Code', monospace;
95
95
  --origam-font__family---serif: Georgia, 'Times New Roman', serif;
96
+ --origam-font__family---display: var(--origam-font__family---sans);
96
97
  --origam-font__size---xs: 0.625rem;
97
98
  --origam-font__size---sm: 0.75rem;
98
99
  --origam-font__size---md: 0.875rem;
@@ -93,6 +93,7 @@
93
93
  --origam-font__family---sans: Inter, 'Helvetica Neue', Arial, sans-serif;
94
94
  --origam-font__family---mono: 'JetBrains Mono', 'Fira Code', monospace;
95
95
  --origam-font__family---serif: Georgia, 'Times New Roman', serif;
96
+ --origam-font__family---display: var(--origam-font__family---sans);
96
97
  --origam-font__size---xs: 0.625rem;
97
98
  --origam-font__size---sm: 0.75rem;
98
99
  --origam-font__size---md: 0.875rem;
@@ -589,7 +589,7 @@ const comboboxAriaAttrs = computed(() => {
589
589
  role: "combobox",
590
590
  "aria-haspopup": "listbox",
591
591
  "aria-expanded": menu.value ? "true" : "false",
592
- "aria-controls": menu.value ? listboxId : void 0,
592
+ "aria-controls": listboxId,
593
593
  "aria-autocomplete": props.autocomplete ? "list" : void 0,
594
594
  "aria-activedescendant": activeDescendant
595
595
  };
@@ -8,5 +8,6 @@ var FONT_FAMILY = exports.FONT_FAMILY = /* @__PURE__ */(FONT_FAMILY2 => {
8
8
  FONT_FAMILY2["SANS"] = "sans";
9
9
  FONT_FAMILY2["MONO"] = "mono";
10
10
  FONT_FAMILY2["SERIF"] = "serif";
11
+ FONT_FAMILY2["DISPLAY"] = "display";
11
12
  return FONT_FAMILY2;
12
13
  })(FONT_FAMILY || {});
@@ -1,10 +1,12 @@
1
1
  /**
2
2
  * Font-family token keys. Map to `--origam-font__family---{key}`:
3
3
  * sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) ·
4
- * serif (Georgia / Times New Roman)
4
+ * serif (Georgia / Times New Roman) · display (= sans unless a theme sets
5
+ * `typo.family.display`)
5
6
  */
6
7
  export declare enum FONT_FAMILY {
7
8
  SANS = "sans",
8
9
  MONO = "mono",
9
- SERIF = "serif"
10
+ SERIF = "serif",
11
+ DISPLAY = "display"
10
12
  }
@@ -2,5 +2,6 @@ export var FONT_FAMILY = /* @__PURE__ */ ((FONT_FAMILY2) => {
2
2
  FONT_FAMILY2["SANS"] = "sans";
3
3
  FONT_FAMILY2["MONO"] = "mono";
4
4
  FONT_FAMILY2["SERIF"] = "serif";
5
+ FONT_FAMILY2["DISPLAY"] = "display";
5
6
  return FONT_FAMILY2;
6
7
  })(FONT_FAMILY || {});
@@ -33,7 +33,7 @@ import type { TTextTransform } from '../../types/Commons/text-transform.type';
33
33
  export interface ITypographyProps {
34
34
  /**
35
35
  * Font family token. Maps to `--origam-font__family---{fontFamily}`
36
- * (sans · mono · serif).
36
+ * (sans · mono · serif · display).
37
37
  * When unset, the component keeps its theme font-family.
38
38
  */
39
39
  fontFamily?: TFontFamily;
@@ -1,6 +1,6 @@
1
1
  import { FONT_FAMILY } from '../../enums/Commons/font-family.enum';
2
2
  /**
3
3
  * Font-family token keys (map to `--origam-font__family---{key}`):
4
- * sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) · serif (Georgia / Times New Roman)
4
+ * sans (Inter / Helvetica Neue / Arial) · mono (JetBrains Mono / Fira Code) · serif (Georgia / Times New Roman) · display (= sans unless themed)
5
5
  */
6
6
  export type TFontFamily = `${FONT_FAMILY}`;