@nmorph/nmorph-ui-kit 2.2.19 → 2.2.20
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/assets/icons/circle-close.svg.js +4 -4
- package/dist/assets/icons/clock.svg.js +2 -2
- package/dist/assets/icons/folder-opened.svg.js +8 -8
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +16 -15
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +17 -14
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +23 -23
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +27 -23
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +14 -13
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +68 -65
- package/dist/components/data/nmorph-calendar/utils.js +4 -3
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +27 -26
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +21 -13
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +39 -42
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +25 -36
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +15 -11
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +14 -13
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +42 -27
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -0
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +64 -0
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +43 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +64 -61
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +70 -60
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +24 -29
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +25 -14
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +20 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +35 -31
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +64 -50
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +8 -8
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +26 -22
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +16 -15
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +11 -8
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +13 -13
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +33 -19
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +16 -15
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +39 -32
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +7 -7
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +40 -39
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +53 -50
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +16 -15
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -16
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +16 -15
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +26 -19
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +4 -4
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +48 -38
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +18 -17
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +38 -27
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -0
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +183 -0
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +111 -0
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +9 -8
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +14 -14
- package/dist/hooks/use-common-styles.js +75 -9
- package/dist/hooks/use-virtual-list.js +3 -1
- package/dist/index.es.js +654 -650
- package/dist/index.umd.js +101 -35
- package/dist/locales/en.js +1 -0
- package/dist/locales/ru.js +1 -0
- package/dist/locales/zh.js +1 -0
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +2 -0
- package/dist/src/components/data/index.d.ts +1 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +7 -5
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -3
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +36 -0
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +6 -0
- package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +6 -0
- package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +6 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -0
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +1 -0
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -0
- package/dist/src/components/form/index.d.ts +2 -0
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +4 -0
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-select/types.d.ts +2 -0
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +6 -0
- package/dist/src/components/form/nmorph-slider/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +8 -0
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +44 -0
- package/dist/src/components/form/nmorph-time-picker/types.d.ts +6 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -3
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -2
- package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +6 -5
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { nmorphCombined as p, nmorphInset as r, nmorphOutset as
|
|
1
|
+
import { nmorphCombined as p, nmorphInset as r, nmorphOutset as n, title1 as s, title2 as l, title3 as d, title4 as m, body1 as e, body2 as c, body3 as a, body4 as b } from "../utils/theme-style.js";
|
|
2
2
|
const u = {
|
|
3
3
|
"nmorph-body-4": b,
|
|
4
4
|
"nmorph-body-3": a,
|
|
5
5
|
"nmorph-body-2": c,
|
|
6
|
-
"nmorph-body-1":
|
|
6
|
+
"nmorph-body-1": e,
|
|
7
7
|
"nmorph-title-4": m,
|
|
8
|
-
"nmorph-title-3":
|
|
9
|
-
"nmorph-title-2":
|
|
8
|
+
"nmorph-title-3": d,
|
|
9
|
+
"nmorph-title-2": l,
|
|
10
10
|
"nmorph-title-1": s,
|
|
11
|
-
"nmorph--shadow-outset":
|
|
11
|
+
"nmorph--shadow-outset": n,
|
|
12
12
|
"nmorph--shadow-inset": r,
|
|
13
13
|
"nmorph--shadow-combined": p
|
|
14
14
|
}, v = () => {
|
|
@@ -111,7 +111,7 @@ const u = {
|
|
|
111
111
|
width: auto;
|
|
112
112
|
font-family: Helvetica, Roboto, Arial, sans-serif;
|
|
113
113
|
|
|
114
|
-
${
|
|
114
|
+
${e()}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
h1 {
|
|
@@ -206,6 +206,46 @@ const u = {
|
|
|
206
206
|
display: none;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
*::-webkit-scrollbar {
|
|
210
|
+
width: var(--nmorph-native-scrollbar-size, 8px);
|
|
211
|
+
height: var(--nmorph-native-scrollbar-size, 8px);
|
|
212
|
+
background: transparent;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
*::-webkit-scrollbar-button,
|
|
216
|
+
*::-webkit-scrollbar-button:single-button,
|
|
217
|
+
*::-webkit-scrollbar-button:double-button,
|
|
218
|
+
*::-webkit-scrollbar-button:vertical:start:decrement,
|
|
219
|
+
*::-webkit-scrollbar-button:vertical:end:increment,
|
|
220
|
+
*::-webkit-scrollbar-button:horizontal:start:decrement,
|
|
221
|
+
*::-webkit-scrollbar-button:horizontal:end:increment {
|
|
222
|
+
display: none !important;
|
|
223
|
+
width: 0 !important;
|
|
224
|
+
min-width: 0 !important;
|
|
225
|
+
max-width: 0 !important;
|
|
226
|
+
height: 0 !important;
|
|
227
|
+
min-height: 0 !important;
|
|
228
|
+
max-height: 0 !important;
|
|
229
|
+
border: 0 !important;
|
|
230
|
+
background: transparent !important;
|
|
231
|
+
background-image: none !important;
|
|
232
|
+
-webkit-appearance: none;
|
|
233
|
+
appearance: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
*::-webkit-scrollbar-track {
|
|
237
|
+
background: transparent;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
*::-webkit-scrollbar-thumb {
|
|
241
|
+
border-radius: var(--border-radius-999);
|
|
242
|
+
background: color-mix(in srgb, var(--nmorph-scroll-thumb-color, var(--nmorph-text-color)) 42%, transparent);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
*::-webkit-scrollbar-corner {
|
|
246
|
+
background: transparent;
|
|
247
|
+
}
|
|
248
|
+
|
|
209
249
|
html {
|
|
210
250
|
background: var(--nmorph-main-color);
|
|
211
251
|
}
|
|
@@ -419,7 +459,7 @@ const u = {
|
|
|
419
459
|
}
|
|
420
460
|
|
|
421
461
|
.nmorph-text-input input:focus {
|
|
422
|
-
${
|
|
462
|
+
${n()}
|
|
423
463
|
background: var(--nmorph-accent-color);
|
|
424
464
|
outline: none;
|
|
425
465
|
}
|
|
@@ -525,8 +565,13 @@ const u = {
|
|
|
525
565
|
.nmorph-scroll {
|
|
526
566
|
--thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));
|
|
527
567
|
color-scheme: var(--nmorph-scroll-color-scheme, light);
|
|
528
|
-
|
|
529
|
-
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
@-moz-document url-prefix() {
|
|
571
|
+
.nmorph-scroll {
|
|
572
|
+
scrollbar-color: var(--thumb-color) transparent;
|
|
573
|
+
scrollbar-width: thin;
|
|
574
|
+
}
|
|
530
575
|
}
|
|
531
576
|
|
|
532
577
|
.nmorph-scroll::-webkit-scrollbar {
|
|
@@ -537,6 +582,27 @@ const u = {
|
|
|
537
582
|
transition: width ease-in-out 0.2s;
|
|
538
583
|
}
|
|
539
584
|
|
|
585
|
+
.nmorph-scroll::-webkit-scrollbar-button,
|
|
586
|
+
.nmorph-scroll::-webkit-scrollbar-button:single-button,
|
|
587
|
+
.nmorph-scroll::-webkit-scrollbar-button:double-button,
|
|
588
|
+
.nmorph-scroll::-webkit-scrollbar-button:vertical:start:decrement,
|
|
589
|
+
.nmorph-scroll::-webkit-scrollbar-button:vertical:end:increment,
|
|
590
|
+
.nmorph-scroll::-webkit-scrollbar-button:horizontal:start:decrement,
|
|
591
|
+
.nmorph-scroll::-webkit-scrollbar-button:horizontal:end:increment {
|
|
592
|
+
display: none !important;
|
|
593
|
+
width: 0 !important;
|
|
594
|
+
min-width: 0 !important;
|
|
595
|
+
max-width: 0 !important;
|
|
596
|
+
height: 0 !important;
|
|
597
|
+
min-height: 0 !important;
|
|
598
|
+
max-height: 0 !important;
|
|
599
|
+
border: 0 !important;
|
|
600
|
+
background: transparent !important;
|
|
601
|
+
background-image: none !important;
|
|
602
|
+
-webkit-appearance: none;
|
|
603
|
+
appearance: none;
|
|
604
|
+
}
|
|
605
|
+
|
|
540
606
|
.nmorph-scroll::-webkit-scrollbar-track {
|
|
541
607
|
border-radius: var(--border-radius-40);
|
|
542
608
|
${r()}
|
|
@@ -31,7 +31,9 @@ const C = (a, h) => {
|
|
|
31
31
|
}
|
|
32
32
|
const e = Math.ceil((c.value + d.value) / o.value) + i.value;
|
|
33
33
|
return Math.min(Math.max(e, v.value + i.value), a.value.length);
|
|
34
|
-
}), y = n(
|
|
34
|
+
}), y = n(
|
|
35
|
+
() => u.value ? f.value.offsets[v.value] || 0 : v.value * o.value
|
|
36
|
+
), z = n(() => s.value ? a.value.slice(v.value, H.value).map((e, t) => ({
|
|
35
37
|
item: e,
|
|
36
38
|
index: v.value + t
|
|
37
39
|
})) : a.value.map((e, t) => ({ item: e, index: t }))), E = (e) => {
|