@altafusion/fugue-nuxt-ui 0.0.0-stage → 0.3.0

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 ADDED
@@ -0,0 +1,29 @@
1
+ # @altafusion/fugue-nuxt-ui
2
+
3
+ ## 0.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [da3fca4]
8
+ - Updated dependencies [91aea5e]
9
+ - @altafusion/nuxt-base@0.3.0
10
+ - @altafusion/eslint-config@0.3.0
11
+
12
+ ## 0.2.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 7767e60: Rebrand for the public release. In `@altafusion/shell`, `CODERMAR_BRANDS`, `CODERMAR_BRAND_THEME` and `utils/codermarBrandTheme` become `ALTAFUSION_*` and `utils/altafusionBrandTheme`, and the brand cookie key is now `altafusion:brand`. In `@altafusion/msw`, the `codermarMsw*` exports become `altafusionMsw*`. The site settings schema `$id` is now `https://altafusion.com/schemas/site-settings.json`. Package descriptions and docs no longer reference private sites.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [7767e60]
21
+ - @altafusion/eslint-config@0.2.0
22
+ - @altafusion/nuxt-base@0.2.0
23
+
24
+ ## 0.1.1
25
+
26
+ ### Patch Changes
27
+
28
+ - @altafusion/eslint-config@0.1.1
29
+ - @altafusion/nuxt-base@0.1.1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Altafusion
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
1
+ # @altafusion/fugue-nuxt-ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Unbranded Nuxt UI + Tailwind base for the Fugue family — **`@nuxt/ui`**, **`@nuxt/eslint`**, no product fonts or brand tokens.
4
+
5
+ ## Stack
6
+
7
+ ```text
8
+ @altafusion/fugue-nuxt-ui
9
+ extends → @altafusion/nuxt-base
10
+ modules → @nuxt/eslint, @nuxt/ui
11
+ css → assets/css/nuxt-ui.css
12
+ ```
13
+
14
+ Apps must **directly extend** a layer that registers **`@nuxt/eslint`** (this layer, **`@altafusion/fugue-theme`**, or another layer that pulls it in) so the app-root ESLint hook runs. Optional **`@altafusion/fugue-theme`** adds semantic tokens on top.
15
+
16
+ ## Usage
17
+
18
+ ```ts
19
+ export default defineNuxtConfig({
20
+ extends: ['@altafusion/fugue-nuxt-ui'],
21
+ })
22
+ ```
23
+
24
+ Export **`./assets/css/nuxt-ui.css`** for non-Nuxt consumers that need the same entry.
25
+
26
+ ## Consumers
27
+
28
+ > **Local — do not copy-sync.** Repo wiring, ports, catalog keys, consuming apps, and docs-site links.
29
+
30
+ - Extended by **`@altafusion/fugue-ui`** and **`@altafusion/fugue-theme`**; product apps and **`templates/fugue-content-site`** typically extend theme and/or **`@altafusion/shell`** (shell → fugue-ui → here).
@@ -0,0 +1,18 @@
1
+ import * as nuxtUiLocales from '@nuxt/ui/locale'
2
+
3
+ /**
4
+ * Map a BCP 47 / Docus locale code to the matching `@nuxt/ui` locale bundle.
5
+ * Lives in `@altafusion/fugue-nuxt-ui` so apps auto-import without a direct `@nuxt/ui` dependency;
6
+ * `@altafusion/fugue-theme` stays CSS/theme-focused.
7
+ */
8
+ export function useNuxtUiLocale(locale: MaybeRefOrGetter<string>) {
9
+ const nuxtUiLocale = computed(
10
+ () =>
11
+ nuxtUiLocales[toValue(locale) as keyof typeof nuxtUiLocales]
12
+ || nuxtUiLocales.en,
13
+ )
14
+ const lang = computed(() => nuxtUiLocale.value.code)
15
+ const dir = computed(() => nuxtUiLocale.value.dir)
16
+
17
+ return { nuxtUiLocale, lang, dir }
18
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Unbranded Tailwind + Nuxt UI root. Order matters: tailwind → @nuxt/ui.
3
+ * Theme layers (@altafusion/fugue-theme, app-local) chain-import this file and add @theme extensions.
4
+ */
5
+ @import "tailwindcss";
6
+ @import "@nuxt/ui";
@@ -0,0 +1,4 @@
1
+ // @ts-check
2
+ import { createStrictVuePackageEslintConfig } from '@altafusion/eslint-config'
3
+
4
+ export default createStrictVuePackageEslintConfig()
package/nuxt.config.ts ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @altafusion/fugue-nuxt-ui — unbranded Nuxt UI base for the Fugue family.
3
+ *
4
+ * Registers @nuxt/ui + @nuxt/eslint (apps must directly extend a layer that registers
5
+ * @nuxt/eslint for the app-root eslint hook — this layer or e.g. @altafusion/fugue-theme;
6
+ * see packages-platform/nuxt-base/modules.ts).
7
+ * NO fonts, NO brand tokens, NO color mapping — optional @altafusion/fugue-theme adds theme/tokens.
8
+ */
9
+
10
+ import { resolve } from 'node:path'
11
+
12
+ export default defineNuxtConfig({
13
+ extends: ['@altafusion/nuxt-base'],
14
+
15
+ modules: ['@nuxt/eslint', '@nuxt/ui'],
16
+
17
+ /** Products load typography (e.g. @altafusion/shell). Avoid @nuxt/fonts Google fetch at build. */
18
+ ui: {
19
+ fonts: false,
20
+ },
21
+
22
+ css: [
23
+ resolve(__dirname, './assets/css/nuxt-ui.css'),
24
+ ],
25
+ })
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@altafusion/fugue-nuxt-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "type": "module",
4
+ "version": "0.3.0",
5
+ "description": "Unbranded Nuxt UI + Tailwind base layer for the Fugue family (no product brand tokens or fonts)",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-nuxt-ui#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/altafusion/fugue/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/altafusion/fugue.git",
14
+ "directory": "packages-fugue/fugue-nuxt-ui"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "exports": {
20
+ ".": "./nuxt.config.ts",
21
+ "./assets/css/nuxt-ui.css": "./assets/css/nuxt-ui.css"
22
+ },
23
+ "main": "./nuxt.config.ts",
24
+ "peerDependencies": {
25
+ "nuxt": ">=4.0.0"
26
+ },
27
+ "dependencies": {
28
+ "@altafusion/eslint-config": "0.3.0",
29
+ "@altafusion/nuxt-base": "0.3.0",
30
+ "@nuxt/eslint": "^1.17.0",
31
+ "@nuxt/icon": "^2.6.3",
32
+ "@nuxt/ui": "^4.13.0",
33
+ "tailwindcss": "^4.3.5"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^26.6.6",
37
+ "eslint": "^10.15.0",
38
+ "nuxt": "^4.6.4",
39
+ "typescript": "^6.0.3",
40
+ "vue": "^3.5.46"
41
+ },
42
+ "files": [
43
+ "**",
44
+ "!**/*.test.ts",
45
+ "!**/.nuxt",
46
+ "!**/.output",
47
+ "!**/.data",
48
+ "!**/coverage",
49
+ "!**/node_modules"
50
+ ],
51
+ "scripts": {
52
+ "lint": "eslint .",
53
+ "lint:fix": "eslint . --fix"
54
+ }
6
55
  }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../tsconfig.packages.json",
3
+ "include": ["**/*.ts", "**/*.vue", "types/**/*.d.ts"]
4
+ }