@v1nt1248/3nclient-lib 0.1.58 → 0.1.59

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.
@@ -8,6 +8,10 @@
8
8
  --spacing-xxl: 48px;
9
9
  --white-inf: rgba(255, 255, 255, 0);
10
10
  --white-100: #fff;
11
+ --white-4: rgba(250, 250, 250, 0.04);
12
+ --white-8: rgba(250, 250, 250, 0.08);
13
+ --white-12: rgba(250, 250, 250, 0.12);
14
+ --white-24: rgba(250, 250, 250, 0.24);
11
15
  --black-inf: rgba(0, 0, 0, 0);
12
16
  --black-4: rgba(0, 0, 0, 0.04);
13
17
  --black-8: rgba(0, 0, 0, 0.08);
@@ -749,7 +753,7 @@ html {
749
753
  --shadow-key-umbra-opacity: rgba(0, 0, 0, 0.2);
750
754
  --shadow-key-penumbra-opacity: rgba(0, 0, 0, 0.14);
751
755
  --shadow-key-ambient-opacity: rgba(0, 0, 0, 0.12);
752
-
756
+
753
757
  overflow: hidden;
754
758
  font-family: Manrope, sans-serif;
755
759
  }
@@ -812,7 +816,7 @@ div {
812
816
  .ui3n-ripple {
813
817
  --ui3n-ripple-duration: 400ms;
814
818
  --ui3n-ripple-bg-color: rgba(255, 255, 255, 0.7);
815
-
819
+
816
820
  position: absolute;
817
821
  border-radius: 50%;
818
822
  transform: scale(0);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.58",
5
+ "version": "0.1.59",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -75,41 +75,45 @@
75
75
  :class="[
76
76
  $style.ui3nDropFiles,
77
77
  permanentDisplay && $style.ui3nDropFilesWithBorder,
78
- isOverDropPlace || isOverDropZone && $style.ui3nDropFilesWithAccentBorder
78
+ (isOverDropPlace || isOverDropZone) && $style.ui3nDropFilesWithAccentBorder
79
79
  ]"
80
80
  @dragenter="onDragenter"
81
81
  @dragleave="onDragleave"
82
82
  >
83
83
  <slot />
84
+
84
85
  <div
86
+ v-if="permanentDisplay || isOverDropPlace || isOverDropZone"
85
87
  :class="$style.ui3nDropFilesDropzone"
86
88
  @dragenter="onDropzoneDragenter"
87
89
  @dragover="onDropzoneDragover"
88
90
  @dragleave="onDropzoneDragleave"
89
91
  @drop="onDrop"
90
92
  >
91
- <template v-if="permanentDisplay || isOverDropPlace || isOverDropZone">
92
- <h3 :class="$style.ui3nDropFilesDropzoneTitle">
93
- {{ title }}
94
- </h3>
95
-
96
- <div :class="$style.ui3nDropFilesDropzoneIcon">
97
- <svg
98
- :width="wrapperElementMinSize * 0.35"
99
- :height="wrapperElementMinSize * 0.35"
100
- viewBox="0 0 192 192"
101
- fill="none"
102
- xmlns="http://www.w3.org/2000/svg"
103
- >
104
- <path
105
- d="M51 152C47.9333 152 45.3333 150.934 43.2 148.8C41.0667 146.667 40 144.067 40 141V119.8H46.2V141C46.2 142.2 46.7 143.3 47.7 144.3C48.7 145.3 49.8 145.8 51 145.8H141C142.2 145.8 143.3 145.3 144.3 144.3C145.3 143.3 145.8 142.2 145.8 141V119.8H152V141C152 144.067 150.933 146.667 148.8 148.8C146.667 150.934 144.067 152 141 152H51ZM93 122.4V49.2002L72.8 69.2002L68.4 65.0002L96 37.2002L123.6 65.0002L119.2 69.2002L99 49.2002V122.4H93Z"
106
- fill="var(--color-icon-control-primary-default)"
107
- />
108
- </svg>
109
- </div>
110
- </template>
111
-
112
- <div :class="$style.ui3nDropFilesDropzoneAdditional">
93
+ <h3 :class="$style.ui3nDropFilesDropzoneTitle">
94
+ {{ title }}
95
+ </h3>
96
+
97
+ <div :class="$style.ui3nDropFilesDropzoneIcon">
98
+ <svg
99
+ :width="wrapperElementMinSize * 0.35"
100
+ :height="wrapperElementMinSize * 0.35"
101
+ viewBox="0 0 192 192"
102
+ fill="none"
103
+ xmlns="http://www.w3.org/2000/svg"
104
+ >
105
+ <path
106
+ d="M51 152C47.9333 152 45.3333 150.934 43.2 148.8C41.0667 146.667 40 144.067 40 141V119.8H46.2V141C46.2 142.2 46.7 143.3 47.7 144.3C48.7 145.3 49.8 145.8 51 145.8H141C142.2 145.8 143.3 145.3 144.3 144.3C145.3 143.3 145.8 142.2 145.8 141V119.8H152V141C152 144.067 150.933 146.667 148.8 148.8C146.667 150.934 144.067 152 141 152H51ZM93 122.4V49.2002L72.8 69.2002L68.4 65.0002L96 37.2002L123.6 65.0002L119.2 69.2002L99 49.2002V122.4H93Z"
107
+ fill="var(--color-icon-control-primary-default)"
108
+ />
109
+ </svg>
110
+ </div>
111
+
112
+ <div
113
+ :class="$style.ui3nDropFilesDropzoneAdditional"
114
+ @dragenter.stop.prevent
115
+ @dragleave.stop.prevent
116
+ >
113
117
  <slot name="additional-text" />
114
118
  </div>
115
119
  </div>
@@ -17,7 +17,7 @@
17
17
 
18
18
  onMounted(() => {
19
19
  if (emojiElement.value) {
20
- emojiElement.value.style.setProperty('--emoji-size', `${props.size}px`);
20
+ emojiElement.value.style.setProperty('--ui3n-emoji-size', `${props.size}px`);
21
21
  }
22
22
  });
23
23