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.
- package/CHANGELOG.md +22 -0
- package/dist/src/assets/css/main.css +1 -1
- package/dist/src/assets/css/tokens/dark.css +4 -0
- package/dist/src/assets/css/tokens/light.css +2 -0
- package/dist/src/assets/scss/tokens/_dark.scss +4 -0
- package/dist/src/assets/scss/tokens/_light.scss +2 -0
- package/dist/src/components/List/OrigamListItem.vue +2 -2
- package/dist/src/interfaces/Commons/nuxt-module.interface.d.ts +12 -0
- package/dist/src/nuxt/module.cjs +4 -2
- package/dist/src/nuxt/module.js +4 -2
- package/dist/src/nuxt/plugin.client.cjs +3 -1
- package/dist/src/nuxt/plugin.client.js +2 -1
- package/dist/src/nuxt/plugin.server.cjs +3 -1
- package/dist/src/nuxt/plugin.server.js +2 -1
- package/dist/src/types/Icon/icon.type.d.ts +10 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Commons/nuxt-icons.util.cjs +11 -0
- package/dist/src/utils/Commons/nuxt-icons.util.d.ts +11 -0
- package/dist/src/utils/Commons/nuxt-icons.util.js +3 -0
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +1 -1
|
@@ -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'>;
|
package/dist/src/utils/index.cjs
CHANGED
|
@@ -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';
|
package/dist/src/utils/index.js
CHANGED
|
@@ -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";
|