@winchsa/ui 0.1.65 → 0.1.67

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.
@@ -35,13 +35,13 @@ function toggle() {
35
35
  @click="toggle"
36
36
  >
37
37
  <div class="switch-card__text flex-grow-1 text-start">
38
- <div :id="titleId" class="text-body-1 font-weight-bold text-high-emphasis">
38
+ <div :id="titleId" class="text-body-2 font-weight-bold text-high-emphasis app-font-size-13">
39
39
  {{ title }}
40
40
  </div>
41
41
  <div
42
42
  v-if="description"
43
43
  :id="descriptionId"
44
- class="text-body-2 text-medium-emphasis mt-1"
44
+ class="text-medium-emphasis app-font-size-12 mt-1"
45
45
  >
46
46
  {{ description }}
47
47
  </div>
@@ -63,20 +63,25 @@ function toggle() {
63
63
  </div>
64
64
  </div>
65
65
 
66
- <VMessages
67
- v-if="messages.length"
68
- class="text-start px-1 mt-1"
69
- color="error"
70
- :messages="messages"
71
- active
72
- />
66
+ <!-- Always rendered, like the text field's details area, so the next field keeps the same gap. -->
67
+ <div class="switch-card__details text-start px-1">
68
+ <VMessages
69
+ color="error"
70
+ :messages="messages"
71
+ :active="!!messages.length"
72
+ />
73
+ </div>
73
74
  </div>
74
75
  </template>
75
76
 
76
77
  <style scoped>
78
+ .switch-card__details {
79
+ padding-block-start: 3px;
80
+ }
81
+
77
82
  .switch-card {
78
83
  border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity));
79
- background: rgba(var(--v-theme-on-surface), 0.02);
84
+ background: rgb(var(--v-theme-gray-50));
80
85
  cursor: pointer;
81
86
  transition: border-color 0.15s ease;
82
87
  }
@@ -54,6 +54,9 @@ const placeholder = computed(() => {
54
54
  v-bind="slotProps || {}"
55
55
  />
56
56
  </template>
57
+ <template #details>
58
+ <span class="app-h-10px" />
59
+ </template>
57
60
  </VTextarea>
58
61
  </div>
59
62
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winchsa/ui",
3
- "version": "0.1.65",
3
+ "version": "0.1.67",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {