@seta-labs/nuxt-foundation 0.0.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.
Files changed (88) hide show
  1. package/app/apps.ts +33 -0
  2. package/app/assets/shell.css +190 -0
  3. package/app/components/FoundationBarra.vue +42 -0
  4. package/app/components/FoundationLauncher.vue +54 -0
  5. package/app/components/FoundationMenu.vue +30 -0
  6. package/app/components/FoundationStato.vue +16 -0
  7. package/app/components/FoundationUtente.vue +48 -0
  8. package/app/composables/useFoundation.ts +66 -0
  9. package/app/composables/usePopover.ts +50 -0
  10. package/app/layouts/default.vue +43 -0
  11. package/app/utils/app-link.ts +6 -0
  12. package/app.config.ts +22 -0
  13. package/design-system/README.md +77 -0
  14. package/design-system/assets/App/README.md +4 -0
  15. package/design-system/assets/Icone/README.md +6 -0
  16. package/design-system/assets/Icone/i-aggiungi.svg +1 -0
  17. package/design-system/assets/Icone/i-altro.svg +1 -0
  18. package/design-system/assets/Icone/i-app-agency.svg +1 -0
  19. package/design-system/assets/Icone/i-app-geo.svg +1 -0
  20. package/design-system/assets/Icone/i-app-immo.svg +1 -0
  21. package/design-system/assets/Icone/i-app-infra.svg +1 -0
  22. package/design-system/assets/Icone/i-app-proxy.svg +1 -0
  23. package/design-system/assets/Icone/i-app-spid.svg +1 -0
  24. package/design-system/assets/Icone/i-app.svg +1 -0
  25. package/design-system/assets/Icone/i-attenzione.svg +1 -0
  26. package/design-system/assets/Icone/i-automazione.svg +1 -0
  27. package/design-system/assets/Icone/i-cerca.svg +1 -0
  28. package/design-system/assets/Icone/i-check.svg +1 -0
  29. package/design-system/assets/Icone/i-chiudi.svg +1 -0
  30. package/design-system/assets/Icone/i-crescita.svg +1 -0
  31. package/design-system/assets/Icone/i-direzione.svg +1 -0
  32. package/design-system/assets/Icone/i-documento.svg +1 -0
  33. package/design-system/assets/Icone/i-filtro.svg +1 -0
  34. package/design-system/assets/Icone/i-freccia.svg +1 -0
  35. package/design-system/assets/Icone/i-guida.svg +1 -0
  36. package/design-system/assets/Icone/i-ia.svg +1 -0
  37. package/design-system/assets/Icone/i-impostazioni.svg +1 -0
  38. package/design-system/assets/Icone/i-info.svg +1 -0
  39. package/design-system/assets/Icone/i-mail.svg +1 -0
  40. package/design-system/assets/Icone/i-notifiche.svg +1 -0
  41. package/design-system/assets/Icone/i-sito.svg +1 -0
  42. package/design-system/assets/Icone/i-sviluppo.svg +1 -0
  43. package/design-system/assets/Marchio/README.md +8 -0
  44. package/design-system/assets/Marchio/favicon.svg +5 -0
  45. package/design-system/assets/Marchio/logo-dark-stretto.png +0 -0
  46. package/design-system/assets/Marchio/logo-light-stretto.png +0 -0
  47. package/design-system/components/Avviso/README.md +8 -0
  48. package/design-system/components/Avviso/preview.html +17 -0
  49. package/design-system/components/Barra/README.md +8 -0
  50. package/design-system/components/Barra/preview.html +24 -0
  51. package/design-system/components/BarraStato/README.md +7 -0
  52. package/design-system/components/BarraStato/preview.html +12 -0
  53. package/design-system/components/Bottone/README.md +12 -0
  54. package/design-system/components/Bottone/preview.html +15 -0
  55. package/design-system/components/Campo/README.md +9 -0
  56. package/design-system/components/Campo/preview.html +20 -0
  57. package/design-system/components/Card/README.md +9 -0
  58. package/design-system/components/Card/preview.html +13 -0
  59. package/design-system/components/Cover/preview.html +50 -0
  60. package/design-system/components/Dialog/README.md +8 -0
  61. package/design-system/components/Dialog/preview.html +12 -0
  62. package/design-system/components/Etichetta/README.md +8 -0
  63. package/design-system/components/Etichetta/preview.html +12 -0
  64. package/design-system/components/Launcher/README.md +9 -0
  65. package/design-system/components/Launcher/preview.html +12 -0
  66. package/design-system/components/Lettura/README.md +8 -0
  67. package/design-system/components/Lettura/preview.html +12 -0
  68. package/design-system/components/Menu/README.md +9 -0
  69. package/design-system/components/Menu/preview.html +17 -0
  70. package/design-system/components/Tabella/README.md +9 -0
  71. package/design-system/components/Tabella/preview.html +16 -0
  72. package/design-system/components/Targa/README.md +7 -0
  73. package/design-system/components/Targa/preview.html +12 -0
  74. package/design-system/components/Tessera/README.md +9 -0
  75. package/design-system/components/Tessera/preview.html +12 -0
  76. package/design-system/components/Toast/README.md +7 -0
  77. package/design-system/components/Toast/preview.html +12 -0
  78. package/design-system/components/Vuoto/README.md +7 -0
  79. package/design-system/components/Vuoto/preview.html +12 -0
  80. package/design-system/components/bundle.css +238 -0
  81. package/design-system/design-system.json +361 -0
  82. package/design-system/tokens.css +102 -0
  83. package/design-system/tokens.json +111 -0
  84. package/design-system/vue/SfIcona.vue +17 -0
  85. package/design-system/vue/SfTessera.vue +20 -0
  86. package/design-system/vue/icons.ts +32 -0
  87. package/nuxt.config.ts +36 -0
  88. package/package.json +45 -0
package/nuxt.config.ts ADDED
@@ -0,0 +1,36 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { fileURLToPath } from 'node:url';
3
+
4
+ const here = (path: string): string => fileURLToPath(new URL(path, import.meta.url));
5
+ const { version } = JSON.parse(readFileSync(here('./package.json'), 'utf8')) as { version: string };
6
+
7
+ // The layer: design system (tokens + sf- CSS + Vue primitives) and the shell.
8
+ // The host app sets `runtimeConfig.public.foundationApp` to its registry id;
9
+ // NUXT_PUBLIC_FOUNDATION_APP overrides it at runtime.
10
+ export default defineNuxtConfig({
11
+ app: {
12
+ head: {
13
+ link: [{ rel: 'icon', type: 'image/svg+xml', href: '/_foundation/favicon.svg' }],
14
+ },
15
+ },
16
+ components: [
17
+ { path: here('./design-system/vue'), pathPrefix: false },
18
+ { path: here('./app/components'), pathPrefix: false },
19
+ ],
20
+ css: [
21
+ here('./design-system/tokens.css'),
22
+ here('./design-system/components/bundle.css'),
23
+ here('./app/assets/shell.css'),
24
+ ],
25
+ nitro: {
26
+ publicAssets: [
27
+ { baseURL: '/_foundation', dir: here('./design-system/assets/Marchio'), maxAge: 86400 },
28
+ ],
29
+ },
30
+ runtimeConfig: {
31
+ public: {
32
+ foundationApp: '',
33
+ foundationVersion: version,
34
+ },
35
+ },
36
+ });
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@seta-labs/nuxt-foundation",
3
+ "version": "0.0.0",
4
+ "description": "Seta Foundation: the Nuxt layer every internal Seta panel extends — design system mirror (tokens, sf- components, icons, brand) plus the shared shell (bar, app launcher, side menu, status bar)",
5
+ "license": "UNLICENSED",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Seta-Labs/node-common.git",
9
+ "directory": "packages/nuxt-foundation"
10
+ },
11
+ "type": "module",
12
+ "main": "./nuxt.config.ts",
13
+ "exports": {
14
+ ".": "./nuxt.config.ts",
15
+ "./apps": "./app/apps.ts",
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "app",
20
+ "design-system",
21
+ "app.config.ts",
22
+ "nuxt.config.ts"
23
+ ],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "prepare": "nuxi prepare .playground",
29
+ "sync:design-system": "node scripts/sync-design-system.mjs",
30
+ "test": "vitest run",
31
+ "typecheck": "nuxi typecheck .playground"
32
+ },
33
+ "peerDependencies": {
34
+ "nuxt": "^4.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@nuxt/eslint": "^1.17.0",
38
+ "nuxt": "^4.5.2",
39
+ "typescript": "^5.9.3",
40
+ "vitest": "^4.1.9",
41
+ "vue": "^3.5.43",
42
+ "vue-router": "^5.2.0",
43
+ "vue-tsc": "^3.3.11"
44
+ }
45
+ }