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.
- package/composable.ui/index.js +3 -2
- package/constants/index.js +2 -1
- package/directive.tooltip/index.js +1 -0
- package/package.json +3 -3
- package/service.ui/index.js +3 -6
- package/ui.button/configs/default.config.js +15 -18
- package/ui.button/index.stories.js +6 -2
- package/ui.button/index.vue +98 -76
- package/ui.button-link/composables/attrs.composable.js +18 -28
- package/ui.button-link/configs/default.config.js +8 -6
- package/ui.button-link/index.stories.js +20 -1
- package/ui.button-link/index.vue +21 -26
- package/ui.button-toggle/configs/default.config.js +2 -2
- package/ui.button-toggle/index.stories.js +4 -4
- package/ui.button-toggle/index.vue +7 -7
- package/ui.button-toggle-item/configs/default.config.js +2 -2
- package/ui.button-toggle-item/index.vue +4 -4
- package/ui.container-accordion/configs/default.config.js +1 -1
- package/ui.container-accordion/index.vue +3 -3
- package/ui.container-card/configs/default.config.js +1 -1
- package/ui.container-card/index.stories.js +2 -2
- package/ui.container-card/index.vue +3 -3
- package/ui.container-col/configs/default.config.js +1 -1
- package/ui.container-col/index.vue +3 -3
- package/ui.container-divider/configs/default.config.js +1 -1
- package/ui.container-divider/index.vue +3 -3
- package/ui.container-group/configs/default.config.js +1 -1
- package/ui.container-group/index.vue +3 -3
- package/ui.container-modal/configs/default.config.js +1 -1
- package/ui.container-modal/index.vue +5 -5
- package/ui.container-modal-confirm/configs/default.config.js +1 -1
- package/ui.container-modal-confirm/index.vue +5 -5
- package/ui.container-page/configs/default.config.js +2 -2
- package/ui.container-page/index.stories.js +2 -2
- package/ui.container-page/index.vue +25 -14
- package/ui.container-row/configs/default.config.js +1 -1
- package/ui.container-row/index.vue +3 -3
- package/ui.data-list/configs/default.config.js +1 -1
- package/ui.data-list/index.vue +8 -8
- package/ui.data-table/components/TableRow.vue +5 -5
- package/ui.data-table/configs/default.config.js +1 -1
- package/ui.data-table/index.stories.js +1 -1
- package/ui.data-table/index.vue +8 -8
- package/ui.dropdown-badge/configs/default.config.js +1 -1
- package/ui.dropdown-badge/index.vue +5 -5
- package/ui.dropdown-button/configs/default.config.js +2 -2
- package/ui.dropdown-button/index.vue +8 -8
- package/ui.dropdown-item/index.vue +3 -3
- package/ui.dropdown-link/configs/default.config.js +1 -1
- package/ui.dropdown-link/index.vue +5 -5
- package/ui.dropdown-list/configs/default.config.js +1 -1
- package/ui.dropdown-list/index.vue +1 -1
- package/ui.form-calendar/configs/default.config.js +1 -1
- package/ui.form-calendar/index.vue +2 -2
- package/ui.form-checkbox/configs/default.config.js +1 -1
- package/ui.form-checkbox/index.vue +4 -4
- package/ui.form-checkbox-group/configs/default.config.js +1 -1
- package/ui.form-checkbox-group/index.vue +4 -4
- package/ui.form-checkbox-multi-state/configs/default.config.js +1 -1
- package/ui.form-checkbox-multi-state/index.vue +2 -2
- package/ui.form-color-picker/configs/default.config.js +1 -1
- package/ui.form-color-picker/index.vue +3 -3
- package/ui.form-date-picker/configs/default.config.js +1 -1
- package/ui.form-date-picker/index.vue +2 -2
- package/ui.form-date-picker-range/configs/default.config.js +1 -1
- package/ui.form-date-picker-range/index.vue +2 -2
- package/ui.form-input/configs/default.config.js +3 -3
- package/ui.form-input/index.vue +4 -4
- package/ui.form-input-file/configs/default.config.js +2 -2
- package/ui.form-input-file/index.vue +21 -20
- package/ui.form-input-money/configs/default.config.js +1 -1
- package/ui.form-input-money/index.vue +3 -3
- package/ui.form-input-number/configs/default.config.js +1 -1
- package/ui.form-input-number/index.vue +7 -7
- package/ui.form-input-rating/configs/default.config.js +1 -1
- package/ui.form-input-rating/index.vue +4 -4
- package/ui.form-input-search/configs/default.config.js +1 -1
- package/ui.form-input-search/index.vue +6 -6
- package/ui.form-label/configs/default.config.js +1 -1
- package/ui.form-label/index.vue +8 -8
- package/ui.form-radio/configs/default.config.js +1 -1
- package/ui.form-radio/index.vue +4 -4
- package/ui.form-radio-group/configs/default.config.js +1 -1
- package/ui.form-radio-group/index.vue +4 -4
- package/ui.form-select/configs/default.config.js +1 -1
- package/ui.form-select/index.vue +3 -3
- package/ui.form-switch/configs/default.config.js +1 -1
- package/ui.form-switch/index.vue +3 -3
- package/ui.form-textarea/configs/default.config.js +1 -1
- package/ui.form-textarea/index.vue +4 -4
- package/ui.image-avatar/configs/default.config.js +1 -1
- package/ui.image-avatar/index.vue +3 -3
- package/ui.image-icon/configs/default.config.js +4 -48
- package/ui.image-icon/index.stories.js +0 -3
- package/ui.image-icon/index.vue +16 -45
- package/ui.loader/configs/default.config.js +1 -1
- package/ui.loader-rendering/configs/default.config.js +1 -1
- package/ui.loader-top/configs/default.config.js +1 -1
- package/ui.navigation-pagination/configs/default.config.js +1 -1
- package/ui.navigation-pagination/index.vue +7 -7
- package/ui.navigation-progress/components/StepperProgress.vue +1 -1
- package/ui.navigation-progress/configs/default.config.js +1 -1
- package/ui.navigation-progress/index.vue +3 -3
- package/ui.navigation-tab/configs/default.config.js +1 -1
- package/ui.navigation-tab/index.vue +3 -3
- package/ui.navigation-tabs/configs/default.config.js +1 -1
- package/ui.navigation-tabs/index.vue +4 -4
- package/ui.other-dot/configs/default.config.js +1 -1
- package/ui.other-dot/index.vue +3 -3
- package/ui.text-alert/configs/default.config.js +1 -1
- package/ui.text-alert/index.vue +4 -4
- package/ui.text-badge/configs/default.config.js +1 -1
- package/ui.text-badge/index.vue +3 -3
- package/ui.text-block/configs/default.config.js +1 -1
- package/ui.text-block/index.vue +3 -3
- package/ui.text-empty/configs/default.config.js +14 -4
- package/ui.text-empty/index.stories.js +0 -1
- package/ui.text-empty/index.vue +22 -13
- package/ui.text-file/configs/default.config.js +2 -2
- package/ui.text-file/index.vue +3 -3
- package/ui.text-files/configs/default.config.js +1 -1
- package/ui.text-files/index.vue +3 -3
- package/ui.text-header/configs/default.config.js +1 -1
- package/ui.text-header/index.vue +3 -3
- package/ui.text-money/configs/default.config.js +1 -1
- package/ui.text-money/index.vue +3 -3
- package/ui.text-notify/configs/default.config.js +1 -1
- package/ui.text-notify/index.vue +3 -3
- 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
|
-
|
|
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
|
-
|
|
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
|
-
<
|
|
26
|
+
<UButton
|
|
27
27
|
v-if="props.multiple && !disabled"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
:
|
|
34
|
-
:
|
|
35
|
-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
213
|
+
* Data-test attribute for automated testing.
|
|
213
214
|
*/
|
|
214
|
-
|
|
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
|
-
|
|
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
|
|
301
|
+
const removeItemButtonSize = computed(() => {
|
|
301
302
|
const sizes = {
|
|
302
|
-
sm: "
|
|
303
|
-
md: "
|
|
304
|
-
lg: "
|
|
303
|
+
sm: "2xs",
|
|
304
|
+
md: "xs",
|
|
305
|
+
lg: "sm",
|
|
305
306
|
};
|
|
306
307
|
|
|
307
308
|
return sizes[props.size];
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:error="error"
|
|
12
12
|
:disabled="disabled"
|
|
13
13
|
inputmode="decimal"
|
|
14
|
-
:data-
|
|
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-
|
|
224
|
+
* Data-test attribute for automated testing.
|
|
225
225
|
*/
|
|
226
|
-
|
|
226
|
+
dataTest: {
|
|
227
227
|
type: String,
|
|
228
228
|
default: "",
|
|
229
229
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
123
|
+
* Data-test attribute for automated testing.
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
dataTest: {
|
|
126
126
|
type: String,
|
|
127
127
|
default: "",
|
|
128
128
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:align="labelAlign"
|
|
7
7
|
:description="description"
|
|
8
8
|
v-bind="labelAttrs"
|
|
9
|
-
:data-
|
|
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-
|
|
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-
|
|
158
|
+
* Data-test attribute for automated testing.
|
|
159
159
|
*/
|
|
160
|
-
|
|
160
|
+
dataTest: {
|
|
161
161
|
type: String,
|
|
162
162
|
default: "",
|
|
163
163
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:description="description"
|
|
13
13
|
:placeholder="placeholder"
|
|
14
14
|
inputmode="search"
|
|
15
|
-
:data-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
218
|
+
* Data-test attribute for automated testing.
|
|
219
219
|
*/
|
|
220
|
-
|
|
220
|
+
dataTest: {
|
|
221
221
|
type: String,
|
|
222
222
|
default: "",
|
|
223
223
|
},
|
package/ui.form-label/index.vue
CHANGED
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
<label
|
|
15
15
|
v-if="label"
|
|
16
16
|
:for="props.for"
|
|
17
|
-
:data-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
*
|
|
159
|
+
* Data-test attribute for automated testing.
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
dataTest: {
|
|
162
162
|
type: String,
|
|
163
163
|
default: "",
|
|
164
164
|
},
|
package/ui.form-radio/index.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:disabled="disabled"
|
|
9
9
|
:description="description"
|
|
10
10
|
v-bind="labelAttrs"
|
|
11
|
-
:data-
|
|
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-
|
|
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-
|
|
160
|
+
* Data-test attribute for automated testing.
|
|
161
161
|
*/
|
|
162
|
-
|
|
162
|
+
dataTest: {
|
|
163
163
|
type: String,
|
|
164
164
|
default: "",
|
|
165
165
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:description="description"
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
align="topWithDesc"
|
|
9
|
-
:data-
|
|
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-
|
|
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-
|
|
128
|
+
* Data-test attribute for automated testing.
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
dataTest: {
|
|
131
131
|
type: String,
|
|
132
132
|
default: "radio",
|
|
133
133
|
},
|
package/ui.form-select/index.vue
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:disabled="disabled"
|
|
11
11
|
centred
|
|
12
12
|
v-bind="labelAttrs"
|
|
13
|
-
:data-
|
|
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-
|
|
494
|
+
* Data-test attribute for automated testing.
|
|
495
495
|
*/
|
|
496
|
-
|
|
496
|
+
dataTest: {
|
|
497
497
|
type: String,
|
|
498
498
|
default: "",
|
|
499
499
|
},
|
package/ui.form-switch/index.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:description="description"
|
|
7
7
|
:align="labelAlign"
|
|
8
8
|
:disabled="disabled"
|
|
9
|
-
:data-
|
|
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
|
-
*
|
|
149
|
+
* Data-test attribute for automated testing.
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
dataTest: {
|
|
152
152
|
type: String,
|
|
153
153
|
default: "",
|
|
154
154
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:description="description"
|
|
8
8
|
:size="size"
|
|
9
9
|
:disabled="disabled"
|
|
10
|
-
:data-
|
|
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-
|
|
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
|
-
*
|
|
182
|
+
* Data-test attribute for automated testing.
|
|
183
183
|
*/
|
|
184
|
-
|
|
184
|
+
dataTest: {
|
|
185
185
|
type: String,
|
|
186
186
|
default: "",
|
|
187
187
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:title="label"
|
|
4
4
|
:style="backgroundImage"
|
|
5
|
-
:data-
|
|
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-
|
|
104
|
+
* Data-test attribute for automated testing.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
dataTest: {
|
|
107
107
|
type: String,
|
|
108
108
|
default: "",
|
|
109
109
|
},
|
|
@@ -1,45 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
|
-
|
|
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
|
|
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
|
-
|
|
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` },
|