@exakt/ui 0.0.48 → 0.0.50
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/dist/module.json +1 -1
- package/dist/runtime/components/e/avatar.vue +3 -3
- package/dist/runtime/components/e/input/text.vue +21 -9
- package/dist/runtime/components/e/nav/btn.vue +2 -2
- package/dist/runtime/css/main.scss +16 -8
- package/dist/runtime/css/util.scss +0 -2
- package/package.json +1 -1
- /package/dist/runtime/components/e/{link.vue → undecorated-link.vue} +0 -0
package/dist/module.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<e-icon
|
|
16
16
|
:size="props.size"
|
|
17
17
|
>
|
|
18
|
-
|
|
18
|
+
account_circle
|
|
19
19
|
</e-icon>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -30,8 +30,8 @@ const props = withDefaults(defineProps<{
|
|
|
30
30
|
<style lang="scss" scoped>
|
|
31
31
|
.avatar {
|
|
32
32
|
border-radius: 100%;
|
|
33
|
-
width:
|
|
34
|
-
height:
|
|
33
|
+
width: fit-content;
|
|
34
|
+
height: fit-content;
|
|
35
35
|
background-color: var(--e-color-elev);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
2
|
+
<div
|
|
3
|
+
v-if="label"
|
|
4
|
+
class="mb-3 mt-6"
|
|
5
|
+
>
|
|
6
|
+
<label :for="id">
|
|
7
|
+
{{ label }} </label>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
3
10
|
<div
|
|
4
11
|
class="wrapper fullwidth"
|
|
5
12
|
:style="inputState.overtakeStyle"
|
|
6
|
-
:class="{ rounded: rounded==undefined?solid:rounded, solid }"
|
|
13
|
+
:class="{ rounded: rounded == undefined ? solid : rounded, solid }"
|
|
7
14
|
@click="focus"
|
|
8
15
|
>
|
|
9
16
|
<e-icon
|
|
@@ -19,7 +26,7 @@
|
|
|
19
26
|
ref="input"
|
|
20
27
|
v-model="currentText"
|
|
21
28
|
class="input"
|
|
22
|
-
:placeholder="
|
|
29
|
+
:placeholder="placeholder"
|
|
23
30
|
autocomplete="off"
|
|
24
31
|
auto-grow
|
|
25
32
|
rows="5"
|
|
@@ -28,6 +35,7 @@
|
|
|
28
35
|
/>
|
|
29
36
|
<input
|
|
30
37
|
v-else
|
|
38
|
+
:id="id"
|
|
31
39
|
ref="input"
|
|
32
40
|
v-model="currentText"
|
|
33
41
|
:disabled="disabled"
|
|
@@ -44,10 +52,9 @@
|
|
|
44
52
|
>
|
|
45
53
|
<slot />
|
|
46
54
|
</div>
|
|
47
|
-
<!-- </div>-->
|
|
48
55
|
</template>
|
|
49
56
|
<script setup lang="ts">
|
|
50
|
-
import { ref, watch, reactive, computed } from "#imports";
|
|
57
|
+
import { ref, watch, reactive, computed, useId } from "#imports";
|
|
51
58
|
|
|
52
59
|
const inputState = reactive({
|
|
53
60
|
overtakeStyle: "",
|
|
@@ -55,6 +62,8 @@ const inputState = reactive({
|
|
|
55
62
|
focused: false,
|
|
56
63
|
});
|
|
57
64
|
|
|
65
|
+
const id = useId();
|
|
66
|
+
|
|
58
67
|
const input = ref<HTMLInputElement>();
|
|
59
68
|
const emit = defineEmits(["update:modelValue"]);
|
|
60
69
|
|
|
@@ -81,8 +90,10 @@ const currentText = computed({
|
|
|
81
90
|
|
|
82
91
|
const props = withDefaults(
|
|
83
92
|
defineProps<{
|
|
84
|
-
icon?: string
|
|
93
|
+
icon?: string;
|
|
85
94
|
label: string;
|
|
95
|
+
placeholder?: string;
|
|
96
|
+
|
|
86
97
|
modelValue?: string;
|
|
87
98
|
solid?: boolean;
|
|
88
99
|
rounded?: boolean;
|
|
@@ -102,7 +113,7 @@ const props = withDefaults(
|
|
|
102
113
|
modelValue: "",
|
|
103
114
|
autocomplete: "off",
|
|
104
115
|
height: "unset",
|
|
105
|
-
rounded:undefined,
|
|
116
|
+
rounded: undefined,
|
|
106
117
|
}
|
|
107
118
|
);
|
|
108
119
|
|
|
@@ -116,7 +127,7 @@ watch(
|
|
|
116
127
|
);
|
|
117
128
|
|
|
118
129
|
const getInputStyle = (prop: string) => {
|
|
119
|
-
if(input.value === undefined) return;
|
|
130
|
+
if (input.value === undefined) return;
|
|
120
131
|
const c = getComputedStyle(input.value).getPropertyValue(prop);
|
|
121
132
|
return c;
|
|
122
133
|
};
|
|
@@ -144,6 +155,7 @@ const transitionEnd = () => {
|
|
|
144
155
|
|
|
145
156
|
// padding: 0px var(--e-core-padding-x);
|
|
146
157
|
}
|
|
158
|
+
|
|
147
159
|
.input {
|
|
148
160
|
border: none;
|
|
149
161
|
box-sizing: border-box;
|
|
@@ -200,7 +212,7 @@ const transitionEnd = () => {
|
|
|
200
212
|
transition: outline ease-in-out 0.15s, background-color ease-in-out 0.15s;
|
|
201
213
|
}
|
|
202
214
|
|
|
203
|
-
.wrapper.solid:has(:focus){
|
|
215
|
+
.wrapper.solid:has(:focus) {
|
|
204
216
|
outline: var(--e-color-primary) solid 0.125rem;
|
|
205
217
|
//box-shadow: 0 0 0 0.125rem var(--e-color-primary);
|
|
206
218
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex-stretch nav-btn">
|
|
3
|
-
<e-link
|
|
3
|
+
<e-undecorated-link
|
|
4
4
|
:to="to"
|
|
5
5
|
class="flex-stretch fullwidth"
|
|
6
6
|
>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<slot />
|
|
40
40
|
</e-btn>
|
|
41
|
-
</e-link>
|
|
41
|
+
</e-undecorated-link>
|
|
42
42
|
</div>
|
|
43
43
|
</template>
|
|
44
44
|
<script setup lang="ts">
|
|
@@ -54,17 +54,25 @@ $color-map: (
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
a
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
a {
|
|
58
|
+
color: var(--e-color-primary);
|
|
59
|
+
text-decoration: underline;
|
|
60
|
+
text-underline-offset: 0.2rem;
|
|
61
|
+
text-decoration-thickness: 0.05rem;
|
|
62
|
+
|
|
60
63
|
|
|
61
64
|
&:visited {
|
|
62
|
-
color:
|
|
65
|
+
color: var(--e-color-primary);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:active{
|
|
69
|
+
color: var(--e-color-i);
|
|
63
70
|
}
|
|
64
71
|
|
|
65
|
-
&:
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
&:hover {
|
|
73
|
+
text-underline-offset: 0.15rem;
|
|
74
|
+
text-decoration-thickness: 0.1rem;
|
|
75
|
+
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
|
|
@@ -139,6 +147,6 @@ a,
|
|
|
139
147
|
--e-color-dark: #{$root-light};
|
|
140
148
|
--e-color-dark-rgb: #{$root-light-rgb};
|
|
141
149
|
color-scheme: dark;
|
|
142
|
-
@include elev(
|
|
150
|
+
@include elev(15%, 0);
|
|
143
151
|
}
|
|
144
152
|
}
|
package/package.json
CHANGED
|
File without changes
|