From 578b261a6443b8cbd02f7d231d2eb574f7c06af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88khan=20O=CC=88ztu=CC=88rk?= Date: Tue, 13 Sep 2022 16:29:49 +0300 Subject: [PATCH] chore: version upgrade --- lib/main.ts | 25 ++++++++++++++++++++++++- package.json | 2 +- src/components/Button/Button.vue | 14 +++++++++++++- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/lib/main.ts b/lib/main.ts index 2d48f1d..35fcb47 100644 --- a/lib/main.ts +++ b/lib/main.ts @@ -2,10 +2,33 @@ import '../src/index.css'; import '../src/components/Button/button.css'; import '../src/components/Checkbox/checkbox.css'; import '../src/components/Textfield/textfield.css'; +import '../src/components/Alert/alert.css'; +import '../src/components/Badge/badge.css'; +import '../src/components/Chips/chip.css'; +import '../src/components/Dropdown/dropdown.css'; +import '../src/components/Switch/switch.css'; +import '../src/components/Tooltip/tooltip.css'; import Button from '../src/components/Button/Button.vue'; import Icon from '../src/components/Icon/Icon.vue'; import Checkbox from '../src/components/Checkbox/Checkbox.vue'; import Textfield from '../src/components/Textfield/Textfield.vue'; +import Alert from '../src/components/Alert/Alert.vue'; +import Badge from '../src/components/Badge/Badge.vue'; +import Chip from '../src/components/Chips/Chip.vue'; +import Dropdown from '../src/components/Dropdown/Dropdown.vue'; +import Switch from '../src/components/Switch/Switch.vue'; +import Tooltip from '../src/components/Tooltip/Tooltip.vue'; -export { Button, Icon, Checkbox, Textfield }; +export { + Button, + Icon, + Checkbox, + Textfield, + Alert, + Badge, + Chip, + Dropdown, + Switch, + Tooltip, +}; diff --git a/package.json b/package.json index f0ccfc1..0d442a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "design-system-vue", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "files": [ "dist" diff --git a/src/components/Button/Button.vue b/src/components/Button/Button.vue index 570259a..6d77157 100644 --- a/src/components/Button/Button.vue +++ b/src/components/Button/Button.vue @@ -24,7 +24,19 @@ export interface Props { type?: 'button' | 'submit' | 'reset'; backgroundColor?: string; } -const props = defineProps(); +const props = withDefaults(defineProps(), { + variant: 'primary', + loading: false, + disabled: false, + icon: '', + iconColor: '', + iconSize: '', + iconKind: '', + iconRight: false, + size: 'medium', + type: 'button', + backgroundColor: '', +}); const emit = defineEmits(['click']); const classes = computed(() => ({ button: true,