vueless 0.0.286 → 0.0.288

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.
Files changed (129) hide show
  1. package/composable.ui/index.js +3 -2
  2. package/constants/index.js +2 -1
  3. package/directive.tooltip/index.js +1 -0
  4. package/package.json +3 -3
  5. package/service.ui/index.js +3 -6
  6. package/ui.button/configs/default.config.js +15 -18
  7. package/ui.button/index.stories.js +6 -2
  8. package/ui.button/index.vue +98 -76
  9. package/ui.button-link/composables/attrs.composable.js +18 -28
  10. package/ui.button-link/configs/default.config.js +8 -6
  11. package/ui.button-link/index.stories.js +20 -1
  12. package/ui.button-link/index.vue +21 -26
  13. package/ui.button-toggle/configs/default.config.js +2 -2
  14. package/ui.button-toggle/index.stories.js +4 -4
  15. package/ui.button-toggle/index.vue +7 -7
  16. package/ui.button-toggle-item/configs/default.config.js +2 -2
  17. package/ui.button-toggle-item/index.vue +4 -4
  18. package/ui.container-accordion/configs/default.config.js +1 -1
  19. package/ui.container-accordion/index.vue +3 -3
  20. package/ui.container-card/configs/default.config.js +1 -1
  21. package/ui.container-card/index.stories.js +2 -2
  22. package/ui.container-card/index.vue +3 -3
  23. package/ui.container-col/configs/default.config.js +1 -1
  24. package/ui.container-col/index.vue +3 -3
  25. package/ui.container-divider/configs/default.config.js +1 -1
  26. package/ui.container-divider/index.vue +3 -3
  27. package/ui.container-group/configs/default.config.js +1 -1
  28. package/ui.container-group/index.vue +3 -3
  29. package/ui.container-modal/configs/default.config.js +1 -1
  30. package/ui.container-modal/index.vue +5 -5
  31. package/ui.container-modal-confirm/configs/default.config.js +1 -1
  32. package/ui.container-modal-confirm/index.vue +5 -5
  33. package/ui.container-page/configs/default.config.js +2 -2
  34. package/ui.container-page/index.stories.js +2 -2
  35. package/ui.container-page/index.vue +25 -14
  36. package/ui.container-row/configs/default.config.js +1 -1
  37. package/ui.container-row/index.vue +3 -3
  38. package/ui.data-list/configs/default.config.js +1 -1
  39. package/ui.data-list/index.vue +8 -8
  40. package/ui.data-table/components/TableRow.vue +5 -5
  41. package/ui.data-table/configs/default.config.js +1 -1
  42. package/ui.data-table/index.stories.js +1 -1
  43. package/ui.data-table/index.vue +8 -8
  44. package/ui.dropdown-badge/configs/default.config.js +1 -1
  45. package/ui.dropdown-badge/index.vue +5 -5
  46. package/ui.dropdown-button/configs/default.config.js +2 -2
  47. package/ui.dropdown-button/index.vue +8 -8
  48. package/ui.dropdown-item/index.vue +3 -3
  49. package/ui.dropdown-link/configs/default.config.js +1 -1
  50. package/ui.dropdown-link/index.vue +5 -5
  51. package/ui.dropdown-list/configs/default.config.js +1 -1
  52. package/ui.dropdown-list/index.vue +1 -1
  53. package/ui.form-calendar/configs/default.config.js +1 -1
  54. package/ui.form-calendar/index.vue +2 -2
  55. package/ui.form-checkbox/configs/default.config.js +1 -1
  56. package/ui.form-checkbox/index.vue +4 -4
  57. package/ui.form-checkbox-group/configs/default.config.js +1 -1
  58. package/ui.form-checkbox-group/index.vue +4 -4
  59. package/ui.form-checkbox-multi-state/configs/default.config.js +1 -1
  60. package/ui.form-checkbox-multi-state/index.vue +2 -2
  61. package/ui.form-color-picker/configs/default.config.js +1 -1
  62. package/ui.form-color-picker/index.vue +3 -3
  63. package/ui.form-date-picker/configs/default.config.js +1 -1
  64. package/ui.form-date-picker/index.vue +2 -2
  65. package/ui.form-date-picker-range/configs/default.config.js +1 -1
  66. package/ui.form-date-picker-range/index.vue +2 -2
  67. package/ui.form-input/configs/default.config.js +3 -3
  68. package/ui.form-input/index.vue +4 -4
  69. package/ui.form-input-file/configs/default.config.js +2 -2
  70. package/ui.form-input-file/index.vue +21 -20
  71. package/ui.form-input-money/configs/default.config.js +1 -1
  72. package/ui.form-input-money/index.vue +3 -3
  73. package/ui.form-input-number/configs/default.config.js +1 -1
  74. package/ui.form-input-number/index.vue +7 -7
  75. package/ui.form-input-rating/configs/default.config.js +1 -1
  76. package/ui.form-input-rating/index.vue +4 -4
  77. package/ui.form-input-search/configs/default.config.js +1 -1
  78. package/ui.form-input-search/index.vue +6 -6
  79. package/ui.form-label/configs/default.config.js +1 -1
  80. package/ui.form-label/index.vue +8 -8
  81. package/ui.form-radio/configs/default.config.js +1 -1
  82. package/ui.form-radio/index.vue +4 -4
  83. package/ui.form-radio-group/configs/default.config.js +1 -1
  84. package/ui.form-radio-group/index.vue +4 -4
  85. package/ui.form-select/configs/default.config.js +1 -1
  86. package/ui.form-select/index.vue +3 -3
  87. package/ui.form-switch/configs/default.config.js +1 -1
  88. package/ui.form-switch/index.vue +3 -3
  89. package/ui.form-textarea/configs/default.config.js +1 -1
  90. package/ui.form-textarea/index.vue +4 -4
  91. package/ui.image-avatar/configs/default.config.js +1 -1
  92. package/ui.image-avatar/index.vue +3 -3
  93. package/ui.image-icon/configs/default.config.js +4 -48
  94. package/ui.image-icon/index.stories.js +0 -3
  95. package/ui.image-icon/index.vue +16 -45
  96. package/ui.loader/configs/default.config.js +1 -1
  97. package/ui.loader-rendering/configs/default.config.js +1 -1
  98. package/ui.loader-top/configs/default.config.js +1 -1
  99. package/ui.navigation-pagination/configs/default.config.js +1 -1
  100. package/ui.navigation-pagination/index.vue +7 -7
  101. package/ui.navigation-progress/components/StepperProgress.vue +1 -1
  102. package/ui.navigation-progress/configs/default.config.js +1 -1
  103. package/ui.navigation-progress/index.vue +3 -3
  104. package/ui.navigation-tab/configs/default.config.js +1 -1
  105. package/ui.navigation-tab/index.vue +3 -3
  106. package/ui.navigation-tabs/configs/default.config.js +1 -1
  107. package/ui.navigation-tabs/index.vue +4 -4
  108. package/ui.other-dot/configs/default.config.js +1 -1
  109. package/ui.other-dot/index.vue +3 -3
  110. package/ui.text-alert/configs/default.config.js +1 -1
  111. package/ui.text-alert/index.vue +4 -4
  112. package/ui.text-badge/configs/default.config.js +1 -1
  113. package/ui.text-badge/index.vue +3 -3
  114. package/ui.text-block/configs/default.config.js +1 -1
  115. package/ui.text-block/index.vue +3 -3
  116. package/ui.text-empty/configs/default.config.js +14 -4
  117. package/ui.text-empty/index.stories.js +0 -1
  118. package/ui.text-empty/index.vue +22 -13
  119. package/ui.text-file/configs/default.config.js +2 -2
  120. package/ui.text-file/index.vue +3 -3
  121. package/ui.text-files/configs/default.config.js +1 -1
  122. package/ui.text-files/index.vue +3 -3
  123. package/ui.text-header/configs/default.config.js +1 -1
  124. package/ui.text-header/index.vue +3 -3
  125. package/ui.text-money/configs/default.config.js +1 -1
  126. package/ui.text-money/index.vue +3 -3
  127. package/ui.text-notify/configs/default.config.js +1 -1
  128. package/ui.text-notify/index.vue +3 -3
  129. package/web-types.json +169 -150
@@ -69,6 +69,3 @@ tooltip.args = { tooltip: "Some text" };
69
69
 
70
70
  export const interactive = DefaultTemplate.bind({});
71
71
  interactive.args = { interactive: true };
72
-
73
- export const pill = EnumVariantTemplate.bind({});
74
- pill.args = { enum: "color", pill: true };
@@ -1,16 +1,11 @@
1
1
  <template>
2
- <div
2
+ <component
3
+ :is="dynamicComponent"
3
4
  v-tooltip="tooltipConfig"
4
- :data-cy="dataCy"
5
- v-bind="wrapperAttrs"
6
- @focus="onFocus"
7
- @blur="onBlur"
5
+ v-bind="iconAttrs"
6
+ :data-test="dataTest"
8
7
  @click="onClick"
9
- >
10
- <div v-bind="containerAttrs">
11
- <component :is="dynamicComponent" v-bind="iconAttrs" />
12
- </div>
13
- </div>
8
+ />
14
9
  </template>
15
10
 
16
11
  <script setup>
@@ -64,14 +59,6 @@ const props = defineProps({
64
59
  default: getDefault(defaultConfig, UIcon).size,
65
60
  },
66
61
 
67
- /**
68
- * Set pill mild semi-transparent background and solid colour icon.
69
- */
70
- pill: {
71
- type: Boolean,
72
- default: getDefault(defaultConfig, UIcon).pill,
73
- },
74
-
75
62
  /**
76
63
  * Icon variant.
77
64
  * @values light, default, dark
@@ -115,9 +102,9 @@ const props = defineProps({
115
102
  },
116
103
 
117
104
  /**
118
- * Data-cy attribute for automated testing.
105
+ * Data-test attribute for automated testing.
119
106
  */
120
- dataCy: {
107
+ dataTest: {
121
108
  type: String,
122
109
  default: "",
123
110
  },
@@ -137,19 +124,9 @@ const emit = defineEmits([
137
124
  * Triggers when the icon is clicked.
138
125
  */
139
126
  "click",
140
-
141
- /**
142
- * Triggers when the icon is focused.
143
- */
144
- "focus",
145
-
146
- /**
147
- * Triggers when the icon loses focus.
148
- */
149
- "blur",
150
127
  ]);
151
128
 
152
- const { config, wrapperAttrs, containerAttrs, iconAttrs } = useAttrs(props);
129
+ const { config, iconAttrs } = useAttrs(props);
153
130
 
154
131
  const generatedIcons = computed(() => {
155
132
  return (
@@ -163,11 +140,11 @@ const dynamicComponent = computed(() => {
163
140
  const FILL_SUFFIX = "-fill";
164
141
 
165
142
  const isDefaultIcon = Boolean(generatedIcons.value.find(([path]) => path.includes(props.name)));
166
- const userLibrary = config.value.defaultVariants.library;
143
+ const userLibrary = config.value.defaults.library;
167
144
 
168
145
  const library = props.internal && isDefaultIcon ? "vueless" : userLibrary;
169
- const weight = config.value.defaultVariants.weight;
170
- const style = config.value.defaultVariants.style;
146
+ const weight = config.value.defaults.weight;
147
+ const style = config.value.defaults.style;
171
148
  const isFill = props.name.endsWith(FILL_SUFFIX);
172
149
  const name = props.name;
173
150
  const src = props.src;
@@ -219,19 +196,13 @@ const dynamicComponent = computed(() => {
219
196
  return defineAsyncComponent(libraries[library]);
220
197
  });
221
198
 
222
- const tooltipConfig = computed(() => {
223
- return { onShow: () => !!props.tooltip, ...props.tooltipSettings, content: props.tooltip };
224
- });
199
+ const tooltipConfig = computed(() => ({
200
+ onShow: () => !!props.tooltip,
201
+ ...props.tooltipSettings,
202
+ content: props.tooltip,
203
+ }));
225
204
 
226
205
  function onClick(event) {
227
206
  emit("click", event);
228
207
  }
229
-
230
- function onFocus() {
231
- emit("focus");
232
- }
233
-
234
- function onBlur(event) {
235
- emit("blur", event);
236
- }
237
208
  </script>
@@ -48,7 +48,7 @@ export default /*tw*/ {
48
48
  enterFromClass: "opacity-0",
49
49
  leaveToClass: "opacity-0",
50
50
  },
51
- defaultVariants: {
51
+ defaults: {
52
52
  color: "brand",
53
53
  size: "md",
54
54
  loading: false,
@@ -19,7 +19,7 @@ export default /*tw*/ {
19
19
  enterFromClass: "scale-110 transform",
20
20
  leaveActiveClass: "scale-110 transform",
21
21
  },
22
- defaultVariants: {
22
+ defaults: {
23
23
  color: "brand",
24
24
  },
25
25
  safelist: (colors) => [{ pattern: `bg-(${colors})-600` }],
@@ -12,7 +12,7 @@ export default /*tw*/ {
12
12
  },
13
13
  },
14
14
  progressMobile: "mt-safe-top mx-3 rounded max-w-[calc(100%-1.5rem)]",
15
- defaultVariants: {
15
+ defaults: {
16
16
  color: "brand",
17
17
  },
18
18
  safelist: (colors) => [{ pattern: `bg-(${colors})-500` }],
@@ -11,7 +11,7 @@ export default /*tw*/ {
11
11
  hover:!text-brand-900 !hover:bg-brand-900/15 disabled:hover:bg-brand-900/15
12
12
  focus:outline-none
13
13
  `,
14
- defaultVariants: {
14
+ defaults: {
15
15
  limit: 5,
16
16
  perPage: 20,
17
17
  prevLabel: "&lsaquo;",
@@ -5,7 +5,7 @@
5
5
  square
6
6
  variant="thirdary"
7
7
  :disabled="prevIsDisabled"
8
- :data-cy="`${dataCy}-first`"
8
+ :data-test="`${dataTest}-first`"
9
9
  v-bind="navigationButtonAttrs"
10
10
  @click="goToFirstPage"
11
11
  >
@@ -20,7 +20,7 @@
20
20
  square
21
21
  variant="thirdary"
22
22
  :disabled="prevIsDisabled"
23
- :data-cy="`${dataCy}-prev`"
23
+ :data-test="`${dataTest}-prev`"
24
24
  v-bind="navigationButtonAttrs"
25
25
  @click="goToPrevPage"
26
26
  >
@@ -38,7 +38,7 @@
38
38
  v-else
39
39
  square
40
40
  variant="thirdary"
41
- :data-cy="`${dataCy}-page`"
41
+ :data-test="`${dataTest}-page`"
42
42
  :disabled="disabled"
43
43
  v-bind="pageButtonAttrs(page)"
44
44
  @click="selectPage(page.number)"
@@ -52,7 +52,7 @@
52
52
  square
53
53
  variant="thirdary"
54
54
  :disabled="nextIsDisabled"
55
- :data-cy="`${dataCy}-next`"
55
+ :data-test="`${dataTest}-next`"
56
56
  v-bind="navigationButtonAttrs"
57
57
  @click="goToNextPage"
58
58
  >
@@ -67,7 +67,7 @@
67
67
  square
68
68
  variant="thirdary"
69
69
  :disabled="nextIsDisabled"
70
- :data-cy="`${dataCy}-last`"
70
+ :data-test="`${dataTest}-last`"
71
71
  v-bind="navigationButtonAttrs"
72
72
  @click="goToLastPage"
73
73
  >
@@ -203,9 +203,9 @@ const props = defineProps({
203
203
  },
204
204
 
205
205
  /**
206
- * Data-cy attribute for automated testing.
206
+ * Data-test attribute for automated testing.
207
207
  */
208
- dataCy: {
208
+ dataTest: {
209
209
  type: String,
210
210
  default: "",
211
211
  },
@@ -63,7 +63,7 @@ const props = defineProps({
63
63
  default: () => ({}),
64
64
  },
65
65
 
66
- dataCy: {
66
+ dataTest: {
67
67
  type: String,
68
68
  default: "",
69
69
  },
@@ -94,7 +94,7 @@ export default /*tw*/ {
94
94
  },
95
95
  },
96
96
  },
97
- defaultVariants: {
97
+ defaults: {
98
98
  color: "brand",
99
99
  size: "md",
100
100
  variant: "progress",
@@ -43,7 +43,7 @@
43
43
  v-bind="stepperAttrs"
44
44
  :color="color"
45
45
  :value="value"
46
- :data-cy="dataCy"
46
+ :data-test="dataTest"
47
47
  :progress-percent="progressPercent"
48
48
  />
49
49
  </div>
@@ -126,9 +126,9 @@ const props = defineProps({
126
126
  },
127
127
 
128
128
  /**
129
- * Data-cy attribute for automated testing.
129
+ * Data-test attribute for automated testing.
130
130
  */
131
- dataCy: {
131
+ dataTest: {
132
132
  type: String,
133
133
  default: "",
134
134
  },
@@ -15,7 +15,7 @@ export default /*tw*/ {
15
15
  },
16
16
  },
17
17
  },
18
- defaultVariants: {
18
+ defaults: {
19
19
  size: "md",
20
20
  disabled: false,
21
21
  },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs" @click="onClickSetValue">
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs" @click="onClickSetValue">
3
3
  <!-- @slot Use it to add something instead of label. -->
4
4
  <slot>
5
5
  {{ label }}
@@ -59,9 +59,9 @@ const props = defineProps({
59
59
  },
60
60
 
61
61
  /**
62
- * Data-cy attribute for automated testing.
62
+ * Data-test attribute for automated testing.
63
63
  */
64
- dataCy: {
64
+ dataTest: {
65
65
  type: String,
66
66
  default: "",
67
67
  },
@@ -13,7 +13,7 @@ export default /*tw*/ {
13
13
  },
14
14
  },
15
15
  tab: "{UTab}",
16
- defaultVariants: {
16
+ defaults: {
17
17
  size: "md",
18
18
  underlined: false,
19
19
  },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs">
3
3
  <!-- @slot Use it to add the UTab component. -->
4
4
  <slot>
5
5
  <UTab
@@ -9,7 +9,7 @@
9
9
  :value="item.value"
10
10
  :disabled="item.disabled"
11
11
  :size="size"
12
- :data-cy="`${dataCy}-item-${index}`"
12
+ :data-test="`${dataTest}-item-${index}`"
13
13
  v-bind="tabAttrs"
14
14
  />
15
15
  </slot>
@@ -78,9 +78,9 @@ const props = defineProps({
78
78
  },
79
79
 
80
80
  /**
81
- * Data-cy attribute for automated testing.
81
+ * Data-test attribute for automated testing.
82
82
  */
83
- dataCy: {
83
+ dataTest: {
84
84
  type: String,
85
85
  default: "",
86
86
  },
@@ -15,7 +15,7 @@ export default /*tw*/ {
15
15
  },
16
16
  },
17
17
  },
18
- defaultVariants: {
18
+ defaults: {
19
19
  color: "brand",
20
20
  size: "md",
21
21
  },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs" />
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs" />
3
3
  </template>
4
4
 
5
5
  <script setup>
@@ -40,9 +40,9 @@ const props = defineProps({
40
40
  },
41
41
 
42
42
  /**
43
- * Data-cy attribute for automated testing.
43
+ * Data-test attribute for automated testing.
44
44
  */
45
- dataCy: {
45
+ dataTest: {
46
46
  type: String,
47
47
  default: "",
48
48
  },
@@ -48,7 +48,7 @@ export default /*tw*/ {
48
48
  },
49
49
  icon: "{UIcon}",
50
50
  iconName: "close",
51
- defaultVariants: {
51
+ defaults: {
52
52
  variant: "primary",
53
53
  color: "brand",
54
54
  size: "md",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="isShownAlert" :data-cy="dataCy" v-bind="wrapperAttrs">
2
+ <div v-if="isShownAlert" :data-test="dataTest" v-bind="wrapperAttrs">
3
3
  <!-- @slot Use it to add something above the text. -->
4
4
  <slot name="top" />
5
5
 
@@ -54,7 +54,7 @@
54
54
  size="xs"
55
55
  :color="iconColor"
56
56
  :name="config.iconName"
57
- :data-cy="`${dataCy}-button`"
57
+ :data-test="`${dataTest}-button`"
58
58
  v-bind="iconAttrs"
59
59
  />
60
60
  </UButton>
@@ -156,9 +156,9 @@ const props = defineProps({
156
156
  },
157
157
 
158
158
  /**
159
- * Data-cy attribute for automated testing.
159
+ * Data-test attribute for automated testing.
160
160
  */
161
- dataCy: {
161
+ dataTest: {
162
162
  type: String,
163
163
  default: "",
164
164
  },
@@ -39,7 +39,7 @@ export default /*tw*/ {
39
39
  },
40
40
  leftIcon: "{UIcon}",
41
41
  rightIcon: "{UIcon}",
42
- defaultVariants: {
42
+ defaults: {
43
43
  color: "brand",
44
44
  size: "md",
45
45
  weight: "medium",
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  ref="wrapperRef"
4
4
  tabindex="1"
5
- :data-cy="dataCy"
5
+ :data-test="dataTest"
6
6
  v-bind="wrapperAttrs"
7
7
  @blur="onBlur"
8
8
  @focus="onFocus"
@@ -148,9 +148,9 @@ const props = defineProps({
148
148
  },
149
149
 
150
150
  /**
151
- * Data-cy attribute for automated testing.
151
+ * Data-test attribute for automated testing.
152
152
  */
153
- dataCy: {
153
+ dataTest: {
154
154
  type: String,
155
155
  default: "",
156
156
  },
@@ -27,7 +27,7 @@ export default /*tw*/ {
27
27
  },
28
28
  },
29
29
  html: "",
30
- defaultVariants: {
30
+ defaults: {
31
31
  size: "md",
32
32
  align: "left",
33
33
  line: false,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-bind="wrapperAttrs" :data-cy="dataCy">
2
+ <div v-bind="wrapperAttrs" :data-test="dataTest">
3
3
  <!-- @slot Use it to add something inside. -->
4
4
  <div v-if="!hasSlotContent($slots['default'])" v-bind="htmlAttrs" v-html="html" />
5
5
  <slot />
@@ -60,9 +60,9 @@ const props = defineProps({
60
60
  },
61
61
 
62
62
  /**
63
- * Data-cy attribute for automated testing.
63
+ * Data-test attribute for automated testing.
64
64
  */
65
- dataCy: {
65
+ dataTest: {
66
66
  type: String,
67
67
  default: "",
68
68
  },
@@ -10,10 +10,19 @@ export default /*tw*/ {
10
10
  },
11
11
  },
12
12
  },
13
- icon: "{UIcon}",
14
- iconName: "emoji_food_beverage",
15
- footer: "mt-4 flex justify-center",
13
+ emptyIconWrapper: {
14
+ base: "rounded-full bg-gray-700/5",
15
+ variants: {
16
+ size: {
17
+ sm: "p-4",
18
+ md: "p-5",
19
+ lg: "p-6",
20
+ },
21
+ },
22
+ },
23
+ emptyIcon: "{UIcon}",
16
24
  title: "{UHeader}",
25
+ footer: "mt-4 flex justify-center",
17
26
  description: {
18
27
  base: "text-center",
19
28
  variants: {
@@ -24,7 +33,8 @@ export default /*tw*/ {
24
33
  },
25
34
  },
26
35
  },
27
- defaultVariants: {
36
+ defaults: {
28
37
  size: "md",
38
+ emptyIcon: "emoji_food_beverage",
29
39
  },
30
40
  };
@@ -70,7 +70,6 @@ slotHeader.args = {
70
70
  name="person"
71
71
  color="blue"
72
72
  size="2xl"
73
- pill
74
73
  />
75
74
  </template>
76
75
  `,
@@ -1,16 +1,17 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs">
3
3
  <div v-bind="headerAttrs">
4
4
  <!-- @slot Use it to add something to the header. -->
5
5
  <slot name="header">
6
- <UIcon
7
- internal
8
- :name="config.iconName"
9
- color="gray"
10
- :size="iconSize"
11
- pill
12
- v-bind="iconAttrs"
13
- />
6
+ <div v-bind="emptyIconWrapperAttrs">
7
+ <UIcon
8
+ internal
9
+ :name="config.defaults.emptyIcon"
10
+ color="gray"
11
+ :size="iconSize"
12
+ v-bind="emptyIconAttrs"
13
+ />
14
+ </div>
14
15
  </slot>
15
16
  </div>
16
17
 
@@ -76,16 +77,24 @@ const props = defineProps({
76
77
  },
77
78
 
78
79
  /**
79
- * Sets data-cy attribute for automated testing.
80
+ * Data-test attribute for automated testing.
80
81
  */
81
- dataCy: {
82
+ dataTest: {
82
83
  type: String,
83
84
  default: "",
84
85
  },
85
86
  });
86
87
 
87
- const { config, titleAttrs, descriptionAttrs, wrapperAttrs, headerAttrs, footerAttrs, iconAttrs } =
88
- useAttrs(props);
88
+ const {
89
+ config,
90
+ titleAttrs,
91
+ descriptionAttrs,
92
+ wrapperAttrs,
93
+ headerAttrs,
94
+ footerAttrs,
95
+ emptyIconWrapperAttrs,
96
+ emptyIconAttrs,
97
+ } = useAttrs(props);
89
98
 
90
99
  const iconSize = computed(() => {
91
100
  const sizes = {
@@ -1,5 +1,5 @@
1
1
  export default /*tw*/ {
2
- file: "{UFile}",
2
+ file: "{ULink}",
3
3
  info: {
4
4
  base: "flex items-center",
5
5
  variants: {
@@ -26,7 +26,7 @@ export default /*tw*/ {
26
26
  },
27
27
  },
28
28
  },
29
- defaultVariants: {
29
+ defaults: {
30
30
  size: "md",
31
31
  },
32
32
  };
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <ULink :url="url" no-ring target-blank :data-cy="dataCy" v-bind="fileAttrs">
2
+ <ULink :href="url" no-ring target-blank :data-test="dataTest" v-bind="fileAttrs">
3
3
  <slot name="left" :file="{ id, label, url, imageUrl }" />
4
4
 
5
5
  <slot :file="{ id, label, url, imageUrl, iconName: config.iconName }">
@@ -93,9 +93,9 @@ const props = defineProps({
93
93
  },
94
94
 
95
95
  /**
96
- * Data-cy attribute for automated testing.
96
+ * Data-test attribute for automated testing.
97
97
  */
98
- dataCy: {
98
+ dataTest: {
99
99
  type: String,
100
100
  default: "",
101
101
  },
@@ -2,7 +2,7 @@ export default /*tw*/ {
2
2
  label: "{ULabel}",
3
3
  body: "flex flex-col gap-1",
4
4
  file: "{UFile} block",
5
- defaultVariants: {
5
+ defaults: {
6
6
  placement: "top",
7
7
  size: "md",
8
8
  },
@@ -11,7 +11,7 @@
11
11
  :image-url="file.imageUrl"
12
12
  :size="size"
13
13
  v-bind="fileAttrs"
14
- :data-cy="`${dataCy}-item`"
14
+ :data-test="`${dataTest}-item`"
15
15
  >
16
16
  <template #left="{ file: currentFile }">
17
17
  <!-- @slot Use it to add something left.
@@ -97,9 +97,9 @@ const props = defineProps({
97
97
  },
98
98
 
99
99
  /**
100
- * Sets data-cy attribute for automated testing.
100
+ * Data-test attribute for automated testing.
101
101
  */
102
- dataCy: {
102
+ dataTest: {
103
103
  type: String,
104
104
  default: "",
105
105
  },
@@ -38,7 +38,7 @@ export default /*tw*/ {
38
38
  { underlined: true, color: "grayscale", class: "border-gray-600" },
39
39
  ],
40
40
  },
41
- defaultVariants: {
41
+ defaults: {
42
42
  color: "grayscale",
43
43
  weight: "medium",
44
44
  size: "md",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <component :is="tag" v-bind="wrapperAttrs" :data-cy="dataCy">
2
+ <component :is="tag" v-bind="wrapperAttrs" :data-test="dataTest">
3
3
  <slot>{{ label }}</slot>
4
4
  </component>
5
5
  </template>
@@ -83,9 +83,9 @@ const props = defineProps({
83
83
  },
84
84
 
85
85
  /**
86
- * Data-cy attribute for automated testing.
86
+ * Data-test attribute for automated testing.
87
87
  */
88
- dataCy: {
88
+ dataTest: {
89
89
  type: String,
90
90
  default: "",
91
91
  },
@@ -51,7 +51,7 @@ export default /*tw*/ {
51
51
  },
52
52
  },
53
53
  symbol: "",
54
- defaultVariants: {
54
+ defaults: {
55
55
  color: "grayscale",
56
56
  size: "md",
57
57
  sign: "default",