origam 2.37.11 → 2.37.13

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.
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.nuxtIconsOptions = nuxtIconsOptions;
7
+ function nuxtIconsOptions(config) {
8
+ return config.icons ? {
9
+ icons: config.icons
10
+ } : {};
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { IOrigamOptions } from '../../interfaces/Commons/commons.interface';
2
+ import type { IOrigamNuxtRuntimeConfig } from '../../interfaces/Commons/nuxt-module.interface';
3
+ /*********************************************************
4
+ * nuxtIconsOptions
5
+ *
6
+ * @description
7
+ * The `createOrigam()` options derived from the module's `icons` setting (#1228). Shared by both Nuxt plugins so SSR and hydration use the SAME aliases.
8
+ * @description
9
+ * Returns `{}` when no icons are configured, so `createIcons()` keeps its defaults.
10
+ ********************************************************/
11
+ export declare function nuxtIconsOptions(config: Pick<IOrigamNuxtRuntimeConfig, 'icons'>): Pick<IOrigamOptions, 'icons'>;
@@ -0,0 +1,3 @@
1
+ export function nuxtIconsOptions(config) {
2
+ return config.icons ? { icons: config.icons } : {};
3
+ }
@@ -190,6 +190,17 @@ Object.keys(_locale).forEach(function (key) {
190
190
  }
191
191
  });
192
192
  });
193
+ var _nuxtIcons = require("./Commons/nuxt-icons.util.cjs");
194
+ Object.keys(_nuxtIcons).forEach(function (key) {
195
+ if (key === "default" || key === "__esModule") return;
196
+ if (key in exports && exports[key] === _nuxtIcons[key]) return;
197
+ Object.defineProperty(exports, key, {
198
+ enumerable: true,
199
+ get: function () {
200
+ return _nuxtIcons[key];
201
+ }
202
+ });
203
+ });
193
204
  var _nuxtLocale = require("./Commons/nuxt-locale.util.cjs");
194
205
  Object.keys(_nuxtLocale).forEach(function (key) {
195
206
  if (key === "default" || key === "__esModule") return;
@@ -15,6 +15,7 @@ export * from './Commons/getCurrentInstance.util';
15
15
  export * from './Commons/ssr-styles.util';
16
16
  export * from './Commons/layout.util';
17
17
  export * from './Commons/locale.util';
18
+ export * from './Commons/nuxt-icons.util';
18
19
  export * from './Commons/nuxt-locale.util';
19
20
  export * from './Commons/nested.util';
20
21
  export * from './Commons/ripple.util';
@@ -15,6 +15,7 @@ export * from "./Commons/getCurrentInstance.util.js";
15
15
  export * from "./Commons/ssr-styles.util.js";
16
16
  export * from "./Commons/layout.util.js";
17
17
  export * from "./Commons/locale.util.js";
18
+ export * from "./Commons/nuxt-icons.util.js";
18
19
  export * from "./Commons/nuxt-locale.util.js";
19
20
  export * from "./Commons/nested.util.js";
20
21
  export * from "./Commons/ripple.util.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.37.11",
3
+ "version": "2.37.13",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [