vueless 0.0.135 → 0.0.137
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/package.json +1 -1
- package/preset.tailwind/index.js +1 -1
- package/ui.button/configs/default.config.js +82 -89
- package/ui.data-list/composables/attrs.composable.js +6 -6
- package/ui.data-list/configs/default.config.js +6 -6
- package/ui.data-list/index.vue +8 -8
- package/ui.dropdown-list/composables/attrs.composable.js +2 -2
- package/ui.dropdown-list/configs/default.config.js +2 -2
- package/ui.dropdown-list/index.vue +3 -3
- package/ui.form-input-file/composables/attrs.composable.js +0 -2
- package/ui.form-select/composables/attrs.composable.js +6 -6
- package/ui.form-select/configs/default.config.js +6 -6
- package/ui.form-select/index.vue +9 -9
- package/ui.text-file/configs/default.config.js +2 -2
- package/ui.text-file/index.vue +1 -1
- package/ui.text-notify/composables/attrs.composable.js +8 -8
- package/ui.text-notify/configs/default.config.js +8 -8
- package/ui.text-notify/index.vue +12 -12
- package/web-types.json +1 -1
package/package.json
CHANGED
package/preset.tailwind/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export function vuelessPreset() {
|
|
|
26
26
|
const devSafelist = [
|
|
27
27
|
{
|
|
28
28
|
pattern: /(border|bg|text|ring)-(.*)-((50|[1-9]00|950)?)$/,
|
|
29
|
-
variants: ["hover", "focus", "focus-within", "active"],
|
|
29
|
+
variants: ["hover", "focus", "focus-within", "active", "disabled"],
|
|
30
30
|
},
|
|
31
31
|
];
|
|
32
32
|
|
|
@@ -2,43 +2,44 @@ export default /*tw*/ {
|
|
|
2
2
|
button: {
|
|
3
3
|
base: `
|
|
4
4
|
flex items-center justify-center
|
|
5
|
-
text-base font-medium
|
|
5
|
+
text-base font-medium outline-none
|
|
6
|
+
border border-solid rounded-lg
|
|
6
7
|
transition duration-100 ease-in-out
|
|
7
|
-
focus:ring-
|
|
8
|
+
focus:ring-opacity-20 focus:ring-4 focus:outline-none
|
|
9
|
+
active:ring-opacity-20
|
|
10
|
+
disabled:ring-0 disabled:cursor-no-drop
|
|
8
11
|
`,
|
|
9
12
|
variants: {
|
|
10
13
|
size: {
|
|
11
|
-
xs: "px-2 py-1.5 text-xs leading-tight",
|
|
12
|
-
sm: "px-3 py-2.5 text-sm leading-tight",
|
|
13
|
-
md: "px-4 py-3.5 text-base leading-tight",
|
|
14
|
-
lg: "px-5 py-[1.125rem] text-lg leading-tight",
|
|
14
|
+
xs: "px-2 py-1.5 text-xs leading-tight gap-0.5",
|
|
15
|
+
sm: "px-3 py-2.5 text-sm leading-tight gap-1",
|
|
16
|
+
md: "px-4 py-3.5 text-base leading-tight gap-1.5",
|
|
17
|
+
lg: "px-5 py-[1.125rem] text-lg leading-tight gap-2",
|
|
15
18
|
},
|
|
16
19
|
variant: {
|
|
17
20
|
primary: `
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
text-white
|
|
22
|
+
bg-{color}-600 border-{color}-600
|
|
23
|
+
hover:bg-{color}-700 hover:border-{color}-700
|
|
24
|
+
focus:bg-{color}-700 focus:border-{color}-700 focus:ring-{color}-700
|
|
25
|
+
active:bg-{color}-800 active:border-{color}-800 active:ring-{color}-800
|
|
26
|
+
disabled:bg-{color}-300 disabled:border-{color}-300 disabled:text-white
|
|
27
|
+
`,
|
|
25
28
|
secondary: `
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
focus:text-{color}-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
active:border-{color}-500 active:text-{color}-500
|
|
33
|
-
active:border-opacity-70 active:text-opacity-70`,
|
|
29
|
+
text-{color}-600 border-{color}-600
|
|
30
|
+
hover:text-{color}-700 hover:border-{color}-700
|
|
31
|
+
focus:text-{color}-700 focus:border-{color}-700 focus:ring-{color}-700
|
|
32
|
+
active:text-{color}-800 active:border-{color}-800 active:ring-{color}-800
|
|
33
|
+
disabled:text-{color}-300 disabled:border-{color}-300
|
|
34
|
+
`,
|
|
34
35
|
thirdary: `
|
|
35
|
-
border
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
border-transparent
|
|
37
|
+
text-{color}-600
|
|
38
|
+
hover:text-{color}-700 hover:bg-{color}-700 hover:bg-opacity-10
|
|
39
|
+
focus:text-{color}-700 focus:bg-{color}-700 focus:bg-opacity-10 focus:ring-{color}-700
|
|
40
|
+
active:text-{color}-800 active:bg-{color}-800 active:bg-opacity-15 active:ring-{color}-800
|
|
41
|
+
disabled:text-{color}-300
|
|
42
|
+
`,
|
|
42
43
|
},
|
|
43
44
|
loading: {
|
|
44
45
|
true: "pointer-events-none",
|
|
@@ -49,102 +50,84 @@ export default /*tw*/ {
|
|
|
49
50
|
block: {
|
|
50
51
|
true: "w-full",
|
|
51
52
|
},
|
|
53
|
+
color: {
|
|
54
|
+
grayscale: "focus:ring-gray-800 active:ring-gray-700 disabled:text-gray-400",
|
|
55
|
+
white: "focus:ring-gray-800 active:ring-gray-700 disabled:text-gray-400",
|
|
56
|
+
},
|
|
52
57
|
},
|
|
53
58
|
compoundVariants: [
|
|
54
|
-
{
|
|
55
|
-
disabled: true,
|
|
56
|
-
variant: "primary",
|
|
57
|
-
class: `
|
|
58
|
-
border-opacity-0 bg-opacity-40 cursor-no-drop text-white
|
|
59
|
-
hover:bg-opacity-40
|
|
60
|
-
focus:bg-opacity-40 focus:ring-0
|
|
61
|
-
active:bg-opacity-40 active:ring-0
|
|
62
|
-
`,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
disabled: true,
|
|
66
|
-
variant: "secondary",
|
|
67
|
-
class: `
|
|
68
|
-
text-opacity-40 border-opacity-40 cursor-no-drop
|
|
69
|
-
hover:text-opacity-40 hover:border-opacity-40
|
|
70
|
-
focus:text-opacity-40 focus:border-opacity-40 focus:ring-0
|
|
71
|
-
active:text-opacity-40 active:border-opacity-40 active:ring-0
|
|
72
|
-
`,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
disabled: true,
|
|
76
|
-
variant: "thirdary",
|
|
77
|
-
class: `
|
|
78
|
-
bg-opacity-5 text-opacity-40 ring-opacity-0 cursor-no-drop
|
|
79
|
-
hover:bg-opacity-5 hover:text-opacity-40
|
|
80
|
-
focus:ring-0 focus:bg-opacity-5 focus:text-opacity-40
|
|
81
|
-
active:bg-opacity-5 active:ring-0 active:text-opacity-40
|
|
82
|
-
`,
|
|
83
|
-
},
|
|
84
59
|
{
|
|
85
60
|
color: "grayscale",
|
|
86
61
|
variant: "primary",
|
|
87
62
|
class: `
|
|
88
|
-
|
|
89
|
-
hover:
|
|
90
|
-
focus:
|
|
91
|
-
active:
|
|
63
|
+
bg-gray-900 border-gray-900
|
|
64
|
+
hover:bg-gray-800 hover:border-gray-800
|
|
65
|
+
focus:bg-gray-800 focus:border-gray-800
|
|
66
|
+
active:bg-gray-700 active:border-gray-700
|
|
67
|
+
disabled:bg-gray-400 disabled:border-gray-400 disabled:text-white
|
|
68
|
+
`,
|
|
92
69
|
},
|
|
93
70
|
{
|
|
94
71
|
color: "grayscale",
|
|
95
72
|
variant: "secondary",
|
|
96
73
|
class: `
|
|
97
74
|
text-gray-900 border-gray-900
|
|
98
|
-
hover:
|
|
99
|
-
focus:
|
|
100
|
-
active:
|
|
75
|
+
hover:text-gray-800 hover:border-gray-800
|
|
76
|
+
focus:text-gray-800 focus:border-gray-800
|
|
77
|
+
active:text-gray-700 active:border-gray-700
|
|
78
|
+
disabled:border-gray-400
|
|
79
|
+
`,
|
|
101
80
|
},
|
|
102
81
|
{
|
|
103
82
|
color: "grayscale",
|
|
104
83
|
variant: "thirdary",
|
|
105
84
|
class: `
|
|
106
85
|
text-gray-900
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
active:text-gray-
|
|
86
|
+
hover:text-gray-800 hover:bg-gray-800 hover:bg-opacity-10
|
|
87
|
+
focus:text-gray-800 focus:bg-gray-800 focus:bg-opacity-10
|
|
88
|
+
active:text-gray-700 active:bg-gray-700 active:bg-opacity-15
|
|
89
|
+
`,
|
|
110
90
|
},
|
|
111
91
|
{
|
|
112
92
|
color: "white",
|
|
113
93
|
variant: "primary",
|
|
114
94
|
class: `
|
|
115
|
-
border-white bg-white
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
active:border-
|
|
95
|
+
text-gray-900 border-white bg-white
|
|
96
|
+
hover:text-gray-800 hover:border-gray-50 hover:bg-gray-50
|
|
97
|
+
focus:text-gray-800 focus:border-gray-50 focus:bg-gray-50
|
|
98
|
+
active:text-gray-700 active:border-gray-100 active:bg-gray-100
|
|
99
|
+
`,
|
|
119
100
|
},
|
|
120
101
|
{
|
|
121
102
|
color: "white",
|
|
122
103
|
variant: "secondary",
|
|
123
104
|
class: `
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
active:border-
|
|
105
|
+
text-gray-900 border-white
|
|
106
|
+
hover:text-gray-800 hover:border-gray-50
|
|
107
|
+
focus:text-gray-800 focus:border-gray-50
|
|
108
|
+
active:text-gray-700 active:border-gray-100
|
|
109
|
+
`,
|
|
128
110
|
},
|
|
129
111
|
{
|
|
130
112
|
color: "white",
|
|
131
113
|
variant: "thirdary",
|
|
132
114
|
class: `
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
active:bg-white
|
|
115
|
+
text-gray-900
|
|
116
|
+
hover:text-gray-800 hover:bg-white hover:bg-opacity-10
|
|
117
|
+
focus:text-gray-800 focus:bg-white focus:bg-opacity-10
|
|
118
|
+
active:text-gray-700 active:bg-white active:bg-opacity-15
|
|
119
|
+
`,
|
|
137
120
|
},
|
|
138
|
-
{ filled: true, variant: "thirdary", class: "bg-{color}-
|
|
139
|
-
{ filled: true, variant: "thirdary", color: "
|
|
140
|
-
{ filled: true, variant: "thirdary", color: "
|
|
121
|
+
{ filled: true, variant: "thirdary", class: "bg-{color}-600 bg-opacity-10" },
|
|
122
|
+
{ filled: true, variant: "thirdary", color: "grayscale", class: "bg-gray-800 bg-opacity-10" },
|
|
123
|
+
{ filled: true, variant: "thirdary", color: "white", class: "bg-gray-50" },
|
|
141
124
|
{ square: true, size: "xs", class: "p-1" },
|
|
142
125
|
{ square: true, size: "sm", class: "p-2" },
|
|
143
126
|
{ square: true, size: "md", class: "p-3" },
|
|
144
|
-
{ square: true, size: "lg", class: "
|
|
127
|
+
{ square: true, size: "lg", class: "p-4" },
|
|
145
128
|
],
|
|
146
129
|
},
|
|
147
|
-
text: "whitespace-nowrap
|
|
130
|
+
text: "whitespace-nowrap",
|
|
148
131
|
defaultVariants: {
|
|
149
132
|
color: "brand",
|
|
150
133
|
variant: "primary",
|
|
@@ -158,9 +141,19 @@ export default /*tw*/ {
|
|
|
158
141
|
disabled: false,
|
|
159
142
|
},
|
|
160
143
|
safelist: (colors) => [
|
|
161
|
-
{ pattern: `border-(${colors})-
|
|
162
|
-
{ pattern: `
|
|
163
|
-
{ pattern: `
|
|
164
|
-
{ pattern: `
|
|
144
|
+
{ pattern: `border-(${colors})-600` },
|
|
145
|
+
{ pattern: `border-(${colors})-700`, variants: ["hover", "focus"] },
|
|
146
|
+
{ pattern: `border-(${colors})-800`, variants: ["active"] },
|
|
147
|
+
{ pattern: `border-(${colors})-300`, variants: ["disabled"] },
|
|
148
|
+
{ pattern: `bg-(${colors})-600` },
|
|
149
|
+
{ pattern: `bg-(${colors})-700`, variants: ["hover", "focus"] },
|
|
150
|
+
{ pattern: `bg-(${colors})-800`, variants: ["active"] },
|
|
151
|
+
{ pattern: `bg-(${colors})-300`, variants: ["disabled"] },
|
|
152
|
+
{ pattern: `text-(${colors})-600` },
|
|
153
|
+
{ pattern: `text-(${colors})-700`, variants: ["hover", "focus"] },
|
|
154
|
+
{ pattern: `text-(${colors})-800`, variants: ["active"] },
|
|
155
|
+
{ pattern: `text-(${colors})-300`, variants: ["disabled"] },
|
|
156
|
+
{ pattern: `ring-(${colors})-700`, variants: ["focus"] },
|
|
157
|
+
{ pattern: `ring-(${colors})-800`, variants: ["active"] },
|
|
165
158
|
],
|
|
166
159
|
};
|
|
@@ -14,9 +14,9 @@ export function useAttrs(props) {
|
|
|
14
14
|
const itemWrapperAttrs = getAttrs("itemWrapper");
|
|
15
15
|
const itemAttrs = getAttrs("item");
|
|
16
16
|
const customActionsAttrs = getAttrs("customActions");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
17
|
+
const deleteIconAttrs = getAttrs("deleteIcon", { isComponent: true });
|
|
18
|
+
const editIconAttrs = getAttrs("editIcon", { isComponent: true });
|
|
19
|
+
const dragIconAttrs = getAttrs("dragIcon", { isComponent: true });
|
|
20
20
|
const nestedAttrs = getAttrs("nested", { isComponent: true });
|
|
21
21
|
|
|
22
22
|
const titleRaw = getAttrs("title");
|
|
@@ -35,11 +35,11 @@ export function useAttrs(props) {
|
|
|
35
35
|
nestedAttrs,
|
|
36
36
|
itemWrapperAttrs,
|
|
37
37
|
itemAttrs,
|
|
38
|
-
iconDragAttrs,
|
|
39
38
|
titleAttrs,
|
|
40
39
|
customActionsAttrs,
|
|
41
|
-
iconDeleteAttrs,
|
|
42
|
-
iconEditAttrs,
|
|
43
40
|
hasSlotContent,
|
|
41
|
+
deleteIconAttrs,
|
|
42
|
+
editIconAttrs,
|
|
43
|
+
dragIconAttrs,
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -10,18 +10,18 @@ export default /*tw*/ {
|
|
|
10
10
|
group-last/item-wrapper:border-b-0 group-[]/nested:group-last/item-wrapper:border-b
|
|
11
11
|
py-4 space-x-4 flex flex-auto items-center justify-between
|
|
12
12
|
`,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
dragIcon: "icon-drag cursor-move opacity-100 fill-gray-400 md:fill-gray-500",
|
|
14
|
+
dragIconName: "drag_indicator",
|
|
15
15
|
title: "text-base font-normal text-gray-900 flex-auto pt-px",
|
|
16
16
|
titleCrossed: "line-through",
|
|
17
17
|
customActions: `
|
|
18
18
|
space-x-5 opacity-50 md:flex md:items-center md:opacity-0
|
|
19
19
|
group-hover/item:md:block group-hover/item:opacity-100
|
|
20
20
|
`,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
deleteIcon: "hidden md:block md:opacity-0 group-hover/item:md:opacity-100",
|
|
22
|
+
deleteIconName: "delete",
|
|
23
|
+
editIcon: "fill-gray-500 opacity-50",
|
|
24
|
+
editIconName: "edit_note",
|
|
25
25
|
nested: "group/nested ml-6",
|
|
26
26
|
i18n: {
|
|
27
27
|
delete: "Delete",
|
package/ui.data-list/index.vue
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<template #item="{ element }">
|
|
26
26
|
<div :id="element.id" :data-cy="`${dataCy}-item`" v-bind="itemWrapperAttrs">
|
|
27
27
|
<div :data-cy="`${dataCy}-item-${element.id}`" v-bind="itemAttrs">
|
|
28
|
-
<UIcon internal :name="config.
|
|
28
|
+
<UIcon internal :name="config.dragIconName" color="gray" v-bind="dragIconAttrs" />
|
|
29
29
|
|
|
30
30
|
<div v-bind="titleAttrs(element.isActive)">
|
|
31
31
|
<slot :item="element">
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
internal
|
|
48
48
|
interactive
|
|
49
49
|
color="gray"
|
|
50
|
-
:name="config.
|
|
50
|
+
:name="config.deleteIconName"
|
|
51
51
|
:data-cy="`${dataCy}-delete`"
|
|
52
52
|
:tooltip="currentLocale.delete"
|
|
53
|
-
v-bind="
|
|
53
|
+
v-bind="deleteIconAttrs"
|
|
54
54
|
@click="onClickDelete(element.id, element.name)"
|
|
55
55
|
/>
|
|
56
56
|
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
internal
|
|
60
60
|
interactive
|
|
61
61
|
color="gray"
|
|
62
|
-
:name="config.
|
|
62
|
+
:name="config.editIconName"
|
|
63
63
|
:data-cy="`${dataCy}-edit`"
|
|
64
64
|
:tooltip="currentLocale.edit"
|
|
65
|
-
v-bind="
|
|
65
|
+
v-bind="editIconAttrs"
|
|
66
66
|
@click="onClickEdit(element.id)"
|
|
67
67
|
/>
|
|
68
68
|
</template>
|
|
@@ -211,9 +211,9 @@ const {
|
|
|
211
211
|
itemAttrs,
|
|
212
212
|
titleAttrs,
|
|
213
213
|
customActionsAttrs,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
deleteIconAttrs,
|
|
215
|
+
editIconAttrs,
|
|
216
|
+
dragIconAttrs,
|
|
217
217
|
hasSlotContent,
|
|
218
218
|
} = useAttrs(props);
|
|
219
219
|
const { tm } = useLocale();
|
|
@@ -50,7 +50,7 @@ export default function useAttrs(props) {
|
|
|
50
50
|
const addTitleAttrs = getAttrs("addTitle");
|
|
51
51
|
const addTitleHotkeyAttrs = getAttrs("addTitleHotkey");
|
|
52
52
|
const buttonAddAttrs = getAttrs("buttonAdd", { isComponent: true });
|
|
53
|
-
const
|
|
53
|
+
const addIconAttrs = getAttrs("addIcon", { isComponent: true });
|
|
54
54
|
const optionContentAttrs = getAttrs("optionContent");
|
|
55
55
|
|
|
56
56
|
const subGroupLabelAttrsRaw = getAttrs("subGroupLabel", { classes: subGroupLabelClasses });
|
|
@@ -83,7 +83,7 @@ export default function useAttrs(props) {
|
|
|
83
83
|
addTitleAttrs,
|
|
84
84
|
addTitleHotkeyAttrs,
|
|
85
85
|
buttonAddAttrs,
|
|
86
|
-
|
|
86
|
+
addIconAttrs,
|
|
87
87
|
optionAttrs,
|
|
88
88
|
subGroupLabelAttrs,
|
|
89
89
|
groupLabelAttrs,
|
|
@@ -58,8 +58,8 @@ export default /*tw*/ {
|
|
|
58
58
|
addTitle: "text-sm font-medium text-gray-900",
|
|
59
59
|
addTitleHotkey: "text-gray-500",
|
|
60
60
|
buttonAdd: "sticky left-[calc(100%-2.3rem)] bottom-2.5 p-1",
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
addIconName: "add",
|
|
62
|
+
addIcon: "bg-transparent",
|
|
63
63
|
i18n: {
|
|
64
64
|
noDataToShow: "No data to show.",
|
|
65
65
|
add: "Add",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
internal
|
|
83
83
|
color="white"
|
|
84
84
|
size="xs"
|
|
85
|
-
:name="config.
|
|
86
|
-
v-bind="
|
|
85
|
+
:name="config.addIconName"
|
|
86
|
+
v-bind="addIconAttrs"
|
|
87
87
|
/>
|
|
88
88
|
</UButton>
|
|
89
89
|
</template>
|
|
@@ -230,7 +230,7 @@ const {
|
|
|
230
230
|
addTitleAttrs,
|
|
231
231
|
addTitleHotkeyAttrs,
|
|
232
232
|
buttonAddAttrs,
|
|
233
|
-
|
|
233
|
+
addIconAttrs,
|
|
234
234
|
optionAttrs,
|
|
235
235
|
subGroupLabelAttrs,
|
|
236
236
|
groupLabelAttrs,
|
|
@@ -56,7 +56,6 @@ export function useAttrs(props) {
|
|
|
56
56
|
const placeholderAttrs = getAttrs("placeholder", { classes: placeholderClasses });
|
|
57
57
|
const clearIconAttrs = getAttrs("clearIcon", { isComponent: true });
|
|
58
58
|
const chooseFileIconAttrs = getAttrs("chooseFileIcon", { isComponent: true });
|
|
59
|
-
const chooseFileIconNameAttrs = getAttrs("chooseFileIconName", { isComponent: true });
|
|
60
59
|
const inputAttrs = getAttrs("input");
|
|
61
60
|
const fileListAttrs = getAttrs("fileList");
|
|
62
61
|
const selectedItemAttrs = getAttrs("selectedItem", { classes: selectedItemClasses });
|
|
@@ -70,7 +69,6 @@ export function useAttrs(props) {
|
|
|
70
69
|
descriptionAttrs,
|
|
71
70
|
contentWrapperAttrs,
|
|
72
71
|
clearIconAttrs,
|
|
73
|
-
chooseFileIconNameAttrs,
|
|
74
72
|
placeholderAttrs,
|
|
75
73
|
fileListAttrs,
|
|
76
74
|
buttonWrapperAttrs,
|
|
@@ -92,15 +92,15 @@ export default function useAttrs(props, { isTop, isOpen, selectedLabel: selected
|
|
|
92
92
|
const innerWrapperAttrs = getAttrs("innerWrapper", { classes: innerWrapperClasses });
|
|
93
93
|
const wrapperTopAttrs = getAttrs("wrapperTop");
|
|
94
94
|
const leftSlotAttrs = getAttrs("leftSlot");
|
|
95
|
-
const iconToggleAttrs = getAttrs("iconToggle", { isComponent: true });
|
|
96
95
|
const searchInputAttrs = getAttrs("searchInput", { classes: searchInputClasses });
|
|
97
96
|
const selectedLabelsAttrs = getAttrs("selectedLabels");
|
|
98
97
|
const selectedLabelAttrs = getAttrs("selectedLabel", { classes: selectedLabelClasses });
|
|
99
98
|
const dropdownListAttrs = getAttrs("dropdownList", { isComponent: true });
|
|
100
99
|
const caretClearTextAttrs = getAttrs("caretClearText", { classes: caretClearTextClasses });
|
|
101
|
-
const iconClearAttrs = getAttrs("iconClear", { isComponent: true });
|
|
102
100
|
const caretRemoveItemAttrs = getAttrs("caretRemoveItem");
|
|
103
|
-
const
|
|
101
|
+
const toggleIconAttrs = getAttrs("toggleIcon", { isComponent: true });
|
|
102
|
+
const clearIconAttrs = getAttrs("clearIcon", { isComponent: true });
|
|
103
|
+
const removeItemIconAttrs = getAttrs("removeItemIcon", { isComponent: true });
|
|
104
104
|
|
|
105
105
|
const wrapperAttrsRaw = getAttrs("wrapper", { classes: wrapperClasses });
|
|
106
106
|
|
|
@@ -169,16 +169,16 @@ export default function useAttrs(props, { isTop, isOpen, selectedLabel: selected
|
|
|
169
169
|
beforeCaretSlotAttrs,
|
|
170
170
|
afterCaretSlotAttrs,
|
|
171
171
|
caretToggleAttrs,
|
|
172
|
-
iconToggleAttrs,
|
|
173
172
|
caretClearAttrs,
|
|
174
173
|
caretClearTextAttrs,
|
|
175
|
-
iconClearAttrs,
|
|
176
174
|
caretRemoveItemAttrs,
|
|
177
|
-
iconRemoveItemAttrs,
|
|
178
175
|
searchAttrs,
|
|
179
176
|
searchInputAttrs,
|
|
180
177
|
selectedLabelsAttrs,
|
|
181
178
|
selectedLabelAttrs,
|
|
182
179
|
dropdownListAttrs,
|
|
180
|
+
toggleIconAttrs,
|
|
181
|
+
clearIconAttrs,
|
|
182
|
+
removeItemIconAttrs,
|
|
183
183
|
};
|
|
184
184
|
}
|
|
@@ -55,12 +55,12 @@ export default /*tw*/ {
|
|
|
55
55
|
beforeCaretSlot: "",
|
|
56
56
|
afterCaretSlot: "mr-3",
|
|
57
57
|
caretToggle: "mr-3",
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
toggleIcon: "transform transition-all duration-300 group-[]/active:rotate-180",
|
|
59
|
+
toggleIconName: "expand_more",
|
|
60
|
+
clearIcon: "",
|
|
61
|
+
clearIconName: "close_small",
|
|
62
|
+
removeItemIcon: "",
|
|
63
|
+
removeItemIconName: "close_small",
|
|
64
64
|
caretRemoveItem: "flex items-center",
|
|
65
65
|
caretClearText: {
|
|
66
66
|
base: `
|
package/ui.form-select/index.vue
CHANGED
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
interactive
|
|
43
43
|
color="gray"
|
|
44
44
|
:size="size"
|
|
45
|
-
:name="config.
|
|
46
|
-
v-bind="
|
|
45
|
+
:name="config.toggleIconName"
|
|
46
|
+
v-bind="toggleIconAttrs"
|
|
47
47
|
/>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
interactive
|
|
62
62
|
color="gray"
|
|
63
63
|
:size="size"
|
|
64
|
-
:name="config.
|
|
65
|
-
v-bind="
|
|
64
|
+
:name="config.clearIconName"
|
|
65
|
+
v-bind="clearIconAttrs"
|
|
66
66
|
@mousedown="removeElement"
|
|
67
67
|
/>
|
|
68
68
|
</div>
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
interactive
|
|
95
95
|
color="gray"
|
|
96
96
|
:size="size"
|
|
97
|
-
:name="config.
|
|
98
|
-
v-bind="
|
|
97
|
+
:name="config.removeItemIconName"
|
|
98
|
+
v-bind="removeItemIconAttrs"
|
|
99
99
|
@mousedown="removeElement(item)"
|
|
100
100
|
/>
|
|
101
101
|
</div>
|
|
@@ -487,17 +487,17 @@ const {
|
|
|
487
487
|
beforeCaretSlotAttrs,
|
|
488
488
|
afterCaretSlotAttrs,
|
|
489
489
|
caretToggleAttrs,
|
|
490
|
-
iconToggleAttrs,
|
|
491
490
|
caretClearAttrs,
|
|
492
491
|
caretClearTextAttrs,
|
|
493
|
-
iconClearAttrs,
|
|
494
492
|
caretRemoveItemAttrs,
|
|
495
|
-
iconRemoveItemAttrs,
|
|
496
493
|
searchAttrs,
|
|
497
494
|
searchInputAttrs,
|
|
498
495
|
selectedLabelsAttrs,
|
|
499
496
|
selectedLabelAttrs,
|
|
500
497
|
dropdownListAttrs,
|
|
498
|
+
toggleIconAttrs,
|
|
499
|
+
clearIconAttrs,
|
|
500
|
+
removeItemIconAttrs,
|
|
501
501
|
} = useAttrs(props, { isTop, isOpen, selectedLabel });
|
|
502
502
|
|
|
503
503
|
const i18nGlobal = tm(USelect);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
file: "",
|
|
3
3
|
info: "flex items-start",
|
|
4
|
-
icon: "
|
|
5
|
-
|
|
4
|
+
icon: "mr-3",
|
|
5
|
+
iconName: "description",
|
|
6
6
|
itemImage: "rounded-sm",
|
|
7
7
|
text: {
|
|
8
8
|
base: "whitespace-normal pt-0.5 hover:underline hover:decoration-dashed hover:underline-offset-4",
|
package/ui.text-file/index.vue
CHANGED
|
@@ -10,10 +10,10 @@ export function useAttrs(props) {
|
|
|
10
10
|
const contentAttrs = getAttrs("content");
|
|
11
11
|
const labelAttrs = getAttrs("label");
|
|
12
12
|
const descriptionAttrs = getAttrs("description");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
13
|
+
const successIconAttrs = getAttrs("successIcon");
|
|
14
|
+
const warningIconAttrs = getAttrs("warningIcon");
|
|
15
|
+
const errorIconAttrs = getAttrs("errorIcon");
|
|
16
|
+
const closeIconAttrs = getAttrs("closeIcon");
|
|
17
17
|
|
|
18
18
|
return {
|
|
19
19
|
config,
|
|
@@ -22,9 +22,9 @@ export function useAttrs(props) {
|
|
|
22
22
|
contentAttrs,
|
|
23
23
|
labelAttrs,
|
|
24
24
|
descriptionAttrs,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
successIconAttrs,
|
|
26
|
+
warningIconAttrs,
|
|
27
|
+
errorIconAttrs,
|
|
28
|
+
closeIconAttrs,
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -10,14 +10,14 @@ export default /*tw*/ {
|
|
|
10
10
|
content: "w-full flex flex-col max-w-full px-3 text-sm text-gray-200",
|
|
11
11
|
label: "mb-1 font-medium",
|
|
12
12
|
description: "break-words font-normal leading-5",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
successIcon: "",
|
|
14
|
+
successIconName: "check_circle",
|
|
15
|
+
warningIcon: "",
|
|
16
|
+
warningIconName: "warning",
|
|
17
|
+
errorIcon: "",
|
|
18
|
+
errorIconName: "error",
|
|
19
|
+
closeIcon: "",
|
|
20
|
+
closeIconName: "close",
|
|
21
21
|
transitionGroup: {
|
|
22
22
|
moveClass: "transition-all duration-500",
|
|
23
23
|
enterActiveClass: "transition-all duration-500",
|
package/ui.text-notify/index.vue
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
variant="light"
|
|
19
19
|
size="md"
|
|
20
20
|
internal
|
|
21
|
-
:name="config.
|
|
22
|
-
v-bind="
|
|
21
|
+
:name="config.successIconName"
|
|
22
|
+
v-bind="successIconAttrs"
|
|
23
23
|
/>
|
|
24
24
|
|
|
25
25
|
<UIcon
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
variant="light"
|
|
30
30
|
size="md"
|
|
31
31
|
internal
|
|
32
|
-
:name="config.
|
|
33
|
-
v-bind="
|
|
32
|
+
:name="config.warningIconName"
|
|
33
|
+
v-bind="warningIconAttrs"
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
36
|
<UIcon
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
variant="light"
|
|
41
41
|
size="md"
|
|
42
42
|
internal
|
|
43
|
-
:name="config.
|
|
44
|
-
v-bind="
|
|
43
|
+
:name="config.errorIconName"
|
|
44
|
+
v-bind="errorIconAttrs"
|
|
45
45
|
/>
|
|
46
46
|
|
|
47
47
|
<div v-bind="contentAttrs">
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
size="xs"
|
|
62
62
|
internal
|
|
63
63
|
interactive
|
|
64
|
-
:name="config.
|
|
65
|
-
v-bind="
|
|
64
|
+
:name="config.closeIconName"
|
|
65
|
+
v-bind="closeIconAttrs"
|
|
66
66
|
@click="onClickClose(notification)"
|
|
67
67
|
/>
|
|
68
68
|
</div>
|
|
@@ -129,10 +129,10 @@ const {
|
|
|
129
129
|
contentAttrs,
|
|
130
130
|
labelAttrs,
|
|
131
131
|
descriptionAttrs,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
successIconAttrs,
|
|
133
|
+
warningIconAttrs,
|
|
134
|
+
errorIconAttrs,
|
|
135
|
+
closeIconAttrs,
|
|
136
136
|
} = useAttrs(props);
|
|
137
137
|
|
|
138
138
|
const { tm } = useLocale();
|