@mixd-id/web-scaffold 0.1.230406183 → 0.1.230406185

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406183",
4
+ "version": "0.1.230406185",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -113,7 +113,7 @@ export default {
113
113
  <style module>
114
114
 
115
115
  .comp{
116
- @apply min-h-[var(--h-cp)] flex items-center;
116
+ @apply flex items-center;
117
117
  }
118
118
 
119
119
  .comp label{
@@ -4,6 +4,7 @@
4
4
  <div class="flex flex-col gap-1">
5
5
  <h2 v-if="title">{{ title }}</h2>
6
6
  <p v-if="description" v-html="description"></p>
7
+ <CitySelector ref="citySelector" @change="setCity"/>
7
8
  </div>
8
9
 
9
10
  <div class="flex flex-col gap-4">
@@ -37,10 +38,9 @@
37
38
  <h5>Kirim</h5>
38
39
  </Button>
39
40
 
40
- <CitySelector ref="citySelector" @change="setCity"/>
41
41
  </div>
42
- <div :class="$style.comp" v-else-if="state === 2">
43
- <div class="flex flex-col items-center gap-2">
42
+ <div :class="$style.comp" class="" v-else-if="state === 2">
43
+ <div class="flex flex-col items-center gap-4">
44
44
  <svg width="84" height="84" class="fill-green-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"/></svg>
45
45
  <h2>{{ completedTitle }}</h2>
46
46
  <p class="text-lg text-center">
@@ -105,7 +105,7 @@ export default{
105
105
  })
106
106
  .then(_ => this.state = 2)
107
107
  .catch(err => this.alert(err))
108
- .finally(_ => this.$refs.submitBtn.resetState(2))
108
+ .finally(_ => this.$refs.submitBtn ? this.$refs.submitBtn.resetState(2) : null)
109
109
  },
110
110
 
111
111
  setCity(city){
@@ -152,8 +152,9 @@ export default{
152
152
  <style module>
153
153
 
154
154
  .comp{
155
- @apply flex-1 w-full max-w-[480px] mx-auto rounded-lg overflow-hidden border-text-200 border-[1px] p-6;
156
- @apply flex flex-col gap-8 bg-base;
155
+ @apply flex-1 w-full max-w-[480px] min-h-[480px] mx-auto rounded-lg overflow-hidden;
156
+ @apply border-text-200 border-[1px] p-6;
157
+ @apply flex flex-col justify-center gap-8 bg-base;
157
158
  background-image: v-bind(bgImages[0]);
158
159
  }
159
160