@sbc-connect/nuxt-base 0.1.10 → 0.1.12

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,23 @@
1
1
  # @sbc-connect/nuxt-base
2
2
 
3
+ ## 0.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#50](https://github.com/bcgov/connect-nuxt/pull/50) [`19e3a00`](https://github.com/bcgov/connect-nuxt/commit/19e3a00a8350f8f02f674d10e1d572c909ad90c5) Thanks [@deetz99](https://github.com/deetz99)! - Minor CSS updates
8
+
9
+ - update footer link divider colour
10
+ - update formfield help/error placeholder spacer
11
+ - fix fieldset orientation
12
+
13
+ issue: bcgov/entity#30434
14
+
15
+ ## 0.1.11
16
+
17
+ ### Patch Changes
18
+
19
+ - [#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
20
+
3
21
  ## 0.1.10
4
22
 
5
23
  ### 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: {
@@ -65,7 +65,7 @@ const appVersions = computed<string[]>(() => {
65
65
  :class="[
66
66
  'flex-col gap-2 border-r-0 pr-2 last:mr-0',
67
67
  'last:border-r-0 sm:mr-2 sm:inline-block sm:flex-none',
68
- 'sm:border-r sm:first:ml-2 border-line',
68
+ 'sm:border-r sm:first:ml-2 border-line-muted',
69
69
  ]"
70
70
  >
71
71
  <NuxtLink
@@ -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="&nbsp;"
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="&nbsp;"
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
  }
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.10",
4
+ "version": "0.1.12",
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",
27
26
  "@sbc-connect/playwright-config": "0.0.7",
28
- "@sbc-connect/vitest-config": "0.0.6"
27
+ "@sbc-connect/vitest-config": "0.0.6",
28
+ "@sbc-connect/eslint-config": "0.0.7"
29
29
  },
30
30
  "scripts": {
31
31
  "preinstall": "npx only-allow pnpm",