diff --git a/.playground/pages/composant/form/client.vue b/.playground/pages/composant/form/client.vue
new file mode 100644
index 0000000..ad29579
--- /dev/null
+++ b/.playground/pages/composant/form/client.vue
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.playground/pages/index.vue b/.playground/pages/index.vue
index 6b07306..32a6e33 100644
--- a/.playground/pages/index.vue
+++ b/.playground/pages/index.vue
@@ -113,12 +113,20 @@ const groups = computed(() => {
categoryMap.get(category)!.push({name, label: name})
})
- return Array.from(categoryMap.entries())
+ const componentGroups = Array.from(categoryMap.entries())
.sort(([a], [b]) => a.localeCompare(b))
.map(([category, items]) => ({
category: category.charAt(0).toUpperCase() + category.slice(1),
items: items.sort((a, b) => a.label.localeCompare(b.label)),
}))
+
+ return [
+ ...componentGroups,
+ {
+ category: 'Form',
+ items: [{name: 'client', label: 'Client'}],
+ },
+ ]
})
const openCategories = reactive(new Set())
diff --git a/COMPONENTS.md b/COMPONENTS.md
index 0794f58..8dae0ea 100644
--- a/COMPONENTS.md
+++ b/COMPONENTS.md
@@ -203,8 +203,6 @@ Liste déroulante.
| `success` | `string` | `''` | Message de succès |
| `disabled` | `boolean` | `false` | Désactivé |
| `groupClass` | `string` | `''` | Classes CSS conteneur (twMerge) |
-| `minWidth` | `string` | `'w-96'` | Classe largeur minimum |
-| `maxWidth` | `string` | `''` | Classe largeur maximum |
| `rounded` | `string` | `'rounded-md'` | Classe border-radius |
| `textField` | `string` | `'text-lg'` | Classe taille texte bouton |
| `textValue` | `string` | `'text-lg'` | Classe taille texte valeur |
diff --git a/app/components/malio/checkbox/Checkbox.vue b/app/components/malio/checkbox/Checkbox.vue
index bdd4414..4b9a698 100644
--- a/app/components/malio/checkbox/Checkbox.vue
+++ b/app/components/malio/checkbox/Checkbox.vue
@@ -101,14 +101,14 @@ const mergedGroupClass = computed(() =>
const mergedInputClass = computed(() =>
twMerge(
- 'inp-cbx peer',
+ 'inp-cbx peer ',
props.inputClass,
),
)
const mergedLabelClass = computed(() =>
twMerge(
- 'cbx text-black',
+ 'cbx text-black text-lg',
disabled.value ? 'cursor-not-allowed text-black/60' : '',
hasError.value ? 'text-m-error' : '',
hasSuccess.value ? 'text-m-success' : '',
diff --git a/app/components/malio/select/Select.test.ts b/app/components/malio/select/Select.test.ts
index f1baa00..dae6334 100644
--- a/app/components/malio/select/Select.test.ts
+++ b/app/components/malio/select/Select.test.ts
@@ -16,8 +16,6 @@ type SelectProps = {
hint?: string
error?: string
success?: string
- minWidth?: string
- maxWidth?: string
textField?: string
textValue?: string
textLabel?: string
diff --git a/app/components/malio/select/Select.vue b/app/components/malio/select/Select.vue
index 98a356b..877c400 100644
--- a/app/components/malio/select/Select.vue
+++ b/app/components/malio/select/Select.vue
@@ -101,8 +101,8 @@
class="absolute left-0 right-0 z-20 max-h-60 w-full overflow-auto border-2 bg-white"
:class="[
openDirection === 'down'
- ? 'top-[calc(100%-2px)] rounded-b-md border-t-0'
- : 'bottom-[calc(100%-2px)] rounded-t-md border-b-0',
+ ? 'top-[calc(100%-4px)] rounded-b-md border-t-0'
+ : 'bottom-[calc(100%-4px)] rounded-t-md border-b-0',
hasError
? 'select-scrollbar-error'
: hasSuccess
@@ -171,8 +171,6 @@ const props = withDefaults(defineProps<{
hint?: string
error?: string
success?: string
- minWidth?: string
- maxWidth?: string
textField?: string
textValue?: string
textLabel?: string
@@ -186,8 +184,6 @@ const props = withDefaults(defineProps<{
hint: '',
error: '',
success: '',
- minWidth: 'w-96',
- maxWidth: '',
textField: 'text-lg',
textValue: 'text-lg',
textLabel: 'text-sm',
@@ -213,7 +209,7 @@ const normalizedOptions = computed