@nmorph/nmorph-ui-kit 2.2.42 → 2.2.44
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/chevron-up.svg.js +4 -4
- package/dist/assets/icons/download.svg.js +5 -5
- package/dist/assets/icons/open.svg.js +2 -2
- package/dist/assets/icons/search.svg.js +1 -1
- package/dist/assets/icons/smile.svg.js +4 -4
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +16 -16
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -0
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +207 -0
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue3.js +6 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +371 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue3.js +6 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +124 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue3.js +6 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +164 -150
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +8 -8
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +147 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue3.js +6 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +154 -125
- package/dist/components/form/nmorph-file-upload/types.js +9 -9
- package/dist/hooks/use-common-styles.js +73 -22
- package/dist/index.es.js +861 -849
- package/dist/index.umd.js +76 -25
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/index.d.ts +8 -0
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +38 -0
- package/dist/src/components/data/nmorph-audio-preview/types.d.ts +20 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +25 -0
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +50 -0
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +30 -0
- package/dist/src/components/data/nmorph-file-card/types.d.ts +18 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +41 -0
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +27 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +1 -1
- package/dist/src/utils/file-types.d.ts +8 -1
- package/dist/style.css +1 -1
- package/dist/utils/file-types.js +28 -21
- package/package.json +23 -24
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { nmorphCombined as
|
|
2
|
-
const
|
|
1
|
+
import { nmorphCombined as s, nmorphInset as t, nmorphOutset as h, title1 as l, title2 as d, title3 as c, title4 as b, body1 as a, body2 as p, body3 as e, body4 as m } from "../utils/theme-style.js";
|
|
2
|
+
const u = {
|
|
3
3
|
"nmorph-body-4": m,
|
|
4
|
-
"nmorph-body-3":
|
|
5
|
-
"nmorph-body-2":
|
|
6
|
-
"nmorph-body-1":
|
|
7
|
-
"nmorph-title-4":
|
|
8
|
-
"nmorph-title-3":
|
|
9
|
-
"nmorph-title-2":
|
|
10
|
-
"nmorph-title-1":
|
|
4
|
+
"nmorph-body-3": e,
|
|
5
|
+
"nmorph-body-2": p,
|
|
6
|
+
"nmorph-body-1": a,
|
|
7
|
+
"nmorph-title-4": b,
|
|
8
|
+
"nmorph-title-3": c,
|
|
9
|
+
"nmorph-title-2": d,
|
|
10
|
+
"nmorph-title-1": l,
|
|
11
11
|
"nmorph--shadow-outset": h,
|
|
12
|
-
"nmorph--shadow-inset":
|
|
13
|
-
"nmorph--shadow-combined":
|
|
14
|
-
},
|
|
15
|
-
let
|
|
12
|
+
"nmorph--shadow-inset": t,
|
|
13
|
+
"nmorph--shadow-combined": s
|
|
14
|
+
}, w = () => {
|
|
15
|
+
let r = `
|
|
16
16
|
:root {
|
|
17
17
|
--font-size-tiny: 10px;
|
|
18
18
|
--font-size-extra-small: 12px;
|
|
@@ -112,7 +112,7 @@ const v = {
|
|
|
112
112
|
width: auto;
|
|
113
113
|
font-family: Helvetica, Roboto, Arial, sans-serif;
|
|
114
114
|
|
|
115
|
-
${
|
|
115
|
+
${a()}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
h1 {
|
|
@@ -259,6 +259,57 @@ const v = {
|
|
|
259
259
|
--nmorph-scroll-color-scheme: dark;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
.nmorph-scroll {
|
|
263
|
+
--thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));
|
|
264
|
+
|
|
265
|
+
color-scheme: var(--nmorph-scroll-color-scheme, light);
|
|
266
|
+
scrollbar-color: var(--thumb-color) transparent;
|
|
267
|
+
scrollbar-width: thin;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.nmorph-scroll::-webkit-scrollbar {
|
|
271
|
+
width: var(--bar-width);
|
|
272
|
+
height: var(--bar-height);
|
|
273
|
+
background-color: transparent;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
transition: width ease-in-out 0.2s;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.nmorph-scroll::-webkit-scrollbar-button,
|
|
279
|
+
.nmorph-scroll::-webkit-scrollbar-button:single-button,
|
|
280
|
+
.nmorph-scroll::-webkit-scrollbar-button:double-button,
|
|
281
|
+
.nmorph-scroll::-webkit-scrollbar-button:vertical:start:decrement,
|
|
282
|
+
.nmorph-scroll::-webkit-scrollbar-button:vertical:end:increment,
|
|
283
|
+
.nmorph-scroll::-webkit-scrollbar-button:horizontal:start:decrement,
|
|
284
|
+
.nmorph-scroll::-webkit-scrollbar-button:horizontal:end:increment {
|
|
285
|
+
display: none !important;
|
|
286
|
+
width: 0 !important;
|
|
287
|
+
min-width: 0 !important;
|
|
288
|
+
max-width: 0 !important;
|
|
289
|
+
height: 0 !important;
|
|
290
|
+
min-height: 0 !important;
|
|
291
|
+
max-height: 0 !important;
|
|
292
|
+
border: 0 !important;
|
|
293
|
+
background: transparent !important;
|
|
294
|
+
background-image: none !important;
|
|
295
|
+
-webkit-appearance: none;
|
|
296
|
+
appearance: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.nmorph-scroll::-webkit-scrollbar-track {
|
|
300
|
+
border-radius: var(--border-radius-40);
|
|
301
|
+
${t()}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.nmorph-scroll::-webkit-scrollbar-thumb {
|
|
305
|
+
background-color: var(--thumb-color);
|
|
306
|
+
border-radius: var(--border-radius-40);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.nmorph-scroll::-webkit-scrollbar-corner {
|
|
310
|
+
background-color: transparent;
|
|
311
|
+
}
|
|
312
|
+
|
|
262
313
|
.nmorph--basic-component {
|
|
263
314
|
--height: var(--default-thickness-component);
|
|
264
315
|
|
|
@@ -284,7 +335,7 @@ const v = {
|
|
|
284
335
|
}
|
|
285
336
|
|
|
286
337
|
.nmorph--thin-component.nmorph-native-input {
|
|
287
|
-
${
|
|
338
|
+
${e()}
|
|
288
339
|
}
|
|
289
340
|
|
|
290
341
|
.nmorph-native-input:focus {
|
|
@@ -358,19 +409,19 @@ const v = {
|
|
|
358
409
|
}
|
|
359
410
|
|
|
360
411
|
`;
|
|
361
|
-
for (const [
|
|
362
|
-
|
|
363
|
-
.${
|
|
364
|
-
${
|
|
412
|
+
for (const [n, i] of Object.entries(u))
|
|
413
|
+
r += `
|
|
414
|
+
.${n} {
|
|
415
|
+
${i()}
|
|
365
416
|
}
|
|
366
417
|
`;
|
|
367
|
-
return
|
|
418
|
+
return r;
|
|
368
419
|
}, g = () => {
|
|
369
420
|
if (typeof document > "u" || document.getElementById("nmorph-common-styles")) return;
|
|
370
421
|
const o = document.createElement("style");
|
|
371
|
-
o.id = "nmorph-common-styles", o.innerHTML =
|
|
422
|
+
o.id = "nmorph-common-styles", o.innerHTML = w(), document.head.appendChild(o);
|
|
372
423
|
};
|
|
373
424
|
export {
|
|
374
|
-
|
|
425
|
+
w as getCommonStyles,
|
|
375
426
|
g as useCommonStyles
|
|
376
427
|
};
|