@fy-/fws-vue 2.2.89 → 2.2.91

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.
@@ -128,13 +128,12 @@ onUnmounted(() => {
128
128
  <template>
129
129
  <div class="filter-data-wrapper mb-6">
130
130
  <form v-if="!hidden" class="filter-data-form bg-white dark:bg-fv-neutral-900 rounded-lg border border-fv-neutral-200 dark:border-fv-neutral-800 shadow-sm hover:shadow-md transition-all duration-300 p-4" @submit.prevent="() => submitForm()">
131
- <div class="flex items-center justify-between mb-4 border-b border-fv-neutral-200 dark:border-fv-neutral-800 pb-3">
132
- <h3 class="text-lg font-medium text-fv-neutral-900 dark:text-white flex items-center">
133
- <FunnelIcon class="w-5 h-5 mr-2 text-fv-primary-600 dark:text-fv-primary-400" aria-hidden="true" />
134
- </h3>
135
- </div>
136
-
137
- <div :class="`${css} grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 gap-y-2`">
131
+ <div
132
+ class="grid grid-cols-1 md:grid-cols-2 gap-4 gap-y-2" :class="[
133
+ css,
134
+ { 'lg:grid-cols-3': data.length >= 3, 'lg:grid-cols-4': data.length >= 4 },
135
+ ]"
136
+ >
138
137
  <div v-for="(g, i) in data" :key="`index_${i}`" class="relative">
139
138
  <template v-for="f in g" :key="f.uid">
140
139
  <template v-if="!f.isHidden">
@@ -150,6 +149,7 @@ onUnmounted(() => {
150
149
  :label="f.label"
151
150
  :options="f.options ? f.options : [[]]"
152
151
  :error-vuelidate="v$.formData[f.uid].$errors"
152
+ class="mb-2"
153
153
  @focus="
154
154
  () => {
155
155
  f.focused = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.2.89",
3
+ "version": "2.2.91",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",