@cypress-design/vue-docmenu 0.2.2 → 0.4.0

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.
@@ -1,13 +1,14 @@
1
1
  $ yarn build:module && yarn build:types
2
2
  $ yarn vite build
3
3
  $ /home/runner/work/cypress-design/cypress-design/node_modules/.bin/vite build
4
- vite v4.3.9 building for production...
4
+ The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
5
+ vite v5.0.4 building for production...
5
6
  transforming...
6
- ✓ 9 modules transformed.
7
+ ✓ 8 modules transformed.
7
8
  rendering chunks...
8
9
  computing gzip size...
9
- dist/index.es.mjs 7.29 kB │ gzip: 2.56 kB │ map: 292.59 kB
10
- dist/index.umd.js 6.25 kB │ gzip: 2.34 kB │ map: 292.23 kB
11
- ✓ built in 4.31s
10
+ dist/index.es.mjs 6.51 kB │ gzip: 2.08 kB │ map: 4.97 kB
11
+ dist/index.umd.js 5.42 kB │ gzip: 1.83 kB │ map: 4.77 kB
12
+ ✓ built in 3.04s
12
13
  $ yarn vue-tsc --project ./tsconfig.build.json
13
14
  $ /home/runner/work/cypress-design/cypress-design/node_modules/.bin/vue-tsc --project ./tsconfig.build.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @cypress-design/vue-docmenu
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#350](https://github.com/cypress-io/cypress-design/pull/350) [`abc414d`](https://github.com/cypress-io/cypress-design/commit/abc414da149eb6fe0cfa61497a0aa8630d8d8d6e) Thanks [@elevatebart](https://github.com/elevatebart)! - feat: allow usage of a custom link component
8
+
9
+ ### Patch Changes
10
+
11
+ - [#347](https://github.com/cypress-io/cypress-design/pull/347) [`de67952`](https://github.com/cypress-io/cypress-design/commit/de679522ea2269854ec8ac8de925fcf930ce96e4) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: docmenu docusaurus style items structure
12
+
13
+ - Updated dependencies [[`de67952`](https://github.com/cypress-io/cypress-design/commit/de679522ea2269854ec8ac8de925fcf930ce96e4)]:
14
+ - @cypress-design/constants-docmenu@0.1.1
15
+
16
+ ## 0.3.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#272](https://github.com/cypress-io/cypress-design/pull/272) [`9a3e358`](https://github.com/cypress-io/cypress-design/commit/9a3e3582b8ca2dfdadd9198054042c9f0083be01) Thanks [@elevatebart](https://github.com/elevatebart)! - remove dark mode implementation to avoid wrong side effects
21
+
3
22
  ## 0.2.2
4
23
 
5
24
  ### Patch Changes
package/DocMenu.vue CHANGED
@@ -1,4 +1,5 @@
1
1
  <script lang="ts" setup>
2
+ import type { DefineComponent } from 'vue'
2
3
  import { NavGroup, NavItemLink } from '@cypress-design/constants-docmenu'
3
4
  import DocGroup from './_DocGroup.vue'
4
5
  import DocLink from './_DocLink.vue'
@@ -7,10 +8,12 @@ withDefaults(
7
8
  defineProps<{
8
9
  items: (NavItemLink | NavGroup)[]
9
10
  collapsible?: boolean
11
+ linkComponent?: DefineComponent | 'a'
10
12
  }>(),
11
13
  {
14
+ linkComponent: 'a',
12
15
  collapsible: true,
13
- }
16
+ },
14
17
  )
15
18
  </script>
16
19
 
@@ -18,9 +21,19 @@ withDefaults(
18
21
  <ul class="overflow-y-hidden list-none p-0">
19
22
  <template v-for="item in items">
20
23
  <li v-if="'items' in item" class="relative list-none p-0">
21
- <DocGroup :group="item" :depth="0" :collapsible="collapsible" />
24
+ <DocGroup
25
+ :group="item"
26
+ :depth="0"
27
+ :collapsible="collapsible"
28
+ :link-component="linkComponent"
29
+ />
22
30
  </li>
23
- <DocLink v-else :item="item" :collapsible="collapsible" />
31
+ <DocLink
32
+ v-else
33
+ :item="item"
34
+ :collapsible="collapsible"
35
+ :link-component="linkComponent"
36
+ />
24
37
  </template>
25
38
  </ul>
26
39
  </template>
package/DocMenuVue.cy.tsx CHANGED
@@ -1,12 +1,50 @@
1
1
  /// <reference types="cypress" />
2
+ import { type DefineComponent, defineComponent } from 'vue'
2
3
  import { mount } from 'cypress/vue'
3
4
  import assertions from '../assertions'
4
5
  import type { NavGroup, NavItemLink } from '../constants'
5
- import DocMenuStory from './DocMenu.rootstory'
6
+ import DocMenu from './DocMenu.vue'
7
+
8
+ const CustomLinkVue: DefineComponent<{ href: StringConstructor }> =
9
+ defineComponent({
10
+ props: {
11
+ href: String,
12
+ },
13
+ setup(props, { slots }) {
14
+ return () => (
15
+ <div>
16
+ {slots.default?.()} + href: {props.href}
17
+ </div>
18
+ )
19
+ },
20
+ })
6
21
 
7
22
  describe('<DocMenu/>', () => {
23
+ it('renders', () => {
24
+ mount(() => <DocMenu items={[{ href: '/foo', label: 'Foo' }]} />)
25
+ cy.get('ul').should('exist')
26
+ })
27
+
28
+ it('renders the custom link components', () => {
29
+ mount(() => (
30
+ <DocMenu
31
+ items={[
32
+ {
33
+ label: 'Baaaaaaz',
34
+ items: [{ label: 'Bar', items: [{ href: '/foo', label: 'Foo' }] }],
35
+ },
36
+ ]}
37
+ linkComponent={CustomLinkVue}
38
+ />
39
+ ))
40
+ cy.findByText('Bar').click()
41
+ cy.findByText('Foo + href: /foo', { selector: 'div' }).should('be.visible')
42
+ })
43
+
8
44
  function mountStory(items: (NavItemLink | NavGroup)[] = []) {
9
- mount(() => <DocMenuStory items={items} />)
45
+ mount(() => {
46
+ return <DocMenu items={items} />
47
+ })
10
48
  }
11
49
  assertions(mountStory)
12
50
  })
package/ReadMe.md CHANGED
@@ -22,53 +22,53 @@ import DocMenu from '@cypress-design/vue-docmenu'
22
22
  <DocMenu
23
23
  :items="[
24
24
  {
25
- text: 'Get Started',
25
+ label: 'Get Started',
26
26
  href: '#',
27
27
  },
28
28
  {
29
- text: 'Overview',
29
+ label: 'Overview',
30
30
  items: [
31
31
  {
32
- text: 'Overview Item 1',
32
+ label: 'Overview Item 1',
33
33
  href: '#',
34
34
  },
35
35
  {
36
- text: 'Overview Item 2',
36
+ label: 'Overview Item 2',
37
37
  href: '#',
38
38
  active: true,
39
39
  },
40
40
  ],
41
41
  },
42
42
  {
43
- text: 'Getting Started',
43
+ label: 'Getting Started',
44
44
  items: [
45
45
  {
46
- text: 'Item 1',
46
+ label: 'Item 1',
47
47
  href: '#',
48
48
  },
49
49
  {
50
- text: 'Group',
50
+ label: 'Group',
51
51
  items: [
52
52
  {
53
- text: 'Item 1',
53
+ label: 'Item 1',
54
54
  href: '#',
55
55
  },
56
56
  {
57
- text: 'Item 2',
57
+ label: 'Item 2',
58
58
  href: '#',
59
59
  },
60
60
  {
61
- text: 'Item 3',
61
+ label: 'Item 3',
62
62
  href: '#',
63
63
  },
64
64
  {
65
- text: 'Item 4',
65
+ label: 'Item 4',
66
66
  href: '#',
67
67
  },
68
68
  ],
69
69
  },
70
70
  {
71
- text: 'Item 5',
71
+ label: 'Item 5',
72
72
  href: '#',
73
73
  active: true,
74
74
  },
package/_DocGroup.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { computed, Ref, ref } from 'vue'
2
+ import { computed, type DefineComponent, Ref, ref } from 'vue'
3
3
  import { IconChevronDownSmall } from '@cypress-design/vue-icon'
4
4
  import { NavGroup, classes } from '@cypress-design/constants-docmenu'
5
5
  import DocLink from './_DocLink.vue'
@@ -9,11 +9,12 @@ const props = withDefaults(
9
9
  defineProps<{
10
10
  group: NavGroup
11
11
  collapsible: boolean
12
+ linkComponent: DefineComponent | 'a'
12
13
  depth?: number
13
14
  }>(),
14
15
  {
15
16
  depth: 0,
16
- }
17
+ },
17
18
  )
18
19
 
19
20
  const open = ref(props.depth === 0)
@@ -24,7 +25,7 @@ const height = computed(() => {
24
25
  return $groups.value && open.value
25
26
  ? $groups.value.reduce(
26
27
  (acc, { height: h }) => acc + h,
27
- props.group.items.length
28
+ props.group.items.length,
28
29
  )
29
30
  : 0
30
31
  })
@@ -37,12 +38,12 @@ defineExpose<{
37
38
 
38
39
  const activeMarkerTop = computed(() => {
39
40
  const activeIndex = props.group.items.findIndex(
40
- (item) => 'href' in item && item.active
41
+ (item) => 'href' in item && item.active,
41
42
  )
42
43
 
43
44
  // how many groups are before the active element?
44
45
  let numberOfGroups = props.group.items.filter(
45
- (item, index) => !('href' in item) && index < activeIndex
46
+ (item, index) => !('href' in item) && index < activeIndex,
46
47
  ).length
47
48
 
48
49
  // if there is any open group before the active element
@@ -56,7 +57,7 @@ const activeMarkerTop = computed(() => {
56
57
  })
57
58
 
58
59
  const Head = computed(() =>
59
- props.collapsible ? 'button' : props.group.href ? 'a' : 'div'
60
+ props.collapsible ? 'button' : props.group.href ? 'a' : 'div',
60
61
  )
61
62
  </script>
62
63
 
@@ -68,7 +69,7 @@ const Head = computed(() =>
68
69
  {
69
70
  [classes.topButton]: depth === 0,
70
71
  [classes.leafButton]: depth,
71
- 'text-indigo-500 dark:text-indigo-200': props.group.active,
72
+ 'text-indigo-500': props.group.active,
72
73
  },
73
74
  ]"
74
75
  :href="props.group.href"
@@ -91,7 +92,7 @@ const Head = computed(() =>
91
92
  'ml-[16px]': depth,
92
93
  }"
93
94
  />
94
- {{ group.text }}
95
+ {{ group.label }}
95
96
  </component>
96
97
  <div
97
98
  v-if="
@@ -120,9 +121,16 @@ const Head = computed(() =>
120
121
  :group="item"
121
122
  :depth="depth + 1"
122
123
  :collapsible="props.collapsible"
124
+ :link-component="props.linkComponent"
123
125
  />
124
126
  </li>
125
- <DocLink v-else :item="item" :depth="depth" :collapsible="collapsible" />
127
+ <DocLink
128
+ v-else
129
+ :item="item"
130
+ :depth="depth"
131
+ :collapsible="collapsible"
132
+ :link-component="props.linkComponent"
133
+ />
126
134
  </template>
127
135
  </ul>
128
136
  </template>
package/_DocLink.vue CHANGED
@@ -1,15 +1,17 @@
1
1
  <script lang="ts" setup>
2
+ import type { DefineComponent } from 'vue'
2
3
  import type { NavItemLink } from '@cypress-design/constants-docmenu'
3
4
 
4
5
  withDefaults(
5
6
  defineProps<{
6
7
  item: NavItemLink
7
- depth?: number
8
8
  collapsible: boolean
9
+ depth?: number
10
+ linkComponent: DefineComponent | 'a'
9
11
  }>(),
10
12
  {
11
13
  depth: -1,
12
- }
14
+ },
13
15
  )
14
16
  </script>
15
17
 
@@ -20,10 +22,11 @@ withDefaults(
20
22
  'pl-[16px]': depth >= 0,
21
23
  }"
22
24
  >
23
- <a
25
+ <component
26
+ :is="linkComponent"
24
27
  class="group relative block w-full pl-[24px]"
25
28
  :class="{
26
- 'text-indigo-500 dark:text-indigo-200': item.active,
29
+ 'text-indigo-500': item.active,
27
30
  'py-[8px] text-[16px] leading-[24px]': depth < 0,
28
31
  'leading-[20px] text-[14px] py-[12px]': depth >= 0,
29
32
  }"
@@ -39,7 +42,7 @@ withDefaults(
39
42
  left: `-${18.5 + depth * 7.5}px`,
40
43
  }"
41
44
  />
42
- {{ item.text }}
43
- </a>
45
+ {{ item.label }}
46
+ </component>
44
47
  </li>
45
48
  </template>
@@ -1,16 +1,22 @@
1
+ import type { DefineComponent } from 'vue';
1
2
  import { NavGroup, NavItemLink } from '@cypress-design/constants-docmenu';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  items: (NavItemLink | NavGroup)[];
4
5
  collapsible?: boolean | undefined;
6
+ linkComponent?: DefineComponent | "a" | undefined;
5
7
  }>, {
8
+ linkComponent: string;
6
9
  collapsible: boolean;
7
10
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
11
  items: (NavItemLink | NavGroup)[];
9
12
  collapsible?: boolean | undefined;
13
+ linkComponent?: DefineComponent | "a" | undefined;
10
14
  }>, {
15
+ linkComponent: string;
11
16
  collapsible: boolean;
12
17
  }>>>, {
13
18
  collapsible: boolean;
19
+ linkComponent: DefineComponent | 'a';
14
20
  }, {}>;
15
21
  export default _default;
16
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1 +1 @@
1
- {"version":3,"file":"DocMenu.vue.d.ts","sourceRoot":"","sources":["../DocMenu.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;;;;;;;;;;;;;;AAoHzE,wBAAkD;AAElD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"D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"}
@@ -1,15 +1,18 @@
1
+ import { type DefineComponent, Ref } from 'vue';
1
2
  import { NavGroup } from '@cypress-design/constants-docmenu';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  group: NavGroup;
4
5
  collapsible: boolean;
6
+ linkComponent: DefineComponent | 'a';
5
7
  depth?: number | undefined;
6
8
  }>, {
7
9
  depth: number;
8
10
  }>, {
9
- height: import("vue").ComputedRef<number>;
11
+ height: Ref<number>;
10
12
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
13
  group: NavGroup;
12
14
  collapsible: boolean;
15
+ linkComponent: DefineComponent | 'a';
13
16
  depth?: number | undefined;
14
17
  }>, {
15
18
  depth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"_DocGroup.vue.d.ts","sourceRoot":"","sources":["../_DocGroup.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAW,MAAM,mCAAmC,CAAA;;;;;;;;;;;;;;;;;;AA6PrE,wBAAkD;AAElD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAA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K,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,14 +1,17 @@
1
+ import type { DefineComponent } from 'vue';
1
2
  import type { NavItemLink } from '@cypress-design/constants-docmenu';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  item: NavItemLink;
4
- depth?: number | undefined;
5
5
  collapsible: boolean;
6
+ depth?: number | undefined;
7
+ linkComponent: DefineComponent | 'a';
6
8
  }>, {
7
9
  depth: number;
8
10
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
11
  item: NavItemLink;
10
- depth?: number | undefined;
11
12
  collapsible: boolean;
13
+ depth?: number | undefined;
14
+ linkComponent: DefineComponent | 'a';
12
15
  }>, {
13
16
  depth: number;
14
17
  }>>>, {
@@ -1 +1 @@
1
- {"version":3,"file":"_DocLink.vue.d.ts","source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