@nmorph/nmorph-ui-kit 2.2.44 → 2.2.45
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/burger.svg.js +5 -5
- package/dist/assets/icons/chevron-up.svg.js +4 -4
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +179 -74
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +285 -251
- package/dist/hooks/use-common-styles.js +92 -12
- package/dist/index.umd.js +107 -27
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { nmorphCombined as s, nmorphInset as
|
|
1
|
+
import { nmorphCombined as s, nmorphInset as r, nmorphOutset as h, title1 as l, title2 as d, title3 as c, title4 as b, body1 as e, body2 as p, body3 as a, body4 as m } from "../utils/theme-style.js";
|
|
2
2
|
const u = {
|
|
3
3
|
"nmorph-body-4": m,
|
|
4
|
-
"nmorph-body-3":
|
|
4
|
+
"nmorph-body-3": a,
|
|
5
5
|
"nmorph-body-2": p,
|
|
6
|
-
"nmorph-body-1":
|
|
6
|
+
"nmorph-body-1": e,
|
|
7
7
|
"nmorph-title-4": b,
|
|
8
8
|
"nmorph-title-3": c,
|
|
9
9
|
"nmorph-title-2": d,
|
|
10
10
|
"nmorph-title-1": l,
|
|
11
11
|
"nmorph--shadow-outset": h,
|
|
12
|
-
"nmorph--shadow-inset":
|
|
12
|
+
"nmorph--shadow-inset": r,
|
|
13
13
|
"nmorph--shadow-combined": s
|
|
14
14
|
}, w = () => {
|
|
15
|
-
let
|
|
15
|
+
let t = `
|
|
16
16
|
:root {
|
|
17
17
|
--font-size-tiny: 10px;
|
|
18
18
|
--font-size-extra-small: 12px;
|
|
@@ -112,7 +112,7 @@ const u = {
|
|
|
112
112
|
width: auto;
|
|
113
113
|
font-family: Helvetica, Roboto, Arial, sans-serif;
|
|
114
114
|
|
|
115
|
-
${
|
|
115
|
+
${e()}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
h1 {
|
|
@@ -262,9 +262,89 @@ const u = {
|
|
|
262
262
|
.nmorph-scroll {
|
|
263
263
|
--thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));
|
|
264
264
|
|
|
265
|
+
position: relative;
|
|
266
|
+
overflow: hidden;
|
|
265
267
|
color-scheme: var(--nmorph-scroll-color-scheme, light);
|
|
266
|
-
|
|
267
|
-
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.nmorph-scroll__viewport {
|
|
271
|
+
width: 100%;
|
|
272
|
+
height: 100%;
|
|
273
|
+
box-sizing: border-box;
|
|
274
|
+
display: inherit;
|
|
275
|
+
flex-direction: inherit;
|
|
276
|
+
flex-wrap: inherit;
|
|
277
|
+
align-content: inherit;
|
|
278
|
+
align-items: inherit;
|
|
279
|
+
justify-content: inherit;
|
|
280
|
+
gap: inherit;
|
|
281
|
+
grid-auto-flow: inherit;
|
|
282
|
+
grid-template-columns: inherit;
|
|
283
|
+
grid-template-rows: inherit;
|
|
284
|
+
color-scheme: inherit;
|
|
285
|
+
scrollbar-width: none;
|
|
286
|
+
-ms-overflow-style: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.nmorph-scroll__viewport::-webkit-scrollbar {
|
|
290
|
+
display: none;
|
|
291
|
+
width: 0;
|
|
292
|
+
height: 0;
|
|
293
|
+
background: transparent;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.nmorph-scroll__bar {
|
|
297
|
+
position: absolute;
|
|
298
|
+
z-index: 1;
|
|
299
|
+
border-radius: var(--border-radius-40);
|
|
300
|
+
background: transparent;
|
|
301
|
+
${r()}
|
|
302
|
+
opacity: 0.78;
|
|
303
|
+
transition:
|
|
304
|
+
opacity ease-in-out 0.16s,
|
|
305
|
+
background-color ease-in-out 0.16s;
|
|
306
|
+
touch-action: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.nmorph-scroll__bar--vertical {
|
|
310
|
+
top: 0;
|
|
311
|
+
right: 0;
|
|
312
|
+
width: var(--bar-width);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.nmorph-scroll__bar--horizontal {
|
|
316
|
+
right: 0;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
left: 0;
|
|
319
|
+
height: var(--bar-height);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.nmorph-scroll__thumb {
|
|
323
|
+
position: absolute;
|
|
324
|
+
top: 0;
|
|
325
|
+
left: 0;
|
|
326
|
+
border-radius: var(--border-radius-40);
|
|
327
|
+
background-color: var(--thumb-color);
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
transition: background-color ease-in-out 0.16s;
|
|
330
|
+
touch-action: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.nmorph-scroll__thumb--vertical {
|
|
334
|
+
width: 100%;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.nmorph-scroll__thumb--horizontal {
|
|
338
|
+
height: 100%;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.nmorph-scroll--show-bars .nmorph-scroll__bar,
|
|
342
|
+
.nmorph-scroll__bar:hover {
|
|
343
|
+
opacity: 1;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.nmorph-scroll--dragging .nmorph-scroll__thumb {
|
|
347
|
+
cursor: grabbing;
|
|
268
348
|
}
|
|
269
349
|
|
|
270
350
|
.nmorph-scroll::-webkit-scrollbar {
|
|
@@ -298,7 +378,7 @@ const u = {
|
|
|
298
378
|
|
|
299
379
|
.nmorph-scroll::-webkit-scrollbar-track {
|
|
300
380
|
border-radius: var(--border-radius-40);
|
|
301
|
-
${
|
|
381
|
+
${r()}
|
|
302
382
|
}
|
|
303
383
|
|
|
304
384
|
.nmorph-scroll::-webkit-scrollbar-thumb {
|
|
@@ -335,7 +415,7 @@ const u = {
|
|
|
335
415
|
}
|
|
336
416
|
|
|
337
417
|
.nmorph--thin-component.nmorph-native-input {
|
|
338
|
-
${
|
|
418
|
+
${a()}
|
|
339
419
|
}
|
|
340
420
|
|
|
341
421
|
.nmorph-native-input:focus {
|
|
@@ -410,12 +490,12 @@ const u = {
|
|
|
410
490
|
|
|
411
491
|
`;
|
|
412
492
|
for (const [n, i] of Object.entries(u))
|
|
413
|
-
|
|
493
|
+
t += `
|
|
414
494
|
.${n} {
|
|
415
495
|
${i()}
|
|
416
496
|
}
|
|
417
497
|
`;
|
|
418
|
-
return
|
|
498
|
+
return t;
|
|
419
499
|
}, g = () => {
|
|
420
500
|
if (typeof document > "u" || document.getElementById("nmorph-common-styles")) return;
|
|
421
501
|
const o = document.createElement("style");
|