origam 2.37.32 → 2.37.34

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.
@@ -1705,6 +1705,8 @@
1705
1705
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
1706
1706
  --origam-table__header-cell---color: var(--origam-color__text---primary);
1707
1707
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
1708
+ --origam-table__header-cell---letter-spacing: initial;
1709
+ --origam-table__header-cell---text-transform: initial;
1708
1710
  --origam-table__header-cell---padding-block: var(--origam-space---3);
1709
1711
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
1710
1712
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -4749,6 +4751,8 @@
4749
4751
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
4750
4752
  --origam-table__header-cell---color: var(--origam-color__text---primary);
4751
4753
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
4754
+ --origam-table__header-cell---letter-spacing: initial;
4755
+ --origam-table__header-cell---text-transform: initial;
4752
4756
  --origam-table__header-cell---padding-block: var(--origam-space---3);
4753
4757
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
4754
4758
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -1605,6 +1605,8 @@
1605
1605
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
1606
1606
  --origam-table__header-cell---color: var(--origam-color__text---primary);
1607
1607
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
1608
+ --origam-table__header-cell---letter-spacing: initial;
1609
+ --origam-table__header-cell---text-transform: initial;
1608
1610
  --origam-table__header-cell---padding-block: var(--origam-space---3);
1609
1611
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
1610
1612
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -1705,6 +1705,8 @@
1705
1705
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
1706
1706
  --origam-table__header-cell---color: var(--origam-color__text---primary);
1707
1707
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
1708
+ --origam-table__header-cell---letter-spacing: initial;
1709
+ --origam-table__header-cell---text-transform: initial;
1708
1710
  --origam-table__header-cell---padding-block: var(--origam-space---3);
1709
1711
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
1710
1712
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -4749,6 +4751,8 @@
4749
4751
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
4750
4752
  --origam-table__header-cell---color: var(--origam-color__text---primary);
4751
4753
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
4754
+ --origam-table__header-cell---letter-spacing: initial;
4755
+ --origam-table__header-cell---text-transform: initial;
4752
4756
  --origam-table__header-cell---padding-block: var(--origam-space---3);
4753
4757
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
4754
4758
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -1605,6 +1605,8 @@
1605
1605
  --origam-table__header-cell---background-color: var(--origam-color__surface---overlay);
1606
1606
  --origam-table__header-cell---color: var(--origam-color__text---primary);
1607
1607
  --origam-table__header-cell---font-weight: var(--origam-font__weight---semibold);
1608
+ --origam-table__header-cell---letter-spacing: initial;
1609
+ --origam-table__header-cell---text-transform: initial;
1608
1610
  --origam-table__header-cell---padding-block: var(--origam-space---3);
1609
1611
  --origam-table__header-cell---padding-inline: var(--origam-space---4);
1610
1612
  --origam-table__header-cell---border-bottom-color: var(--origam-color__border---default);
@@ -234,6 +234,8 @@ defineExpose({
234
234
  background-color: var(--origam-table__header-cell---background-color, var(--origam-color__surface---overlay));
235
235
  color: var(--origam-table__header-cell---color, var(--origam-color__text---primary));
236
236
  font-weight: var(--origam-table__header-cell---font-weight, 600);
237
+ letter-spacing: var(--origam-table__header-cell---letter-spacing, inherit);
238
+ text-transform: var(--origam-table__header-cell---text-transform, inherit);
237
239
  padding-block: var(--origam-table__header-cell---padding-block, 12px);
238
240
  padding-inline: var(--origam-table__header-cell---padding-inline, 16px);
239
241
  border-bottom: var(--origam-table__header-cell---border-bottom-width, 2px) solid var(--origam-table__header-cell---border-bottom-color, var(--origam-color__border---default));
@@ -28,7 +28,7 @@ module.exports = (0, _app.defineNuxtPlugin)({
28
28
  });
29
29
  const modePinned = (0, _applyTheme.isModePinned)(modeCookie.value, config.defaultMode);
30
30
  const themeFromDom = typeof document !== "undefined" && document.documentElement.dataset.theme || null;
31
- const initialTheme = themeFromDom ?? themeCookie.value ?? config.defaultTheme;
31
+ const initialTheme = (0, _applyTheme.knownBrand)(themeFromDom, config.themes) ?? (0, _applyTheme.knownBrand)(themeCookie.value, config.themes) ?? config.defaultTheme;
32
32
  const initialMode = modeCookie.value ?? config.defaultMode;
33
33
  const themes = config.themes ?? [];
34
34
  const origam = (0, _origam.createOrigam)({
@@ -3,7 +3,7 @@ import { useTheme } from "../composables/Commons/theme.composable.js";
3
3
  import { createOrigam } from "../origam.js";
4
4
  import { nuxtIconsOptions } from "../utils/Commons/nuxt-icons.util.js";
5
5
  import { nuxtLocaleOptions } from "../utils/Commons/nuxt-locale.util.js";
6
- import { isModePinned } from "../utils/Commons/apply-theme.util.js";
6
+ import { isModePinned, knownBrand } from "../utils/Commons/apply-theme.util.js";
7
7
  import { defineNuxtPlugin, useCookie, useRuntimeConfig } from "#app";
8
8
  export default defineNuxtPlugin({
9
9
  name: "origam:client",
@@ -22,7 +22,7 @@ export default defineNuxtPlugin({
22
22
  });
23
23
  const modePinned = isModePinned(modeCookie.value, config.defaultMode);
24
24
  const themeFromDom = typeof document !== "undefined" && document.documentElement.dataset.theme || null;
25
- const initialTheme = themeFromDom ?? themeCookie.value ?? config.defaultTheme;
25
+ const initialTheme = knownBrand(themeFromDom, config.themes) ?? knownBrand(themeCookie.value, config.themes) ?? config.defaultTheme;
26
26
  const initialMode = modeCookie.value ?? config.defaultMode;
27
27
  const themes = config.themes ?? [];
28
28
  const origam = createOrigam({ themes, ssr: true, ...nuxtLocaleOptions(config), ...nuxtIconsOptions(config) });
@@ -12,8 +12,9 @@ var _ssrStyles = require("../utils/Commons/ssr-styles.util.cjs");
12
12
  var _theme = require("../consts/Commons/theme.const.cjs");
13
13
  var _app = require("#app");
14
14
  function resolveServerTheme(cookieValue, config) {
15
- if (cookieValue && cookieValue !== _theme.ORIGAM_THEME_AUTO) {
16
- return cookieValue;
15
+ const brand = (0, _applyTheme.knownBrand)(cookieValue, config.themes);
16
+ if (brand && brand !== _theme.ORIGAM_THEME_AUTO) {
17
+ return brand;
17
18
  }
18
19
  if (config.defaultTheme && config.defaultTheme !== _theme.ORIGAM_THEME_AUTO) {
19
20
  return config.defaultTheme;
@@ -1,13 +1,14 @@
1
1
  import { createOrigam } from "../origam.js";
2
2
  import { nuxtIconsOptions } from "../utils/Commons/nuxt-icons.util.js";
3
3
  import { nuxtLocaleOptions } from "../utils/Commons/nuxt-locale.util.js";
4
- import { isModePinned, themeToCss, themeToUnpinnedCss } from "../utils/Commons/apply-theme.util.js";
4
+ import { isModePinned, knownBrand, themeToCss, themeToUnpinnedCss } from "../utils/Commons/apply-theme.util.js";
5
5
  import { getSsrStyles } from "../utils/Commons/ssr-styles.util.js";
6
6
  import { ORIGAM_MODE_ATTR, ORIGAM_MODE_DARK, ORIGAM_MODE_LIGHT, ORIGAM_THEME_ATTR, ORIGAM_THEME_AUTO } from "../consts/Commons/theme.const.js";
7
7
  import { defineNuxtPlugin, useCookie, useHead, useRuntimeConfig } from "#app";
8
8
  function resolveServerTheme(cookieValue, config) {
9
- if (cookieValue && cookieValue !== ORIGAM_THEME_AUTO) {
10
- return cookieValue;
9
+ const brand = knownBrand(cookieValue, config.themes);
10
+ if (brand && brand !== ORIGAM_THEME_AUTO) {
11
+ return brand;
11
12
  }
12
13
  if (config.defaultTheme && config.defaultTheme !== ORIGAM_THEME_AUTO) {
13
14
  return config.defaultTheme;