pukaad-ui-lib 1.307.0 → 1.308.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.307.0",
4
+ "version": "1.308.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -25,9 +25,9 @@ const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-del
25
25
  const props = defineProps({
26
26
  state: { type: String, required: false },
27
27
  profileDetail: { type: Object, required: false },
28
+ circle: { type: Boolean, required: false },
28
29
  items: { type: Array, required: false },
29
30
  variant: { type: null, required: false },
30
- circle: { type: Boolean, required: false },
31
31
  horizontal: { type: Boolean, required: false },
32
32
  size: { type: null, required: false },
33
33
  iconSize: { type: String, required: false },
@@ -2,10 +2,11 @@
2
2
  <ShadDropdownMenu v-model:open="open">
3
3
  <ShadDropdownMenuTrigger as-child>
4
4
  <Button
5
- :variant="props.variant"
5
+ :variant="resolvedVariant"
6
6
  :size="props.size"
7
+ :circle="props.circle"
7
8
  :class="[
8
- props.circle ? 'rounded-full' : 'rounded-md',
9
+ props.circle && 'size-[32px]',
9
10
  props.disabled ? 'cursor-not-allowed opacity-50' : 'cursor-pointer',
10
11
  props.disabledPadding ? 'p-0' : '',
11
12
  props.triggerClass
@@ -35,6 +36,7 @@
35
36
  </template>
36
37
 
37
38
  <script setup>
39
+ import { computed } from "vue";
38
40
  const open = defineModel("open", { type: Boolean, ...{ default: false } });
39
41
  const props = defineProps({
40
42
  items: { type: Array, required: false, default: () => [] },
@@ -47,6 +49,9 @@ const props = defineProps({
47
49
  disabled: { type: Boolean, required: false, default: false },
48
50
  triggerClass: { type: String, required: false }
49
51
  });
52
+ const resolvedVariant = computed(
53
+ () => props.circle ? "default" : props.variant
54
+ );
50
55
  const onAction = (item) => {
51
56
  item.action();
52
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.307.0",
3
+ "version": "1.308.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",