@v1nt1248/3nclient-lib 0.1.58 → 0.1.60

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,11 +8,17 @@
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);
15
+ --white-48: rgba(250, 250, 250, 0.48);
11
16
  --black-inf: rgba(0, 0, 0, 0);
12
17
  --black-4: rgba(0, 0, 0, 0.04);
13
18
  --black-8: rgba(0, 0, 0, 0.08);
14
19
  --black-12: rgba(0, 0, 0, 0.12);
15
20
  --black-24: rgba(0, 0, 0, 0.24);
21
+ --black-48: rgba(0, 0, 0, 0.48);
16
22
  --black-100: #000;
17
23
  --red-0: #feeeed;
18
24
  --red-5: #fcd9d6;
@@ -115,6 +121,10 @@
115
121
  }
116
122
 
117
123
  .default-theme {
124
+ --ripple: var(--white-48);
125
+ --shadow-key-1: var(--black-12);
126
+ --shadow-key-2: var(--black-8);
127
+ --shadow-key-3: var(--black-4);
118
128
  --shadow-close: var(--black-4);
119
129
  --shadow-far: var(--black-8);
120
130
  --global-default: var(--grey-5);
@@ -277,6 +287,10 @@
277
287
  }
278
288
 
279
289
  .dark-theme {
290
+ --ripple: var(--black-48);
291
+ --shadow-key-1: var(--white-12);
292
+ --shadow-key-2: var(--white-8);
293
+ --shadow-key-3: var(--white-4);
280
294
  --shadow-close: var(--black-12);
281
295
  --shadow-far: var(--black-24);
282
296
  --global-default: var(--blue-95);
@@ -746,10 +760,6 @@
746
760
  }
747
761
 
748
762
  html {
749
- --shadow-key-umbra-opacity: rgba(0, 0, 0, 0.2);
750
- --shadow-key-penumbra-opacity: rgba(0, 0, 0, 0.14);
751
- --shadow-key-ambient-opacity: rgba(0, 0, 0, 0.12);
752
-
753
763
  overflow: hidden;
754
764
  font-family: Manrope, sans-serif;
755
765
  }
@@ -767,17 +777,17 @@ div {
767
777
  }
768
778
 
769
779
  ::-webkit-scrollbar-track {
770
- background-color: var(--grey-30);
780
+ background-color: var(--s-default-outline-focused);
771
781
  }
772
782
 
773
783
  ::-webkit-scrollbar-thumb {
774
784
  border-radius: 2px;
775
785
  height: 50px;
776
- background-color: var(--grey-70);
786
+ background-color: var(--default-fill-pressed);
777
787
  }
778
788
 
779
789
  ::-webkit-scrollbar-thumb:hover {
780
- background-color: var(--grey-90);
790
+ background-color: var(--t-default-fill-default);
781
791
  }
782
792
 
783
793
  ::-webkit-resizer {
@@ -811,8 +821,8 @@ div {
811
821
 
812
822
  .ui3n-ripple {
813
823
  --ui3n-ripple-duration: 400ms;
814
- --ui3n-ripple-bg-color: rgba(255, 255, 255, 0.7);
815
-
824
+ --ui3n-ripple-bg-color: var(--ripple);
825
+
816
826
  position: absolute;
817
827
  border-radius: 50%;
818
828
  transform: scale(0);
@@ -832,8 +842,8 @@ div {
832
842
  font-weight: 400;
833
843
  word-wrap: break-word;
834
844
  white-space: break-spaces;
835
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
836
- 0 1px 1px 0 rgba(0, 0, 0, 0.14),
837
- 0 1px 3px 0 rgba(0, 0, 0, 0.12);
845
+ box-shadow: 0 2px 1px -1px var(--shadow-key-1),
846
+ 0 1px 1px 0 var(--shadow-key-2),
847
+ 0 1px 3px 0 var(--shadow-key-3);
838
848
  z-index: 1000;
839
849
  }
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.60",
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
 
@@ -43,12 +43,12 @@ defineSlots<Ui3nListSlots<T>>();
43
43
  <style lang="scss" module>
44
44
  .ui3nList {
45
45
  --ui3n-list-item-height: 28px;
46
- --ui3n-list-bg-color: transparent;
46
+ --ui3n-list-bg-color: var(--color-bg-block-primary-default);
47
47
 
48
48
  position: relative;
49
49
  width: 100%;
50
50
  height: 100%;
51
- background-color: transparent;
51
+ background-color: var(--ui3n-list-bg-color);
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  justify-content: flex-start;
@@ -79,6 +79,7 @@ onMounted(() => {
79
79
  width: 100%;
80
80
  height: 100%;
81
81
  overflow-y: auto;
82
+ background-color: var(--color-bg-block-primary-default);
82
83
  }
83
84
 
84
85
  .viewport {