@tak-ps/vue-tabler 4.15.0 → 4.16.0
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/CHANGELOG.md +4 -0
- package/README.md +1 -0
- package/components/Border.vue +37 -0
- package/lib.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ import { TablerButton, TablerAlert } from '@tak-ps/vue-tabler';
|
|
|
56
56
|
| Component | Description |
|
|
57
57
|
|-----------|-------------|
|
|
58
58
|
| **TablerAlert** | Display important messages and feedback. |
|
|
59
|
+
| **TablerBorder** | Bordered card section with optional label and header slot. |
|
|
59
60
|
| **TablerBreadCrumb** | Navigation aid indicating the current page's location. |
|
|
60
61
|
| **TablerButton** | Standard action buttons with various styles. |
|
|
61
62
|
| **TablerBytes** | Utility to format byte values into human-readable strings. |
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class='card h-100 border border-light-subtle shadow-sm'>
|
|
3
|
+
<div
|
|
4
|
+
class='card-body d-flex flex-column'
|
|
5
|
+
:class='{
|
|
6
|
+
"gap-4": gap === "lg",
|
|
7
|
+
"gap-3": gap === "md",
|
|
8
|
+
"gap-2": gap === "sm",
|
|
9
|
+
}'
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
v-if='label || $slots.header'
|
|
13
|
+
class='d-flex align-items-center justify-content-between'
|
|
14
|
+
>
|
|
15
|
+
<p
|
|
16
|
+
v-if='label'
|
|
17
|
+
class='text-uppercase small mb-0'
|
|
18
|
+
v-text='label'
|
|
19
|
+
/>
|
|
20
|
+
<slot name='header' />
|
|
21
|
+
</div>
|
|
22
|
+
<slot />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script setup lang='ts'>
|
|
28
|
+
export interface BorderProps {
|
|
29
|
+
label?: string;
|
|
30
|
+
gap?: 'sm' | 'md' | 'lg';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
withDefaults(defineProps<BorderProps>(), {
|
|
34
|
+
label: '',
|
|
35
|
+
gap: 'md',
|
|
36
|
+
});
|
|
37
|
+
</script>
|
package/lib.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as TablerFileInput } from './components/input/FileInput.vue'
|
|
|
9
9
|
export { default as TablerEnum } from './components/input/Enum.vue';
|
|
10
10
|
|
|
11
11
|
export { default as TablerAlert } from './components/Alert.vue'
|
|
12
|
+
export { default as TablerBorder } from './components/Border.vue'
|
|
12
13
|
export { default as TablerInlineAlert } from './components/InlineAlert.vue'
|
|
13
14
|
export { default as TablerBadge } from './components/Badge.vue'
|
|
14
15
|
export { default as TablerButton } from './components/Button.vue'
|