@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "exakt-ui",
3
3
  "configKey": "exakt",
4
- "version": "0.0.48"
4
+ "version": "0.0.50"
5
5
  }
@@ -15,7 +15,7 @@
15
15
  <e-icon
16
16
  :size="props.size"
17
17
  >
18
- person_circle
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: fie-content;
34
- height: fie-content;
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
- <!-- <div class="pos-wrap">-->
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="label"
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 | undefined;
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
- .e-link {
59
- color: $root-blue;
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: color.scale($root-blue, $lightness: -10%);
65
+ color: var(--e-color-primary);
66
+ }
67
+
68
+ &:active{
69
+ color: var(--e-color-i);
63
70
  }
64
71
 
65
- &:active,
66
- .e-link-active {
67
- color: color.scale($root-blue, $lightness: 10%);
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(10%, 0);
150
+ @include elev(15%, 0);
143
151
  }
144
152
  }
@@ -189,8 +189,6 @@ body {
189
189
  cursor: not-allowed !important;
190
190
  }
191
191
 
192
- router-link,
193
- a,
194
192
  input,
195
193
  label {
196
194
  text-decoration: none !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exakt/ui",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "A UI library for Nuxt.js",
5
5
  "license": "MIT",
6
6
  "type": "module",