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
@@ -56,7 +56,7 @@ export default /*tw*/ {
56
56
  chooseFileIconName: "attach_file",
57
57
  clearButton: "{UButton}",
58
58
  clearIconName: "close",
59
- removeItemIcon: "{UIcon} ml-2",
59
+ removeItemButton: "{UButton} ml-2",
60
60
  removeItemIconName: "close",
61
61
  dropzoneWrapperHover: "border-gray-400 border-dashed",
62
62
  dropzoneWrapperError: "hover:border-red-400 border-dashed border-red-300",
@@ -69,7 +69,7 @@ export default /*tw*/ {
69
69
  noFile: "No file selected",
70
70
  uploadFile: "Choose file",
71
71
  },
72
- defaultVariants: {
72
+ defaults: {
73
73
  size: "md",
74
74
  labelAlign: "topInside",
75
75
  allowedFileTypes: [],
@@ -23,16 +23,18 @@
23
23
 
24
24
  <UFiles :size="size" v-bind="fileListAttrs" :file-list="fileList">
25
25
  <template #right="{ file }">
26
- <UIcon
26
+ <UButton
27
27
  v-if="props.multiple && !disabled"
28
- pill
29
- internal
30
- interactive
31
- color="brand"
32
- :size="removeItemIconSize"
33
- :name="config.removeItemIconName"
34
- :data-cy="`${dataCy}-remove-item`"
35
- v-bind="removeItemIconAttrs"
28
+ round
29
+ filled
30
+ square
31
+ no-ring
32
+ variant="thirdary"
33
+ :size="removeItemButtonSize"
34
+ :left-icon="config.removeItemIconName"
35
+ :disabled="disabled"
36
+ v-bind="removeItemButtonAttrs"
37
+ :data-test="`${dataTest}-remove-item`"
36
38
  @click.stop.prevent="onClickRemoveItem(file.id)"
37
39
  />
38
40
  </template>
@@ -51,7 +53,7 @@
51
53
  :label="currentLocale.uploadFile"
52
54
  :disabled="disabled"
53
55
  v-bind="chooseFileButtonAttrs"
54
- :data-cy="`${dataCy}-upload`"
56
+ :data-test="`${dataTest}-upload`"
55
57
  />
56
58
 
57
59
  <input
@@ -67,7 +69,7 @@
67
69
 
68
70
  <UButton
69
71
  v-if="isValue && !disabled"
70
- pill
72
+ round
71
73
  square
72
74
  filled
73
75
  no-ring
@@ -76,7 +78,7 @@
76
78
  :disabled="disabled"
77
79
  :left-icon="config.clearIconName"
78
80
  v-bind="clearButtonAttrs"
79
- :data-cy="`${dataCy}-clear`"
81
+ :data-test="`${dataTest}-clear`"
80
82
  @click="onClickResetFiles"
81
83
  />
82
84
  </div>
@@ -95,7 +97,6 @@ import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue"
95
97
  import { merge } from "lodash-es";
96
98
 
97
99
  import UText from "../ui.text-block";
98
- import UIcon from "../ui.image-icon";
99
100
  import ULabel from "../ui.form-label";
100
101
  import UButton from "../ui.button";
101
102
  import UFiles from "../ui.text-files";
@@ -209,9 +210,9 @@ const props = defineProps({
209
210
  },
210
211
 
211
212
  /**
212
- * Data-cy attribute for automated testing.
213
+ * Data-test attribute for automated testing.
213
214
  */
214
- dataCy: {
215
+ dataTest: {
215
216
  type: String,
216
217
  default: "",
217
218
  },
@@ -249,7 +250,7 @@ const {
249
250
  inputAttrs,
250
251
  fileListAttrs,
251
252
  buttonWrapperAttrs,
252
- removeItemIconAttrs,
253
+ removeItemButtonAttrs,
253
254
  hasSlotContent,
254
255
  } = useAttrs(props);
255
256
 
@@ -297,11 +298,11 @@ const fileList = computed(() => {
297
298
  return currentFiles.value ? [currentFiles.value] : [];
298
299
  });
299
300
 
300
- const removeItemIconSize = computed(() => {
301
+ const removeItemButtonSize = computed(() => {
301
302
  const sizes = {
302
- sm: "4xs",
303
- md: "3xs",
304
- lg: "2xs",
303
+ sm: "2xs",
304
+ md: "xs",
305
+ lg: "sm",
305
306
  };
306
307
 
307
308
  return sizes[props.size];
@@ -1,6 +1,6 @@
1
1
  export default /*tw*/ {
2
2
  input: "{UInput}",
3
- defaultVariants: {
3
+ defaults: {
4
4
  symbol: "$",
5
5
  size: "md",
6
6
  decimalScale: 2,
@@ -11,7 +11,7 @@
11
11
  :error="error"
12
12
  :disabled="disabled"
13
13
  inputmode="decimal"
14
- :data-cy="`${dataCy}-base-currency`"
14
+ :data-test="`${dataTest}-base-currency`"
15
15
  :left-icon="leftIcon"
16
16
  :right-icon="rightIcon"
17
17
  v-bind="inputAttrs"
@@ -221,9 +221,9 @@ const props = defineProps({
221
221
  },
222
222
 
223
223
  /**
224
- * Data-cy attribute for automated testing.
224
+ * Data-test attribute for automated testing.
225
225
  */
226
- dataCy: {
226
+ dataTest: {
227
227
  type: String,
228
228
  default: "",
229
229
  },
@@ -27,7 +27,7 @@ export default /*tw*/ {
27
27
  },
28
28
  },
29
29
  },
30
- defaultVariants: {
30
+ defaults: {
31
31
  size: "md",
32
32
  },
33
33
  };
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <div :data-cy="dataCy" v-bind="wrapperAttrs">
2
+ <div :data-test="dataTest" v-bind="wrapperAttrs">
3
3
  <UButton
4
4
  variant="thirdary"
5
5
  size="sm"
6
6
  filled
7
7
  square
8
- pill
8
+ round
9
9
  :disabled="isRemoveButtonDisabled"
10
10
  v-bind="removeButtonAttrs"
11
11
  @click="onClickRemove"
@@ -15,7 +15,7 @@
15
15
  :size="size"
16
16
  :name="config.removeIconName"
17
17
  :color="isRemoveButtonDisabled ? 'gray' : 'grayscale'"
18
- :data-cy="`${dataCy}-remove`"
18
+ :data-test="`${dataTest}-remove`"
19
19
  v-bind="removeIconAttrs"
20
20
  />
21
21
  </UButton>
@@ -30,7 +30,7 @@
30
30
  size="sm"
31
31
  filled
32
32
  square
33
- pill
33
+ round
34
34
  :disabled="isAddButtonDisabled"
35
35
  v-bind="addButtonAttrs"
36
36
  @click="onClickAdd"
@@ -40,7 +40,7 @@
40
40
  :size="size"
41
41
  :name="config.addIconName"
42
42
  :color="isAddButtonDisabled ? 'gray' : 'grayscale'"
43
- :data-cy="`${dataCy}-add`"
43
+ :data-test="`${dataTest}-add`"
44
44
  v-bind="addIconAttrs"
45
45
  />
46
46
  </UButton>
@@ -120,9 +120,9 @@ const props = defineProps({
120
120
  },
121
121
 
122
122
  /**
123
- * Data-cy attribute for automated testing.
123
+ * Data-test attribute for automated testing.
124
124
  */
125
- dataCy: {
125
+ dataTest: {
126
126
  type: String,
127
127
  default: "",
128
128
  },
@@ -32,7 +32,7 @@ export default /*tw*/ {
32
32
  },
33
33
  },
34
34
  },
35
- defaultVariants: {
35
+ defaults: {
36
36
  labelAlign: "top",
37
37
  size: "md",
38
38
  stars: 5,
@@ -6,7 +6,7 @@
6
6
  :align="labelAlign"
7
7
  :description="description"
8
8
  v-bind="labelAttrs"
9
- :data-cy="dataCy"
9
+ :data-test="dataTest"
10
10
  >
11
11
  <div v-bind="wrapperAttrs">
12
12
  <div v-if="counter || hasSlotContent($slots['counter'])" v-bind="counterAttrs">
@@ -30,7 +30,7 @@
30
30
  :interactive="selectable"
31
31
  :name="star <= counterValue ? config.selectedIconName : config.unselectedIconName"
32
32
  v-bind="starAttrs"
33
- :data-cy="`${dataCy}-rating-star-${star}`"
33
+ :data-test="`${dataTest}-rating-star-${star}`"
34
34
  @click="onClickStar(star)"
35
35
  @mouseleave="onMouseHover()"
36
36
  @mouseover="onMouseHover(star)"
@@ -155,9 +155,9 @@ const props = defineProps({
155
155
  },
156
156
 
157
157
  /**
158
- * Data-cy attribute for automated testing.
158
+ * Data-test attribute for automated testing.
159
159
  */
160
- dataCy: {
160
+ dataTest: {
161
161
  type: String,
162
162
  default: "",
163
163
  },
@@ -5,7 +5,7 @@ export default /*tw*/ {
5
5
  searchIcon: "{UIcon}",
6
6
  searchIconName: "search",
7
7
  button: "{UButton} rounded-l-none ml-1 outline outline-1 outline-gray-900",
8
- defaultVariants: {
8
+ defaults: {
9
9
  size: "md",
10
10
  labelAlign: "topInside",
11
11
  debounce: 300,
@@ -12,7 +12,7 @@
12
12
  :description="description"
13
13
  :placeholder="placeholder"
14
14
  inputmode="search"
15
- :data-cy="dataCy"
15
+ :data-test="dataTest"
16
16
  :left-icon="leftIcon"
17
17
  v-bind="inputAttrs"
18
18
  @keyup.enter="onClickSearch"
@@ -34,7 +34,7 @@
34
34
  interactive
35
35
  color="gray"
36
36
  :name="config.clearIconName"
37
- :data-cy="`${dataCy}-close`"
37
+ :data-test="`${dataTest}-close`"
38
38
  :size="iconSize"
39
39
  v-bind="clearIconAttrs"
40
40
  @click="onClickClear"
@@ -53,7 +53,7 @@
53
53
  interactive
54
54
  :size="iconSize"
55
55
  :name="rightIcon || config.searchIconName"
56
- :data-cy="`${dataCy}-search`"
56
+ :data-test="`${dataTest}-search`"
57
57
  v-bind="searchIconAttrs"
58
58
  @click="onClickSearch"
59
59
  />
@@ -69,7 +69,7 @@
69
69
  :size="buttonSize"
70
70
  no-ring
71
71
  v-bind="buttonAttrs"
72
- :data-cy="`${dataCy}-right`"
72
+ :data-test="`${dataTest}-right`"
73
73
  @click="onClickSearch"
74
74
  />
75
75
  </slot>
@@ -215,9 +215,9 @@ const props = defineProps({
215
215
  },
216
216
 
217
217
  /**
218
- * Data-cy attribute for automated testing.
218
+ * Data-test attribute for automated testing.
219
219
  */
220
- dataCy: {
220
+ dataTest: {
221
221
  type: String,
222
222
  default: "",
223
223
  },
@@ -97,7 +97,7 @@ export default /*tw*/ {
97
97
  { align: "topInside", size: "lg", class: "mt-2.5" },
98
98
  ],
99
99
  },
100
- defaultVariants: {
100
+ defaults: {
101
101
  align: "top",
102
102
  size: "md",
103
103
  error: false,
@@ -14,16 +14,16 @@
14
14
  <label
15
15
  v-if="label"
16
16
  :for="props.for"
17
- :data-cy="`${dataCy}-label`"
17
+ :data-test="`${dataTest}-label`"
18
18
  v-bind="labelAttrs"
19
19
  v-text="label"
20
20
  />
21
21
 
22
- <div v-if="error" :data-cy="`${dataCy}-error`" v-bind="descriptionAttrs" v-text="error" />
22
+ <div v-if="error" :data-test="`${dataTest}-error`" v-bind="descriptionAttrs" v-text="error" />
23
23
 
24
24
  <div
25
25
  v-if="description && !error"
26
- :data-cy="`${dataCy}-description`"
26
+ :data-test="`${dataTest}-description`"
27
27
  v-bind="descriptionAttrs"
28
28
  v-text="description"
29
29
  />
@@ -38,7 +38,7 @@
38
38
  v-if="label"
39
39
  ref="labelRef"
40
40
  :for="props.for"
41
- :data-cy="`${dataCy}-label`"
41
+ :data-test="`${dataTest}-label`"
42
42
  v-bind="labelAttrs"
43
43
  v-text="label"
44
44
  />
@@ -46,11 +46,11 @@
46
46
  <!-- @slot Use it to wrap something into the label. -->
47
47
  <slot />
48
48
 
49
- <div v-if="error" :data-cy="`${dataCy}-error`" v-bind="descriptionAttrs" v-text="error" />
49
+ <div v-if="error" :data-test="`${dataTest}-error`" v-bind="descriptionAttrs" v-text="error" />
50
50
 
51
51
  <div
52
52
  v-if="description && !error"
53
- :data-cy="`${dataCy}-description`"
53
+ :data-test="`${dataTest}-description`"
54
54
  v-bind="descriptionAttrs"
55
55
  v-text="description"
56
56
  />
@@ -156,9 +156,9 @@ const props = defineProps({
156
156
  },
157
157
 
158
158
  /**
159
- * Sets 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
  },
@@ -19,7 +19,7 @@ export default /*tw*/ {
19
19
  },
20
20
  },
21
21
  },
22
- defaultVariants: {
22
+ defaults: {
23
23
  color: "brand",
24
24
  labelAlign: "right",
25
25
  size: "md",
@@ -8,7 +8,7 @@
8
8
  :disabled="disabled"
9
9
  :description="description"
10
10
  v-bind="labelAttrs"
11
- :data-cy="`${dataCy}-label`"
11
+ :data-test="`${dataTest}-label`"
12
12
  >
13
13
  <input
14
14
  :id="id"
@@ -18,7 +18,7 @@
18
18
  :checked="checked || isChecked"
19
19
  :disabled="disabled"
20
20
  v-bind="radioAttrs"
21
- :data-cy="dataCy"
21
+ :data-test="dataTest"
22
22
  @change="onChange"
23
23
  />
24
24
 
@@ -157,9 +157,9 @@ const props = defineProps({
157
157
  },
158
158
 
159
159
  /**
160
- * Data-cy attribute for automated testing.
160
+ * Data-test attribute for automated testing.
161
161
  */
162
- dataCy: {
162
+ dataTest: {
163
163
  type: String,
164
164
  default: "",
165
165
  },
@@ -11,7 +11,7 @@ export default /*tw*/ {
11
11
  },
12
12
  },
13
13
  },
14
- defaultVariants: {
14
+ defaults: {
15
15
  color: "brand",
16
16
  size: "md",
17
17
  disabled: false,
@@ -6,7 +6,7 @@
6
6
  :description="description"
7
7
  :disabled="disabled"
8
8
  align="topWithDesc"
9
- :data-cy="dataCy"
9
+ :data-test="dataTest"
10
10
  v-bind="labelAttrs"
11
11
  >
12
12
  <div v-bind="listAttrs">
@@ -19,7 +19,7 @@
19
19
  :label="option.label"
20
20
  :description="option.description"
21
21
  :disabled="disabled"
22
- :data-cy="`${dataCy}-item-${index}`"
22
+ :data-test="`${dataTest}-item-${index}`"
23
23
  v-bind="radioAttrs"
24
24
  />
25
25
  </slot>
@@ -125,9 +125,9 @@ const props = defineProps({
125
125
  },
126
126
 
127
127
  /**
128
- * Data-cy attribute for automated testing.
128
+ * Data-test attribute for automated testing.
129
129
  */
130
- dataCy: {
130
+ dataTest: {
131
131
  type: String,
132
132
  default: "radio",
133
133
  },
@@ -117,7 +117,7 @@ export default /*tw*/ {
117
117
  clear: "clear",
118
118
  addMore: "Add more...",
119
119
  },
120
- defaultVariants: {
120
+ defaults: {
121
121
  size: "md",
122
122
  labelAlign: "topInside",
123
123
  openDirection: "auto",
@@ -10,7 +10,7 @@
10
10
  :disabled="disabled"
11
11
  centred
12
12
  v-bind="labelAttrs"
13
- :data-cy="dataCy"
13
+ :data-test="dataTest"
14
14
  >
15
15
  <div
16
16
  ref="wrapperRef"
@@ -491,9 +491,9 @@ const props = defineProps({
491
491
  },
492
492
 
493
493
  /**
494
- * Data-cy attribute for automated testing.
494
+ * Data-test attribute for automated testing.
495
495
  */
496
- dataCy: {
496
+ dataTest: {
497
497
  type: String,
498
498
  default: "",
499
499
  },
@@ -58,7 +58,7 @@ export default /*tw*/ {
58
58
  inactive: "Off",
59
59
  active: "On",
60
60
  },
61
- defaultVariants: {
61
+ defaults: {
62
62
  color: "brand",
63
63
  size: "md",
64
64
  labelAlign: "right",
@@ -6,7 +6,7 @@
6
6
  :description="description"
7
7
  :align="labelAlign"
8
8
  :disabled="disabled"
9
- :data-cy="dataCy"
9
+ :data-test="dataTest"
10
10
  v-bind="labelAttrs"
11
11
  @click="onClickToggle"
12
12
  >
@@ -146,9 +146,9 @@ const props = defineProps({
146
146
  },
147
147
 
148
148
  /**
149
- * Sets data-cy attribute for automated testing.
149
+ * Data-test attribute for automated testing.
150
150
  */
151
- dataCy: {
151
+ dataTest: {
152
152
  type: String,
153
153
  default: "",
154
154
  },
@@ -40,7 +40,7 @@ export default /*tw*/ {
40
40
  },
41
41
  },
42
42
  },
43
- defaultVariants: {
43
+ defaults: {
44
44
  rows: "3",
45
45
  size: "md",
46
46
  type: "text",
@@ -7,7 +7,7 @@
7
7
  :description="description"
8
8
  :size="size"
9
9
  :disabled="disabled"
10
- :data-cy="dataCy"
10
+ :data-test="dataTest"
11
11
  :align="labelAlign"
12
12
  v-bind="labelAttrs"
13
13
  >
@@ -31,7 +31,7 @@
31
31
  :disabled="disabled"
32
32
  :rows="rows"
33
33
  :inputmode="inputmode"
34
- :data-cy="dataCy"
34
+ :data-test="dataTest"
35
35
  v-bind="textareaAttrs"
36
36
  @focus="onFocus"
37
37
  @blur="onBlur"
@@ -179,9 +179,9 @@ const props = defineProps({
179
179
  },
180
180
 
181
181
  /**
182
- * Sets data-cy attribute for automated testing.
182
+ * Data-test attribute for automated testing.
183
183
  */
184
- dataCy: {
184
+ dataTest: {
185
185
  type: String,
186
186
  default: "",
187
187
  },
@@ -34,7 +34,7 @@ export default /*tw*/ {
34
34
  },
35
35
  },
36
36
  icon: "{UIcon}",
37
- defaultVariants: {
37
+ defaults: {
38
38
  color: "grayscale",
39
39
  rounded: "md",
40
40
  size: "md",
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  :title="label"
4
4
  :style="backgroundImage"
5
- :data-cy="dataCy"
5
+ :data-test="dataTest"
6
6
  v-bind="avatarAttrs"
7
7
  @click="onClick"
8
8
  >
@@ -101,9 +101,9 @@ const props = defineProps({
101
101
  },
102
102
 
103
103
  /**
104
- * Data-cy attribute for automated testing.
104
+ * Data-test attribute for automated testing.
105
105
  */
106
- dataCy: {
106
+ dataTest: {
107
107
  type: String,
108
108
  default: "",
109
109
  },
@@ -1,45 +1,7 @@
1
1
  export default /*tw*/ {
2
- wrapper: {
3
- base: "flex",
4
- variants: {
5
- pill: {
6
- true: "rounded-full bg-{color}-600/5",
7
- },
8
- },
9
- compoundVariants: [
10
- { pill: true, size: "4xs", class: "p-0.5" },
11
- { pill: true, size: "3xs", class: "p-1" },
12
- { pill: true, size: "2xs", class: "p-1" },
13
- { pill: true, size: "xs", class: "p-2" },
14
- { pill: true, size: "sm", class: "p-2" },
15
- { pill: true, size: "md", class: "p-3" },
16
- { pill: true, size: "lg", class: "p-3" },
17
- { pill: true, size: "xl", class: "p-4" },
18
- { pill: true, size: "2xl", class: "p-4" },
19
- { pill: true, size: "3xl", class: "p-4" },
20
- { pill: true, size: "4xl", class: "p-5" },
21
- { pill: true, size: "5xl", class: "p-5" },
22
- { pill: true, color: "white", class: "bg-white/5" },
23
- { pill: true, color: "grayscale", class: "bg-gray-700/5" },
24
- ],
25
- },
26
- container: {
27
- base: "fill-current outline-0",
2
+ icon: {
3
+ base: "flex w-fit fill-current outline-0",
28
4
  variants: {
29
- size: {
30
- "4xs": "size-2.5",
31
- "3xs": "size-3",
32
- "2xs": "size-3.5",
33
- xs: "size-4",
34
- sm: "size-5",
35
- md: "size-6",
36
- lg: "size-8",
37
- xl: "size-10",
38
- "2xl": "size-12",
39
- "3xl": "size-14",
40
- "4xl": "size-16",
41
- "5xl": "size-20",
42
- },
43
5
  variant: {
44
6
  light: "text-{color}-400",
45
7
  default: "text-{color}-600",
@@ -50,12 +12,8 @@ export default /*tw*/ {
50
12
  grayscale: "text-gray-900",
51
13
  },
52
14
  interactive: {
53
- true: "cursor-pointer hover:opacity-50 active:opacity-50",
15
+ true: "cursor-pointer",
54
16
  },
55
- },
56
- },
57
- icon: {
58
- variants: {
59
17
  size: {
60
18
  "4xs": "size-2.5",
61
19
  "3xs": "size-3",
@@ -72,7 +30,7 @@ export default /*tw*/ {
72
30
  },
73
31
  },
74
32
  },
75
- defaultVariants: {
33
+ defaults: {
76
34
  name: "",
77
35
  library: "@material-symbols",
78
36
  weight: 500,
@@ -81,10 +39,8 @@ export default /*tw*/ {
81
39
  size: "md",
82
40
  variant: "default",
83
41
  interactive: false,
84
- pill: false,
85
42
  },
86
43
  safelist: (colors) => [
87
- { pattern: `bg-(${colors})-600` },
88
44
  { pattern: `text-(${colors})-400` },
89
45
  { pattern: `text-(${colors})-600` },
90
46
  { pattern: `text-(${colors})-800` },