@nuxt-customer-portal/ui 0.10.2 → 0.10.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/CHANGELOG.md +7 -0
- package/app/app.config.ts +18 -1
- package/package.json +2 -2
- package/portal.manifest.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @nuxt-customer-portal/ui
|
|
2
2
|
|
|
3
|
+
## 0.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0e54ff2: Make link buttons easier to recognize with full-opacity colors, subtle hover backgrounds, and stronger pressed backgrounds without adding underlines. Preserve native keyboard focus indicators, disabled states, control padding, and rounded corners.
|
|
8
|
+
- @nuxt-customer-portal/core@0.10.3
|
|
9
|
+
|
|
3
10
|
## 0.10.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/app/app.config.ts
CHANGED
|
@@ -2,6 +2,18 @@ const surface = 'portal-surface bg-(--portal-surface) text-(--portal-surface-tex
|
|
|
2
2
|
const dropdownContent = `${surface} rounded-lg ring-1 ring-default shadow-md`
|
|
3
3
|
const selectItem =
|
|
4
4
|
'data-highlighted:not-data-disabled:before:bg-elevated data-[state=checked]:before:bg-primary/10 data-[state=checked]:text-primary data-[state=checked]:font-medium'
|
|
5
|
+
const linkInteraction =
|
|
6
|
+
'hover:disabled:bg-transparent hover:aria-disabled:bg-transparent active:disabled:bg-transparent active:aria-disabled:bg-transparent'
|
|
7
|
+
const linkColors = {
|
|
8
|
+
primary: 'hover:text-primary active:text-primary hover:bg-primary/10 active:bg-primary/20',
|
|
9
|
+
secondary: 'hover:text-secondary active:text-secondary hover:bg-secondary/10 active:bg-secondary/20',
|
|
10
|
+
success: 'hover:text-success active:text-success hover:bg-success/10 active:bg-success/20',
|
|
11
|
+
info: 'hover:text-info active:text-info hover:bg-info/10 active:bg-info/20',
|
|
12
|
+
warning: 'hover:text-warning active:text-warning hover:bg-warning/10 active:bg-warning/20',
|
|
13
|
+
error: 'hover:text-error active:text-error hover:bg-error/10 active:bg-error/20',
|
|
14
|
+
neutral:
|
|
15
|
+
'hover:text-highlighted active:text-highlighted hover:bg-(--portal-surface-hover) active:bg-(--portal-surface-active)'
|
|
16
|
+
}
|
|
5
17
|
const field = {
|
|
6
18
|
slots: { base: 'rounded-lg' },
|
|
7
19
|
variants: {
|
|
@@ -34,7 +46,12 @@ export default defineAppConfig({
|
|
|
34
46
|
variant: 'outline',
|
|
35
47
|
class:
|
|
36
48
|
'bg-transparent hover:bg-(--portal-surface-hover) active:bg-(--portal-surface-active) disabled:bg-transparent aria-disabled:bg-transparent'
|
|
37
|
-
}
|
|
49
|
+
},
|
|
50
|
+
...Object.entries(linkColors).map(([color, states]) => ({
|
|
51
|
+
color,
|
|
52
|
+
variant: 'link',
|
|
53
|
+
class: `${linkInteraction} ${states}`
|
|
54
|
+
}))
|
|
38
55
|
]
|
|
39
56
|
},
|
|
40
57
|
card: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt-customer-portal/ui",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://nuxt-customer-portal.com",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"remark-parse": "^11.0.0",
|
|
40
40
|
"unified": "^11.0.5",
|
|
41
41
|
"zod": "^4.4.3",
|
|
42
|
-
"@nuxt-customer-portal/core": "^0.10.
|
|
42
|
+
"@nuxt-customer-portal/core": "^0.10.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"nuxt": "^4.5.1",
|