@sbc-connect/nuxt-base 0.1.12 → 0.1.14
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 +12 -0
- package/app/app.config.ts +54 -0
- package/app/components/Connect/Breadcrumb.vue +2 -2
- package/app/components/Connect/Footer.vue +2 -2
- package/app/components/Connect/Layout/Index.vue +8 -6
- package/app/components/Connect/SystemBanner.vue +2 -2
- package/modules/base-assets/runtime/assets/connect-base-layout.css +1 -1
- package/modules/base-assets/runtime/assets/connect-base-tw.css +21 -9
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#54](https://github.com/bcgov/connect-nuxt/pull/54) [`5d66b92`](https://github.com/bcgov/connect-nuxt/commit/5d66b927121d6144ee7eedb8ed86b64c76e26c7e) Thanks [@deetz99](https://github.com/deetz99)! - Update layout padding, fix text-highlighted css var reference.
|
|
8
|
+
|
|
9
|
+
## 0.1.13
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#52](https://github.com/bcgov/connect-nuxt/pull/52) [`602360a`](https://github.com/bcgov/connect-nuxt/commit/602360a628742ffe8957209bbe38eff1663a0851) Thanks [@deetz99](https://github.com/deetz99)! - Update badge, checkbox and buttonGroup app config defaults
|
|
14
|
+
|
|
3
15
|
## 0.1.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/app/app.config.ts
CHANGED
|
@@ -27,6 +27,16 @@ export default defineAppConfig({
|
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
+
badge: {
|
|
31
|
+
slots: {
|
|
32
|
+
base: 'font-medium inline-flex items-center',
|
|
33
|
+
label: 'truncate font-bold',
|
|
34
|
+
leadingIcon: 'shrink-0',
|
|
35
|
+
leadingAvatar: 'shrink-0',
|
|
36
|
+
leadingAvatarSize: '',
|
|
37
|
+
trailingIcon: 'shrink-0'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
30
40
|
breadcrumb: {
|
|
31
41
|
slots: {
|
|
32
42
|
separatorIcon: 'text-secondary'
|
|
@@ -107,11 +117,55 @@ export default defineAppConfig({
|
|
|
107
117
|
size: 'lg'
|
|
108
118
|
}
|
|
109
119
|
},
|
|
120
|
+
buttonGroup: {
|
|
121
|
+
base: 'relative',
|
|
122
|
+
variants: {
|
|
123
|
+
orientation: {
|
|
124
|
+
horizontal: 'inline-flex -space-x-px divide-x divide-line-muted',
|
|
125
|
+
vertical: 'flex flex-col -space-y-px'
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
110
129
|
card: {
|
|
111
130
|
slots: {
|
|
112
131
|
root: 'rounded-md'
|
|
113
132
|
}
|
|
114
133
|
},
|
|
134
|
+
checkbox: {
|
|
135
|
+
slots: {
|
|
136
|
+
root: 'relative flex items-center group',
|
|
137
|
+
base: 'rounded-xs relative shrink-0 flex overflow-visible items-center justify-center ring-2 ring-neutral before:absolute before:-inset-2.75 before:flex before:items-center before:justify-center group-hover:before:bg-[#C7C7C7]/80 before:rounded-full cursor-pointer group-active:before:bg-[#454545]/40 has-data-[state=checked]:hover:before:bg-[#7AA1D2]/40 has-data-[state=checked]:active:before:bg-[#155fb7]/40 before:transition-colors',
|
|
138
|
+
label: 'cursor-pointer text-sm'
|
|
139
|
+
},
|
|
140
|
+
variants: {
|
|
141
|
+
variant: {
|
|
142
|
+
card: {
|
|
143
|
+
root: 'bg-shade border border-line-muted rounded-sm'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
indicator: {
|
|
147
|
+
start: {
|
|
148
|
+
wrapper: 'ms-4'
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
compoundVariants: [
|
|
153
|
+
{
|
|
154
|
+
size: 'lg',
|
|
155
|
+
variant: 'card',
|
|
156
|
+
class: {
|
|
157
|
+
root: 'p-4.25'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
color: 'primary',
|
|
162
|
+
variant: 'card',
|
|
163
|
+
class: {
|
|
164
|
+
root: 'has-data-[state=checked]:border-line-muted cursor-pointer'
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
115
169
|
dropdownMenu: {
|
|
116
170
|
slots: {
|
|
117
171
|
content: 'min-w-32 max-h-[75dvh] shadow-lg rounded-sm',
|
|
@@ -39,11 +39,11 @@ function resolveBackHref() {
|
|
|
39
39
|
<div
|
|
40
40
|
v-if="$route.meta.hideBreadcrumbs !== true"
|
|
41
41
|
data-testid="connect-breadcrumb-wrapper"
|
|
42
|
-
class="bg-blue-350"
|
|
42
|
+
class="bg-blue-350 p-2 sm:px-4 py-2"
|
|
43
43
|
>
|
|
44
44
|
<nav
|
|
45
45
|
:aria-label="$t('connect.breadcrumb.arialabel')"
|
|
46
|
-
class="app-inner-container flex items-center
|
|
46
|
+
class="app-inner-container flex items-center gap-3"
|
|
47
47
|
>
|
|
48
48
|
<UButton
|
|
49
49
|
class="size-[28px] rounded-full px-1 bg-secondary hover:bg-secondary/75"
|
|
@@ -54,9 +54,9 @@ const appVersions = computed<string[]>(() => {
|
|
|
54
54
|
<footer
|
|
55
55
|
id="connect-main-footer"
|
|
56
56
|
data-testid="connect-main-footer"
|
|
57
|
-
class="border-t-2 border-brand-inverted bg-brand"
|
|
57
|
+
class="border-t-2 border-brand-inverted bg-brand p-2 sm:px-4"
|
|
58
58
|
>
|
|
59
|
-
<div class="app-inner-container flex items-center justify-between
|
|
59
|
+
<div class="app-inner-container flex items-center justify-between">
|
|
60
60
|
<nav :aria-label="$t('connect.footer.navLabel')" class="flex grow">
|
|
61
61
|
<ul class="list-none flex-col gap-1 p-0 sm:-ml-2 sm:flex-row sm:flex-wrap">
|
|
62
62
|
<li
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
<slot name="breadcrumb">
|
|
10
10
|
<ConnectBreadcrumb />
|
|
11
11
|
</slot>
|
|
12
|
-
<main class="app-
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
<main class="app-body px-2 sm:px-4">
|
|
13
|
+
<div class="app-inner-container ">
|
|
14
|
+
<slot name="body">
|
|
15
|
+
<div class="grow max-w-full flex flex-col overflow-hidden">
|
|
16
|
+
<slot />
|
|
17
|
+
</div>
|
|
18
|
+
</slot>
|
|
19
|
+
</div>
|
|
18
20
|
</main>
|
|
19
21
|
<slot name="footer">
|
|
20
22
|
<ConnectFooter />
|
|
@@ -18,7 +18,7 @@ onMounted(async () => {
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<div id="connect-system-banner" class="bg-brand-inverted">
|
|
21
|
+
<div id="connect-system-banner" class="bg-brand-inverted px-2 sm:px-4">
|
|
22
22
|
<UAlert
|
|
23
23
|
v-show="!!message && !close"
|
|
24
24
|
class="py-0"
|
|
@@ -26,7 +26,7 @@ onMounted(async () => {
|
|
|
26
26
|
:close="dismissible"
|
|
27
27
|
close-icon="i-mdi-close"
|
|
28
28
|
:ui="{
|
|
29
|
-
root: 'rounded-none bg-brand-inverted
|
|
29
|
+
root: 'rounded-none bg-brand-inverted px-0 sm:px-0 app-inner-container',
|
|
30
30
|
wrapper: 'bg-brand-inverted',
|
|
31
31
|
close: 'mt-2 text-neutral-highlighted',
|
|
32
32
|
}"
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
/* Customize Nuxt UI default tokens */
|
|
7
7
|
/* Follows https://sites.google.com/bcdevexchange.org/designsystem/foundation-styles/colours */
|
|
8
8
|
:root {
|
|
9
|
-
/* Default Text Colours */
|
|
10
|
-
--ui-text-dimmed: var(--
|
|
11
|
-
--ui-text-muted: var(--
|
|
12
|
-
--ui-text-toned: var(--
|
|
13
|
-
--ui-text: var(--ui-
|
|
14
|
-
--ui-text-highlighted: var(--ui-
|
|
9
|
+
/* Nuxt UI Default Text Colours */
|
|
10
|
+
--ui-text-dimmed: var(--color-gray-400);
|
|
11
|
+
--ui-text-muted: var(--color-gray-500);
|
|
12
|
+
--ui-text-toned: var(--color-gray-600);
|
|
13
|
+
--ui-text: var(--ui-neutral);
|
|
14
|
+
--ui-text-highlighted: var(--ui-neutral-highlighted);
|
|
15
15
|
--ui-text-inverted: var(--color-white);
|
|
16
16
|
/* Variant Colours */
|
|
17
17
|
--ui-error: var(--color-red-600);
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
|
|
43
43
|
/* FUTURE: add dark themed colours (currently set to be the same) */
|
|
44
44
|
.dark {
|
|
45
|
-
/* Default Text Colours */
|
|
45
|
+
/* Nuxt UI Default Text Colours */
|
|
46
46
|
--ui-text-dimmed: var(--ui-color-gray-400);
|
|
47
47
|
--ui-text-muted: var(--ui-color-gray-500);
|
|
48
48
|
--ui-text-toned: var(--ui-color-gray-600);
|
|
49
|
-
--ui-text: var(--ui-
|
|
50
|
-
--ui-text-highlighted: var(--ui-
|
|
49
|
+
--ui-text: var(--ui-neutral);
|
|
50
|
+
--ui-text-highlighted: var(--ui-neutral-highlighted);
|
|
51
51
|
--ui-text-inverted: var(--color-white);
|
|
52
52
|
/* Variant Colours */
|
|
53
53
|
--ui-error: var(--color-red-600);
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--ui-radius: 0.1667rem;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
/* Main Theme */
|
|
79
80
|
@theme static {
|
|
80
81
|
/* font */
|
|
81
82
|
--font-sans: 'BCSans', 'Verdana', 'Arial', 'sans-serif';
|
|
@@ -275,3 +276,14 @@ body {
|
|
|
275
276
|
@apply pointer-events-none absolute left-0 top-1 text-neutral-highlighted text-xs font-medium px-2.5 transition-all duration-200 peer-focus:top-1 peer-focus:text-xs peer-placeholder-shown:text-sm peer-placeholder-shown:top-2.5 peer-focus:translate-none peer-focus:text-primary peer-aria-invalid:text-error;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
279
|
+
|
|
280
|
+
/* TODO: maybe delete this */
|
|
281
|
+
/* Extra Utilities */
|
|
282
|
+
/* This should be working out-of-the-box from Nuxt UI but isnt for some reason */
|
|
283
|
+
/* https://ui.nuxt.com/getting-started/theme#neutral */
|
|
284
|
+
/* .text-highlighted {
|
|
285
|
+
color: var(--color-gray-900);
|
|
286
|
+
@variant dark {
|
|
287
|
+
color: var(--color-gray-900);
|
|
288
|
+
}
|
|
289
|
+
} */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.14",
|
|
5
5
|
"repository": "github:bcgov/connect-nuxt",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"nuxt": "^4.0.2",
|
|
24
24
|
"typescript": "^5.8.3",
|
|
25
25
|
"vue-tsc": "^3.0.4",
|
|
26
|
+
"@sbc-connect/eslint-config": "0.0.7",
|
|
26
27
|
"@sbc-connect/playwright-config": "0.0.7",
|
|
27
|
-
"@sbc-connect/vitest-config": "0.0.6"
|
|
28
|
-
"@sbc-connect/eslint-config": "0.0.7"
|
|
28
|
+
"@sbc-connect/vitest-config": "0.0.6"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"preinstall": "npx only-allow pnpm",
|