@altafusion/fugue-nuxt-ui 0.0.0-stage → 0.2.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 +20 -0
- package/LICENSE +21 -0
- package/README.md +30 -2
- package/app/composables/useNuxtUiLocale.ts +18 -0
- package/assets/css/nuxt-ui.css +6 -0
- package/eslint.config.mjs +4 -0
- package/nuxt.config.ts +25 -0
- package/package.json +43 -3
- package/tsconfig.json +4 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @altafusion/fugue-nuxt-ui
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7767e60]
|
|
12
|
+
- @altafusion/eslint-config@0.2.0
|
|
13
|
+
- @altafusion/nuxt-base@0.2.0
|
|
14
|
+
|
|
15
|
+
## 0.1.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- @altafusion/eslint-config@0.1.1
|
|
20
|
+
- @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,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @altafusion/fugue-nuxt-ui
|
|
2
2
|
|
|
3
|
-
|
|
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).
|
|
31
|
+
- Docs: **[Fugue overview](../../apps/developer-docs/content/3.fugue/1.overview.md)** · **[Shared packages](../../apps/developer-docs/content/2.monorepo/4.shared-packages.md)**.
|
|
@@ -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
|
+
}
|
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,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altafusion/fugue-nuxt-ui",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Unbranded Nuxt UI + Tailwind base layer for the Fugue family (no product brand tokens or fonts)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./nuxt.config.ts",
|
|
12
|
+
"./assets/css/nuxt-ui.css": "./assets/css/nuxt-ui.css"
|
|
13
|
+
},
|
|
14
|
+
"main": "./nuxt.config.ts",
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"nuxt": ">=4.0.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@altafusion/eslint-config": "0.2.0",
|
|
20
|
+
"@altafusion/nuxt-base": "0.2.0",
|
|
21
|
+
"@nuxt/eslint": "^1.17.0",
|
|
22
|
+
"@nuxt/icon": "^2.6.3",
|
|
23
|
+
"@nuxt/ui": "^4.13.0",
|
|
24
|
+
"tailwindcss": "^4.3.5"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^26.6.6",
|
|
28
|
+
"eslint": "^10.15.0",
|
|
29
|
+
"nuxt": "^4.6.4",
|
|
30
|
+
"typescript": "^6.0.3",
|
|
31
|
+
"vue": "^3.5.46"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"**",
|
|
35
|
+
"!**/*.test.ts",
|
|
36
|
+
"!**/.nuxt",
|
|
37
|
+
"!**/.output",
|
|
38
|
+
"!**/.data",
|
|
39
|
+
"!**/coverage",
|
|
40
|
+
"!**/node_modules"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"lint": "eslint .",
|
|
44
|
+
"lint:fix": "eslint . --fix"
|
|
45
|
+
}
|
|
6
46
|
}
|
package/tsconfig.json
ADDED