Skip to content

Commit 3454d7b

Browse files
authored
Merge pull request #22 from variantjs/fix/add-compact-config
fix: add compact config to all componentes
2 parents 1f1b931 + 69ea89b commit 3454d7b

29 files changed

+85
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@variantjs/vue",
3-
"version": "0.0.10-1",
3+
"version": "0.0.10",
44
"description": "Vue VariantJS: Fully configurable Vue 3 components styled with TailwindCSS",
55
"files": [
66
"dist/**/*",

src/components/TAlert.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
7070
// @vue/component
7171
export default defineComponent({
7272
name: 'TAlert',
73+
compatConfig: {
74+
MODE: 3,
75+
},
7376
components: {
7477
CustomIcon,
7578
CloseIcon,

src/components/TButton.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ import { getVariantProps } from '../utils/getVariantProps';
3131
3232
export default defineComponent({
3333
name: 'TButton',
34+
compatConfig: {
35+
MODE: 3,
36+
},
3437
props: {
3538
...getVariantProps<TButtonOptions>(),
3639
tagName: {

src/components/TCard.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
5252
// @vue/component
5353
export default defineComponent({
5454
name: 'TCard',
55+
compatConfig: {
56+
MODE: 3,
57+
},
5558
props: {
5659
...getVariantPropsWithClassesList<TCardOptions, TCardClassesValidKeys>(),
5760
tagName: {

src/components/TCheckbox.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import useVModel from '../use/useVModel';
1717
// @vue/component
1818
export default defineComponent({
1919
name: 'TCheckbox',
20+
compatConfig: {
21+
MODE: 3,
22+
},
2023
props: {
2124
...getVariantProps<TCheckboxOptions>(),
2225
modelValue: {

src/components/TDialog.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ import CloseIcon from '../icons/CloseIcon.vue';
277277
// @vue/component
278278
export default defineComponent({
279279
name: 'TDialog',
280+
compatConfig: {
281+
MODE: 3,
282+
},
280283
components: {
281284
TModal,
282285
CloseIcon,

src/components/TDropdown.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export const validDropdownPlacements = [
102102
// @vue/component
103103
export default defineComponent({
104104
name: 'TDropdown',
105+
compatConfig: {
106+
MODE: 3,
107+
},
105108
components: { Transitionable },
106109
inheritAttrs: false,
107110
props: {

src/components/TInput.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ import useConfiguration from '../use/useConfiguration';
2020
2121
export default defineComponent({
2222
name: 'TInput',
23+
compatConfig: {
24+
MODE: 3,
25+
},
2326
props: {
2427
...getVariantProps<TInputOptions>(),
2528
modelValue: {

src/components/TInputGroup.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ import { getVariantPropsWithClassesList } from '../utils/getVariantProps';
3333
// @vue/component
3434
export default defineComponent({
3535
name: 'TInputGroup',
36+
compatConfig: {
37+
MODE: 3,
38+
},
3639
props: {
3740
...getVariantPropsWithClassesList<TInputGroupOptions, TInputGroupClassesValidKeys>(),
3841
label: {

src/components/TModal.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ import Transitionable from './misc/Transitionable.vue';
109109
// @vue/component
110110
export default defineComponent({
111111
name: 'TModal',
112+
compatConfig: {
113+
MODE: 3,
114+
},
112115
components: {
113116
CloseIcon,
114117
Transitionable,

0 commit comments

Comments
 (0)