@nuxtseo/design-system 0.1.1 → 0.1.3
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/README.md +83 -17
- package/app/components/container/UiAlert.vue +4 -2
- package/app/components/container/UiErrorState.vue +5 -3
- package/app/components/container/UiSectionHeader.vue +12 -2
- package/app/components/container/UiToast.vue +1 -37
- package/app/components/container/UiToaster.vue +1 -11
- package/app/components/container/UiWidgetState.vue +7 -5
- package/app/components/data/UiDataList.vue +6 -4
- package/app/components/data/UiMetricLabel.vue +3 -1
- package/app/components/data/UiStat.vue +1 -60
- package/app/components/data/UiStats.vue +1 -1
- package/app/components/data/UiTable.vue +16 -52
- package/app/components/data/UiTableTd.vue +9 -1
- package/app/components/data/UiTableTh.vue +10 -2
- package/app/components/data/cells/UiTableHeaderCell.vue +1 -1
- package/app/components/element/UiAtmosphere.vue +22 -4
- package/app/components/element/UiConfirmDialog.vue +54 -7
- package/app/components/element/UiOnboardingAnswers.vue +78 -43
- package/app/components/element/UiSkeleton.vue +50 -1
- package/app/components/element/UiTooltip.vue +7 -2
- package/app/components/element/UiTrend.vue +16 -8
- package/app/composables/design-system-config.ts +29 -0
- package/app/composables/useConfirm.ts +31 -3
- package/app/shared/error-state.ts +13 -12
- package/app/shared/failure-copy.ts +53 -0
- package/app/shared/stat.ts +65 -0
- package/app/shared/table.ts +74 -1
- package/app/shared/toast.ts +52 -0
- package/app/shared/widget-failure.ts +3 -2
- package/build/design-system.ts +48 -12
- package/css/global.css +46 -9
- package/nuxt.config.ts +2 -20
- package/package.json +6 -5
- package/build/fonts.ts +0 -39
- package/public/fonts/README.md +0 -33
- package/public/fonts/fira-code-OFL.txt +0 -93
- package/public/fonts/fira-code-var-latin.woff2 +0 -0
- package/public/fonts/hubot-sans-OFL.txt +0 -93
- package/public/fonts/hubot-sans-var-latin.woff2 +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtseo/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"description": "Nuxt SEO design system layer: UI primitives, tokens,
|
|
4
|
+
"version": "0.1.3",
|
|
5
|
+
"description": "Nuxt SEO design system layer: UI primitives, tokens, motion, and chart helpers. Extend it from a Nuxt app.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://nuxtseo.com",
|
|
8
8
|
"repository": {
|
|
@@ -37,13 +37,14 @@
|
|
|
37
37
|
"build",
|
|
38
38
|
"css",
|
|
39
39
|
"nuxt.config.ts",
|
|
40
|
-
"public",
|
|
41
40
|
"server",
|
|
42
41
|
"shared",
|
|
43
42
|
"types"
|
|
44
43
|
],
|
|
45
44
|
"peerDependencies": {
|
|
45
|
+
"@nuxt/scripts": "^1.3.10 || ^2.0.0-beta.14",
|
|
46
46
|
"@nuxt/ui": "^4.11.1",
|
|
47
|
+
"@vueuse/core": "^14.0.0 || ^15.0.0",
|
|
47
48
|
"motion-v": "^2.4.2",
|
|
48
49
|
"nuxt": "^4.6.0",
|
|
49
50
|
"tailwindcss": "^4.3.0",
|
|
@@ -62,19 +63,19 @@
|
|
|
62
63
|
"@nuxt/fonts": "^1.0.1",
|
|
63
64
|
"@nuxt/icon": "^2.5.1",
|
|
64
65
|
"@nuxt/image": "^2.1.0",
|
|
65
|
-
"@nuxt/scripts": "^2.0.0-beta.14",
|
|
66
66
|
"@tanstack/table-core": "^9.2.4",
|
|
67
67
|
"@tanstack/vue-table": "^9.2.4",
|
|
68
68
|
"@unovis/ts": "^1.6.7",
|
|
69
69
|
"@unovis/vue": "^1.6.7",
|
|
70
|
-
"@vueuse/core": "^14.0.0",
|
|
71
70
|
"nuxtseo-shared": "^6.0.2",
|
|
72
71
|
"pathe": "^2.0.3",
|
|
73
72
|
"rangi": "^2.2.0",
|
|
74
73
|
"reka-ui": "^2.10.4"
|
|
75
74
|
},
|
|
76
75
|
"devDependencies": {
|
|
76
|
+
"@nuxt/scripts": "^2.0.0-beta.14",
|
|
77
77
|
"@nuxt/ui": "^4.11.1",
|
|
78
|
+
"@vueuse/core": "^14.4.0",
|
|
78
79
|
"ai": "^7.0.122",
|
|
79
80
|
"motion-v": "2.4.2",
|
|
80
81
|
"nuxt": "4.6.1",
|
package/build/fonts.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { FontFamilyManualOverride } from '@nuxt/fonts'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Nuxt SEO's own faces, self-hosted from this layer's `public/fonts/`. Builds
|
|
5
|
-
* never download them from a provider, so an app build does not depend on
|
|
6
|
-
* Google Fonts availability. Hubot Sans keeps its variable weight and width
|
|
7
|
-
* axes for the design tokens.
|
|
8
|
-
*
|
|
9
|
-
* A site loads them only when it sets `designSystem: { fonts: true }`. A
|
|
10
|
-
* global family is preloaded on every page, so a site with its own type stack
|
|
11
|
-
* would otherwise pay for two faces it never renders.
|
|
12
|
-
*/
|
|
13
|
-
export const NUXT_SEO_FONT_FAMILIES: readonly FontFamilyManualOverride[] = [
|
|
14
|
-
{
|
|
15
|
-
name: 'Hubot Sans',
|
|
16
|
-
src: '/fonts/hubot-sans-var-latin.woff2',
|
|
17
|
-
weight: '200 900',
|
|
18
|
-
stretch: '75% 125%',
|
|
19
|
-
style: 'normal',
|
|
20
|
-
global: true,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Fira Code',
|
|
24
|
-
src: '/fonts/fira-code-var-latin.woff2',
|
|
25
|
-
weight: '400 500',
|
|
26
|
-
style: 'normal',
|
|
27
|
-
global: true,
|
|
28
|
-
},
|
|
29
|
-
]
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The font families @nuxt/fonts should register. With `enabled`, Nuxt SEO's
|
|
33
|
-
* faces come first and the app's own families follow; without it, the app's
|
|
34
|
-
* families pass through unchanged.
|
|
35
|
-
*/
|
|
36
|
-
export function withNuxtSeoFonts<T>(families: readonly T[] | undefined, enabled: boolean | undefined): Array<T | FontFamilyManualOverride> {
|
|
37
|
-
const own = families ?? []
|
|
38
|
-
return enabled === true ? [...NUXT_SEO_FONT_FAMILIES, ...own] : [...own]
|
|
39
|
-
}
|
package/public/fonts/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Build fonts
|
|
2
|
-
|
|
3
|
-
The design system owns these font files. Nuxt copies them into every app that
|
|
4
|
-
extends this layer. Builds never download fonts from an external provider.
|
|
5
|
-
`build/fonts.ts` registers them only for an app that sets
|
|
6
|
-
`designSystem: { fonts: true }`, as `layers/brand` does for Nuxt SEO.
|
|
7
|
-
|
|
8
|
-
The Hubot Sans file is a latin/latin-ext subset of the official v1.0.1 release
|
|
9
|
-
face (`HubotSans[slnt,wdth,wght].woff2`). It keeps the weight axis (200 to 900)
|
|
10
|
-
and the width axis (75% to 125%) for the design tokens. The slant axis is
|
|
11
|
-
pinned to 0 and dropped, and glyphs outside latin and latin-ext are removed,
|
|
12
|
-
so the transfer payload stays under 100KB
|
|
13
|
-
(`tests/design-system-hubot-font-subset.feature.test.ts` holds this contract).
|
|
14
|
-
|
|
15
|
-
To regenerate it, run a HarfBuzz subset over the release face with
|
|
16
|
-
`variationAxes: { wght: { min: 200, max: 900 }, wdth: { min: 75, max: 125 }, slnt: 0 }`
|
|
17
|
-
and the Google Fonts latin plus latin-ext unicode ranges.
|
|
18
|
-
|
|
19
|
-
The subset is a Modified Version under the OFL, so it must not present the
|
|
20
|
-
Reserved Font Name "Hubot". Override name records 1, 4, and 6 (plus 16 when
|
|
21
|
-
present) to a family name without "Hubot", for example "Nuxt SEO Sans" with
|
|
22
|
-
PostScript name "NuxtSEOSans-ExtraLight". Keep the copyright record verbatim;
|
|
23
|
-
it carries the reservation notice. The subset test holds this contract.
|
|
24
|
-
|
|
25
|
-
The Fira Code file contains the Latin subset. Nuxt exposes weights 400 through
|
|
26
|
-
500 and the normal style.
|
|
27
|
-
|
|
28
|
-
The alert email shell also uses Hubot Sans from the stable URL
|
|
29
|
-
`https://nuxtseo.com/fonts/hubot-sans-var-latin.woff2`.
|
|
30
|
-
|
|
31
|
-
Both fonts use the SIL Open Font License 1.1. Keep each font with its matching
|
|
32
|
-
license file. Hubot Sans release source:
|
|
33
|
-
`https://github.com/github/hubot-sans/releases/tag/v1.0.1`.
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode)
|
|
2
|
-
|
|
3
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
This license is copied below, and is also available with a FAQ at:
|
|
5
|
-
https://openfontlicense.org
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-----------------------------------------------------------
|
|
9
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
-
-----------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
PREAMBLE
|
|
13
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
-
development of collaborative font projects, to support the font creation
|
|
15
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
-
open framework in which fonts may be shared and improved in partnership
|
|
17
|
-
with others.
|
|
18
|
-
|
|
19
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
-
redistributed and/or sold with any software provided that any reserved
|
|
23
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
-
however, cannot be released under any other type of license. The
|
|
25
|
-
requirement for fonts to remain under this license does not apply
|
|
26
|
-
to any document created using the fonts or their derivatives.
|
|
27
|
-
|
|
28
|
-
DEFINITIONS
|
|
29
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
-
include source files, build scripts and documentation.
|
|
32
|
-
|
|
33
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
-
copyright statement(s).
|
|
35
|
-
|
|
36
|
-
"Original Version" refers to the collection of Font Software components as
|
|
37
|
-
distributed by the Copyright Holder(s).
|
|
38
|
-
|
|
39
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
-
new environment.
|
|
43
|
-
|
|
44
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
-
writer or other person who contributed to the Font Software.
|
|
46
|
-
|
|
47
|
-
PERMISSION & CONDITIONS
|
|
48
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
-
Software, subject to the following conditions:
|
|
52
|
-
|
|
53
|
-
1) Neither the Font Software nor any of its individual components,
|
|
54
|
-
in Original or Modified Versions, may be sold by itself.
|
|
55
|
-
|
|
56
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
-
redistributed and/or sold with any software, provided that each copy
|
|
58
|
-
contains the above copyright notice and this license. These can be
|
|
59
|
-
included either as stand-alone text files, human-readable headers or
|
|
60
|
-
in the appropriate machine-readable metadata fields within text or
|
|
61
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
-
|
|
63
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
-
presented to the users.
|
|
67
|
-
|
|
68
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
-
Software shall not be used to promote, endorse or advertise any
|
|
70
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
-
permission.
|
|
73
|
-
|
|
74
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
-
must be distributed entirely under this license, and must not be
|
|
76
|
-
distributed under any other license. The requirement for fonts to
|
|
77
|
-
remain under this license does not apply to any document created
|
|
78
|
-
using the Font Software.
|
|
79
|
-
|
|
80
|
-
TERMINATION
|
|
81
|
-
This license becomes null and void if any of the above conditions are
|
|
82
|
-
not met.
|
|
83
|
-
|
|
84
|
-
DISCLAIMER
|
|
85
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
Copyright 2021 The Hubot Sans Project Authors (https://github.com/github/hubot-sans), with Reserved Font Name "Hubot"
|
|
2
|
-
|
|
3
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
This license is copied below, and is also available with a FAQ at:
|
|
5
|
-
https://openfontlicense.org
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-----------------------------------------------------------
|
|
9
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
-
-----------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
PREAMBLE
|
|
13
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
-
development of collaborative font projects, to support the font creation
|
|
15
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
-
open framework in which fonts may be shared and improved in partnership
|
|
17
|
-
with others.
|
|
18
|
-
|
|
19
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
-
redistributed and/or sold with any software provided that any reserved
|
|
23
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
-
however, cannot be released under any other type of license. The
|
|
25
|
-
requirement for fonts to remain under this license does not apply
|
|
26
|
-
to any document created using the fonts or their derivatives.
|
|
27
|
-
|
|
28
|
-
DEFINITIONS
|
|
29
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
-
include source files, build scripts and documentation.
|
|
32
|
-
|
|
33
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
-
copyright statement(s).
|
|
35
|
-
|
|
36
|
-
"Original Version" refers to the collection of Font Software components as
|
|
37
|
-
distributed by the Copyright Holder(s).
|
|
38
|
-
|
|
39
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
-
new environment.
|
|
43
|
-
|
|
44
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
-
writer or other person who contributed to the Font Software.
|
|
46
|
-
|
|
47
|
-
PERMISSION & CONDITIONS
|
|
48
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
-
Software, subject to the following conditions:
|
|
52
|
-
|
|
53
|
-
1) Neither the Font Software nor any of its individual components,
|
|
54
|
-
in Original or Modified Versions, may be sold by itself.
|
|
55
|
-
|
|
56
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
-
redistributed and/or sold with any software, provided that each copy
|
|
58
|
-
contains the above copyright notice and this license. These can be
|
|
59
|
-
included either as stand-alone text files, human-readable headers or
|
|
60
|
-
in the appropriate machine-readable metadata fields within text or
|
|
61
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
-
|
|
63
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
-
presented to the users.
|
|
67
|
-
|
|
68
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
-
Software shall not be used to promote, endorse or advertise any
|
|
70
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
-
permission.
|
|
73
|
-
|
|
74
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
-
must be distributed entirely under this license, and must not be
|
|
76
|
-
distributed under any other license. The requirement for fonts to
|
|
77
|
-
remain under this license does not apply to any document created
|
|
78
|
-
using the Font Software.
|
|
79
|
-
|
|
80
|
-
TERMINATION
|
|
81
|
-
This license becomes null and void if any of the above conditions are
|
|
82
|
-
not met.
|
|
83
|
-
|
|
84
|
-
DISCLAIMER
|
|
85
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|