@kizmann/nano-ui 0.8.37 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- package/bun.lockb +0 -0
- package/demos/overview.html +5 -15
- package/demos/select.html +164 -0
- package/dist/nano-ui.css +1 -1
- package/dist/nano-ui.js +2 -2
- package/dist/nano-ui.js.map +1 -1
- package/dist/themes/light.css +1 -1
- package/docs/README.md +1 -2
- package/docs/_sidebar.md +19 -21
- package/docs/dist/docs.css +2 -0
- package/docs/{data → files/data}/table.md +40 -14
- package/docs/files/form/button.md +122 -0
- package/docs/{form → files/form}/form.md +14 -0
- package/docs/files/form/input.md +90 -0
- package/docs/files/form/switch.md +92 -0
- package/docs/index.html +163 -44
- package/docs/src/scss/docsify/basic/_layout.sass +3 -6
- package/docs/src/scss/docsify/syntax.scss +139 -0
- package/docs/src/scss/docsify/vue.sass +2 -15
- package/docs/src/scss/index.scss +428 -16
- package/package.json +1 -1
- package/src/button/src/button/button.js +1 -9
- package/src/mixins/src/ctor.js +0 -6
- package/src/popover/src/popover/popover.scss +4 -0
- package/src/radio/src/radio-group/radio-group.js +1 -1
- package/src/root/vars.scss +10 -10
- package/src/scrollbar/src/scrollbar/scrollbar.next.js +21 -1
- package/src/select/src/select/select.js +191 -78
- package/src/select/src/select/select.scss +4 -0
- package/src/select/src/select-option/select-option.js +6 -2
- package/src/table/src/table/table.scss +0 -1
- package/src/tags/src/tags-item/tags-item.js +17 -1
- package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +12 -2
- package/themes/light/root/vars.scss +10 -10
- package/themes/light/switch/src/switch/switch.scss +1 -1
- package/themes/light/table/src/table/table.scss +1 -1
- package/themes/light/tags/src/tags-item/tags-item.scss +16 -0
- package/webpack.config.js +13 -13
- package/dist/themes/basic.css +0 -2029
- package/dist/themes/flat.css +0 -1806
- package/dist/themes/flat.dark.css +0 -1809
- package/docs/dist/index.css +0 -6977
- package/docs/form/button.md +0 -299
- package/docs/form/input.md +0 -205
- package/docs/form/switch.md +0 -166
- /package/docs/{data → files/data}/draggable.md +0 -0
- /package/docs/{data → files/data}/map.md +0 -0
- /package/docs/{data → files/data}/paginator.md +0 -0
- /package/docs/{data → files/data}/virtualscroller.md +0 -0
- /package/docs/{form → files/form}/cascader.md +0 -0
- /package/docs/{form → files/form}/checkbox.md +0 -0
- /package/docs/{form → files/form}/datepicker.md +0 -0
- /package/docs/{form → files/form}/radio.md +0 -0
- /package/docs/{form → files/form}/select.md +0 -0
- /package/docs/{form → files/form}/textarea.md +0 -0
- /package/docs/{form → files/form}/timepicker.md +0 -0
- /package/docs/{form → files/form}/transfer.md +0 -0
- /package/docs/{others → files/others}/config.md +0 -0
- /package/docs/{others → files/others}/confirm.md +0 -0
- /package/docs/{others → files/others}/loader.md +0 -0
- /package/docs/{others → files/others}/modal.md +0 -0
- /package/docs/{others → files/others}/notification.md +0 -0
- /package/docs/{others → files/others}/popover.md +0 -0
- /package/docs/{others → files/others}/resizer.md +0 -0
- /package/docs/{others → files/others}/scrollbar.md +0 -0
- /package/docs/{others → files/others}/tabs.md +0 -0
@@ -21,15 +21,15 @@ $color-gray-85: mix($color-black, $color-white, 0.85 * 100%) !default;
|
|
21
21
|
$color-gray-90: mix($color-black, $color-white, 0.90 * 100%) !default;
|
22
22
|
$color-gray-95: mix($color-black, $color-white, 0.95 * 100%) !default;
|
23
23
|
|
24
|
-
$color-
|
25
|
-
$color-
|
24
|
+
$color-secondary: #ca62f0 !default;
|
25
|
+
$color-primary: #6875ee !default;
|
26
26
|
|
27
|
-
$color-success: #
|
28
|
-
$color-warning: #
|
29
|
-
$color-danger: #
|
30
|
-
$color-info: #
|
27
|
+
$color-success: #06C493 !default;
|
28
|
+
$color-warning: #FFBF3F !default;
|
29
|
+
$color-danger: #F9536E !default;
|
30
|
+
$color-info: #4BD6F9 !default;
|
31
31
|
|
32
|
-
$color-background: #
|
32
|
+
$color-background: #FAFAFB !default;
|
33
33
|
|
34
34
|
$color-shadow: mix($color-black, $color-primary, 80%) !default;
|
35
35
|
|
@@ -95,8 +95,8 @@ $color-background-darker: darken(mix($color-black, $color-background, 20%), 5%
|
|
95
95
|
|
96
96
|
$xs-radius: 2px !default;
|
97
97
|
$sm-radius: 2px !default;
|
98
|
-
$md-radius:
|
99
|
-
$lg-radius:
|
98
|
+
$md-radius: 4px !default;
|
99
|
+
$lg-radius: 6px !default;
|
100
100
|
$xl-radius: 10px !default;
|
101
101
|
|
102
102
|
$form: (
|
@@ -114,7 +114,7 @@ $form: (
|
|
114
114
|
),
|
115
115
|
'md': (
|
116
116
|
'size': 32px,
|
117
|
-
'font':
|
117
|
+
'font': 15px,
|
118
118
|
'radius': $md-radius,
|
119
119
|
'ratio': 0.40,
|
120
120
|
),
|
@@ -1,5 +1,21 @@
|
|
1
1
|
@import "../../../root/vars";
|
2
2
|
|
3
|
+
@each $color, $values in $colors {
|
4
|
+
|
5
|
+
$-color-base: map_get($values, 'base');
|
6
|
+
$-color-light: map_get($values, 'light');
|
7
|
+
$-color-dark: map_get($values, 'dark');
|
8
|
+
|
9
|
+
.n-tags-item--color-#{$color} {
|
10
|
+
color: mix($-color-dark, $color-black, 70%);
|
11
|
+
background: rgba($-color-base, 0.25);
|
12
|
+
}
|
13
|
+
.n-tags-item--color-#{$color} i {
|
14
|
+
color: rgba($-color-base, 0.75);
|
15
|
+
}
|
16
|
+
|
17
|
+
}
|
18
|
+
|
3
19
|
@each $-tags-index, $-tags-color in $colors-tags {
|
4
20
|
|
5
21
|
.n-tags-item--color-#{$-tags-index} {
|
package/webpack.config.js
CHANGED
@@ -80,14 +80,14 @@ let light = {
|
|
80
80
|
]
|
81
81
|
};
|
82
82
|
|
83
|
-
let
|
84
|
-
entry: ["./
|
83
|
+
let docs = {
|
84
|
+
entry: ["./docs/src/scss/index.scss"],
|
85
85
|
module: {
|
86
86
|
rules: [
|
87
87
|
{
|
88
88
|
test: /\.scss$/,
|
89
89
|
include: [
|
90
|
-
path.resolve('
|
90
|
+
path.resolve('./docs/src')
|
91
91
|
],
|
92
92
|
use: [
|
93
93
|
MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader'
|
@@ -98,7 +98,7 @@ let dark = {
|
|
98
98
|
},
|
99
99
|
plugins: [
|
100
100
|
new MiniCssExtractPlugin({
|
101
|
-
filename: '
|
101
|
+
filename: './dist/docs.css'
|
102
102
|
})
|
103
103
|
]
|
104
104
|
};
|
@@ -142,24 +142,24 @@ module.exports = function (env, argv) {
|
|
142
142
|
let lightPackage = Object.assign({
|
143
143
|
|
144
144
|
output: {
|
145
|
-
filename: ".
|
145
|
+
filename: ".ignore.js",
|
146
146
|
path: path.resolve(__dirname, "dist/themes"),
|
147
147
|
}
|
148
148
|
|
149
149
|
}, light);
|
150
150
|
|
151
|
-
let
|
151
|
+
let docsPackage = Object.assign({
|
152
152
|
|
153
153
|
output: {
|
154
|
-
filename: "
|
155
|
-
path: path.resolve(__dirname, "
|
154
|
+
filename: "./dist/.ignore.js",
|
155
|
+
path: path.resolve(__dirname, "docs"),
|
156
156
|
}
|
157
157
|
|
158
|
-
},
|
158
|
+
}, docs);
|
159
159
|
|
160
160
|
if ( argv.mode === 'development' ) {
|
161
161
|
return [
|
162
|
-
bundlerPackage, stylePackage, lightPackage,
|
162
|
+
bundlerPackage, stylePackage, lightPackage, docsPackage
|
163
163
|
];
|
164
164
|
}
|
165
165
|
|
@@ -170,7 +170,7 @@ module.exports = function (env, argv) {
|
|
170
170
|
bundlerPackage.plugins.push(loaderOptions);
|
171
171
|
stylePackage.plugins.push(loaderOptions);
|
172
172
|
lightPackage.plugins.push(loaderOptions);
|
173
|
-
|
173
|
+
docsPackage.plugins.push(loaderOptions);
|
174
174
|
|
175
175
|
let terserOptions = {
|
176
176
|
mangle: true
|
@@ -189,9 +189,9 @@ module.exports = function (env, argv) {
|
|
189
189
|
bundlerPackage.optimization = optimization;
|
190
190
|
stylePackage.optimization = optimization;
|
191
191
|
lightPackage.optimization = optimization;
|
192
|
-
|
192
|
+
docsPackage.optimization = optimization;
|
193
193
|
|
194
194
|
return [
|
195
|
-
bundlerPackage, stylePackage, lightPackage,
|
195
|
+
bundlerPackage, stylePackage, lightPackage, docsPackage
|
196
196
|
];
|
197
197
|
}
|