@sbc-connect/nuxt-base 0.1.27 → 0.1.29

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,17 @@
1
1
  # @sbc-connect/nuxt-base
2
2
 
3
+ ## 0.1.29
4
+
5
+ ### Patch Changes
6
+
7
+ - [#95](https://github.com/bcgov/connect-nuxt/pull/95) [`a0724ac`](https://github.com/bcgov/connect-nuxt/commit/a0724ac5fdf44296e822942b0eea6be3bb313fcb) Thanks [@kialj876](https://github.com/kialj876)! - Add firebase.json for CI build, update examples sidebar
8
+
9
+ ## 0.1.28
10
+
11
+ ### Patch Changes
12
+
13
+ - [#90](https://github.com/bcgov/connect-nuxt/pull/90) [`b66923e`](https://github.com/bcgov/connect-nuxt/commit/b66923e94a2c8a7aa936b7e371e727be73d90ea7) Thanks [@kialj876](https://github.com/kialj876)! - Base tombstone - bug fix
14
+
3
15
  ## 0.1.27
4
16
 
5
17
  ### Patch Changes
package/app/app.config.ts CHANGED
@@ -80,6 +80,9 @@ export default defineAppConfig({
80
80
  class: 'ring ring-inset ring-primary text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-primary'
81
81
  }
82
82
  ],
83
+ slots: {
84
+ base: 'cursor-pointer'
85
+ },
83
86
  variants: {
84
87
  size: {
85
88
  sm: {
@@ -0,0 +1,38 @@
1
+ <script setup lang="ts">
2
+ import type { NavigationMenuItem } from '@nuxt/ui'
3
+
4
+ defineProps<{ items: NavigationMenuItem[] }>()
5
+
6
+ const showSideMenu = ref(true)
7
+ </script>
8
+
9
+ <template>
10
+ <div class="flex gap-4 my-10 relative">
11
+ <UButton
12
+ class="absolute z-1 -top-8"
13
+ color="neutral"
14
+ size="xs"
15
+ :icon="showSideMenu ? 'i-mdi-minus' : 'i-mdi-plus'"
16
+ data-testid="connect-sidebar-toggle-btn"
17
+ @click="showSideMenu = !showSideMenu"
18
+ />
19
+ <ConnectTransitionCollapse>
20
+ <div v-if="showSideMenu">
21
+ <UNavigationMenu
22
+ collapsible
23
+ :items
24
+ orientation="vertical"
25
+ class="text-neutral-highlighted"
26
+ variant="pill"
27
+ :ui="{
28
+ label: 'text-base',
29
+ link: 'cursor-pointer',
30
+ linkLabel: 'text-neutral-highlighted',
31
+ root: 'bg-white rounded p-3',
32
+ }"
33
+ />
34
+ </div>
35
+ </ConnectTransitionCollapse>
36
+ <slot />
37
+ </div>
38
+ </template>
@@ -3,7 +3,7 @@ import type { ButtonProps } from '@nuxt/ui'
3
3
 
4
4
  const props = defineProps<{ stateKey?: string }>()
5
5
 
6
- const { tombstone } = useConnectTombstone(props.stateKey || '')
6
+ const { tombstone } = useConnectTombstone(props.stateKey)
7
7
 
8
8
  async function handleButtonAction(button: ButtonProps, event: MouseEvent) {
9
9
  button.loading = true
@@ -19,7 +19,7 @@ async function handleButtonAction(button: ButtonProps, event: MouseEvent) {
19
19
  </script>
20
20
 
21
21
  <template>
22
- <div class="bg-white py-8 px-2 sm:px-4">
22
+ <div class="bg-white py-8 px-2 sm:px-4" data-testid="connect-tombstone-wrapper">
23
23
  <div class="app-inner-container">
24
24
  <div
25
25
  v-if="tombstone.loading"
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.27",
4
+ "version": "0.1.29",
5
5
  "repository": "github:bcgov/connect-nuxt",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./nuxt.config.ts",