@community-release/nx-ui 0.0.76 → 0.0.78
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/module.d.mts +7 -7
- package/dist/module.d.ts +7 -7
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -7
- package/dist/runtime/components/button/index.vue +33 -21
- package/dist/runtime/components/button/props.json +2 -0
- package/dist/runtime/components/checkbox.vue +2 -2
- package/dist/runtime/components/filter/index.vue +3 -3
- package/dist/runtime/components/input/index.vue +14 -14
- package/dist/runtime/components/map/device-zoom-switch.vue +1 -1
- package/dist/runtime/components/map/location/index.vue +3 -3
- package/dist/runtime/components/map/location/nearest.vue +1 -1
- package/dist/runtime/components/map/zoom.vue +1 -1
- package/dist/runtime/components/radio.vue +3 -3
- package/dist/runtime/components/select.vue +2 -2
- package/dist/runtime/components/styles/components.less +1 -1
- package/dist/runtime/components/typeahead-input/index.vue +2 -2
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
|
@@ -10,12 +10,12 @@ var defaultStyle = {
|
|
|
10
10
|
"border-radius-m": "8px",
|
|
11
11
|
"border-radius-s": "3px",
|
|
12
12
|
// Inputs height
|
|
13
|
-
"input-
|
|
14
|
-
"input-
|
|
15
|
-
"input-
|
|
16
|
-
"input-
|
|
17
|
-
"input-
|
|
18
|
-
"input-
|
|
13
|
+
"input-size-2xl": "60px",
|
|
14
|
+
"input-size-xl": "52px",
|
|
15
|
+
"input-size-l": "48px",
|
|
16
|
+
"input-size-m": "42px",
|
|
17
|
+
"input-size-s": "32px",
|
|
18
|
+
"input-size-xs": "24px",
|
|
19
19
|
// Line height
|
|
20
20
|
"text-line-height": 1.4,
|
|
21
21
|
// Colors
|
|
@@ -106,7 +106,7 @@ var defaultComponentsStyle = {
|
|
|
106
106
|
"text-font-size": "var(--ui-text-m)"
|
|
107
107
|
},
|
|
108
108
|
button: {
|
|
109
|
-
"border-radius": "var(--ui-input-
|
|
109
|
+
"border-radius": "var(--ui-input-size-2xl)"
|
|
110
110
|
},
|
|
111
111
|
map: {
|
|
112
112
|
"user-position-color": "var(--ui-color-primary)"
|
package/dist/module.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ var defaultStyle = {
|
|
|
10
10
|
"border-radius-m": "8px",
|
|
11
11
|
"border-radius-s": "3px",
|
|
12
12
|
// Inputs height
|
|
13
|
-
"input-
|
|
14
|
-
"input-
|
|
15
|
-
"input-
|
|
16
|
-
"input-
|
|
17
|
-
"input-
|
|
18
|
-
"input-
|
|
13
|
+
"input-size-2xl": "60px",
|
|
14
|
+
"input-size-xl": "52px",
|
|
15
|
+
"input-size-l": "48px",
|
|
16
|
+
"input-size-m": "42px",
|
|
17
|
+
"input-size-s": "32px",
|
|
18
|
+
"input-size-xs": "24px",
|
|
19
19
|
// Line height
|
|
20
20
|
"text-line-height": 1.4,
|
|
21
21
|
// Colors
|
|
@@ -106,7 +106,7 @@ var defaultComponentsStyle = {
|
|
|
106
106
|
"text-font-size": "var(--ui-text-m)"
|
|
107
107
|
},
|
|
108
108
|
button: {
|
|
109
|
-
"border-radius": "var(--ui-input-
|
|
109
|
+
"border-radius": "var(--ui-input-size-2xl)"
|
|
110
110
|
},
|
|
111
111
|
map: {
|
|
112
112
|
"user-position-color": "var(--ui-color-primary)"
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -10,12 +10,12 @@ const defaultStyle = {
|
|
|
10
10
|
"border-radius-m": "8px",
|
|
11
11
|
"border-radius-s": "3px",
|
|
12
12
|
// Inputs height
|
|
13
|
-
"input-
|
|
14
|
-
"input-
|
|
15
|
-
"input-
|
|
16
|
-
"input-
|
|
17
|
-
"input-
|
|
18
|
-
"input-
|
|
13
|
+
"input-size-2xl": "60px",
|
|
14
|
+
"input-size-xl": "52px",
|
|
15
|
+
"input-size-l": "48px",
|
|
16
|
+
"input-size-m": "42px",
|
|
17
|
+
"input-size-s": "32px",
|
|
18
|
+
"input-size-xs": "24px",
|
|
19
19
|
// Line height
|
|
20
20
|
"text-line-height": 1.4,
|
|
21
21
|
// Colors
|
|
@@ -106,7 +106,7 @@ const defaultComponentsStyle = {
|
|
|
106
106
|
"text-font-size": "var(--ui-text-m)"
|
|
107
107
|
},
|
|
108
108
|
button: {
|
|
109
|
-
"border-radius": "var(--ui-input-
|
|
109
|
+
"border-radius": "var(--ui-input-size-2xl)"
|
|
110
110
|
},
|
|
111
111
|
map: {
|
|
112
112
|
"user-position-color": "var(--ui-color-primary)"
|
|
@@ -59,6 +59,14 @@
|
|
|
59
59
|
type: String,
|
|
60
60
|
default: comProps.color,
|
|
61
61
|
},
|
|
62
|
+
hoverColorTransform: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: comProps.hoverColorTransform,
|
|
65
|
+
},
|
|
66
|
+
hoverFlatColor: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: comProps.hoverFlatColor,
|
|
69
|
+
},
|
|
62
70
|
size: {
|
|
63
71
|
type: String,
|
|
64
72
|
default: comProps.size,
|
|
@@ -128,7 +136,7 @@
|
|
|
128
136
|
let color = `var(--ui-color-text-on-${props.color})`;
|
|
129
137
|
|
|
130
138
|
if (props.variant === 'flat' || props.variant === 'outline') {
|
|
131
|
-
background = `var(--ui-color
|
|
139
|
+
background = `var(--ui-color-${props.hoverFlatColor})`;
|
|
132
140
|
color = `var(--ui-color-${props.color}-text)`;
|
|
133
141
|
}
|
|
134
142
|
|
|
@@ -139,7 +147,11 @@
|
|
|
139
147
|
});
|
|
140
148
|
const buttonBgStyle = computed(() => {
|
|
141
149
|
return {
|
|
142
|
-
|
|
150
|
+
// Лучше поддержка браузеров но хуже результат
|
|
151
|
+
// 'background': (props.variant === 'flat' || props.variant === 'outline') ? `transparent` : `color-mix(in srgb, var(--ui-color-${props.color}) 95%, black)`
|
|
152
|
+
|
|
153
|
+
// Лучше результат но хуже поддержка браузеров
|
|
154
|
+
'background': (props.variant === 'flat' || props.variant === 'outline') ? `transparent` : `oklch(from var(--ui-color-${props.color}) ${props.hoverColorTransform})`
|
|
143
155
|
}
|
|
144
156
|
});
|
|
145
157
|
|
|
@@ -176,12 +188,12 @@
|
|
|
176
188
|
--button-background: v-bind(styles.background);
|
|
177
189
|
|
|
178
190
|
// Input height
|
|
179
|
-
@com-input-
|
|
180
|
-
@com-input-
|
|
181
|
-
@com-input-
|
|
182
|
-
@com-input-
|
|
183
|
-
@com-input-
|
|
184
|
-
@com-input-
|
|
191
|
+
@com-input-size-2xl: var(--ui-input-size-2xl);
|
|
192
|
+
@com-input-size-xl: var(--ui-input-size-xl);
|
|
193
|
+
@com-input-size-l: var(--ui-input-size-l);
|
|
194
|
+
@com-input-size-m: var(--ui-input-size-m);
|
|
195
|
+
@com-input-size-s: var(--ui-input-size-s);
|
|
196
|
+
@com-input-size-xs: var(--ui-input-size-xs);
|
|
185
197
|
|
|
186
198
|
// Animation
|
|
187
199
|
@com-ani-time: var(--ui-ani-time);
|
|
@@ -197,7 +209,7 @@
|
|
|
197
209
|
// Border radius
|
|
198
210
|
@com-border-radius-m: var(--ui-border-radius-m);
|
|
199
211
|
@com-border-radius-s: var(--ui-border-radius-s);
|
|
200
|
-
@com-border-radius-round: var(--ui-input-
|
|
212
|
+
@com-border-radius-round: var(--ui-input-size-2xl);
|
|
201
213
|
|
|
202
214
|
// Padding
|
|
203
215
|
@com-space-m: var(--ui-space-m);
|
|
@@ -223,7 +235,7 @@
|
|
|
223
235
|
vertical-align: top;
|
|
224
236
|
|
|
225
237
|
padding: 0 @com-space-m;
|
|
226
|
-
height: @com-input-
|
|
238
|
+
height: @com-input-size-m;
|
|
227
239
|
line-height: 1.1;
|
|
228
240
|
|
|
229
241
|
text-align: center;
|
|
@@ -310,14 +322,14 @@
|
|
|
310
322
|
// Shapes
|
|
311
323
|
&.tag-shape-circle {
|
|
312
324
|
padding: 0 !important;
|
|
313
|
-
width: @com-input-
|
|
325
|
+
width: @com-input-size-m;
|
|
314
326
|
border-radius: 50%;
|
|
315
327
|
|
|
316
|
-
&.tag-size-2xl { width: @com-input-
|
|
317
|
-
&.tag-size-xl { width: @com-input-
|
|
318
|
-
&.tag-size-l { width: @com-input-
|
|
319
|
-
&.tag-size-s { width: @com-input-
|
|
320
|
-
&.tag-size-xs { width: @com-input-
|
|
328
|
+
&.tag-size-2xl { width: @com-input-size-2xl; }
|
|
329
|
+
&.tag-size-xl { width: @com-input-size-xl; }
|
|
330
|
+
&.tag-size-l { width: @com-input-size-xl; }
|
|
331
|
+
&.tag-size-s { width: @com-input-size-s; }
|
|
332
|
+
&.tag-size-xs { width: @com-input-size-xs; }
|
|
321
333
|
}
|
|
322
334
|
&.tag-shape-round {
|
|
323
335
|
border-radius: @com-border-radius-round;
|
|
@@ -338,20 +350,20 @@
|
|
|
338
350
|
|
|
339
351
|
// Size
|
|
340
352
|
&.tag-size-2xl {
|
|
341
|
-
height: @com-input-
|
|
353
|
+
height: @com-input-size-2xl;
|
|
342
354
|
}
|
|
343
355
|
|
|
344
356
|
&.tag-size-xl {
|
|
345
|
-
height: @com-input-
|
|
357
|
+
height: @com-input-size-xl;
|
|
346
358
|
}
|
|
347
359
|
|
|
348
360
|
&.tag-size-l {
|
|
349
|
-
height: @com-input-
|
|
361
|
+
height: @com-input-size-l;
|
|
350
362
|
}
|
|
351
363
|
|
|
352
364
|
&.tag-size-s {
|
|
353
365
|
padding: 0 @com-space-s;
|
|
354
|
-
height: @com-input-
|
|
366
|
+
height: @com-input-size-s;
|
|
355
367
|
|
|
356
368
|
font-size: @com-text-s;
|
|
357
369
|
|
|
@@ -362,7 +374,7 @@
|
|
|
362
374
|
|
|
363
375
|
&.tag-size-xs {
|
|
364
376
|
padding: 0 10px;
|
|
365
|
-
height: @com-input-
|
|
377
|
+
height: @com-input-size-xs;
|
|
366
378
|
|
|
367
379
|
font-size: @com-text-xs;
|
|
368
380
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
@com-text-l: var(--ui-text-l);
|
|
104
104
|
@com-text-s: var(--ui-text-s);
|
|
105
105
|
|
|
106
|
-
@com-input-
|
|
106
|
+
@com-input-size: var(--ui-input-size-m);
|
|
107
107
|
|
|
108
108
|
@com-space-2xs: var(--ui-space-2xs);
|
|
109
109
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
margin: 0;
|
|
119
119
|
padding: 0 0 0 30px;
|
|
120
120
|
|
|
121
|
-
height: @com-input-
|
|
121
|
+
height: @com-input-size;
|
|
122
122
|
font-size: @com-text-m;
|
|
123
123
|
font-weight: 500;
|
|
124
124
|
|
|
@@ -92,7 +92,7 @@ function genUpdatedValue(id) {
|
|
|
92
92
|
@com-space-m: var(--ui-space-m);
|
|
93
93
|
@com-space-s: var(--ui-space-s);
|
|
94
94
|
|
|
95
|
-
@com-input-
|
|
95
|
+
@com-input-size-s: var(--ui-input-size-s);
|
|
96
96
|
|
|
97
97
|
--active-color: v-bind(activeColor);
|
|
98
98
|
--active-bg: v-bind(activeBg);
|
|
@@ -113,8 +113,8 @@ function genUpdatedValue(id) {
|
|
|
113
113
|
margin-right: @com-space-s;
|
|
114
114
|
padding: 0 @com-space-s;
|
|
115
115
|
|
|
116
|
-
height: @com-input-
|
|
117
|
-
line-height: @com-input-
|
|
116
|
+
height: @com-input-size-s;
|
|
117
|
+
line-height: @com-input-size-s;
|
|
118
118
|
|
|
119
119
|
border-radius: 30px;
|
|
120
120
|
cursor: pointer;
|
|
@@ -153,17 +153,17 @@
|
|
|
153
153
|
@com-ani-ease: var(--ui-ani-ease);
|
|
154
154
|
|
|
155
155
|
// Input height
|
|
156
|
-
@com-input-
|
|
157
|
-
@com-input-
|
|
158
|
-
@com-input-
|
|
159
|
-
@com-input-
|
|
160
|
-
@com-input-
|
|
161
|
-
@com-input-
|
|
156
|
+
@com-input-size-2xl: var(--ui-input-size-2xl);
|
|
157
|
+
@com-input-size-xl: var(--ui-input-size-xl);
|
|
158
|
+
@com-input-size-l: var(--ui-input-size-l);
|
|
159
|
+
@com-input-size-m: var(--ui-input-size-m);
|
|
160
|
+
@com-input-size-s: var(--ui-input-size-s);
|
|
161
|
+
@com-input-size-xs: var(--ui-input-size-xs);
|
|
162
162
|
|
|
163
163
|
// Border radius
|
|
164
164
|
@com-border-radius-m: var(--ui-border-radius-m);
|
|
165
165
|
@com-border-radius-s: var(--ui-border-radius-s);
|
|
166
|
-
@com-border-radius-round: var(--ui-input-
|
|
166
|
+
@com-border-radius-round: var(--ui-input-size-2xl);
|
|
167
167
|
|
|
168
168
|
// Color
|
|
169
169
|
@com-color-border-bolder: var(--ui-color-border-bolder);
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
.component-ui-input {
|
|
193
193
|
overflow: hidden;
|
|
194
194
|
position: relative;
|
|
195
|
-
height: @com-input-
|
|
195
|
+
height: @com-input-size-m;
|
|
196
196
|
border: 1px solid @com-color-border-bolder;
|
|
197
197
|
border-radius: @com-border-radius-m;
|
|
198
198
|
background: @com-color-surface;
|
|
@@ -247,23 +247,23 @@
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// Size
|
|
250
|
-
&.tag-size-2xl { height: @com-input-
|
|
251
|
-
&.tag-size-xl { height: @com-input-
|
|
252
|
-
&.tag-size-l { height: @com-input-
|
|
250
|
+
&.tag-size-2xl { height: @com-input-size-2xl; }
|
|
251
|
+
&.tag-size-xl { height: @com-input-size-xl; }
|
|
252
|
+
&.tag-size-l { height: @com-input-size-l; }
|
|
253
253
|
&.tag-size-m {
|
|
254
254
|
//padding: 0 @com-space-s;
|
|
255
|
-
height: @com-input-
|
|
255
|
+
height: @com-input-size-m;
|
|
256
256
|
font-size: @com-text-s;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
&.tag-size-s {
|
|
260
|
-
height: @com-input-
|
|
260
|
+
height: @com-input-size-s;
|
|
261
261
|
font-size: @com-text-s;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
&.tag-size-xs {
|
|
265
265
|
//padding: 0 10px;
|
|
266
|
-
height: @com-input-
|
|
266
|
+
height: @com-input-size-xs;
|
|
267
267
|
font-size: @com-text-xs;
|
|
268
268
|
|
|
269
269
|
.loading-indicator {
|
|
@@ -46,7 +46,7 @@ function handleClick(e) {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<style lang="less">
|
|
49
|
-
@com-size: var(--ui-input-
|
|
49
|
+
@com-size: var(--ui-input-size-m);
|
|
50
50
|
@com-border-radius-m: var(--ui-border-radius-m);
|
|
51
51
|
@com-ani-time: var(--ui-ani-time);
|
|
52
52
|
@com-ani-ease: var(--ui-ani-ease);
|
|
@@ -46,7 +46,7 @@ const hasSlot = (name) => {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<style lang="less">
|
|
49
|
-
@com-input-
|
|
49
|
+
@com-input-size: var(--ui-input-size-m);
|
|
50
50
|
|
|
51
51
|
@com-map-padding: var(--ui-map-padding);
|
|
52
52
|
@com-space-xs: var(--ui-space-xs);
|
|
@@ -71,7 +71,7 @@ const hasSlot = (name) => {
|
|
|
71
71
|
|
|
72
72
|
inset: 0 0 auto 0;
|
|
73
73
|
max-width: 100%;
|
|
74
|
-
height: @com-input-
|
|
74
|
+
height: @com-input-size;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.location-slot-default {
|
|
@@ -99,7 +99,7 @@ const hasSlot = (name) => {
|
|
|
99
99
|
|
|
100
100
|
&.tag-slot-header-and-default {
|
|
101
101
|
.location-slot-default {
|
|
102
|
-
inset: calc(@com-input-
|
|
102
|
+
inset: calc(@com-input-size + @com-space-xs) 0 0 0;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
@com-color-header-text: var(--ui-color-header-text);
|
|
98
98
|
@com-color-muted-text: var(--ui-color-muted-text);
|
|
99
99
|
|
|
100
|
-
@com-input-
|
|
100
|
+
@com-input-size: var(--ui-input-size-m);
|
|
101
101
|
|
|
102
102
|
@com-text-m: var(--ui-text-m);
|
|
103
103
|
@com-text-l: var(--ui-text-l);
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
margin: 0;
|
|
120
120
|
padding: 0 0 0 30px;
|
|
121
121
|
|
|
122
|
-
height: @com-input-
|
|
123
|
-
line-height: @com-input-
|
|
122
|
+
height: @com-input-size;
|
|
123
|
+
line-height: @com-input-size;
|
|
124
124
|
font-size: @com-text-m;
|
|
125
125
|
font-weight: 500;
|
|
126
126
|
color: @com-color-text;
|
|
@@ -185,7 +185,7 @@ onMounted(() => {
|
|
|
185
185
|
@import (less) './styles/components.less';
|
|
186
186
|
|
|
187
187
|
@com-space-2xs: var(--ui-space-2xs);
|
|
188
|
-
@com-input-
|
|
188
|
+
@com-input-size-m: var(--ui-input-size-m);
|
|
189
189
|
|
|
190
190
|
@com-font-header: var(--ui-font-header);
|
|
191
191
|
@com-value-font-weight: @ui-select-value-font-weight;
|
|
@@ -221,7 +221,7 @@ onMounted(() => {
|
|
|
221
221
|
opacity: 0;
|
|
222
222
|
padding-right: 45px;
|
|
223
223
|
padding-left: 10px;
|
|
224
|
-
height: @com-input-
|
|
224
|
+
height: @com-input-size-m;
|
|
225
225
|
width: 100%;
|
|
226
226
|
|
|
227
227
|
cursor: pointer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@ui-accordion-title-font-size: var(--ui-text-l);
|
|
2
2
|
@ui-accordion-text-font-size: var(--ui-text-m);
|
|
3
|
-
@ui-button-border-radius: var(--ui-input-
|
|
3
|
+
@ui-button-border-radius: var(--ui-input-size-2xl);
|
|
4
4
|
@ui-map-user-position-color: var(--color-primary);
|
|
5
5
|
@ui-select-value-font-weight: var(--ui-font-weight-medium);
|
|
6
6
|
@ui-select-background-color: var(--ui-color-surface);
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
|
|
469
469
|
@com-text-s: var(--ui-text-s);
|
|
470
470
|
|
|
471
|
-
@com-input-
|
|
471
|
+
@com-input-size-m: var(--ui-input-size-m);
|
|
472
472
|
|
|
473
473
|
@com-color-primary: var(--ui-color-primary);
|
|
474
474
|
@com-color-text-on-primary: var(--ui-color-text-on-primary);
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
|
|
505
505
|
.component-ui-input .component-ui-button {
|
|
506
506
|
padding: 0;
|
|
507
|
-
width: @com-input-
|
|
507
|
+
width: @com-input-size-m;
|
|
508
508
|
height: 100%;
|
|
509
509
|
font-size: @com-text-s;
|
|
510
510
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@community-release/nx-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"packageManager": "pnpm@10.14.0",
|
|
5
5
|
"description": "nx-ui - Nuxt UI library",
|
|
6
6
|
"repository": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dev": "nuxi dev docs --host --port 7012",
|
|
63
63
|
"build": "nuxi build docs",
|
|
64
64
|
"prepare": "nuxt-module-build build && nuxt-module-build prepare && nuxi prepare docs",
|
|
65
|
-
"release": "npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
65
|
+
"release": "npm login && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
66
66
|
"test": "vitest run",
|
|
67
67
|
"test:watch": "vitest watch",
|
|
68
68
|
"test:com": "vitest components run",
|