@sbc-connect/nuxt-base 0.7.2 → 0.7.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sbc-connect/nuxt-base
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#155](https://github.com/bcgov/connect-nuxt/pull/155) [`e4ad236`](https://github.com/bcgov/connect-nuxt/commit/e4ad2360c255173e20b7f6d384de2a9313ce747d) Thanks [@deetz99](https://github.com/deetz99)! - Custom CSS classes for x and xy default padding and left error border for container elements.
8
+
3
9
  ## 0.7.2
4
10
 
5
11
  ### Patch Changes
@@ -90,9 +90,10 @@
90
90
  --marker-upper-alpha: upper-alpha;
91
91
 
92
92
  /* box shadow */
93
- --shadow-input: inset 0 -1px 0 0px var(--ui-neutral);
94
- --shadow-input-focus: inset 0 -2px 0 0px var(--ui-primary);
95
- --shadow-input-error: inset 0 -2px 0 0px var(--ui-error);
93
+ /* bottom neutral/focused/error border for input elements */
94
+ --shadow-input: inset 0 -1px 0 0 var(--ui-neutral);
95
+ --shadow-input-focus: inset 0 -2px 0 0 var(--ui-primary);
96
+ --shadow-input-error: inset 0 -2px 0 0 var(--ui-error);
96
97
 
97
98
  /* GRAY */
98
99
  --color-gray-50: #f8f9fa;
@@ -274,4 +275,29 @@ body {
274
275
  .floating-label-textarea {
275
276
  @apply pointer-events-none absolute left-0 top-1 text-neutral 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
  }
278
+
279
+ /* Standard container padding */
280
+ .padding-x-default {
281
+ @apply px-4 sm:px-7.5
282
+ }
283
+
284
+ .padding-xy-default {
285
+ @apply py-6 px-4 sm:py-10 sm:px-7.5
286
+ }
287
+
288
+ /* left error border for section elements */
289
+ /* Psuedo element required to be visible so slot content does not cover it */
290
+ .shadow-section-error {
291
+ position: relative;
292
+ }
293
+
294
+ .shadow-section-error::before {
295
+ content: "";
296
+ position: absolute;
297
+ inset: 0 auto 0 0;
298
+ width: 3px;
299
+ background-color: var(--ui-error);
300
+ pointer-events: none;
301
+ z-index: 1;
302
+ }
277
303
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-base",
3
3
  "type": "module",
4
- "version": "0.7.2",
4
+ "version": "0.7.3",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",
@@ -26,8 +26,8 @@
26
26
  "typescript": "5.9.3",
27
27
  "vue-tsc": "3.2.5",
28
28
  "@sbc-connect/eslint-config": "0.0.8",
29
- "@sbc-connect/playwright-config": "0.1.1",
30
- "@sbc-connect/vitest-config": "0.1.1"
29
+ "@sbc-connect/vitest-config": "0.1.1",
30
+ "@sbc-connect/playwright-config": "0.1.1"
31
31
  },
32
32
  "scripts": {
33
33
  "preinstall": "npx only-allow pnpm",