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
@@ -1,16 +1,14 @@
1
1
  <template>
2
2
  <div v-bind="wrapperAttrs" ref="wrapperRef" tabindex="-1">
3
- <div v-if="hasSlotContent($slots['left'])" v-bind="leftSlotAttrs">
4
- <!-- @slot Use it to add something before the text. -->
5
- <slot name="left" />
6
- </div>
3
+ <!-- @slot Use it to add something before the text. -->
4
+ <slot name="left" />
7
5
 
8
6
  <router-link
9
7
  v-if="isPresentRoute"
10
8
  :to="route"
11
9
  :target="targetValue"
12
- :data-cy="dataCy"
13
10
  v-bind="linkAttrs"
11
+ :data-test="dataTest"
14
12
  tabindex="0"
15
13
  @blur="onBlur"
16
14
  @focus="onFocus"
@@ -20,16 +18,16 @@
20
18
  >
21
19
  <!-- @slot Use it replace the text. -->
22
20
  <slot>
23
- <span v-if="!hasSlotContent($slots['default'])" v-bind="textAttrs" v-text="label" />
21
+ {{ label }}
24
22
  </slot>
25
23
  </router-link>
26
24
 
27
25
  <a
28
26
  v-else
29
- :href="href"
27
+ :href="prefixedHref"
30
28
  :target="targetValue"
31
- :data-cy="dataCy"
32
29
  v-bind="linkAttrs"
30
+ :data-test="dataTest"
33
31
  tabindex="0"
34
32
  @blur="onBlur"
35
33
  @focus="onFocus"
@@ -39,14 +37,12 @@
39
37
  >
40
38
  <!-- @slot Use it replace the text. -->
41
39
  <slot>
42
- <span v-if="!hasSlotContent($slots['default'])" v-bind="textAttrs" v-text="label" />
40
+ {{ label }}
43
41
  </slot>
44
42
  </a>
45
43
 
46
- <div v-if="hasSlotContent($slots['right'])" v-bind="rightSlotAttrs">
47
- <!-- @slot Use it to add something after the text. -->
48
- <slot name="right" />
49
- </div>
44
+ <!-- @slot Use it to add something after the text. -->
45
+ <slot name="right" />
50
46
  </div>
51
47
  </template>
52
48
 
@@ -99,17 +95,17 @@ const props = defineProps({
99
95
  },
100
96
 
101
97
  /**
102
- * Link url.
98
+ * Link href url.
103
99
  */
104
- url: {
100
+ href: {
105
101
  type: String,
106
102
  default: "",
107
103
  },
108
104
 
109
105
  /**
110
- * Vue route object.
106
+ * Vue-router route object.
111
107
  */
112
- route: {
108
+ to: {
113
109
  type: Object,
114
110
  default: () => ({}),
115
111
  },
@@ -142,7 +138,7 @@ const props = defineProps({
142
138
  },
143
139
 
144
140
  /**
145
- * Open link in new window.
141
+ * Open link in the new tab.
146
142
  */
147
143
  targetBlank: {
148
144
  type: Boolean,
@@ -254,16 +250,16 @@ const props = defineProps({
254
250
  },
255
251
 
256
252
  /**
257
- * Data-cy attribute for automated testing.
253
+ * Data-test attribute for automated testing.
258
254
  */
259
- dataCy: {
255
+ dataTest: {
260
256
  type: String,
261
257
  default: "",
262
258
  },
263
259
  });
264
260
 
265
261
  const isPresentRoute = computed(() => {
266
- for (let key in props.route) return true;
262
+ for (let key in props.to) return true;
267
263
 
268
264
  return false;
269
265
  });
@@ -274,28 +270,27 @@ const { route, isActive, isExactActive } = useLink({
274
270
  exactActiveClass: props.exactActiveClass,
275
271
  custom: props.custom,
276
272
  replace: props.replace,
277
- to: isPresentRoute.value ? props.route : "/",
273
+ to: isPresentRoute.value ? props.to : "/",
278
274
  });
279
275
 
280
276
  const wrapperRef = ref(null);
281
277
 
282
278
  defineExpose({ wrapperRef });
283
279
 
284
- const { wrapperAttrs, linkAttrs, rightSlotAttrs, leftSlotAttrs, textAttrs, hasSlotContent } =
285
- useAttrs(props, { isActive, isExactActive });
280
+ const { wrapperAttrs, linkAttrs } = useAttrs(props, { isActive, isExactActive });
286
281
 
287
282
  const targetValue = computed(() => {
288
283
  return props.targetBlank ? "_blank" : "_self";
289
284
  });
290
285
 
291
- const href = computed(() => {
286
+ const prefixedHref = computed(() => {
292
287
  const types = {
293
288
  phone: "tel:",
294
289
  email: "mailto:",
295
290
  link: "",
296
291
  };
297
292
 
298
- return props.url ? `${types[props.type]}${props.url}` : null;
293
+ return props.href ? `${types[props.type]}${props.href}` : null;
299
294
  });
300
295
 
301
296
  function onClick(event) {
@@ -37,12 +37,12 @@ export default /*tw*/ {
37
37
  ],
38
38
  },
39
39
  item: "{UToggleItem}",
40
- defaultVariants: {
40
+ defaults: {
41
41
  variant: "primary",
42
42
  labelAlign: "top",
43
43
  size: "md",
44
44
  block: false,
45
- pill: false,
45
+ round: false,
46
46
  square: false,
47
47
  disabled: false,
48
48
  multiple: false,
@@ -123,10 +123,10 @@ separated.args = {
123
123
  separated: true,
124
124
  };
125
125
 
126
- export const pill = DefaultTemplate.bind({});
127
- pill.args = {
128
- name: "pill",
129
- pill: true,
126
+ export const round = DefaultTemplate.bind({});
127
+ round.args = {
128
+ name: "round",
129
+ round: true,
130
130
  separated: true,
131
131
  };
132
132
 
@@ -7,7 +7,7 @@
7
7
  :disabled="disabled"
8
8
  centred
9
9
  v-bind="labelAttrs"
10
- :data-cy="dataCy"
10
+ :data-test="dataTest"
11
11
  >
12
12
  <div v-bind="itemsAttrs">
13
13
  <!-- @slot Use it to add UToggleItem directly. -->
@@ -20,7 +20,7 @@
20
20
  :value="item.value"
21
21
  :disabled="disabled"
22
22
  :label="item.label"
23
- :data-cy="`${dataCy}-item-${index}`"
23
+ :data-test="`${dataTest}-item-${index}`"
24
24
  v-bind="itemAttrs"
25
25
  />
26
26
  </slot>
@@ -145,9 +145,9 @@ const props = defineProps({
145
145
  /**
146
146
  * Set button corners rounded.
147
147
  */
148
- pill: {
148
+ round: {
149
149
  type: Boolean,
150
- default: getDefault(defaultConfig, UToggle).pill,
150
+ default: getDefault(defaultConfig, UToggle).round,
151
151
  },
152
152
 
153
153
  /**
@@ -167,9 +167,9 @@ const props = defineProps({
167
167
  },
168
168
 
169
169
  /**
170
- * Sets data-cy attribute for automated testing.
170
+ * Data-test attribute for automated testing.
171
171
  */
172
- dataCy: {
172
+ dataTest: {
173
173
  type: String,
174
174
  default: "",
175
175
  },
@@ -227,7 +227,7 @@ function updateSelectedValue(value, checked) {
227
227
  provide("getToggleName", () => props.name);
228
228
  provide("getToggleType", () => type.value);
229
229
  provide("getToggleSize", () => props.size);
230
- provide("getTogglePill", () => props.pill);
230
+ provide("getToggleRound", () => props.round);
231
231
  provide("getToggleBlock", () => props.block);
232
232
  provide("getToggleSquare", () => props.square);
233
233
  provide("getToggleVariant", () => props.variant);
@@ -42,12 +42,12 @@ export default /*tw*/ {
42
42
  ],
43
43
  },
44
44
  input: "p-0 m-0 size-0 invisible absolute",
45
- defaultVariants: {
45
+ defaults: {
46
46
  variant: "primary",
47
47
  type: "radio",
48
48
  size: "md",
49
49
  block: false,
50
- pill: false,
50
+ round: false,
51
51
  square: false,
52
52
  disabled: false,
53
53
  },
@@ -7,7 +7,7 @@
7
7
  variant="secondary"
8
8
  :label="label"
9
9
  :size="getToggleSize()"
10
- :pill="getTogglePill()"
10
+ :round="getToggleRound()"
11
11
  :block="getToggleBlock()"
12
12
  :square="getToggleSquare()"
13
13
  :disabled="getToggleDisabled()"
@@ -107,9 +107,9 @@ const props = defineProps({
107
107
  },
108
108
 
109
109
  /**
110
- * Data-cy attribute for automated testing.
110
+ * Data-test attribute for automated testing.
111
111
  */
112
- dataCy: {
112
+ dataTest: {
113
113
  type: String,
114
114
  default: "",
115
115
  },
@@ -127,7 +127,7 @@ const emit = defineEmits([
127
127
  const getToggleName = inject("getToggleName", () => "toggle");
128
128
  const getToggleType = inject("getToggleType", () => getDefault(defaultConfig, UToggleItem).type);
129
129
  const getToggleSize = inject("getToggleSize", () => getDefault(defaultConfig, UToggleItem).size);
130
- const getTogglePill = inject("getTogglePill", () => getDefault(defaultConfig, UToggleItem).pill);
130
+ const getToggleRound = inject("getToggleRound", () => getDefault(defaultConfig, UToggleItem).round);
131
131
  const getToggleBlock = inject("getToggleBlock", () => getDefault(defaultConfig, UToggleItem).block);
132
132
  const getToggleSquare = inject("getToggleSquare", () => getDefault(defaultConfig, UToggleItem).square);
133
133
  const getToggleVariant = inject("getToggleVariant",() => getDefault(defaultConfig, UToggleItem).variant);
@@ -28,7 +28,7 @@ export default /*tw*/ {
28
28
  expandIconName: "add",
29
29
  collapseIconName: "remove",
30
30
  divider: "{UDivider} group-last:hidden",
31
- defaultVariants: {
31
+ defaults: {
32
32
  size: "md",
33
33
  },
34
34
  };
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs" @click="onClickItem">
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs" @click="onClickItem">
3
3
  <div v-bind="bodyAttrs">
4
4
  <div v-bind="titleAttrs">
5
5
  {{ title }}
@@ -77,9 +77,9 @@ const props = defineProps({
77
77
  },
78
78
 
79
79
  /**
80
- * Data-cy attribute for automated testing.
80
+ * Data-test attribute for automated testing.
81
81
  */
82
- dataCy: {
82
+ dataTest: {
83
83
  type: String,
84
84
  default: "",
85
85
  },
@@ -18,7 +18,7 @@ export default /*tw*/ {
18
18
  divider: "{UDivider}",
19
19
  footer: "flex justify-between",
20
20
  footerMobileReverse: "flex flex-col-reverse space-y-reverse",
21
- defaultVariants: {
21
+ defaults: {
22
22
  padding: "md",
23
23
  mobileFooterReverse: false,
24
24
  },
@@ -84,7 +84,7 @@ export const slotHeaderLeftBefore = DefaultTemplate.bind({});
84
84
  slotHeaderLeftBefore.args = {
85
85
  slotTemplate: `
86
86
  <template #header-left-before>
87
- <UIcon name="star" size="sm" pill />
87
+ <UIcon name="star" size="sm" />
88
88
  </template>
89
89
  ${defaultTemplate}
90
90
  `,
@@ -104,7 +104,7 @@ export const slotHeaderLeftAfter = DefaultTemplate.bind({});
104
104
  slotHeaderLeftAfter.args = {
105
105
  slotTemplate: `
106
106
  <template #header-left-after>
107
- <UIcon name="star" size="sm" pill />
107
+ <UIcon name="star" size="sm" />
108
108
  </template>
109
109
  ${defaultTemplate}
110
110
  `,
@@ -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
  <div v-if="isShownHeader" v-bind="headerAttrs">
4
4
  <div v-bind="headerLeftAttrs">
5
5
  <!-- @slot Use it to add something before left side of the header. -->
@@ -98,9 +98,9 @@ const props = defineProps({
98
98
  },
99
99
 
100
100
  /**
101
- * Data-cy attribute for automated testing.
101
+ * Data-test attribute for automated testing.
102
102
  */
103
- dataCy: {
103
+ dataTest: {
104
104
  type: String,
105
105
  default: "",
106
106
  },
@@ -38,7 +38,7 @@ export default /*tw*/ {
38
38
  },
39
39
  },
40
40
  },
41
- defaultVariants: {
41
+ defaults: {
42
42
  gap: "md",
43
43
  align: "start",
44
44
  justify: "start",
@@ -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
  <slot />
5
5
  </div>
@@ -68,9 +68,9 @@ const props = defineProps({
68
68
  },
69
69
 
70
70
  /**
71
- * Data-cy attribute for automated testing.
71
+ * Data-test attribute for automated testing.
72
72
  */
73
- dataCy: {
73
+ dataTest: {
74
74
  type: String,
75
75
  default: "",
76
76
  },
@@ -63,7 +63,7 @@ export default /*tw*/ {
63
63
  },
64
64
  },
65
65
  },
66
- defaultVariants: {
66
+ defaults: {
67
67
  variant: "default",
68
68
  size: "md",
69
69
  dashed: false,
@@ -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
  <div v-bind="dividerAttrs" />
4
4
  <template v-if="label && !vertical">
5
5
  <span v-bind="labelAttrs" v-text="label" />
@@ -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
  },
@@ -25,7 +25,7 @@ export default /*tw*/ {
25
25
  },
26
26
  },
27
27
  },
28
- defaultVariants: {
28
+ defaults: {
29
29
  gap: "md",
30
30
  upperlined: false,
31
31
  underlined: 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
  <template v-if="title">
4
4
  <UDivider v-if="upperlined" size="xl" no-top-padding v-bind="upperlineAttrs" />
5
5
 
@@ -86,9 +86,9 @@ const props = defineProps({
86
86
  },
87
87
 
88
88
  /**
89
- * Data-cy attribute for automated testing.
89
+ * Data-test attribute for automated testing.
90
90
  */
91
- dataCy: {
91
+ dataTest: {
92
92
  type: String,
93
93
  default: "",
94
94
  },
@@ -55,7 +55,7 @@ export default /*tw*/ {
55
55
  },
56
56
  },
57
57
  },
58
- defaultVariants: {
58
+ defaults: {
59
59
  width: "sm",
60
60
  inner: false,
61
61
  closeIcon: true,
@@ -9,7 +9,7 @@
9
9
  :id="id"
10
10
  ref="wrapperRef"
11
11
  tabindex="0"
12
- :data-cy="dataCy"
12
+ :data-test="dataTest"
13
13
  v-bind="wrapperAttrs"
14
14
  @keydown.self.esc="onKeydownEsc"
15
15
  >
@@ -27,7 +27,7 @@
27
27
  v-if="isShownArrowButton"
28
28
  size="sm"
29
29
  color="gray"
30
- :route="backRoute"
30
+ :to="backRoute"
31
31
  v-bind="backLinkAttrs"
32
32
  @click="onClickBackLink"
33
33
  >
@@ -58,7 +58,7 @@
58
58
  internal
59
59
  interactive
60
60
  :name="config.closeIconName"
61
- :data-cy="`${dataCy}-close`"
61
+ :data-test="`${dataTest}-close`"
62
62
  v-bind="closeIconAttrs"
63
63
  @click="onClickCloseModal"
64
64
  />
@@ -236,9 +236,9 @@ const props = defineProps({
236
236
  },
237
237
 
238
238
  /**
239
- * Set data-cy attribute for automated testing.
239
+ * Set data-test attribute for automated testing.
240
240
  */
241
- dataCy: {
241
+ dataTest: {
242
242
  type: String,
243
243
  default: "",
244
244
  },
@@ -7,7 +7,7 @@ export default /*tw*/ {
7
7
  confirm: "Confirm",
8
8
  cancel: "Cancel",
9
9
  },
10
- defaultVariants: {
10
+ defaults: {
11
11
  width: "sm",
12
12
  confirmColor: "brand",
13
13
  confirmDisabled: false,
@@ -5,7 +5,7 @@
5
5
  :title="title"
6
6
  no-divider
7
7
  mobile-bottom-align
8
- :data-cy="dataCy"
8
+ :data-test="dataTest"
9
9
  v-bind="modalAttrs"
10
10
  >
11
11
  <template #header-left-before>
@@ -36,7 +36,7 @@
36
36
  :label="confirmLabel || currentLocale.confirm"
37
37
  :color="confirmColor"
38
38
  :disabled="confirmDisabled"
39
- :data-cy="`${dataCy}-accept`"
39
+ :data-test="`${dataTest}-accept`"
40
40
  v-bind="confirmButtonAttrs"
41
41
  @click="emitConfirmAction"
42
42
  />
@@ -47,7 +47,7 @@
47
47
  variant="thirdary"
48
48
  color="gray"
49
49
  filled
50
- :data-cy="`${dataCy}-close`"
50
+ :data-test="`${dataTest}-close`"
51
51
  v-bind="cancelButtonAttrs"
52
52
  @click="onCloseModal"
53
53
  />
@@ -145,9 +145,9 @@ const props = defineProps({
145
145
  },
146
146
 
147
147
  /**
148
- * Data-cy attribute for automated testing.
148
+ * Data-test attribute for automated testing.
149
149
  */
150
- dataCy: {
150
+ dataTest: {
151
151
  type: String,
152
152
  default: "",
153
153
  },
@@ -38,7 +38,7 @@ export default /*tw*/ {
38
38
  header: "flex items-start justify-between mb-4 md:mb-6",
39
39
  headerLeft: "flex items-center space-x-4",
40
40
  headerLeftFallback: "flex flex-col",
41
- backLink: "{ULink} flex items-center gap-0.5",
41
+ backLink: "{ULink}",
42
42
  backLinkIcon: "{UIcon}",
43
43
  backLinkIconName: "arrow_back",
44
44
  title: "{UHeader}",
@@ -61,7 +61,7 @@ export default /*tw*/ {
61
61
  },
62
62
  },
63
63
  },
64
- defaultVariants: {
64
+ defaults: {
65
65
  titleSize: "lg",
66
66
  width: "wide",
67
67
  gray: false,
@@ -82,9 +82,9 @@ widePage.args = { widePage: true, width: "sm" };
82
82
 
83
83
  export const backRoute = DefaultTemplate.bind({});
84
84
  backRoute.args = {
85
+ backLabel: "back",
85
86
  backRoute: {
86
- name: "",
87
- title: "some route title",
87
+ path: "/",
88
88
  params: {},
89
89
  },
90
90
  };
@@ -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
  <div v-bind="pageAttrs">
4
4
  <!-- @slot Use it to add something before the header. -->
5
5
  <slot name="header-before" />
@@ -14,19 +14,22 @@
14
14
  <div v-bind="headerLeftFallbackAttrs">
15
15
  <ULink
16
16
  v-if="isShownArrowButton"
17
- size="xs"
17
+ no-ring
18
+ size="sm"
18
19
  color="gray"
19
- :route="backRoute"
20
+ :to="backRoute"
21
+ :label="backLabel"
20
22
  v-bind="backLinkAttrs"
21
23
  >
22
- <UIcon
23
- internal
24
- size="xs"
25
- color="gray"
26
- :name="config.backLinkIconName"
27
- v-bind="backLinkIconAttrs"
28
- />
29
- {{ backRoute.title }}
24
+ <template #left>
25
+ <UIcon
26
+ internal
27
+ size="xs"
28
+ color="gray"
29
+ :name="config.backLinkIconName"
30
+ v-bind="backLinkIconAttrs"
31
+ />
32
+ </template>
30
33
  </ULink>
31
34
 
32
35
  <UHeader :label="title" :size="titleSize" v-bind="titleAttrs" />
@@ -133,13 +136,21 @@ const props = defineProps({
133
136
  },
134
137
 
135
138
  /**
136
- * Set Vue router route params for back arrow.
139
+ * Back link vue-router route object.
137
140
  */
138
141
  backRoute: {
139
142
  type: Object,
140
143
  default: () => ({}),
141
144
  },
142
145
 
146
+ /**
147
+ * Back link label.
148
+ */
149
+ backLabel: {
150
+ type: String,
151
+ default: "",
152
+ },
153
+
143
154
  /**
144
155
  * Set gray background color.
145
156
  */
@@ -173,9 +184,9 @@ const props = defineProps({
173
184
  },
174
185
 
175
186
  /**
176
- * Sets data-cy attribute for automated testing.
187
+ * Data-test attribute for automated testing.
177
188
  */
178
- dataCy: {
189
+ dataTest: {
179
190
  type: String,
180
191
  default: "",
181
192
  },
@@ -39,7 +39,7 @@ export default /*tw*/ {
39
39
  },
40
40
  },
41
41
  },
42
- defaultVariants: {
42
+ defaults: {
43
43
  gap: "md",
44
44
  align: "start",
45
45
  justify: "start",
@@ -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
  <slot />
5
5
  </div>
@@ -76,9 +76,9 @@ const props = defineProps({
76
76
  },
77
77
 
78
78
  /**
79
- * Data-cy attribute for automated testing.
79
+ * Data-test attribute for automated testing.
80
80
  */
81
- dataCy: {
81
+ dataTest: {
82
82
  type: String,
83
83
  default: "",
84
84
  },