@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.
Files changed (66) hide show
  1. package/bun.lockb +0 -0
  2. package/demos/overview.html +5 -15
  3. package/demos/select.html +164 -0
  4. package/dist/nano-ui.css +1 -1
  5. package/dist/nano-ui.js +2 -2
  6. package/dist/nano-ui.js.map +1 -1
  7. package/dist/themes/light.css +1 -1
  8. package/docs/README.md +1 -2
  9. package/docs/_sidebar.md +19 -21
  10. package/docs/dist/docs.css +2 -0
  11. package/docs/{data → files/data}/table.md +40 -14
  12. package/docs/files/form/button.md +122 -0
  13. package/docs/{form → files/form}/form.md +14 -0
  14. package/docs/files/form/input.md +90 -0
  15. package/docs/files/form/switch.md +92 -0
  16. package/docs/index.html +163 -44
  17. package/docs/src/scss/docsify/basic/_layout.sass +3 -6
  18. package/docs/src/scss/docsify/syntax.scss +139 -0
  19. package/docs/src/scss/docsify/vue.sass +2 -15
  20. package/docs/src/scss/index.scss +428 -16
  21. package/package.json +1 -1
  22. package/src/button/src/button/button.js +1 -9
  23. package/src/mixins/src/ctor.js +0 -6
  24. package/src/popover/src/popover/popover.scss +4 -0
  25. package/src/radio/src/radio-group/radio-group.js +1 -1
  26. package/src/root/vars.scss +10 -10
  27. package/src/scrollbar/src/scrollbar/scrollbar.next.js +21 -1
  28. package/src/select/src/select/select.js +191 -78
  29. package/src/select/src/select/select.scss +4 -0
  30. package/src/select/src/select-option/select-option.js +6 -2
  31. package/src/table/src/table/table.scss +0 -1
  32. package/src/tags/src/tags-item/tags-item.js +17 -1
  33. package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +12 -2
  34. package/themes/light/root/vars.scss +10 -10
  35. package/themes/light/switch/src/switch/switch.scss +1 -1
  36. package/themes/light/table/src/table/table.scss +1 -1
  37. package/themes/light/tags/src/tags-item/tags-item.scss +16 -0
  38. package/webpack.config.js +13 -13
  39. package/dist/themes/basic.css +0 -2029
  40. package/dist/themes/flat.css +0 -1806
  41. package/dist/themes/flat.dark.css +0 -1809
  42. package/docs/dist/index.css +0 -6977
  43. package/docs/form/button.md +0 -299
  44. package/docs/form/input.md +0 -205
  45. package/docs/form/switch.md +0 -166
  46. /package/docs/{data → files/data}/draggable.md +0 -0
  47. /package/docs/{data → files/data}/map.md +0 -0
  48. /package/docs/{data → files/data}/paginator.md +0 -0
  49. /package/docs/{data → files/data}/virtualscroller.md +0 -0
  50. /package/docs/{form → files/form}/cascader.md +0 -0
  51. /package/docs/{form → files/form}/checkbox.md +0 -0
  52. /package/docs/{form → files/form}/datepicker.md +0 -0
  53. /package/docs/{form → files/form}/radio.md +0 -0
  54. /package/docs/{form → files/form}/select.md +0 -0
  55. /package/docs/{form → files/form}/textarea.md +0 -0
  56. /package/docs/{form → files/form}/timepicker.md +0 -0
  57. /package/docs/{form → files/form}/transfer.md +0 -0
  58. /package/docs/{others → files/others}/config.md +0 -0
  59. /package/docs/{others → files/others}/confirm.md +0 -0
  60. /package/docs/{others → files/others}/loader.md +0 -0
  61. /package/docs/{others → files/others}/modal.md +0 -0
  62. /package/docs/{others → files/others}/notification.md +0 -0
  63. /package/docs/{others → files/others}/popover.md +0 -0
  64. /package/docs/{others → files/others}/resizer.md +0 -0
  65. /package/docs/{others → files/others}/scrollbar.md +0 -0
  66. /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-primary: #4e7bff !default;
25
- $color-secondary: #683bff !default;
24
+ $color-secondary: #ca62f0 !default;
25
+ $color-primary: #6875ee !default;
26
26
 
27
- $color-success: #3ed786 !default;
28
- $color-warning: #ffac2f !default;
29
- $color-danger: #fd2f51 !default;
30
- $color-info: #37C4EF !default;
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: #f0f3f7 !default;
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: 3px !default;
99
- $lg-radius: 5px !default;
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': 14px,
117
+ 'font': 15px,
118
118
  'radius': $md-radius,
119
119
  'ratio': 0.40,
120
120
  ),
@@ -18,7 +18,7 @@
18
18
 
19
19
  .n-switch--#{$color}:not(.n-disabled) .n-switch__switch {
20
20
  background: $-color-base;
21
- border-color: $-color-dark;
21
+ border-color: mix($-color-dark, $-color-base, 25%);
22
22
  }
23
23
 
24
24
  .n-switch--#{$color}:not(.n-disabled) .n-switch__label {
@@ -1,7 +1,7 @@
1
1
  @import "../../../root/vars";
2
2
 
3
3
  .n-table {
4
- border: 1px solid $color-gray-15;
4
+ box-shadow: inset 0 0 1px 1px $color-gray-15;
5
5
  }
6
6
 
7
7
  .n-table .n-draglist-item {
@@ -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 dark = {
84
- entry: ["./themes/dark/index.scss"],
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('themes')
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: 'dark.css'
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: ".light.ignore.js",
145
+ filename: ".ignore.js",
146
146
  path: path.resolve(__dirname, "dist/themes"),
147
147
  }
148
148
 
149
149
  }, light);
150
150
 
151
- let darkPackage = Object.assign({
151
+ let docsPackage = Object.assign({
152
152
 
153
153
  output: {
154
- filename: ".dark.ignore.js",
155
- path: path.resolve(__dirname, "dist/themes"),
154
+ filename: "./dist/.ignore.js",
155
+ path: path.resolve(__dirname, "docs"),
156
156
  }
157
157
 
158
- }, dark);
158
+ }, docs);
159
159
 
160
160
  if ( argv.mode === 'development' ) {
161
161
  return [
162
- bundlerPackage, stylePackage, lightPackage, //darkPackage
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
- darkPackage.plugins.push(loaderOptions);
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
- darkPackage.optimization = optimization;
192
+ docsPackage.optimization = optimization;
193
193
 
194
194
  return [
195
- bundlerPackage, stylePackage, lightPackage, //darkPackage
195
+ bundlerPackage, stylePackage, lightPackage, docsPackage
196
196
  ];
197
197
  }