@v1nt1248/3nclient-lib 0.1.59 → 0.1.61

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.
@@ -12,11 +12,13 @@
12
12
  --white-8: rgba(250, 250, 250, 0.08);
13
13
  --white-12: rgba(250, 250, 250, 0.12);
14
14
  --white-24: rgba(250, 250, 250, 0.24);
15
+ --white-48: rgba(250, 250, 250, 0.48);
15
16
  --black-inf: rgba(0, 0, 0, 0);
16
17
  --black-4: rgba(0, 0, 0, 0.04);
17
18
  --black-8: rgba(0, 0, 0, 0.08);
18
19
  --black-12: rgba(0, 0, 0, 0.12);
19
20
  --black-24: rgba(0, 0, 0, 0.24);
21
+ --black-48: rgba(0, 0, 0, 0.48);
20
22
  --black-100: #000;
21
23
  --red-0: #feeeed;
22
24
  --red-5: #fcd9d6;
@@ -119,6 +121,10 @@
119
121
  }
120
122
 
121
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);
122
128
  --shadow-close: var(--black-4);
123
129
  --shadow-far: var(--black-8);
124
130
  --global-default: var(--grey-5);
@@ -281,6 +287,10 @@
281
287
  }
282
288
 
283
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);
284
294
  --shadow-close: var(--black-12);
285
295
  --shadow-far: var(--black-24);
286
296
  --global-default: var(--blue-95);
@@ -750,10 +760,6 @@
750
760
  }
751
761
 
752
762
  html {
753
- --shadow-key-umbra-opacity: rgba(0, 0, 0, 0.2);
754
- --shadow-key-penumbra-opacity: rgba(0, 0, 0, 0.14);
755
- --shadow-key-ambient-opacity: rgba(0, 0, 0, 0.12);
756
-
757
763
  overflow: hidden;
758
764
  font-family: Manrope, sans-serif;
759
765
  }
@@ -771,17 +777,17 @@ div {
771
777
  }
772
778
 
773
779
  ::-webkit-scrollbar-track {
774
- background-color: var(--grey-30);
780
+ background-color: var(--s-default-outline-focused);
775
781
  }
776
782
 
777
783
  ::-webkit-scrollbar-thumb {
778
784
  border-radius: 2px;
779
785
  height: 50px;
780
- background-color: var(--grey-70);
786
+ background-color: var(--default-fill-pressed);
781
787
  }
782
788
 
783
789
  ::-webkit-scrollbar-thumb:hover {
784
- background-color: var(--grey-90);
790
+ background-color: var(--t-default-fill-default);
785
791
  }
786
792
 
787
793
  ::-webkit-resizer {
@@ -815,7 +821,7 @@ div {
815
821
 
816
822
  .ui3n-ripple {
817
823
  --ui3n-ripple-duration: 400ms;
818
- --ui3n-ripple-bg-color: rgba(255, 255, 255, 0.7);
824
+ --ui3n-ripple-bg-color: var(--ripple);
819
825
 
820
826
  position: absolute;
821
827
  border-radius: 50%;
@@ -836,8 +842,8 @@ div {
836
842
  font-weight: 400;
837
843
  word-wrap: break-word;
838
844
  white-space: break-spaces;
839
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
840
- 0 1px 1px 0 rgba(0, 0, 0, 0.14),
841
- 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);
842
848
  z-index: 1000;
843
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.59",
5
+ "version": "0.1.61",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -102,7 +102,7 @@
102
102
  "vue": "3.5.13",
103
103
  "vue-tsc": "2.2.0"
104
104
  },
105
- "packageManager": "pnpm@9.15.3",
105
+ "packageManager": "pnpm@10.2.1",
106
106
  "pnpm": {
107
107
  "peerDependencyRules": {
108
108
  "ignoreMissing": [
@@ -35,6 +35,7 @@ export interface Ui3nEditableProps {
35
35
 
36
36
  export interface Ui3nEditableEmits {
37
37
  (event: 'update:modelValue', value: Nullable<string>): void;
38
+ (event: 'toggle:editMode', value: boolean): void;
38
39
  (event: 'done'): void;
39
40
  (event: 'cancel'): void;
40
41
  (event: 'focusin', value: FocusEvent): void;
@@ -117,6 +117,13 @@
117
117
  }
118
118
  },
119
119
  );
120
+
121
+ watch(
122
+ () => inEdit.value,
123
+ val => {
124
+ emits('toggle:editMode', val);
125
+ },
126
+ );
120
127
  </script>
121
128
 
122
129
  <template>
@@ -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 {