design-system-dashboard-devmunity 0.3.0 → 1.0.1
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.
- package/README.md +33 -31
- package/app/app.config.ts +2 -1
- package/app/app.vue +21 -3
- package/app/assets/css/settings/base.css +33 -33
- package/app/assets/css/themes/components/badge.js +7 -0
- package/app/assets/css/themes/components/input.js +5 -0
- package/app/assets/css/themes/index.js +2 -1
- package/app/components/BaseButton.vue +3 -0
- package/app/components/Colors.mdx +42 -0
- package/app/components/Indroduction.mdx +100 -0
- package/app/components/a/button/a-button-avatar-dropdown.stories.ts +83 -0
- package/app/components/a/button/a-button-avatar-dropdown.vue +41 -17
- package/app/components/a/button/a-button-navigation.stories.ts +66 -0
- package/app/components/a/button/a-button-navigation.vue +57 -0
- package/app/components/a/card/a-card-inner.stories.ts +89 -0
- package/app/components/a/card/a-card-inner.vue +38 -0
- package/app/components/a/dropdown/a-dropdown-avatar.stories.ts +160 -0
- package/app/components/a/dropdown/a-dropdown-avatar.vue +75 -33
- package/app/components/a/pill/a-pill.stories.ts +91 -0
- package/app/components/a/pill/a-pill.vue +63 -42
- package/app/components/b/badge/b-badge.stories.ts +77 -0
- package/app/components/b/badge/b-badge.vue +55 -0
- package/app/components/b/card/b-card.stories.ts +120 -0
- package/app/components/b/card/b-card.vue +49 -32
- package/app/components/b/modal/b-modal.stories.ts +210 -0
- package/app/components/b/modal/b-modal.vue +125 -81
- package/app/components/c/badge/c-badge-status.stories.ts +72 -0
- package/app/components/c/badge/c-badge-status.vue +60 -0
- package/app/components/c/modal/c-modal-danger.stories.ts +112 -0
- package/app/components/c/modal/c-modal-danger.vue +60 -41
- package/app/components/d/action-buttons/d-action-buttons.stories.ts +90 -0
- package/app/components/d/action-buttons/d-action-buttons.vue +121 -0
- package/app/components/d/card/d-card-header.stories.ts +123 -0
- package/app/components/{b/card/b-card-header.vue → d/card/d-card-header.vue} +62 -44
- package/app/components/d/upload/d-upload-avatar.stories.ts +66 -0
- package/app/components/d/upload/d-upload-avatar.vue +95 -0
- package/app/pages/test.vue +27 -16
- package/app/types/index.ts +1 -0
- package/app/types/semantic-colors.type.ts +3 -0
- package/app/utils/util-get-colors-from-css.ts +53 -0
- package/nuxt.config.ts +11 -16
- package/package.json +84 -68
- package/.editorconfig +0 -13
- package/.github/workflows/release.yml +0 -36
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -0
- package/.prettierrc +0 -24
- package/.storybook/main.js +0 -25
- package/.storybook/preview.js +0 -13
- package/.vscode/settings.json +0 -28
- package/CHANGELOG.md +0 -46
- package/app/Introduction.mdx +0 -44
- package/app/components/a/button/a-button-back.vue +0 -33
- package/app/components/b/card/b-card-inner.vue +0 -25
- package/app/components/d/d-action-buttons.vue +0 -99
- package/commitlint.config.js +0 -8
- package/tsconfig.json +0 -8
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<script lang="jsx" setup>
|
|
2
|
-
import { twMerge } from 'tailwind-merge'
|
|
3
|
-
|
|
4
|
-
const props = defineProps({
|
|
5
|
-
class: {
|
|
6
|
-
type: [String, Object, Array],
|
|
7
|
-
default: () => '',
|
|
8
|
-
required: false,
|
|
9
|
-
},
|
|
10
|
-
classButtons: {
|
|
11
|
-
type: [String, Object, Array],
|
|
12
|
-
default: () => '',
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
15
|
-
primaryButtonText: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: '',
|
|
18
|
-
required: false,
|
|
19
|
-
},
|
|
20
|
-
primaryButtonIcon: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: '',
|
|
23
|
-
required: false,
|
|
24
|
-
},
|
|
25
|
-
primaryButtonTo: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: '',
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
primaryButtonColor: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: 'primary',
|
|
33
|
-
required: false,
|
|
34
|
-
},
|
|
35
|
-
secondaryButtonText: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: '',
|
|
38
|
-
required: false,
|
|
39
|
-
},
|
|
40
|
-
secondaryButtonTo: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: '',
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
hasButtonsBlock: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false,
|
|
48
|
-
required: false,
|
|
49
|
-
},
|
|
50
|
-
isReverse: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false,
|
|
53
|
-
required: false,
|
|
54
|
-
},
|
|
55
|
-
isPrimaryButtonDisabled: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: false,
|
|
58
|
-
required: false,
|
|
59
|
-
},
|
|
60
|
-
isSecondaryButtonDisabled: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false,
|
|
63
|
-
required: false,
|
|
64
|
-
},
|
|
65
|
-
})
|
|
66
|
-
const emit = defineEmits(['on-click-primary-button', 'on-click-secondary-button'])
|
|
67
|
-
|
|
68
|
-
const classCard = computed(() => twMerge('flex gap-x-4', props.class, props.isReverse && 'flex-row-reverse'))
|
|
69
|
-
const classButtonsComputed = computed(() =>
|
|
70
|
-
twMerge('justify-center w-[150px]', props.hasButtonsBlock && 'flex-auto', props.classButtons)
|
|
71
|
-
)
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<template>
|
|
75
|
-
<footer :class="classCard">
|
|
76
|
-
<UButton
|
|
77
|
-
v-if="secondaryButtonText"
|
|
78
|
-
:to="secondaryButtonTo"
|
|
79
|
-
:label="secondaryButtonText"
|
|
80
|
-
:disabled="isSecondaryButtonDisabled"
|
|
81
|
-
:class="classButtonsComputed"
|
|
82
|
-
variant="outline"
|
|
83
|
-
color="neutral"
|
|
84
|
-
@click="$emit('on-click-secondary-button')"
|
|
85
|
-
/>
|
|
86
|
-
<UButton
|
|
87
|
-
v-if="primaryButtonText"
|
|
88
|
-
:label="primaryButtonText"
|
|
89
|
-
:to="primaryButtonTo"
|
|
90
|
-
:icon="primaryButtonIcon"
|
|
91
|
-
:color="primaryButtonColor"
|
|
92
|
-
:disabled="isPrimaryButtonDisabled"
|
|
93
|
-
:class="classButtonsComputed"
|
|
94
|
-
type="submit"
|
|
95
|
-
trailing
|
|
96
|
-
@click="$emit('on-click-primary-button')"
|
|
97
|
-
/>
|
|
98
|
-
</footer>
|
|
99
|
-
</template>
|
package/commitlint.config.js
DELETED