@fiscozen/dropdown 0.1.24 → 0.1.27-beta.1

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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@fiscozen/dropdown",
3
- "version": "0.1.24",
3
+ "version": "0.1.27-beta.1",
4
4
  "description": "Design System Dropdown component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
7
7
  "keywords": [],
8
8
  "author": "Alen Ajam",
9
9
  "dependencies": {
10
- "@fiscozen/button": "^0.1.10",
11
- "@fiscozen/composables": "^0.1.36",
12
- "@fiscozen/actionlist": "^0.1.9"
10
+ "@fiscozen/button": "^0.1.13",
11
+ "@fiscozen/actionlist": "^0.1.9",
12
+ "@fiscozen/composables": "^0.1.36"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "tailwindcss": "^3.4.1",
@@ -14,6 +14,7 @@
14
14
  :icon-name="buttonIconName"
15
15
  @click="isOpen = !isOpen"
16
16
  :size
17
+ :variant
17
18
  :disabled="openerDisabled"
18
19
  :class="openerClass"
19
20
  >
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FzDropdown v-bind="props" ref="dropdown" @fzaction:click="(...args) => emit('fzaction:click', ...args)">
3
3
  <template #opener="{ open }">
4
- <FzIconButton :iconName="iconName" @click="open()" :variant="buttonVariant" :disabled="openerDisabled" :size />
4
+ <FzIconButton :iconName="iconName" @click.stop="open()" :variant="buttonVariant" :disabled="openerDisabled" :size />
5
5
  </template>
6
6
  </FzDropdown>
7
7
  </template>
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ButtonSize } from '@fiscozen/button'
2
2
  import { FzActionlistProps } from '@fiscozen/actionlist'
3
- import { IconButtonVariant } from '@fiscozen/button'
3
+ import { IconButtonVariant, ButtonVariant } from '@fiscozen/button'
4
4
  import { VNode } from 'vue'
5
5
 
6
6
  type FzDropdownProps = {
@@ -44,6 +44,10 @@ type FzDropdownProps = {
44
44
  * Class binded to the floating element
45
45
  */
46
46
  floatingClass?: string
47
+ /**
48
+ * variant of the button
49
+ */
50
+ variant?: ButtonVariant
47
51
  }
48
52
 
49
53
  type FzDropdownSlots = {