@fy-/fws-vue 0.3.1 → 0.3.21

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.
@@ -122,6 +122,8 @@ defineExpose({ focus, blur, getInputRef });
122
122
  'search',
123
123
  'url',
124
124
  'mask',
125
+ 'date',
126
+ 'datetime',
125
127
  ].includes(type)
126
128
  "
127
129
  class="relative"
@@ -137,7 +139,7 @@ defineExpose({ focus, blur, getInputRef });
137
139
  :autocomplete="autocomplete"
138
140
  :disabled="disabled"
139
141
  :aria-describedby="help ? `${id}-help` : id"
140
- class="block px-2.5 pb-2.5 pt-4 w-full text-sm text-fv-neutral-900 bg-transparent rounded-lg border-1 border-fv-neutral-300 appearance-none dark:text-white dark:border-fv-neutral-600 dark:focus:border-fv-primary-500 focus:outline-none focus:ring-0 focus:border-fv-primary-600 peer"
142
+ class="block rounded-t-lg px-2.5 pb-2.5 pt-5 w-full text-sm text-fv-neutral-900 bg-fv-neutral-50 dark:bg-fv-neutral-700 border-0 border-b-2 border-fv-neutral-300 appearance-none dark:text-white dark:border-fv-neutral-600 dark:focus:border-fv-primary-500 focus:outline-none focus:ring-0 focus:border-fv-primary-600 peer"
141
143
  :required="req"
142
144
  @focus="handleFocus"
143
145
  @blur="handleBlur"
@@ -145,7 +147,7 @@ defineExpose({ focus, blur, getInputRef });
145
147
  <label
146
148
  :for="id"
147
149
  v-if="label || placeholder"
148
- class="absolute text-sm text-fv-neutral-500 dark:text-fv-neutral-400 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white dark:bg-fv-neutral-900 px-2 peer-focus:px-2 peer-focus:text-fv-primary-600 peer-focus:dark:text-fv-primary-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1"
150
+ class="absolute text-sm text-fv-neutral-500 dark:text-fv-neutral-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-focus:text-fv-primary-600 peer-focus:dark:text-fv-primary-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto"
149
151
  >{{ label ? label : placeholder }}
150
152
  </label>
151
153
  </div>
@@ -171,50 +173,6 @@ defineExpose({ focus, blur, getInputRef });
171
173
  class="block p-2.5 w-full text-sm text-fv-neutral-900 bg-fv-neutral-50 rounded-lg border border-fv-neutral-300 focus:ring-fv-primary-500 focus:border-fv-primary-500 dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-400 dark:text-white dark:focus:ring-fv-primary-500 dark:focus:border-fv-primary-500"
172
174
  ></textarea>
173
175
  </div>
174
- <div
175
- class="relative max-w-sm"
176
- v-else-if="type == 'datetime' || type == 'date'"
177
- >
178
- <div
179
- class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none"
180
- >
181
- <svg
182
- class="w-4 h-4 text-fv-neutral-500 dark:text-fv-neutral-400"
183
- aria-hidden="true"
184
- xmlns="http://www.w3.org/2000/svg"
185
- fill="currentColor"
186
- viewBox="0 0 20 20"
187
- >
188
- <path
189
- d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"
190
- />
191
- </svg>
192
- </div>
193
- <label
194
- :for="id"
195
- v-if="label"
196
- class="block mb-2 text-sm font-medium text-fv-neutral-900 dark:text-white"
197
- >{{ label }}</label
198
- >
199
-
200
- <input
201
- datepicker
202
- ref="inputRef"
203
- type="text"
204
- :class="{
205
- error: checkErrors,
206
- }"
207
- class="bg-fv-neutral-50 border border-fv-neutral-300 text-fv-neutral-900 text-sm rounded-lg focus:ring-fv-primary-500 focus:border-fv-primary-500 block w-full ps-10 p-2.5 dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-400 dark:text-white dark:focus:ring-fv-primary-500 dark:focus:border-fv-primary-500"
208
- :id="id"
209
- :name="id"
210
- :disabled="disabled"
211
- :aria-describedby="help ? `${id}-help` : id"
212
- :required="req"
213
- @focus="handleFocus"
214
- @blur="handleBlur"
215
- :placeholder="placeholder"
216
- />
217
- </div>
218
176
  <div class="relative" v-else-if="type == 'select'">
219
177
  <label
220
178
  :for="id"
@@ -295,13 +253,13 @@ defineExpose({ focus, blur, getInputRef });
295
253
  <div class="ms-2 text-sm">
296
254
  <label
297
255
  :for="id"
298
- class="font-medium text-gray-900 dark:text-gray-300"
256
+ class="font-medium text-fv-neutral-900 dark:text-fv-neutral-300"
299
257
  >{{ label }}</label
300
258
  >
301
259
  <p
302
260
  :id="`${id}-help`"
303
261
  v-if="help"
304
- class="text-xs font-normal text-gray-500 dark:text-gray-400"
262
+ class="text-xs font-normal text-fv-neutral-500 dark:text-fv-neutral-400"
305
263
  >
306
264
  {{ help }}
307
265
  </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.3.1",
3
+ "version": "0.3.21",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {