@kizmann/nano-ui 1.0.11 → 1.0.12
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/nano-ui.css +1 -1
- package/dist/nano-ui.js +1 -1
- package/dist/nano-ui.js.map +1 -1
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/package.json +1 -1
- package/src/config/src/config/config-next.jsx +20 -7
- package/src/form/src/form-frame/form-frame.jsx +109 -17
- package/src/form/src/form-frame/form-frame.scss +32 -4
- package/src/form/src/form-group/form-group.scss +15 -10
- package/src/scrollbar/src/scrollbar/scrollbar.jsx +3 -3
- package/themes/macos/form/src/form-frame/form-frame.scss +4 -0
- package/themes/macos/form/src/form-group/form-group.scss +2 -2
@@ -20,11 +20,34 @@
|
|
20
20
|
|
21
21
|
.n-form-frame__menu {
|
22
22
|
cursor: pointer;
|
23
|
+
position: relative;
|
23
24
|
display: flex;
|
24
25
|
align-items: center;
|
25
26
|
width: 100%;
|
26
27
|
border-radius: $md-radius;
|
27
28
|
text-decoration: none;
|
29
|
+
transition: opacity 0.3s;
|
30
|
+
}
|
31
|
+
|
32
|
+
.n-form-frame--search .n-form-frame__menu:not(.on-search) {
|
33
|
+
opacity: 0.6;
|
34
|
+
}
|
35
|
+
|
36
|
+
.n-form-frame__menu:before {
|
37
|
+
content: '\00a0';
|
38
|
+
position: absolute;
|
39
|
+
top: 50%;
|
40
|
+
display: block;
|
41
|
+
width: 6px;
|
42
|
+
height: 6px;
|
43
|
+
margin-top: -3px;
|
44
|
+
border-radius: 500px;
|
45
|
+
opacity: 0;
|
46
|
+
transition: opacity 0.3s;
|
47
|
+
}
|
48
|
+
|
49
|
+
.n-form-frame__menu.on-search:before {
|
50
|
+
opacity: 1;
|
28
51
|
}
|
29
52
|
|
30
53
|
.n-form-frame__menu:not(:last-child) {
|
@@ -67,10 +90,19 @@
|
|
67
90
|
padding: $-form-frame-size * 0.5 $-form-frame-size * 0.6;
|
68
91
|
}
|
69
92
|
|
93
|
+
.n-form-frame--#{$suffix} .n-form-frame__search {
|
94
|
+
margin-bottom: $-form-frame-size * 0.4;
|
95
|
+
}
|
96
|
+
|
70
97
|
.n-form-frame--#{$suffix} .n-form-frame__menu {
|
71
98
|
height: $-form-frame-size;
|
72
99
|
font-size: $-form-frame-font - 1;
|
73
100
|
border-radius: $-form-frame-radius;
|
101
|
+
padding-right: $-form-frame-size * 0.6;
|
102
|
+
}
|
103
|
+
|
104
|
+
.n-form-frame--#{$suffix} .n-form-frame__menu:before {
|
105
|
+
right: $-form-frame-size * 0.3;
|
74
106
|
}
|
75
107
|
|
76
108
|
.n-form-frame--#{$suffix} .n-form-frame__menu i {
|
@@ -82,8 +114,4 @@
|
|
82
114
|
padding: $-form-frame-size * 0.2 $-form-frame-size * 0.6 $-form-frame-size * 0.2 0;
|
83
115
|
}
|
84
116
|
|
85
|
-
.n-form-frame--#{$suffix} .n-form-frame__body .n-form-group {
|
86
|
-
padding: $-form-frame-size * 0.2 $-form-frame-size * 0.6;
|
87
|
-
}
|
88
|
-
|
89
117
|
}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
.n-form-group:before {
|
9
9
|
pointer-events: none;
|
10
|
-
z-index:
|
10
|
+
z-index: 0;
|
11
11
|
content: '\00a0';
|
12
12
|
position: absolute;
|
13
13
|
top: 0;
|
@@ -20,7 +20,11 @@
|
|
20
20
|
}
|
21
21
|
|
22
22
|
.n-form-group.on-search:before {
|
23
|
-
opacity: 0.
|
23
|
+
opacity: 0.1;
|
24
|
+
}
|
25
|
+
|
26
|
+
.n-form-group--collapse .n-form-group__legend {
|
27
|
+
cursor: pointer;
|
24
28
|
}
|
25
29
|
|
26
30
|
.n-form-group--classic .n-form-group__legend {
|
@@ -92,6 +96,7 @@
|
|
92
96
|
|
93
97
|
.n-form-group--#{$suffix}.n-form-group--fieldset {
|
94
98
|
margin-bottom: $-form-group-size;
|
99
|
+
padding: 0 $-form-group-size * 0.6;
|
95
100
|
}
|
96
101
|
|
97
102
|
.n-form-group--#{$suffix}.n-form-group--fieldset:first-child {
|
@@ -102,23 +107,23 @@
|
|
102
107
|
margin-top: $-form-group-size * 1.4;
|
103
108
|
}
|
104
109
|
|
105
|
-
.n-form-group
|
110
|
+
.n-form-group--#{$suffix}.n-form-group--classic .n-form-group__legend {
|
106
111
|
font-size: $-form-group-font;
|
107
112
|
min-height: $-form-group-size * 1.2;
|
108
113
|
}
|
109
114
|
|
110
|
-
.n-form-group
|
115
|
+
.n-form-group--#{$suffix}.n-form-group--fieldset .n-form-group__legend {
|
111
116
|
min-height: $-form-group-size;
|
112
117
|
border-radius: $-form-group-radius;
|
113
118
|
top: $-form-group-size * -0.5;
|
114
119
|
padding: 0 $-form-group-size * 0.3;
|
115
120
|
}
|
116
121
|
|
117
|
-
.n-form-group
|
122
|
+
.n-form-group--#{$suffix}.n-form-group--classic .n-form-group__label span {
|
118
123
|
font-size: $-form-group-font + 1;
|
119
124
|
}
|
120
125
|
|
121
|
-
.n-form-group
|
126
|
+
.n-form-group--#{$suffix}.n-form-group--fieldset .n-form-group__label span {
|
122
127
|
font-size: $-form-group-font - 2;
|
123
128
|
}
|
124
129
|
|
@@ -127,7 +132,7 @@
|
|
127
132
|
height: $-form-group-size;
|
128
133
|
}
|
129
134
|
|
130
|
-
.n-form-group
|
135
|
+
.n-form-group--#{$suffix}.n-form-group--fieldset .n-form-group__collapse {
|
131
136
|
margin-right: $-form-group-size * -0.3;
|
132
137
|
}
|
133
138
|
|
@@ -135,12 +140,12 @@
|
|
135
140
|
margin-right: $-form-group-size * $-form-group-ratio * 0.7;
|
136
141
|
}
|
137
142
|
|
138
|
-
.n-form-group
|
143
|
+
.n-form-group--#{$suffix}.n-form-group--classic .n-form-group__body {
|
139
144
|
padding-top: $-form-group-size * $-form-group-ratio;
|
140
145
|
}
|
141
146
|
|
142
|
-
.n-form-group
|
143
|
-
padding-top: $-form-group-size
|
147
|
+
.n-form-group--#{$suffix}.n-form-group--fieldset .n-form-group__body {
|
148
|
+
padding-top: $-form-group-size;
|
144
149
|
}
|
145
150
|
|
146
151
|
}
|
@@ -196,12 +196,12 @@ export default {
|
|
196
196
|
}
|
197
197
|
},
|
198
198
|
|
199
|
-
scrollIntoView(selector, delay = 0)
|
199
|
+
scrollIntoView(selector, delay = 0, offset = 0)
|
200
200
|
{
|
201
|
-
Any.delay(() => this.onScrollIntoView(selector), delay);
|
201
|
+
Any.delay(() => this.onScrollIntoView(selector, offset), delay);
|
202
202
|
},
|
203
203
|
|
204
|
-
onScrollIntoView(selector)
|
204
|
+
onScrollIntoView(selector, offset = 0)
|
205
205
|
{
|
206
206
|
let $el = Dom.find(this.$el).find(selector);
|
207
207
|
|
@@ -15,6 +15,10 @@
|
|
15
15
|
$-color-light: map.get($values, 'light');
|
16
16
|
$-color-dark: map.get($values, 'dark');
|
17
17
|
|
18
|
+
.n-form-frame__menu--#{$color}.on-search:before {
|
19
|
+
background: $-color-base;
|
20
|
+
}
|
21
|
+
|
18
22
|
.n-form-frame__menu--#{$color}.is-visible {
|
19
23
|
background: rgba($-color-base, 0.15);
|
20
24
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@use "sass:map";
|
2
2
|
@import "../../../root/vars";
|
3
3
|
|
4
|
-
.n-form-group--fieldset
|
4
|
+
.n-form-group--fieldset {
|
5
5
|
border: 1px solid $color-gray-10;
|
6
6
|
}
|
7
7
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
color: $-color-base;
|
37
37
|
}
|
38
38
|
|
39
|
-
.n-form-group--#{$color}
|
39
|
+
.n-form-group--#{$color}:before {
|
40
40
|
background: linear-gradient(135deg, $-color-base 0, transparent 300px);
|
41
41
|
}
|
42
42
|
|