@mixd-id/web-scaffold 0.1.230406035 → 0.1.230406037

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.230406035",
4
+ "version": "0.1.230406037",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -106,7 +106,10 @@ export default{
106
106
  @apply flex items-center justify-center
107
107
  }
108
108
  .button:disabled{
109
- @apply opacity-50;
109
+ @apply opacity-60;
110
+ }
111
+ .button:active{
112
+ @apply top-[1px] left-[1px] relative;
110
113
  }
111
114
 
112
115
  .size-sm{
@@ -118,19 +121,21 @@ export default{
118
121
 
119
122
  .variant-,
120
123
  .variant-primary{
121
- @apply bg-primary-500 text-white border-[2px] border-primary-500;
124
+ @apply bg-primary-500 text-white rounded-lg;
125
+ box-shadow: 0 2px 1px rgba(0, 0, 0, .05);
126
+ outline: solid 1px rgb(var(--primary-700));
127
+ border: solid 1px rgb(var(--primary-400));
122
128
  }
123
129
  .variant-:hover,
124
130
  .variant-primary:hover{
125
- @apply bg-primary-600 border-primary-600;
126
- }
127
- .variant-:active,
128
- .variant-primary:active{
129
- @apply top-[1px] left-[1px] relative;
131
+ @apply bg-primary-600;
132
+ outline-color: rgb(var(--primary-800))
130
133
  }
131
134
  .variant-:disabled,
132
135
  .variant-primary:disabled{
133
- @apply top-0 left-0 cursor-not-allowed;
136
+ @apply bg-primary-500 opacity-50 top-0 left-0 cursor-not-allowed;
137
+ @apply top-0 left-0;
138
+ outline: solid 1px rgb(var(--primary-700));
134
139
  }
135
140
  .variant- *,
136
141
  .variant-primary *{
@@ -150,18 +155,13 @@ export default{
150
155
  fill: #fff;
151
156
  fill-opacity: 75%;
152
157
  }
153
- .variant-primary:disabled{
154
- @apply bg-primary-500 border-primary-500 opacity-50 top-0 left-0 cursor-not-allowed;
155
- }
156
158
 
157
159
  .variant-outline{
158
- @apply bg-transparent text-primary-500 border-[2px] border-primary-500;
160
+ @apply bg-transparent text-primary-500;
161
+ outline: solid 1px rgb(var(--primary-700));
159
162
  }
160
163
  .variant-outline:hover{
161
- @apply border-primary-500 text-text;
162
- }
163
- .variant-outline:active{
164
- @apply top-[1px] left-[1px] active:relative;
164
+ outline-color: rgb(var(--primary-800))
165
165
  }
166
166
  .variant-outline:disabled{
167
167
  @apply opacity-50 top-0 left-0 cursor-not-allowed;
@@ -174,55 +174,78 @@ export default{
174
174
  @apply fill-transparent
175
175
  }
176
176
  .variant-outline .svgBg{
177
- stroke: var(--primary);
178
- stroke-opacity: 25%;
177
+ stroke: rgb(var(--primary-600));
178
+ stroke-opacity: 50%;
179
179
  }
180
180
  .variant-outline .svgHg{
181
- fill: var(--primary);
182
- fill-opacity: 75%;
181
+ fill: rgb(var(--primary));
182
+ fill-opacity: 100%;
183
183
  }
184
184
 
185
185
  .variant-secondary{
186
- @apply bg-secondary text-white rounded-md border-[2px] border-secondary;
186
+ @apply bg-secondary text-text-500 rounded-lg;
187
+ box-shadow: 0 2px 1px rgba(0, 0, 0, .05);
188
+ outline: solid 1px rgb(var(--secondary-700));
189
+ border: solid 1px rgb(var(--secondary-400));
187
190
  }
188
191
  .variant-secondary:hover{
189
- @apply bg-secondary-600 border-secondary-600;
190
- }
191
- .variant-secondary:active{
192
- @apply top-[1px] left-[1px] relative;
192
+ @apply bg-secondary-600;
193
+ outline-color: rgb(var(--secondary-800))
193
194
  }
194
195
  .variant-secondary:disabled{
195
- @apply bg-secondary-500 border-secondary-500 opacity-50 top-0 left-0 cursor-not-allowed;
196
+ @apply bg-secondary-500 opacity-50 top-0 left-0 cursor-not-allowed;
197
+ outline: solid 1px rgb(var(--secondary-700));
196
198
  }
197
199
  .variant-secondary *{
198
- @apply text-white fill-white;
200
+ @apply text-text-500 fill-white;
199
201
  }
200
202
  .variant-secondary.loading *{
201
203
  @apply fill-transparent
202
204
  }
203
205
  .variant-secondary .svgBg{
204
- stroke: var(--text);
206
+ stroke: rgb(var(--text-400));
205
207
  stroke-opacity: 25%;
206
208
  }
207
209
  .variant-secondary .svgHg{
208
- fill: #fff;
210
+ fill: rgb(var(--text-500));
209
211
  fill-opacity: 75%;
210
212
  }
211
213
 
214
+ .variant-red{
215
+ @apply bg-red-500 text-white rounded-md border-[2px] border-red-500;
216
+ }
217
+ .variant-red:hover{
218
+ @apply bg-red-600 border-red-600;
219
+ }
220
+ .variant-red:disabled{
221
+ @apply bg-red-500 border-red-500 opacity-50 top-0 left-0 cursor-not-allowed;
222
+ }
223
+ .variant-red *{
224
+ @apply text-white fill-white;
225
+ }
226
+ .variant-red.loading *{
227
+ @apply fill-transparent
228
+ }
229
+ .variant-red .svgBg{
230
+ @apply stroke-red-400;
231
+ stroke-opacity: 50%;
232
+ }
233
+ .variant-red .svgHg{
234
+ @apply fill-text-500;
235
+ fill-opacity: 100%;
236
+ }
237
+
212
238
  .variant-minimal{
213
239
  @apply border-[2px] border-transparent;
214
240
  }
215
241
  .variant-minimal:hover{
216
242
  }
217
- .variant-minimal:active{
218
- @apply top-[1px] left-[1px] relative;
219
- }
220
243
  .variant-minimal .svgBg{
221
- stroke: var(--base-500);
244
+ stroke: rgb(var(--text-500));
222
245
  stroke-opacity: 25%;
223
246
  }
224
247
  .variant-minimal .svgHg{
225
- fill: var(--text);
248
+ fill: rgb(var(--text));
226
249
  fill-opacity: 75%;
227
250
  }
228
251
 
@@ -259,4 +282,4 @@ export default{
259
282
  @apply animate-spin h-5 w-5;
260
283
  }
261
284
 
262
- </style>
285
+ </style>
@@ -64,14 +64,23 @@
64
64
 
65
65
  <div class="flex-1 flex items-center justify-center" v-else-if="step === 3">
66
66
  <div class="flex flex-col items-center justify-center gap-1">
67
- <svg width="96" height="96" viewBox="0 0 24 24" class="fill-green-600" xmlns="http://www.w3.org/2000/svg">
67
+ <svg width="84" height="84" viewBox="0 0 24 24" class="fill-green-600" xmlns="http://www.w3.org/2000/svg">
68
68
  <path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12C3.5 7.30558 7.30558 3.5 12 3.5C14.5863 3.5 16.9028 4.65509 18.4618 6.47753L11.1768 13.7626C11.0791 13.8602 10.9209 13.8602 10.8232 13.7626L8.03033 10.9697C7.73744 10.6768 7.26256 10.6768 6.96967 10.9697C6.67678 11.2626 6.67678 11.7374 6.96967 12.0303L9.76256 14.8232C10.446 15.5066 11.554 15.5066 12.2374 14.8232L19.3437 7.717C20.0787 8.97466 20.5 10.4381 20.5 12Z" />
69
69
  </svg>
70
70
  <h3>{{ importData.result.title ?? 'Data berhasil diimport' }}</h3>
71
71
  <p class="mb-4 text-text-400 text-center" v-html="importData.result.description"></p>
72
- <div class="p-2 text-sm text-green-500 border-green-500 border-[1px] rounded-lg">
73
- Total Data: {{ importData.result.count }}
72
+ <div v-if="Object.keys(importData.result.count).length > 0" class="p-2 border-green-500 border-[1px] rounded-lg">
73
+ <table>
74
+ <tr v-for="(count, key) in importData.result.count">
75
+ <td class="text-sm text-green-500">{{ key }}</td>
76
+ <td class="text-sm text-green-500 px-2">:</td>
77
+ <td class="text-sm text-green-500">{{ count }}</td>
78
+ </tr>
79
+ </table>
74
80
  </div>
81
+ <div v-else class="p-2 text-sm text-green-500 border-green-500 border-[1px] rounded-lg">
82
+ Total Data: {{ importData.result.count }}
83
+ </div>
75
84
  <div class="px-6 my-4">
76
85
  <VirtualTable v-if="warnings.length > 0" :columns="warningColumns" :items="warnings" class="h-[200px]"></VirtualTable>
77
86
  </div>
@@ -244,4 +253,4 @@ export default{
244
253
 
245
254
  }
246
255
 
247
- </style>
256
+ </style>
@@ -50,7 +50,7 @@ export default{
50
50
  placeholder: [ String, Number ],
51
51
  readonly: undefined,
52
52
  maxlength: String,
53
- type: String,
53
+ type: String // text, tel, password, number,
54
54
 
55
55
  },
56
56
 
@@ -187,4 +187,4 @@ export default{
187
187
  @apply text-right
188
188
  }
189
189
 
190
- </style>
190
+ </style>
@@ -85,9 +85,9 @@ export default{
85
85
  <style module>
86
86
 
87
87
  .toast{
88
- @apply max-w-[90vw] md:max-w-[640px] bg-base-300 mt-4 mx-auto rounded-xl border-[1px] border-text-200;
88
+ @apply max-w-[90vw] md:max-w-[480px] bg-base-500 mt-[64px] mx-auto rounded-xl border-[1px] border-text-100;
89
89
  @apply min-h-[var(--h-cp)];
90
90
  z-index: 61;
91
91
  }
92
92
 
93
- </style>
93
+ </style>
@@ -74,6 +74,10 @@ const plugin = Plugin(function({ addBase, config, theme }) {
74
74
  "--primary-50": '24, 34, 51',
75
75
  "--primary-100": '28, 38, 59',
76
76
  "--primary-200": '27, 44, 74',
77
+
78
+ "--secondary": '55, 59, 65',
79
+ "--secondary-500": '55, 59, 65',
80
+ "--secondary-600": '68, 74, 83',
77
81
  },
78
82
 
79
83
  'body': {
@@ -197,4 +201,4 @@ const plugin = Plugin(function({ addBase, config, theme }) {
197
201
  }
198
202
  })
199
203
 
200
- module.exports = plugin
204
+ module.exports = plugin
@@ -275,4 +275,4 @@ module.exports = {
275
275
  sequelizeChunk,
276
276
  getPresetSortWhereParams,
277
277
  unflatten
278
- }
278
+ }