@gluhar/theme 6.0.0-next.0 → 6.0.0-next.10

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 CHANGED
@@ -3,6 +3,81 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.0.0-next.10](https://github.com/gluharco/gluhar/compare/v6.0.0-next.9...v6.0.0-next.10) (2026-11-13)
7
+
8
+ **📝 Note:** Version bump only for package @gluhar/theme
9
+
10
+
11
+
12
+
13
+
14
+ # [6.0.0-next.9](https://github.com/gluharco/gluhar/compare/v6.0.0-next.8...v6.0.0-next.9) (2026-11-12)
15
+
16
+ **📝 Note:** Version bump only for package @gluhar/theme
17
+
18
+
19
+
20
+
21
+
22
+ # [6.0.0-next.8](https://github.com/gluharco/gluhar/compare/v6.0.0-next.7...v6.0.0-next.8) (2026-11-10)
23
+
24
+ **📝 Note:** Version bump only for package @gluhar/theme
25
+
26
+
27
+
28
+
29
+
30
+ # [6.0.0-next.7](https://github.com/gluharco/gluhar/compare/v6.0.0-next.6...v6.0.0-next.7) (2026-10-21)
31
+
32
+ **📝 Note:** Version bump only for package @gluhar/theme
33
+
34
+
35
+
36
+
37
+
38
+ # [6.0.0-next.6](https://github.com/gluharco/gluhar/compare/v6.0.0-next.5...v6.0.0-next.6) (2026-10-21)
39
+
40
+ **📝 Note:** Version bump only for package @gluhar/theme
41
+
42
+
43
+
44
+
45
+
46
+ # [6.0.0-next.5](https://github.com/gluharco/gluhar/compare/v6.0.0-next.4...v6.0.0-next.5) (2026-10-21)
47
+
48
+ **📝 Note:** Version bump only for package @gluhar/theme
49
+
50
+
51
+
52
+
53
+
54
+ # [6.0.0-next.4](https://github.com/gluharco/gluhar/compare/v6.0.0-next.3...v6.0.0-next.4) (2026-10-21)
55
+
56
+ **📝 Note:** Version bump only for package @gluhar/theme
57
+
58
+
59
+
60
+
61
+
62
+ # [6.0.0-next.3](https://github.com/gluharco/gluhar/compare/v6.0.0-next.2...v6.0.0-next.3) (2026-10-21)
63
+
64
+ **📝 Note:** Version bump only for package @gluhar/theme
65
+
66
+
67
+
68
+
69
+
70
+ # [6.0.0-next.1](https://github.com/gluharco/gluhar/compare/v6.0.0-next.0...v6.0.0-next.1) (2026-10-20)
71
+
72
+
73
+ ### 🚀 Enhancements
74
+
75
+ - **release:** Publish from GitHub Actions with npm trusted publishing ([8773cd9](https://github.com/gluharco/gluhar/commit/8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf))
76
+
77
+
78
+
79
+
80
+
6
81
  # [4.1.0](https://github.com/gluharco/gluhar/compare/@gluhar/theme@4.0.4...@gluhar/theme@4.1.0) (2026-04-28)
7
82
 
8
83
 
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@gluhar/theme",
3
3
  "configKey": "gluharTheme",
4
- "version": "6.0.0-next.0",
4
+ "version": "6.0.0-next.10",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.8.3",
7
- "unbuild": "2.0.0"
6
+ "@nuxt/module-builder": "1.0.3",
7
+ "unbuild": "3.6.1"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -6,8 +6,7 @@ import { defu } from 'defu';
6
6
 
7
7
  const REM = 16;
8
8
  const readBreakpoints = (file, into = {}, seen = /* @__PURE__ */ new Set()) => {
9
- if (seen.has(file) || !existsSync(file))
10
- return into;
9
+ if (seen.has(file) || !existsSync(file)) return into;
11
10
  seen.add(file);
12
11
  const css = readFileSync(file, "utf8").replace(/\/\*[\s\S]*?\*\//g, "");
13
12
  const pattern = /@import\s+["'](\.{1,2}\/[^"']+)["']|--breakpoint-(\*|[\w-]+)\s*:\s*([^;]+);/g;
@@ -18,13 +17,11 @@ const readBreakpoints = (file, into = {}, seen = /* @__PURE__ */ new Set()) => {
18
17
  }
19
18
  if (name === "*") {
20
19
  if (value?.trim() === "initial")
21
- for (const key of Object.keys(into))
22
- delete into[key];
20
+ for (const key of Object.keys(into)) delete into[key];
23
21
  continue;
24
22
  }
25
23
  const match = value?.trim().match(/^([\d.]+)(rem|em|px)?$/);
26
- if (!match)
27
- continue;
24
+ if (!match) continue;
28
25
  const [, amount, unit] = match;
29
26
  into[name] = unit === "px" ? Number(amount) : Number(amount) * REM;
30
27
  }
@@ -32,7 +29,7 @@ const readBreakpoints = (file, into = {}, seen = /* @__PURE__ */ new Set()) => {
32
29
  };
33
30
 
34
31
  const logger = useLogger("@gluhar/theme");
35
- const module = defineNuxtModule({
32
+ const module$1 = defineNuxtModule({
36
33
  meta: {
37
34
  name: "@gluhar/theme",
38
35
  configKey: "gluharTheme"
@@ -55,13 +52,11 @@ const module = defineNuxtModule({
55
52
  const listed = nuxt.options.css.some(
56
53
  (entry) => typeof entry === "string" && resolve(nuxt.options.rootDir, entry.replace(/^[~@]\//, "")) === css
57
54
  );
58
- if (!listed)
59
- nuxt.options.css.push(css);
55
+ if (!listed) nuxt.options.css.push(css);
60
56
  }
61
57
  const readAll = () => {
62
58
  const breakpoints = readBreakpoints(resolveRuntime("runtime/theme.css"));
63
- if (css)
64
- readBreakpoints(css, breakpoints);
59
+ if (css) readBreakpoints(css, breakpoints);
65
60
  return breakpoints;
66
61
  };
67
62
  nuxt.options.appConfig.gluhar = defu(
@@ -71,8 +66,7 @@ const module = defineNuxtModule({
71
66
  if (css && nuxt.options.dev) {
72
67
  const initial = JSON.stringify(nuxt.options.appConfig.gluhar.breakpoints);
73
68
  nuxt.hook("builder:watch", async (_event, path) => {
74
- if (!path.endsWith(".css"))
75
- return;
69
+ if (!path.endsWith(".css")) return;
76
70
  if (JSON.stringify(readAll()) !== initial) {
77
71
  logger.info("Breakpoints changed \u2014 restarting.");
78
72
  await nuxt.callHook("restart");
@@ -82,4 +76,4 @@ const module = defineNuxtModule({
82
76
  }
83
77
  });
84
78
 
85
- export { module as default };
79
+ export { module$1 as default };
package/dist/types.d.mts CHANGED
@@ -1,7 +1,9 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.js'
3
+ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { default } from './module.js'
7
+ export { default } from './module.mjs'
8
+
9
+ export { type GluharThemeOptions } from './module.mjs'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/theme",
3
- "version": "6.0.0-next.0",
3
+ "version": "6.0.0-next.10",
4
4
  "description": "Gluhar Theme package. Sets up Tailwind CSS v4, ships shared tokens (theme.css) and fonts, and feeds the CSS breakpoints to useResponsive.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,25 +35,23 @@
35
35
  "test:watch": "vitest watch"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^4.5.0",
38
+ "@nuxt/kit": "^4.6.2",
39
39
  "@tailwindcss/vite": "^4.3.0",
40
40
  "defu": "^6.1.4"
41
41
  },
42
42
  "devDependencies": {
43
- "@nuxt/devtools": "latest",
44
43
  "@nuxt/eslint-config": "^1.9.0",
45
44
  "@nuxt/module-builder": "^1.0.3",
46
- "@nuxt/schema": "^4.5.0",
47
- "@nuxt/test-utils": "^3.19.2",
45
+ "@nuxt/schema": "^4.6.2",
46
+ "@nuxt/test-utils": "^4.3.4",
48
47
  "@types/node": "^22.5.4",
49
48
  "changelogen": "^0.5.5",
50
49
  "eslint": "^9.10.0",
51
- "nuxt": "^4.5.0",
52
- "vitest": "^3.2.4"
50
+ "nuxt": "^4.6.2",
51
+ "vitest": "^5.0.5"
53
52
  },
54
53
  "peerDependencies": {
55
- "nuxt": "^4.5.0",
54
+ "nuxt": "^4.6.2",
56
55
  "tailwindcss": "^4.3.0"
57
- },
58
- "gitHead": "8773cd99c43cbe6a7dc415e50af8b13a7b8d4daf"
56
+ }
59
57
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
-
3
- interface GluharThemeOptions {
4
- /**
5
- * The project's main stylesheet, relative to the root dir. Added to
6
- * `nuxt.options.css` if it isn't there yet, and scanned for
7
- * `--breakpoint-*`. `false` to manage CSS entirely yourself.
8
- */
9
- css?: string | false;
10
- }
11
- declare const _default: _nuxt_schema.NuxtModule<GluharThemeOptions, GluharThemeOptions, false>;
12
-
13
- export { _default as default };
14
- export type { GluharThemeOptions };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'