@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.
Files changed (48) hide show
  1. package/dist/assets/icons/chevron-up.svg.js +4 -4
  2. package/dist/assets/icons/download.svg.js +5 -5
  3. package/dist/assets/icons/open.svg.js +2 -2
  4. package/dist/assets/icons/search.svg.js +1 -1
  5. package/dist/assets/icons/smile.svg.js +4 -4
  6. package/dist/components/basic/nmorph-button/NmorphButton.vue.js +16 -16
  7. package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
  8. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -0
  9. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +207 -0
  10. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue3.js +6 -0
  11. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -0
  12. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +371 -0
  13. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue3.js +6 -0
  14. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -0
  15. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +124 -0
  16. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue3.js +6 -0
  17. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +164 -150
  18. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +8 -8
  19. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -0
  20. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +147 -0
  21. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue3.js +6 -0
  22. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  23. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +154 -125
  24. package/dist/components/form/nmorph-file-upload/types.js +9 -9
  25. package/dist/hooks/use-common-styles.js +73 -22
  26. package/dist/index.es.js +861 -849
  27. package/dist/index.umd.js +76 -25
  28. package/dist/package.json.js +1 -1
  29. package/dist/src/components/data/index.d.ts +8 -0
  30. package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +38 -0
  31. package/dist/src/components/data/nmorph-audio-preview/types.d.ts +20 -0
  32. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -1
  33. package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +25 -0
  34. package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +50 -0
  35. package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +30 -0
  36. package/dist/src/components/data/nmorph-file-card/types.d.ts +18 -0
  37. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -1
  38. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +41 -0
  39. package/dist/src/components/data/nmorph-video-preview/types.d.ts +27 -0
  40. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +1 -1
  41. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +1 -1
  42. package/dist/src/components/form/nmorph-file-upload/types.d.ts +4 -0
  43. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  44. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +1 -1
  45. package/dist/src/utils/file-types.d.ts +8 -1
  46. package/dist/style.css +1 -1
  47. package/dist/utils/file-types.js +28 -21
  48. package/package.json +23 -24
@@ -1,18 +1,18 @@
1
- import { nmorphCombined as i, nmorphInset as s, nmorphOutset as h, title1 as d, title2 as l, title3 as p, title4 as c, body1 as e, body2 as b, body3 as r, body4 as m } from "../utils/theme-style.js";
2
- const v = {
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": r,
5
- "nmorph-body-2": b,
6
- "nmorph-body-1": e,
7
- "nmorph-title-4": c,
8
- "nmorph-title-3": p,
9
- "nmorph-title-2": l,
10
- "nmorph-title-1": d,
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": s,
13
- "nmorph--shadow-combined": i
14
- }, u = () => {
15
- let t = `
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
- ${e()}
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
- ${r()}
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 [a, n] of Object.entries(v))
362
- t += `
363
- .${a} {
364
- ${n()}
412
+ for (const [n, i] of Object.entries(u))
413
+ r += `
414
+ .${n} {
415
+ ${i()}
365
416
  }
366
417
  `;
367
- return t;
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 = u(), document.head.appendChild(o);
422
+ o.id = "nmorph-common-styles", o.innerHTML = w(), document.head.appendChild(o);
372
423
  };
373
424
  export {
374
- u as getCommonStyles,
425
+ w as getCommonStyles,
375
426
  g as useCommonStyles
376
427
  };