@sbc-connect/nuxt-base 0.1.10 → 0.1.11
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#47](https://github.com/bcgov/connect-nuxt/pull/47) [`9edf5ab`](https://github.com/bcgov/connect-nuxt/commit/9edf5ab6c4c7598f661e8ea713e6a60b390105c1) Thanks [@deetz99](https://github.com/deetz99)! - Add zod and address validations. issue: bcgov/entity#29338
|
|
8
|
+
|
|
3
9
|
## 0.1.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/app/app.config.ts
CHANGED
|
@@ -236,7 +236,7 @@ export default defineAppConfig({
|
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
variant: {
|
|
239
|
-
bcGov: 'ring-0 ring-transparent peer rounded-t-sm rounded-b-none bg-shade shadow-input focus:ring-0 focus:outline-none focus:shadow-input-focus text-neutral-highlighted'
|
|
239
|
+
bcGov: 'ring-0 ring-transparent peer rounded-t-sm rounded-b-none bg-shade shadow-input focus:ring-0 focus:outline-none focus:shadow-input-focus text-neutral-highlighted aria-invalid:shadow-input-error aria-invalid:focus:shadow-input-error aria-invalid:ring-0'
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
242
|
defaultVariants: {
|
|
@@ -285,7 +285,7 @@ export default defineAppConfig({
|
|
|
285
285
|
variants: {
|
|
286
286
|
size: {
|
|
287
287
|
bcGovLg: {
|
|
288
|
-
base: 'px-2.5 pb-1.5 pt-5 text-base gap-1.5',
|
|
288
|
+
base: 'px-2.5 pb-1.5 pt-5 text-base gap-1.5 resize-none',
|
|
289
289
|
leading: 'ps-2.5',
|
|
290
290
|
trailing: 'pe-2.5',
|
|
291
291
|
leadingIcon: 'size-5',
|
|
@@ -294,7 +294,7 @@ export default defineAppConfig({
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
variant: {
|
|
297
|
-
bcGov: 'peer rounded-t-sm rounded-b-none bg-shade focus:ring-0 focus:outline-none shadow-input focus:shadow-input-focus text-neutral-highlighted'
|
|
297
|
+
bcGov: 'peer rounded-t-sm rounded-b-none bg-shade focus:ring-0 focus:outline-none shadow-input focus:shadow-input-focus text-neutral-highlighted aria-invalid:shadow-input-error aria-invalid:focus:shadow-input-error aria-invalid:ring-0'
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
defaultVariants: {
|
|
@@ -5,7 +5,6 @@ defineProps<{
|
|
|
5
5
|
id: string
|
|
6
6
|
label: string
|
|
7
7
|
mask?: string
|
|
8
|
-
invalid?: boolean
|
|
9
8
|
}>()
|
|
10
9
|
</script>
|
|
11
10
|
|
|
@@ -17,14 +16,10 @@ defineProps<{
|
|
|
17
16
|
:data-testid="id"
|
|
18
17
|
placeholder=" "
|
|
19
18
|
class="w-full grow"
|
|
20
|
-
:ui="{
|
|
21
|
-
base: invalid ? 'ring-0 shadow-input-error focus:shadow-input-error' : '',
|
|
22
|
-
}"
|
|
23
19
|
>
|
|
24
20
|
<label
|
|
25
21
|
:for="id"
|
|
26
22
|
class="floating-label-input"
|
|
27
|
-
:class="invalid ? 'text-error' : ''"
|
|
28
23
|
>
|
|
29
24
|
{{ label }}
|
|
30
25
|
</label>
|
|
@@ -4,7 +4,6 @@ const model = defineModel<string>({ required: true })
|
|
|
4
4
|
defineProps<{
|
|
5
5
|
id: string
|
|
6
6
|
label: string
|
|
7
|
-
invalid?: boolean
|
|
8
7
|
}>()
|
|
9
8
|
</script>
|
|
10
9
|
|
|
@@ -15,13 +14,9 @@ defineProps<{
|
|
|
15
14
|
:data-testid="id"
|
|
16
15
|
placeholder=" "
|
|
17
16
|
class="w-full grow"
|
|
18
|
-
:ui="{
|
|
19
|
-
base: invalid ? 'ring-0 shadow-input-error focus:shadow-input-error resize-none' : 'resize-none',
|
|
20
|
-
}"
|
|
21
17
|
>
|
|
22
18
|
<label
|
|
23
19
|
class="floating-label-textarea bg-shade w-[96%] flex-1 pt-1 -mt-1"
|
|
24
|
-
:class="invalid ? 'text-error' : ''"
|
|
25
20
|
:for="id"
|
|
26
21
|
>
|
|
27
22
|
{{ label }}
|
|
@@ -268,10 +268,10 @@ body {
|
|
|
268
268
|
|
|
269
269
|
/* floating labels */
|
|
270
270
|
.floating-label-input {
|
|
271
|
-
@apply pointer-events-none absolute left-0 top-3 text-neutral-highlighted transition-all motion-reduce:transition-none duration-200 text-xs font-medium px-2.5 peer-focus:top-3 peer-focus:text-xs peer-placeholder-shown:text-sm peer-placeholder-shown:top-1/2 -translate-y-1/2 peer-focus:text-primary;
|
|
271
|
+
@apply pointer-events-none absolute left-0 top-3 text-neutral-highlighted transition-all motion-reduce:transition-none duration-200 text-xs font-medium px-2.5 peer-focus:top-3 peer-focus:text-xs peer-placeholder-shown:text-sm peer-placeholder-shown:top-1/2 -translate-y-1/2 peer-focus:text-primary peer-aria-invalid:text-error;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.floating-label-textarea {
|
|
275
|
-
@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;
|
|
275
|
+
@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
276
|
}
|
|
277
277
|
}
|