@v1nt1248/3nclient-lib 0.1.32 → 0.1.34

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.
@@ -6,10 +6,15 @@
6
6
  --spacing-l: 32px;
7
7
  --spacing-xl: 40px;
8
8
  --spacing-xxl: 48px;
9
- --white-0: #fff;
9
+
10
10
  --white-inf: rgba(255, 255, 255, 0);
11
- --black-0: #000;
11
+ --white-100: #fff;
12
12
  --black-inf: rgba(0, 0, 0, 0);
13
+ --black-4: rgba(0, 0, 0, 0.04);
14
+ --black-8: rgba(0, 0, 0, 0.08);
15
+ --black-12: rgba(0, 0, 0, 0.12);
16
+ --black-24: rgba(0, 0, 0, 0.24);
17
+ --black-100: #000;
13
18
  --red-0: #feeeed;
14
19
  --red-5: #fcd9d6;
15
20
  --red-10: #fbc3bf;
@@ -95,6 +100,7 @@
95
100
  --files-pdf-secondary: #fdc7c3;
96
101
  --files-image-primary: #4744e4;
97
102
  --files-image-secondary: #c9c8ff;
103
+
98
104
  --font-6: 6px;
99
105
  --font-8: 8px;
100
106
  --font-9: 9px;
@@ -111,12 +117,15 @@
111
117
  }
112
118
 
113
119
  .default-theme {
120
+ --shadow-close: var(--black-4);
121
+ --shadow-far: var(--black-8);
114
122
  --global-default: var(--grey-5);
115
- --default-fill-default: var(--white-0);
123
+ --global-subdefault: var(--grey-10);
124
+ --default-fill-default: var(--white-100);
116
125
  --default-fill-hover: var(--grey-10);
117
- --default-fill-focused: var(--white-0);
126
+ --default-fill-focused: var(--white-100);
118
127
  --default-fill-pressed: var(--grey-20);
119
- --default-fill-disabled: var(--white-0);
128
+ --default-fill-disabled: var(--white-100);
120
129
  --default-content-default: var(--grey-95);
121
130
  --default-content-hover: var(--grey-95);
122
131
  --default-content-focused: var(--grey-95);
@@ -132,7 +141,7 @@
132
141
  --default-outline-focused: var(--grey-50);
133
142
  --default-outline-pressed: var(--grey-10);
134
143
  --default-outline-disabled: var(--grey-5);
135
- --default-outline-ghost: var(--white-0);
144
+ --default-outline-ghost: var(--white-100);
136
145
  --s-default-fill-default: var(--grey-5);
137
146
  --s-default-fill-hover: var(--grey-15);
138
147
  --s-default-fill-focused: var(--grey-0);
@@ -190,9 +199,9 @@
190
199
  --accent-outline-pressed: var(--blue-70);
191
200
  --accent-outline-disabled: var(--blue-10);
192
201
  --accent-outline-ghost: var(--white-inf);
193
- --s-accent-fill-default: var(--white-0);
202
+ --s-accent-fill-default: var(--white-100);
194
203
  --s-accent-fill-hover: var(--blue-10);
195
- --s-accent-fill-focused: var(--white-0);
204
+ --s-accent-fill-focused: var(--white-100);
196
205
  --s-accent-fill-pressed: var(--blue-70);
197
206
  --s-accent-fill-disabled: var(--blue-0);
198
207
  --s-accent-content-default: var(--blue-50);
@@ -270,7 +279,10 @@
270
279
  }
271
280
 
272
281
  .dark-theme {
273
- --global-default: var(--blue-90);
282
+ --shadow-close: var(--black-12);
283
+ --shadow-far: var(--black-24);
284
+ --global-default: var(--blue-95);
285
+ --global-subdefault: var(--blue-90);
274
286
  --default-fill-default: var(--blue-100);
275
287
  --default-fill-hover: var(--blue-85);
276
288
  --default-fill-focused: var(--blue-100);
@@ -496,6 +508,7 @@
496
508
  --color-bg-table-header-selected: var(--s-accent-fill-hover);
497
509
  --color-bg-table-header-unselected: var(--s-accent-fill-hover);
498
510
  --color-bg-chat-bubble-general-bg: var(--global-default);
511
+ --color-bg-chat-bubble-general-subbg: var(--global-subdefault);
499
512
  --color-bg-chat-bubble-user-default: var(--s-accent-fill-hover);
500
513
  --color-bg-chat-bubble-user-quote: var(--s-accent-fill-hover);
501
514
  --color-bg-chat-bubble-user-selected: var(--accent-fill-pressed);
@@ -731,6 +744,8 @@
731
744
  --color-icon-chat-bubble-user-selected: var(--accent-content-default);
732
745
  --color-icon-chat-bubble-other-default: var(--default-content-default);
733
746
  --color-icon-chat-bubble-other-selected: var(--accent-content-selected);
747
+
748
+ --effect-dropdown-shadow: 0 0 4px 0 var(--shadow-close), 0 4px 12px 0 var(--shadow-far);
734
749
  }
735
750
 
736
751
  html {
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.32",
5
+ "version": "0.1.34",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -57,7 +57,7 @@ function getElementSize() {
57
57
  position: relative;
58
58
  box-sizing: border-box;
59
59
  background-color: v-bind(color);
60
- outline: 1px var(--white-0) solid;
60
+ outline: 1px var(--white-100) solid;
61
61
 
62
62
  &:not(.ui3nBadgeDot) {
63
63
  min-height: var(--ui3n-badge-size);
@@ -185,7 +185,7 @@ function change(ev: Event) {
185
185
  display: flex;
186
186
  justify-content: flex-start;
187
187
  align-items: center;
188
- min-height: var(--spacing-vl);
188
+ min-height: var(--spacing-m);
189
189
  gap: var(--spacing-s);
190
190
  }
191
191
 
@@ -47,7 +47,7 @@ const mainCssClasses = computed(() => {
47
47
  <template>
48
48
  <div :class="mainCssClasses">
49
49
  <div :class="$style.ui3nChipIcon">
50
- <slot name="left" :size="iconHeight" :color="props.textColor" />
50
+ <slot name="left" :size="iconHeight" :color="textColor" />
51
51
  </div>
52
52
 
53
53
  <div :class="$style.ui3nChipBody">
@@ -145,7 +145,7 @@ function handleEvent(event: Event, eventName: Ui3nDialogEvent) {
145
145
  />
146
146
 
147
147
  <div
148
- v-if="props.component"
148
+ v-if="component"
149
149
  :class="[$style.content, ...dialogProps.contentCssClass]"
150
150
  :style="dialogProps.contentCssStyle"
151
151
  @click.stop
@@ -246,6 +246,7 @@ function handleEvent(event: Event, eventName: Ui3nDialogEvent) {
246
246
  position: absolute;
247
247
  right: 4px;
248
248
  top: 12px;
249
+ z-index: 5;
249
250
  }
250
251
 
251
252
  .content {
@@ -123,7 +123,7 @@ const onDrop = (ev: DragEvent) => {
123
123
  .ui3nDropFilesDropzone {
124
124
  box-sizing: border-box;
125
125
  position: absolute;
126
- background-color: var(--white-0);
126
+ background-color: var(--color-bg-block-primary-default);
127
127
  display: flex;
128
128
  flex-direction: column;
129
129
  justify-content: center;
@@ -86,7 +86,7 @@ onMounted(() => {
86
86
  </div>
87
87
 
88
88
  <ui3n-button
89
- v-if="!props.duration"
89
+ v-if="!duration"
90
90
  type="icon"
91
91
  size="small"
92
92
  color="transparent"
@@ -110,7 +110,7 @@ function change(ev: Event) {
110
110
  width: var(--ui3n-switch-dot-size);
111
111
  height: var(--ui3n-switch-dot-size);
112
112
  border-radius: 50%;
113
- background-color: var(--white-0);
113
+ background-color: var(--color-bg-control-primary-default);
114
114
  top: 0;
115
115
  margin: calc(var(--ui3n-switch-size) / 8);
116
116
  transition: all 250ms ease-in-out;
@@ -110,7 +110,7 @@ watch(isPositioned, val => {
110
110
  >
111
111
  <slot name="content">
112
112
  <div :class="$style.content">
113
- {{ props.content }}
113
+ {{ content }}
114
114
  <div
115
115
  ref="floatingArrowEl"
116
116
  :class="[$style.arrow, $style[`arrow-${mainPlacement}`]]"