@antify/ui 2.2.11 → 2.2.13

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.
@@ -17,7 +17,7 @@ import AntIcon from './AntIcon.vue';
17
17
  import AntTooltip from './AntTooltip.vue';
18
18
  import AntSkeleton from './AntSkeleton.vue';
19
19
  import {
20
- InputState, Position,
20
+ InputState,
21
21
  } from '../enums';
22
22
  import {
23
23
  IconSize,
@@ -125,13 +125,11 @@ onMounted(() => {
125
125
  <div v-if="hasQuestionMark">
126
126
  <slot name="questionMarkText">
127
127
  <AntTooltip>
128
- <template #reference>
129
- <AntIcon
130
- :icon="faCircleQuestion"
131
- :color="iconColor"
132
- :size="IconSize.sm"
133
- />
134
- </template>
128
+ <AntIcon
129
+ :icon="faCircleQuestion"
130
+ :color="iconColor"
131
+ :size="IconSize.sm"
132
+ />
135
133
 
136
134
  <template #content>
137
135
  {{ questionMarkText }}
@@ -5,7 +5,7 @@
5
5
  >
6
6
  <slot name="header" />
7
7
 
8
- <div class="grow bg-white h-full overflow-y-auto">
8
+ <div class="grow h-px overflow-y-auto bg-base-100">
9
9
  <slot />
10
10
  </div>
11
11
 
@@ -54,7 +54,6 @@ const dialogOpen = ref(false);
54
54
  v-if="showDeleteButton"
55
55
  :disabled="deleteButtonDisabled || !canDelete"
56
56
  :skeleton="skeleton"
57
- filled
58
57
  :can-delete="canDelete"
59
58
  :invalid-permission-tooltip-position="Position.left"
60
59
  @click="() => dialogOpen = true"
@@ -24,6 +24,7 @@ const props = withDefaults(defineProps<{
24
24
  hasFilter?: boolean;
25
25
  canCreate?: boolean;
26
26
  skeleton?: boolean;
27
+ searchPlaceholderText?: string;
27
28
  }>(), {
28
29
  fullWidth: true,
29
30
  showFilter: true,
@@ -31,6 +32,7 @@ const props = withDefaults(defineProps<{
31
32
  hasFilter: false,
32
33
  canCreate: true,
33
34
  skeleton: false,
35
+ searchPlaceholderText: 'Search',
34
36
  });
35
37
  const emit = defineEmits([
36
38
  'search',
@@ -85,6 +87,7 @@ watch(() => props.fullWidth, (val) => {
85
87
  <AntSearch
86
88
  v-model="search"
87
89
  :skeleton="skeleton"
90
+ :placeholder="searchPlaceholderText"
88
91
  />
89
92
  </div>
90
93
 
@@ -54,7 +54,7 @@ const reference = ref<HTMLElement | null | undefined>(props.inputRef);
54
54
  const elementSize = useElementSize(reference);
55
55
  const floating = ref<HTMLElement | null>(null);
56
56
  const {
57
- floatingStyles, middlewareData, placement,
57
+ floatingStyles,
58
58
  } = useFloating(reference, floating, {
59
59
  placement: 'bottom',
60
60
  whileElementsMounted: autoUpdate,
@@ -89,7 +89,7 @@ const dropdownClasses = computed(() => {
89
89
  };
90
90
 
91
91
  return {
92
- 'w-full border flex flex-col gap-px outline-hidden -mt-px overflow-y-auto shadow-md z-[90] max-h-[250px]': true,
92
+ 'w-full border flex flex-col gap-px outline-none -mt-px overflow-y-auto shadow-md z-[90] max-h-[250px]': true,
93
93
  'rounded-md': true,
94
94
  [variants[props.state]]: true,
95
95
  };
@@ -230,6 +230,7 @@ watch(_modelValue, (val) => {
230
230
  v-if="isOpen"
231
231
  ref="floating"
232
232
  :class="dropdownClasses"
233
+ data-e2e="select-menu"
233
234
  :style="{width: `${elementSize.width.value}px!important`, ...floatingStyles}"
234
235
  >
235
236
  <div
@@ -15,9 +15,7 @@ import {
15
15
  import {
16
16
  TabItemState,
17
17
  } from './__types/AntTabItem.types';
18
- import {
19
- AntSkeleton,
20
- } from '../../../dist';
18
+ import AntSkeleton from '../AntSkeleton.vue';
21
19
 
22
20
  const props = withDefaults(defineProps<{
23
21
  label: string;
@@ -18,9 +18,13 @@ const props = withDefaults(defineProps<{
18
18
  tabItems?: TabItem[];
19
19
  expanded?: boolean;
20
20
  skeleton?: boolean;
21
+ leftBorder?: boolean;
22
+ rightBorder?: boolean;
21
23
  }>(), {
22
24
  expanded: false,
23
25
  skeleton: false,
26
+ leftBorder: false,
27
+ rightBorder: false,
24
28
  });
25
29
 
26
30
  const currentActive = useVModel(props, 'modelValue', emits);
@@ -30,6 +34,8 @@ const containerClasses = computed(() => ({
30
34
 
31
35
  const scrollContainerClasses = computed(() => ({
32
36
  'w-full': props.expanded,
37
+ 'border-l': props.leftBorder,
38
+ 'border-r': props.rightBorder,
33
39
  }));
34
40
 
35
41
  function clickTab(tabItem: TabItem) {
@@ -48,7 +54,7 @@ function clickTab(tabItem: TabItem) {
48
54
  <template>
49
55
  <div :class="containerClasses">
50
56
  <div
51
- class="flex gap-px bg-base-300 border-l border-r border-base-300 overflow-x-auto"
57
+ class="flex gap-px bg-base-300 border-base-300 overflow-x-auto"
52
58
  :class="scrollContainerClasses"
53
59
  >
54
60
  <slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antify/ui",
3
- "version": "2.2.11",
3
+ "version": "2.2.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,7 +38,7 @@
38
38
  "dist"
39
39
  ],
40
40
  "peerDependencies": {
41
- "tailwindcss": "4.0.13",
41
+ "tailwindcss": "4.0.7",
42
42
  "vue": "^3.4.29"
43
43
  },
44
44
  "dependencies": {
@@ -46,7 +46,6 @@
46
46
  "@fortawesome/free-regular-svg-icons": "^6.7.2",
47
47
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
48
48
  "@fortawesome/vue-fontawesome": "^3.0.8",
49
- "@tailwindcss/vite": "4.0.13",
50
49
  "@tiptap/extension-heading": "^2.11.5",
51
50
  "@tiptap/extension-underline": "^2.11.5",
52
51
  "@tiptap/pm": "^2.11.5",
@@ -73,6 +72,7 @@
73
72
  "@storybook/vue3": "^8.6.4",
74
73
  "@storybook/vue3-vite": "^8.6.4",
75
74
  "@stylistic/eslint-plugin": "^3.1.0",
75
+ "@tailwindcss/vite": "4.0.7",
76
76
  "@tsconfig/node20": "^20.1.4",
77
77
  "@types/big.js": "^6.2.2",
78
78
  "@types/jsdom": "^21.1.7",