@altafusion/fugue-ui-base 0.0.0-stage → 0.9.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 +169 -0
- package/LICENSE +21 -0
- package/README.md +29 -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 +52 -3
- package/tsconfig.json +4 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# @altafusion/fugue-nuxt-ui
|
|
2
|
+
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @altafusion/eslint-config-preset@0.9.0
|
|
8
|
+
- @altafusion/nuxt-base@0.9.0
|
|
9
|
+
|
|
10
|
+
## 0.8.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 1f07a24: Rename packages so each name says where it sits in the layering. Update imports and `extends` entries in consuming apps.
|
|
15
|
+
|
|
16
|
+
- `@altafusion/fugue-nuxt-ui` is now `@altafusion/fugue-ui-base`.
|
|
17
|
+
- `@altafusion/fugue-simple-auth` is now `@altafusion/fugue-access-gate`. It is an access-key gate, not user authentication.
|
|
18
|
+
- `@altafusion/shell` is now `@altafusion/fugue-app-shell`.
|
|
19
|
+
- `@altafusion/eslint-config` is now `@altafusion/eslint-config-preset`.
|
|
20
|
+
- The private `@altafusion/msw` is now `@altafusion/msw-mock-kit`.
|
|
21
|
+
- `packages-consumer/` is now `packages-domain/` (folder only).
|
|
22
|
+
- Clearer descriptions for `nuxt-base`, `fugue-ui`, `fugue-theme`, `fugue-devtools` and `fugue-content`.
|
|
23
|
+
|
|
24
|
+
The old names are deprecated on npm pointing to the new ones.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [1f07a24]
|
|
29
|
+
- @altafusion/eslint-config-preset@0.8.0
|
|
30
|
+
- @altafusion/nuxt-base@0.8.0
|
|
31
|
+
|
|
32
|
+
## 0.7.0
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- @altafusion/eslint-config@0.7.0
|
|
37
|
+
- @altafusion/nuxt-base@0.7.0
|
|
38
|
+
|
|
39
|
+
## 0.6.6
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- @altafusion/eslint-config@0.6.6
|
|
44
|
+
- @altafusion/nuxt-base@0.6.6
|
|
45
|
+
|
|
46
|
+
## 0.6.5
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- @altafusion/eslint-config@0.6.5
|
|
51
|
+
- @altafusion/nuxt-base@0.6.5
|
|
52
|
+
|
|
53
|
+
## 0.6.4
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- @altafusion/eslint-config@0.6.4
|
|
58
|
+
- @altafusion/nuxt-base@0.6.4
|
|
59
|
+
|
|
60
|
+
## 0.6.3
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- @altafusion/eslint-config@0.6.3
|
|
65
|
+
- @altafusion/nuxt-base@0.6.3
|
|
66
|
+
|
|
67
|
+
## 0.6.2
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- @altafusion/eslint-config@0.6.2
|
|
72
|
+
- @altafusion/nuxt-base@0.6.2
|
|
73
|
+
|
|
74
|
+
## 0.6.1
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- @altafusion/eslint-config@0.6.1
|
|
79
|
+
- @altafusion/nuxt-base@0.6.1
|
|
80
|
+
|
|
81
|
+
## 0.6.0
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- @altafusion/eslint-config@0.6.0
|
|
86
|
+
- @altafusion/nuxt-base@0.6.0
|
|
87
|
+
|
|
88
|
+
## 0.5.0
|
|
89
|
+
|
|
90
|
+
### Patch Changes
|
|
91
|
+
|
|
92
|
+
- @altafusion/eslint-config@0.5.0
|
|
93
|
+
- @altafusion/nuxt-base@0.5.0
|
|
94
|
+
|
|
95
|
+
## 0.4.0
|
|
96
|
+
|
|
97
|
+
### Patch Changes
|
|
98
|
+
|
|
99
|
+
- Updated dependencies [a5133f5]
|
|
100
|
+
- @altafusion/nuxt-base@0.4.0
|
|
101
|
+
- @altafusion/eslint-config@0.4.0
|
|
102
|
+
|
|
103
|
+
## 0.3.5
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- @altafusion/eslint-config@0.3.5
|
|
108
|
+
- @altafusion/nuxt-base@0.3.5
|
|
109
|
+
|
|
110
|
+
## 0.3.4
|
|
111
|
+
|
|
112
|
+
### Patch Changes
|
|
113
|
+
|
|
114
|
+
- 153c441: Raise the minimum Nuxt tooling versions: `nuxt` and `@nuxt/kit` to `^4.7.0`, `@nuxt/ui` to `^4.13.1` and `@iconify-json/lucide` to `^1.2.158`.
|
|
115
|
+
- Updated dependencies [153c441]
|
|
116
|
+
- @altafusion/nuxt-base@0.3.4
|
|
117
|
+
- @altafusion/eslint-config@0.3.4
|
|
118
|
+
|
|
119
|
+
## 0.3.3
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- Updated dependencies [1cc8b7e]
|
|
124
|
+
- @altafusion/eslint-config@0.3.3
|
|
125
|
+
- @altafusion/nuxt-base@0.3.3
|
|
126
|
+
|
|
127
|
+
## 0.3.2
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- Updated dependencies [46f552d]
|
|
132
|
+
- @altafusion/eslint-config@0.3.2
|
|
133
|
+
- @altafusion/nuxt-base@0.3.2
|
|
134
|
+
|
|
135
|
+
## 0.3.1
|
|
136
|
+
|
|
137
|
+
### Patch Changes
|
|
138
|
+
|
|
139
|
+
- Updated dependencies [bc79817]
|
|
140
|
+
- @altafusion/eslint-config@0.3.1
|
|
141
|
+
- @altafusion/nuxt-base@0.3.1
|
|
142
|
+
|
|
143
|
+
## 0.3.0
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- Updated dependencies [da3fca4]
|
|
148
|
+
- Updated dependencies [91aea5e]
|
|
149
|
+
- @altafusion/nuxt-base@0.3.0
|
|
150
|
+
- @altafusion/eslint-config@0.3.0
|
|
151
|
+
|
|
152
|
+
## 0.2.0
|
|
153
|
+
|
|
154
|
+
### Minor Changes
|
|
155
|
+
|
|
156
|
+
- 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.
|
|
157
|
+
|
|
158
|
+
### Patch Changes
|
|
159
|
+
|
|
160
|
+
- Updated dependencies [7767e60]
|
|
161
|
+
- @altafusion/eslint-config@0.2.0
|
|
162
|
+
- @altafusion/nuxt-base@0.2.0
|
|
163
|
+
|
|
164
|
+
## 0.1.1
|
|
165
|
+
|
|
166
|
+
### Patch Changes
|
|
167
|
+
|
|
168
|
+
- @altafusion/eslint-config@0.1.1
|
|
169
|
+
- @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
|
-
#
|
|
1
|
+
# @altafusion/fugue-ui-base
|
|
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-ui-base
|
|
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-ui-base'],
|
|
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/fugue-app-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-ui-base` 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-ui-base — 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/fugue-app-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-ui-base",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.9.0",
|
|
5
|
+
"description": "Nuxt UI + Tailwind foundation layer. Extends nuxt-base. No brand tokens, fonts or widgets",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-ui-base#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-ui-base"
|
|
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-preset": "0.9.0",
|
|
29
|
+
"@altafusion/nuxt-base": "0.9.0",
|
|
30
|
+
"@nuxt/eslint": "^1.17.0",
|
|
31
|
+
"@nuxt/icon": "^2.6.3",
|
|
32
|
+
"@nuxt/ui": "^4.13.1",
|
|
33
|
+
"tailwindcss": "^4.3.5"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^26.6.11",
|
|
37
|
+
"eslint": "^10.16.0",
|
|
38
|
+
"nuxt": "^4.7.0",
|
|
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