nexa-ui-kit 0.8.4 → 0.10.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/dist/components/NAlert.js +1 -1
- package/dist/components/NAutocomplete.js +1 -1
- package/dist/components/NAvatar.js +1 -1
- package/dist/components/NBadge.js +1 -1
- package/dist/components/NButton.js +1 -1
- package/dist/components/NCard.js +29 -20
- package/dist/components/NCard.nexa +10 -1
- package/dist/components/NCheckbox.js +1 -1
- package/dist/components/NChips.js +1 -1
- package/dist/components/NDataTable.js +1 -1
- package/dist/components/NDatepicker.js +1 -1
- package/dist/components/NForm.js +1 -1
- package/dist/components/NFormField.js +1 -1
- package/dist/components/NInput.js +1 -1
- package/dist/components/NInputNumber.js +1 -1
- package/dist/components/NModal.js +1 -1
- package/dist/components/NMultiSelect.js +1 -1
- package/dist/components/NPaginator.js +1 -1
- package/dist/components/NPassword.js +1 -1
- package/dist/components/NProgressBar.js +1 -1
- package/dist/components/NRadio.js +1 -1
- package/dist/components/NScrollView.js +1 -1
- package/dist/components/NSelect.js +1 -1
- package/dist/components/NSkeleton.js +1 -1
- package/dist/components/NSwitch.js +1 -1
- package/dist/components/NTabs.js +1 -1
- package/dist/components/NTag.js +1 -1
- package/dist/components/NToastContainer.js +1 -1
- package/dist/components/NTooltip.js +1 -1
- package/dist/components/NTreeMenu.js +1 -1
- package/package.json +4 -4
- package/src/components/NCard.nexa +10 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, h, hText, effect, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-22a3a541',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, effect, onBeforeUnmount, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, effect, onBeforeUnmount, h, hText, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { computed, h, hText, effect, signal, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-147134',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-ff3cf3e',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-76573beb',
|
package/dist/components/NCard.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
|
-
__scopeId: 'data-v-
|
|
4
|
+
__scopeId: 'data-v-28bb4c76',
|
|
5
5
|
__hmrId: 'NCard_nexa',
|
|
6
6
|
props: {
|
|
7
7
|
title: { type: String, default: '' },
|
|
8
8
|
subtitle: { type: String, default: '' },
|
|
9
9
|
padding: { type: Boolean, default: true },
|
|
10
|
+
compact: { type: Boolean, default: false },
|
|
10
11
|
hoverable: { type: Boolean, default: false },
|
|
11
12
|
variant: { type: String, default: 'elevated' },
|
|
12
13
|
image: { type: String, default: '' }
|
|
@@ -18,11 +19,11 @@ const _sfc_main = defineComponent({
|
|
|
18
19
|
})
|
|
19
20
|
// Injected render function
|
|
20
21
|
_sfc_main.render = function(ctx) {
|
|
21
|
-
let { $slots, title, subtitle, padding, hoverable, variant, image, Fragment: _ntc_Fragment } = ctx
|
|
22
|
-
return h('div', { class: ['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : ''], "data-v-
|
|
22
|
+
let { $slots, title, subtitle, padding, compact, hoverable, variant, image, Fragment: _ntc_Fragment } = ctx
|
|
23
|
+
return h('div', { class: ['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : '', compact ? 'is-compact' : ''], "data-v-28bb4c76": "" }, [
|
|
23
24
|
"\n ",
|
|
24
|
-
(image) ? h('img', { class: "n-card-image", src: image, "data-v-
|
|
25
|
-
(title || $slots.header) ? h('div', { class: "n-card-header", "data-v-
|
|
25
|
+
(image) ? h('img', { class: "n-card-image", src: image, "data-v-28bb4c76": "" }) : null,
|
|
26
|
+
(title || $slots.header) ? h('div', { class: "n-card-header", "data-v-28bb4c76": "" }, [
|
|
26
27
|
"\n ",
|
|
27
28
|
ctx.$slots.header ? ctx.$slots.header() : ["\n ", h('h3', { class: "n-card-title" }, [
|
|
28
29
|
title
|
|
@@ -31,25 +32,25 @@ _sfc_main.render = function(ctx) {
|
|
|
31
32
|
]), "\n "],
|
|
32
33
|
"\n "
|
|
33
34
|
]) : null,
|
|
34
|
-
h('div', { class: ['n-card-body', padding ? 'has-padding' : ''], "data-v-
|
|
35
|
+
h('div', { class: ['n-card-body', padding ? 'has-padding' : ''], "data-v-28bb4c76": "" }, [
|
|
35
36
|
"\n ",
|
|
36
37
|
ctx.$slots.default ? ctx.$slots.default() : null,
|
|
37
38
|
"\n "
|
|
38
39
|
]),
|
|
39
40
|
"\n ",
|
|
40
|
-
($slots.footer) ? h('div', { class: "n-card-footer", "data-v-
|
|
41
|
+
($slots.footer) ? h('div', { class: "n-card-footer", "data-v-28bb4c76": "" }, [
|
|
41
42
|
"\n ",
|
|
42
43
|
ctx.$slots.footer ? ctx.$slots.footer() : null,
|
|
43
44
|
"\n "
|
|
44
45
|
]) : null
|
|
45
46
|
])
|
|
46
47
|
}
|
|
47
|
-
_sfc_main.__scopeId = 'data-v-
|
|
48
|
+
_sfc_main.__scopeId = 'data-v-28bb4c76'
|
|
48
49
|
_sfc_main.__hmrId = 'NCard_nexa'
|
|
49
50
|
|
|
50
51
|
export default _sfc_main
|
|
51
52
|
|
|
52
|
-
const __style = `.n-card[data-v-
|
|
53
|
+
const __style = `.n-card[data-v-28bb4c76]{
|
|
53
54
|
background: var(--n-color-surface);
|
|
54
55
|
border: 1px solid var(--n-color-border);
|
|
55
56
|
border-radius: var(--n-radius-xl);
|
|
@@ -59,42 +60,50 @@ const __style = `.n-card[data-v-34850782]{
|
|
|
59
60
|
flex-direction: column;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
.is-elevated[data-v-
|
|
63
|
+
.is-elevated[data-v-28bb4c76]{
|
|
63
64
|
background: var(--n-color-surface-elevated);
|
|
64
65
|
box-shadow: var(--n-shadow-lg);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
.is-outlined[data-v-
|
|
68
|
+
.is-outlined[data-v-28bb4c76]{
|
|
68
69
|
background: transparent;
|
|
69
70
|
border-color: var(--n-color-border);
|
|
70
71
|
box-shadow: none;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
.is-flat[data-v-
|
|
74
|
+
.is-flat[data-v-28bb4c76]{
|
|
74
75
|
background: var(--n-color-surface-alt);
|
|
75
76
|
border: none;
|
|
76
77
|
box-shadow: none;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
.n-card.is-hoverable[data-v-
|
|
80
|
+
.n-card.is-hoverable[data-v-28bb4c76]:hover{
|
|
80
81
|
transform: translateY(-4px);
|
|
81
82
|
border-color: var(--n-color-border-hover);
|
|
82
83
|
box-shadow: var(--n-shadow-xl);
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
.n-card-image[data-v-
|
|
86
|
+
.n-card-image[data-v-28bb4c76]{
|
|
86
87
|
width: 100%;
|
|
87
88
|
height: 200px;
|
|
88
89
|
object-fit: cover;
|
|
89
90
|
display: block;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
.n-card-header[data-v-
|
|
93
|
+
.n-card-header[data-v-28bb4c76]{
|
|
93
94
|
padding: var(--n-space-6);
|
|
94
95
|
border-bottom: 1px solid var(--n-color-border);
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
.n-card-
|
|
98
|
+
.is-compact .n-card-header[data-v-28bb4c76]{
|
|
99
|
+
padding: var(--n-space-4);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.is-compact .n-card-body.has-padding{
|
|
103
|
+
padding: var(--n-space-4);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.n-card-title[data-v-28bb4c76]{
|
|
98
107
|
margin: 0;
|
|
99
108
|
font-size: var(--n-text-xl);
|
|
100
109
|
font-weight: var(--n-weight-bold);
|
|
@@ -102,7 +111,7 @@ const __style = `.n-card[data-v-34850782]{
|
|
|
102
111
|
letter-spacing: var(--n-tracking-tight);
|
|
103
112
|
}
|
|
104
113
|
|
|
105
|
-
.n-card-subtitle[data-v-
|
|
114
|
+
.n-card-subtitle[data-v-28bb4c76]{
|
|
106
115
|
margin: var(--n-space-1) 0 0 0;
|
|
107
116
|
font-size: var(--n-text-sm);
|
|
108
117
|
color: var(--n-color-text-secondary);
|
|
@@ -112,10 +121,10 @@ const __style = `.n-card[data-v-34850782]{
|
|
|
112
121
|
padding: var(--n-space-6);
|
|
113
122
|
}
|
|
114
123
|
|
|
115
|
-
.n-card-footer[data-v-
|
|
124
|
+
.n-card-footer[data-v-28bb4c76]{
|
|
116
125
|
padding: var(--n-space-4) var(--n-space-6);
|
|
117
126
|
background: rgba(0, 0, 0, 0.15);
|
|
118
127
|
border-top: 1px solid var(--n-color-border);
|
|
119
128
|
margin-top: auto;
|
|
120
129
|
}`
|
|
121
|
-
injectStyle('data-v-
|
|
130
|
+
injectStyle('data-v-28bb4c76', __style)
|
|
@@ -3,6 +3,7 @@ const props = defineProps({
|
|
|
3
3
|
title: { type: String, default: '' },
|
|
4
4
|
subtitle: { type: String, default: '' },
|
|
5
5
|
padding: { type: Boolean, default: true },
|
|
6
|
+
compact: { type: Boolean, default: false },
|
|
6
7
|
hoverable: { type: Boolean, default: false },
|
|
7
8
|
variant: { type: String, default: 'elevated' },
|
|
8
9
|
image: { type: String, default: '' }
|
|
@@ -10,7 +11,7 @@ const props = defineProps({
|
|
|
10
11
|
</script>
|
|
11
12
|
|
|
12
13
|
<template>
|
|
13
|
-
<div :class="['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : '']">
|
|
14
|
+
<div :class="['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : '', compact ? 'is-compact' : '']">
|
|
14
15
|
<img v-if="image" :src="image" class="n-card-image" />
|
|
15
16
|
<div v-if="title || $slots.header" class="n-card-header">
|
|
16
17
|
<slot name="header">
|
|
@@ -73,6 +74,14 @@ const props = defineProps({
|
|
|
73
74
|
border-bottom: 1px solid var(--n-color-border);
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
.is-compact .n-card-header {
|
|
78
|
+
padding: var(--n-space-4);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.is-compact .n-card-body.has-padding {
|
|
82
|
+
padding: var(--n-space-4);
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
.n-card-title {
|
|
77
86
|
margin: 0;
|
|
78
87
|
font-size: var(--n-text-xl);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-761e94fe',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { computed, h, hText, effect, signal, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-606f06fb',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, effect, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, effect, h, hText, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
import NPaginator from './NPaginator.js'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, onBeforeUnmount, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, onBeforeUnmount, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
import NInput from './NInput.js'
|
|
3
3
|
import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
|
|
4
4
|
|
package/dist/components/NForm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, provide, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, provide, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-38e99ca2',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, inject, provide, effect, onUnmounted, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, inject, provide, effect, onUnmounted, h, hText, onMounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-30bdb720',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, inject, effect, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, inject, effect, h, hText, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-7dbed0f8',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, inject, effect, batch, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, inject, effect, batch, h, hText, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-39e23f1c',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, effect, onMounted, onUnmounted, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, effect, onMounted, onUnmounted, h, hText, computed, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-51b57181',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, inject, onBeforeUnmount, effect, batch, h, hText, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, inject, onBeforeUnmount, effect, batch, h, hText, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { computed, h, hText, effect, signal, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-372b30ac',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-7b897096',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { computed, h, hText, effect, signal, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-daaa1d0',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-5c3cc2',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-7469d561',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, onBeforeUnmount, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, onBeforeUnmount, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-6b9116c8',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-3cd56cb4',
|
package/dist/components/NTabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-339e5ee5',
|
package/dist/components/NTag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-4d63a958',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useToast } from '../services/ToastService.js'
|
|
2
|
-
import { h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
|
+
import { h, hText, effect, signal, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
5
5
|
__scopeId: 'data-v-8ac4158',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
1
|
+
import { signal, h, hText, effect, computed, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle, Teleport } from 'nexa-framework'
|
|
2
2
|
import { trackFloatingOverlay } from '../services/FloatingOverlay.js'
|
|
3
3
|
|
|
4
4
|
const _sfc_main = defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { signal, computed, h, hText, effect, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
1
|
+
import { signal, computed, h, hText, effect, onMounted, onUnmounted, defineComponent, registerComponent, reloadComponent, injectStyle } from 'nexa-framework'
|
|
2
2
|
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
__scopeId: 'data-v-44b3942a',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexa-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Premium component library for Nexa Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"src"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"nexa-framework": "0.
|
|
26
|
-
"nexa-mobile": "0.
|
|
25
|
+
"nexa-framework": "0.10.0",
|
|
26
|
+
"nexa-mobile": "0.10.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"cpx": "^1.5.0",
|
|
30
|
-
"nexa-compiler": "0.
|
|
30
|
+
"nexa-compiler": "0.10.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc && node scripts/compile-nexa.js && node scripts/patch-imports.js && cpx \"src/**/*.nexa\" dist && cpx \"src/styles/*.css\" dist/styles",
|
|
@@ -3,6 +3,7 @@ const props = defineProps({
|
|
|
3
3
|
title: { type: String, default: '' },
|
|
4
4
|
subtitle: { type: String, default: '' },
|
|
5
5
|
padding: { type: Boolean, default: true },
|
|
6
|
+
compact: { type: Boolean, default: false },
|
|
6
7
|
hoverable: { type: Boolean, default: false },
|
|
7
8
|
variant: { type: String, default: 'elevated' },
|
|
8
9
|
image: { type: String, default: '' }
|
|
@@ -10,7 +11,7 @@ const props = defineProps({
|
|
|
10
11
|
</script>
|
|
11
12
|
|
|
12
13
|
<template>
|
|
13
|
-
<div :class="['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : '']">
|
|
14
|
+
<div :class="['n-card', `is-${variant}`, hoverable ? 'is-hoverable' : '', compact ? 'is-compact' : '']">
|
|
14
15
|
<img v-if="image" :src="image" class="n-card-image" />
|
|
15
16
|
<div v-if="title || $slots.header" class="n-card-header">
|
|
16
17
|
<slot name="header">
|
|
@@ -73,6 +74,14 @@ const props = defineProps({
|
|
|
73
74
|
border-bottom: 1px solid var(--n-color-border);
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
.is-compact .n-card-header {
|
|
78
|
+
padding: var(--n-space-4);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.is-compact .n-card-body.has-padding {
|
|
82
|
+
padding: var(--n-space-4);
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
.n-card-title {
|
|
77
86
|
margin: 0;
|
|
78
87
|
font-size: var(--n-text-xl);
|