nexa-ui-kit 0.11.6 → 0.11.9
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 +2 -14
- package/dist/components/NAlert.nexa +3 -14
- package/dist/components/NAutocomplete.js +1 -1
- package/dist/components/NAutocomplete.nexa +2 -1
- package/dist/components/NAvatar.js +0 -5
- package/dist/components/NAvatar.nexa +1 -5
- package/dist/components/NBadge.js +0 -6
- package/dist/components/NBadge.nexa +1 -6
- package/dist/components/NBottomSheet.js +0 -5
- package/dist/components/NBottomSheet.nexa +1 -5
- package/dist/components/NButton.js +219 -296
- package/dist/components/NButton.nexa +241 -320
- package/dist/components/NCard.js +39 -82
- package/dist/components/NCard.nexa +27 -71
- package/dist/components/NCheckbox.js +74 -63
- package/dist/components/NCheckbox.nexa +64 -44
- package/dist/components/NChips.nexa +1 -0
- package/dist/components/NDataTable.js +300 -356
- package/dist/components/NDataTable.nexa +265 -320
- package/dist/components/NDatepicker.js +4 -25
- package/dist/components/NDatepicker.nexa +5 -25
- package/dist/components/NForm.nexa +1 -0
- package/dist/components/NFormField.js +0 -5
- package/dist/components/NFormField.nexa +1 -5
- package/dist/components/NImage.js +1 -6
- package/dist/components/NImage.nexa +2 -6
- package/dist/components/NInput.js +96 -263
- package/dist/components/NInput.nexa +89 -259
- package/dist/components/NInputNumber.nexa +1 -1
- package/dist/components/NModal.js +1 -118
- package/dist/components/NModal.nexa +2 -119
- package/dist/components/NMultiSelect.js +1 -1
- package/dist/components/NMultiSelect.nexa +2 -1
- package/dist/components/NPaginator.js +1 -11
- package/dist/components/NPaginator.nexa +2 -11
- package/dist/components/NPassword.nexa +1 -0
- package/dist/components/NProgressBar.js +0 -11
- package/dist/components/NProgressBar.nexa +1 -11
- package/dist/components/NRadio.js +1 -8
- package/dist/components/NRadio.nexa +2 -8
- package/dist/components/NScrollView.js +0 -6
- package/dist/components/NScrollView.nexa +1 -6
- package/dist/components/NSelect.js +7 -35
- package/dist/components/NSelect.nexa +8 -35
- package/dist/components/NSkeleton.js +3 -9
- package/dist/components/NSkeleton.nexa +4 -9
- package/dist/components/NSwitch.js +0 -6
- package/dist/components/NSwitch.nexa +1 -6
- package/dist/components/NTabs.js +0 -11
- package/dist/components/NTabs.nexa +1 -11
- package/dist/components/NTag.js +1 -11
- package/dist/components/NTag.nexa +2 -11
- package/dist/components/NToastContainer.js +3 -27
- package/dist/components/NToastContainer.nexa +4 -27
- package/dist/components/NTooltip.js +0 -13
- package/dist/components/NTooltip.nexa +1 -13
- package/dist/components/NTreeMenu.js +1 -21
- package/dist/components/NTreeMenu.nexa +2 -21
- package/dist/components/NVirtualList.js +0 -2
- package/dist/components/NVirtualList.nexa +1 -2
- package/dist/styles/tokens.css +82 -173
- package/package.json +5 -5
- package/src/components/NAlert.nexa +3 -14
- package/src/components/NAutocomplete.nexa +2 -1
- package/src/components/NAvatar.nexa +1 -5
- package/src/components/NBadge.nexa +1 -6
- package/src/components/NBottomSheet.nexa +1 -5
- package/src/components/NButton.nexa +241 -320
- package/src/components/NCard.nexa +27 -71
- package/src/components/NCheckbox.nexa +64 -44
- package/src/components/NChips.nexa +1 -0
- package/src/components/NDataTable.nexa +265 -320
- package/src/components/NDatepicker.nexa +5 -25
- package/src/components/NForm.nexa +1 -0
- package/src/components/NFormField.nexa +1 -5
- package/src/components/NImage.nexa +2 -6
- package/src/components/NInput.nexa +89 -259
- package/src/components/NInputNumber.nexa +1 -1
- package/src/components/NModal.nexa +2 -119
- package/src/components/NMultiSelect.nexa +2 -1
- package/src/components/NPaginator.nexa +2 -11
- package/src/components/NPassword.nexa +1 -0
- package/src/components/NProgressBar.nexa +1 -11
- package/src/components/NRadio.nexa +2 -8
- package/src/components/NScrollView.nexa +1 -6
- package/src/components/NSelect.nexa +8 -35
- package/src/components/NSkeleton.nexa +4 -9
- package/src/components/NSwitch.nexa +1 -6
- package/src/components/NTabs.nexa +1 -11
- package/src/components/NTag.nexa +2 -11
- package/src/components/NToastContainer.nexa +4 -27
- package/src/components/NTooltip.nexa +1 -13
- package/src/components/NTreeMenu.nexa +2 -21
- package/src/components/NVirtualList.nexa +1 -2
- package/src/styles/tokens.css +82 -173
|
@@ -254,25 +254,20 @@ const __style = `.n-datepicker[data-v-7501a13d]{
|
|
|
254
254
|
display: inline-block;
|
|
255
255
|
font-family: var(--n-font-sans);
|
|
256
256
|
}
|
|
257
|
-
|
|
258
257
|
.n-datepicker-input[data-v-7501a13d]{
|
|
259
258
|
position: relative;
|
|
260
259
|
cursor: pointer;
|
|
261
260
|
}
|
|
262
|
-
|
|
263
261
|
.n-datepicker-input .n-input[data-v-7501a13d]{
|
|
264
262
|
cursor: pointer;
|
|
265
263
|
}
|
|
266
|
-
|
|
267
264
|
.n-datepicker-icon[data-v-7501a13d]{
|
|
268
265
|
position: absolute;
|
|
269
266
|
right: 0.75rem;
|
|
270
267
|
top: 50%;
|
|
271
|
-
transform: translateY(-50%);
|
|
272
268
|
font-size: 1rem;
|
|
273
269
|
pointer-events: none;
|
|
274
270
|
}
|
|
275
|
-
|
|
276
271
|
.n-datepicker-dropdown[data-v-7501a13d]{
|
|
277
272
|
position: absolute;
|
|
278
273
|
top: calc(100% + 4px);
|
|
@@ -286,34 +281,28 @@ const __style = `.n-datepicker[data-v-7501a13d]{
|
|
|
286
281
|
width: 280px;
|
|
287
282
|
animation: fade-in 0.15s ease;
|
|
288
283
|
}
|
|
289
|
-
|
|
290
284
|
@keyframes fade-in {
|
|
291
|
-
from[data-v-7501a13d]{ opacity: 0;
|
|
292
|
-
to[data-v-7501a13d]{ opacity: 1;
|
|
285
|
+
from[data-v-7501a13d]{ opacity: 0; }
|
|
286
|
+
to[data-v-7501a13d]{ opacity: 1; }
|
|
293
287
|
}
|
|
294
|
-
|
|
295
288
|
.n-datepicker-dropdown.is-top[data-v-7501a13d]{
|
|
296
289
|
animation: fade-in-top 0.15s ease;
|
|
297
290
|
}
|
|
298
|
-
|
|
299
291
|
@keyframes fade-in-top {
|
|
300
|
-
from[data-v-7501a13d]{ opacity: 0;
|
|
301
|
-
to[data-v-7501a13d]{ opacity: 1;
|
|
292
|
+
from[data-v-7501a13d]{ opacity: 0; }
|
|
293
|
+
to[data-v-7501a13d]{ opacity: 1; }
|
|
302
294
|
}
|
|
303
|
-
|
|
304
295
|
.n-datepicker-header[data-v-7501a13d]{
|
|
305
296
|
display: flex;
|
|
306
297
|
align-items: center;
|
|
307
298
|
justify-content: space-between;
|
|
308
299
|
margin-bottom: 0.75rem;
|
|
309
300
|
}
|
|
310
|
-
|
|
311
301
|
.n-datepicker-title[data-v-7501a13d]{
|
|
312
302
|
font-weight: var(--n-weight-semibold);
|
|
313
303
|
font-size: var(--n-text-sm);
|
|
314
304
|
color: var(--n-color-text);
|
|
315
305
|
}
|
|
316
|
-
|
|
317
306
|
.n-datepicker-nav[data-v-7501a13d]{
|
|
318
307
|
background: none;
|
|
319
308
|
border: 1px solid var(--n-color-border);
|
|
@@ -328,18 +317,15 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
328
317
|
justify-content: center;
|
|
329
318
|
transition: all var(--n-transition-fast);
|
|
330
319
|
}
|
|
331
|
-
|
|
332
320
|
.n-datepicker-nav[data-v-7501a13d]:hover{
|
|
333
321
|
background: var(--n-color-surface-hover);
|
|
334
322
|
color: var(--n-color-text);
|
|
335
323
|
}
|
|
336
|
-
|
|
337
324
|
.n-datepicker-grid[data-v-7501a13d]{
|
|
338
325
|
display: grid;
|
|
339
326
|
grid-template-columns: repeat(7, 1fr);
|
|
340
327
|
gap: 2px;
|
|
341
328
|
}
|
|
342
|
-
|
|
343
329
|
.n-datepicker-day-header[data-v-7501a13d]{
|
|
344
330
|
text-align: center;
|
|
345
331
|
font-size: var(--n-text-xs);
|
|
@@ -347,7 +333,6 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
347
333
|
font-weight: var(--n-weight-semibold);
|
|
348
334
|
padding: 0.35rem 0;
|
|
349
335
|
}
|
|
350
|
-
|
|
351
336
|
.n-datepicker-day[data-v-7501a13d]{
|
|
352
337
|
text-align: center;
|
|
353
338
|
padding: 0.4rem 0;
|
|
@@ -357,29 +342,23 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
357
342
|
cursor: pointer;
|
|
358
343
|
transition: all var(--n-transition-fast);
|
|
359
344
|
}
|
|
360
|
-
|
|
361
345
|
.n-datepicker-day[data-v-7501a13d]:hover:not(.is-empty){
|
|
362
346
|
background: var(--n-color-primary-light);
|
|
363
347
|
}
|
|
364
|
-
|
|
365
348
|
.n-datepicker-day.is-empty[data-v-7501a13d]{
|
|
366
349
|
cursor: default;
|
|
367
350
|
}
|
|
368
|
-
|
|
369
351
|
.n-datepicker-day.is-disabled[data-v-7501a13d]{
|
|
370
352
|
opacity: 0.4;
|
|
371
353
|
cursor: not-allowed;
|
|
372
354
|
}
|
|
373
|
-
|
|
374
355
|
.n-datepicker-day.is-disabled[data-v-7501a13d]:hover{
|
|
375
356
|
background: transparent;
|
|
376
357
|
}
|
|
377
|
-
|
|
378
358
|
.n-datepicker-day.is-today[data-v-7501a13d]{
|
|
379
359
|
font-weight: var(--n-weight-bold);
|
|
380
360
|
color: var(--n-color-primary);
|
|
381
361
|
}
|
|
382
|
-
|
|
383
362
|
.n-datepicker-day.is-selected[data-v-7501a13d]{
|
|
384
363
|
background: var(--n-color-primary);
|
|
385
364
|
color: white;
|
|
@@ -233,25 +233,20 @@ onBeforeUnmount(() => {
|
|
|
233
233
|
display: inline-block;
|
|
234
234
|
font-family: var(--n-font-sans);
|
|
235
235
|
}
|
|
236
|
-
|
|
237
236
|
.n-datepicker-input {
|
|
238
237
|
position: relative;
|
|
239
238
|
cursor: pointer;
|
|
240
239
|
}
|
|
241
|
-
|
|
242
240
|
.n-datepicker-input .n-input {
|
|
243
241
|
cursor: pointer;
|
|
244
242
|
}
|
|
245
|
-
|
|
246
243
|
.n-datepicker-icon {
|
|
247
244
|
position: absolute;
|
|
248
245
|
right: 0.75rem;
|
|
249
246
|
top: 50%;
|
|
250
|
-
transform: translateY(-50%);
|
|
251
247
|
font-size: 1rem;
|
|
252
248
|
pointer-events: none;
|
|
253
249
|
}
|
|
254
|
-
|
|
255
250
|
.n-datepicker-dropdown {
|
|
256
251
|
position: absolute;
|
|
257
252
|
top: calc(100% + 4px);
|
|
@@ -265,34 +260,28 @@ onBeforeUnmount(() => {
|
|
|
265
260
|
width: 280px;
|
|
266
261
|
animation: fade-in 0.15s ease;
|
|
267
262
|
}
|
|
268
|
-
|
|
269
263
|
@keyframes fade-in {
|
|
270
|
-
from { opacity: 0;
|
|
271
|
-
to { opacity: 1;
|
|
264
|
+
from { opacity: 0; }
|
|
265
|
+
to { opacity: 1; }
|
|
272
266
|
}
|
|
273
|
-
|
|
274
267
|
.n-datepicker-dropdown.is-top {
|
|
275
268
|
animation: fade-in-top 0.15s ease;
|
|
276
269
|
}
|
|
277
|
-
|
|
278
270
|
@keyframes fade-in-top {
|
|
279
|
-
from { opacity: 0;
|
|
280
|
-
to { opacity: 1;
|
|
271
|
+
from { opacity: 0; }
|
|
272
|
+
to { opacity: 1; }
|
|
281
273
|
}
|
|
282
|
-
|
|
283
274
|
.n-datepicker-header {
|
|
284
275
|
display: flex;
|
|
285
276
|
align-items: center;
|
|
286
277
|
justify-content: space-between;
|
|
287
278
|
margin-bottom: 0.75rem;
|
|
288
279
|
}
|
|
289
|
-
|
|
290
280
|
.n-datepicker-title {
|
|
291
281
|
font-weight: var(--n-weight-semibold);
|
|
292
282
|
font-size: var(--n-text-sm);
|
|
293
283
|
color: var(--n-color-text);
|
|
294
284
|
}
|
|
295
|
-
|
|
296
285
|
.n-datepicker-nav {
|
|
297
286
|
background: none;
|
|
298
287
|
border: 1px solid var(--n-color-border);
|
|
@@ -307,18 +296,15 @@ onBeforeUnmount(() => {
|
|
|
307
296
|
justify-content: center;
|
|
308
297
|
transition: all var(--n-transition-fast);
|
|
309
298
|
}
|
|
310
|
-
|
|
311
299
|
.n-datepicker-nav:hover {
|
|
312
300
|
background: var(--n-color-surface-hover);
|
|
313
301
|
color: var(--n-color-text);
|
|
314
302
|
}
|
|
315
|
-
|
|
316
303
|
.n-datepicker-grid {
|
|
317
304
|
display: grid;
|
|
318
305
|
grid-template-columns: repeat(7, 1fr);
|
|
319
306
|
gap: 2px;
|
|
320
307
|
}
|
|
321
|
-
|
|
322
308
|
.n-datepicker-day-header {
|
|
323
309
|
text-align: center;
|
|
324
310
|
font-size: var(--n-text-xs);
|
|
@@ -326,7 +312,6 @@ onBeforeUnmount(() => {
|
|
|
326
312
|
font-weight: var(--n-weight-semibold);
|
|
327
313
|
padding: 0.35rem 0;
|
|
328
314
|
}
|
|
329
|
-
|
|
330
315
|
.n-datepicker-day {
|
|
331
316
|
text-align: center;
|
|
332
317
|
padding: 0.4rem 0;
|
|
@@ -336,32 +321,27 @@ onBeforeUnmount(() => {
|
|
|
336
321
|
cursor: pointer;
|
|
337
322
|
transition: all var(--n-transition-fast);
|
|
338
323
|
}
|
|
339
|
-
|
|
340
324
|
.n-datepicker-day:hover:not(.is-empty) {
|
|
341
325
|
background: var(--n-color-primary-light);
|
|
342
326
|
}
|
|
343
|
-
|
|
344
327
|
.n-datepicker-day.is-empty {
|
|
345
328
|
cursor: default;
|
|
346
329
|
}
|
|
347
|
-
|
|
348
330
|
.n-datepicker-day.is-disabled {
|
|
349
331
|
opacity: 0.4;
|
|
350
332
|
cursor: not-allowed;
|
|
351
333
|
}
|
|
352
|
-
|
|
353
334
|
.n-datepicker-day.is-disabled:hover {
|
|
354
335
|
background: transparent;
|
|
355
336
|
}
|
|
356
|
-
|
|
357
337
|
.n-datepicker-day.is-today {
|
|
358
338
|
font-weight: var(--n-weight-bold);
|
|
359
339
|
color: var(--n-color-primary);
|
|
360
340
|
}
|
|
361
|
-
|
|
362
341
|
.n-datepicker-day.is-selected {
|
|
363
342
|
background: var(--n-color-primary);
|
|
364
343
|
color: white;
|
|
365
344
|
font-weight: var(--n-weight-semibold);
|
|
366
345
|
}
|
|
346
|
+
|
|
367
347
|
</style>
|
|
@@ -143,30 +143,25 @@ const __style = `.n-form-field[data-v-30bdb720]{
|
|
|
143
143
|
gap: var(--n-space-2);
|
|
144
144
|
width: 100%;
|
|
145
145
|
}
|
|
146
|
-
|
|
147
146
|
.n-form-field-label[data-v-30bdb720]{
|
|
148
147
|
font-size: var(--n-text-sm);
|
|
149
148
|
font-weight: var(--n-weight-semibold);
|
|
150
149
|
color: var(--n-color-text-secondary);
|
|
151
150
|
margin-left: var(--n-space-1);
|
|
152
151
|
}
|
|
153
|
-
|
|
154
152
|
.n-form-field-control[data-v-30bdb720]{
|
|
155
153
|
width: 100%;
|
|
156
154
|
}
|
|
157
|
-
|
|
158
155
|
.n-form-field-help[data-v-30bdb720]{
|
|
159
156
|
font-size: var(--n-text-xs);
|
|
160
157
|
color: var(--n-color-text-muted);
|
|
161
158
|
padding: 0 var(--n-space-1);
|
|
162
159
|
}
|
|
163
|
-
|
|
164
160
|
.n-form-field-error[data-v-30bdb720]{
|
|
165
161
|
font-size: var(--n-text-xs);
|
|
166
162
|
color: var(--n-color-danger);
|
|
167
163
|
padding: 0 var(--n-space-1);
|
|
168
164
|
}
|
|
169
|
-
|
|
170
165
|
.is-disabled[data-v-30bdb720]{
|
|
171
166
|
opacity: 0.6;
|
|
172
167
|
}`
|
|
@@ -141,31 +141,27 @@ onUnmounted(() => {
|
|
|
141
141
|
gap: var(--n-space-2);
|
|
142
142
|
width: 100%;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
144
|
.n-form-field-label {
|
|
146
145
|
font-size: var(--n-text-sm);
|
|
147
146
|
font-weight: var(--n-weight-semibold);
|
|
148
147
|
color: var(--n-color-text-secondary);
|
|
149
148
|
margin-left: var(--n-space-1);
|
|
150
149
|
}
|
|
151
|
-
|
|
152
150
|
.n-form-field-control {
|
|
153
151
|
width: 100%;
|
|
154
152
|
}
|
|
155
|
-
|
|
156
153
|
.n-form-field-help {
|
|
157
154
|
font-size: var(--n-text-xs);
|
|
158
155
|
color: var(--n-color-text-muted);
|
|
159
156
|
padding: 0 var(--n-space-1);
|
|
160
157
|
}
|
|
161
|
-
|
|
162
158
|
.n-form-field-error {
|
|
163
159
|
font-size: var(--n-text-xs);
|
|
164
160
|
color: var(--n-color-danger);
|
|
165
161
|
padding: 0 var(--n-space-1);
|
|
166
162
|
}
|
|
167
|
-
|
|
168
163
|
.is-disabled {
|
|
169
164
|
opacity: 0.6;
|
|
170
165
|
}
|
|
166
|
+
|
|
171
167
|
</style>
|
|
@@ -81,25 +81,20 @@ const __style = `.n-image-wrapper[data-v-309b6eb8]{
|
|
|
81
81
|
background: var(--n-color-surface-hover, #1a1a2e);
|
|
82
82
|
display: inline-block;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
.n-image-skeleton[data-v-309b6eb8]{
|
|
86
85
|
position: absolute;
|
|
87
86
|
inset: 0;
|
|
88
|
-
background:
|
|
89
|
-
90deg,
|
|
90
|
-
var(--n-color-surface, #111827) 25%,
|
|
87
|
+
background-color: var(--n-color-surface); 25%,
|
|
91
88
|
var(--n-color-surface-hover, #1f2937) 50%,
|
|
92
89
|
var(--n-color-surface, #111827) 75%
|
|
93
90
|
);
|
|
94
91
|
background-size: 200% 100%;
|
|
95
92
|
animation: n-img-shimmer 1.5s infinite;
|
|
96
93
|
}
|
|
97
|
-
|
|
98
94
|
@keyframes n-img-shimmer {
|
|
99
95
|
0%[data-v-309b6eb8]{ background-position: 200% 0; }
|
|
100
96
|
100%[data-v-309b6eb8]{ background-position: -200% 0; }
|
|
101
97
|
}
|
|
102
|
-
|
|
103
98
|
.n-image[data-v-309b6eb8]{
|
|
104
99
|
display: block;
|
|
105
100
|
position: relative;
|
|
@@ -90,28 +90,24 @@ const onError = () => { error.value = true; loaded.value = true }
|
|
|
90
90
|
background: var(--n-color-surface-hover, #1a1a2e);
|
|
91
91
|
display: inline-block;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
93
|
.n-image-skeleton {
|
|
95
94
|
position: absolute;
|
|
96
95
|
inset: 0;
|
|
97
|
-
background:
|
|
98
|
-
90deg,
|
|
99
|
-
var(--n-color-surface, #111827) 25%,
|
|
96
|
+
background-color: var(--n-color-surface); 25%,
|
|
100
97
|
var(--n-color-surface-hover, #1f2937) 50%,
|
|
101
98
|
var(--n-color-surface, #111827) 75%
|
|
102
99
|
);
|
|
103
100
|
background-size: 200% 100%;
|
|
104
101
|
animation: n-img-shimmer 1.5s infinite;
|
|
105
102
|
}
|
|
106
|
-
|
|
107
103
|
@keyframes n-img-shimmer {
|
|
108
104
|
0% { background-position: 200% 0; }
|
|
109
105
|
100% { background-position: -200% 0; }
|
|
110
106
|
}
|
|
111
|
-
|
|
112
107
|
.n-image {
|
|
113
108
|
display: block;
|
|
114
109
|
position: relative;
|
|
115
110
|
z-index: 1;
|
|
116
111
|
}
|
|
112
|
+
|
|
117
113
|
</style>
|